/* ASAF Antiplágio – Main Stylesheet */
:root {
  --blue: #1a56db;
  --blue-dark: #1141ad;
  --blue-light: #eff6ff;
  --blue-mid: #3b82f6;
  --green: #0ea472;
  --green-dark: #047857;
  --green-light: #ecfdf5;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --red: #ef4444;
  --orange: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(26,86,219,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--gray-900); color: var(--white); padding: 16px 24px; transform: translateY(100%); transition: transform .3s ease; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-content { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cookie-icon { font-size: 24px; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.5; color: var(--gray-300); }
.cookie-text a { color: #93c5fd; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--blue); color: white; border: none; padding: 8px 20px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; transition: background .2s; }
.btn-cookie-accept:hover { background: var(--blue-dark); }
.btn-cookie-reject { background: transparent; color: var(--gray-300); border: 1px solid var(--gray-600); padding: 8px 20px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; transition: all .2s; }
.btn-cookie-reject:hover { border-color: var(--gray-400); color: white; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); }
.nav-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--gray-900); font-weight: 600; font-size: 18px; text-decoration: none; }
.logo-text strong { color: var(--blue); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--gray-600); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }

/* Hero */
.hero { position: relative; padding: 80px 0 100px; overflow: hidden; background: linear-gradient(135deg, #f8faff 0%, #f0f7ff 50%, #e8f4f0 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4; }
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; background: radial-gradient(circle, #bfdbfe, #dbeafe); }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: radial-gradient(circle, #a7f3d0, #d1fae5); }
.hero .container { position: relative; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: white; border: 1px solid var(--gray-200); color: var(--gray-600); font-size: 13px; font-weight: 500; padding: 6px 16px; border-radius: 100px; margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.2)} }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; color: var(--gray-900); letter-spacing: -.02em; margin-bottom: 20px; }
.text-gradient { background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(16px, 2vw, 20px); color: var(--gray-500); max-width: 560px; margin: 0 auto 40px; line-height: 1.6; }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 40px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1; }
.stat-label { display: block; font-size: 13px; color: var(--gray-500); font-weight: 500; margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--gray-300); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: white; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 16px; border: none; cursor: pointer; transition: all .2s; text-decoration: none; font-family: inherit; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,86,219,.3); text-decoration: none; color: white; }
.btn-hero { font-size: 17px; padding: 16px 36px; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: white; color: var(--blue); padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 2px solid var(--blue); cursor: pointer; transition: all .2s; font-family: inherit; }
.btn-secondary:hover { background: var(--blue-light); }

/* How it works */
.section-how { padding: 80px 0; background: white; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 100px; margin-bottom: 16px; }
.section-header h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.section-header p { font-size: 17px; color: var(--gray-500); }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.step-card { background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; flex: 1; min-width: 220px; max-width: 280px; transition: all .3s; }
.step-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.step-number { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--blue); text-transform: uppercase; margin-bottom: 16px; }
.step-icon { width: 60px; height: 60px; background: var(--blue-light); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }
.step-connector { padding: 0 8px; flex-shrink: 0; }

/* Upload section */
.section-upload { padding: 80px 0; background: var(--gray-50); }
.upload-area { border: 2.5px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; cursor: pointer; transition: all .25s; background: white; max-width: 600px; margin: 0 auto; }
.upload-area:hover, .upload-area.dragover { border-color: var(--blue); background: var(--blue-light); }
.upload-icon { margin: 0 auto 20px; }
.upload-title { font-size: 20px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.upload-subtitle { font-size: 15px; color: var(--gray-500); margin-bottom: 20px; }
.upload-formats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.format-tag { background: var(--blue-light); color: var(--blue); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .05em; }
.upload-limit { font-size: 13px; color: var(--gray-400); }
.file-preview { display: flex; align-items: center; gap: 12px; background: white; border: 1.5px solid var(--green); border-radius: var(--radius); padding: 14px 18px; max-width: 600px; margin: 16px auto 0; }
.file-preview-icon { font-size: 28px; }
.file-preview-info { flex: 1; min-width: 0; }
.file-preview-name { display: block; font-weight: 600; color: var(--gray-900); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-preview-size { display: block; font-size: 13px; color: var(--gray-500); }
.file-remove { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 18px; padding: 4px; border-radius: 6px; transition: color .2s; }
.file-remove:hover { color: var(--red); }
.upload-options { max-width: 600px; margin: 20px auto 0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; color: var(--gray-600); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); cursor: pointer; flex-shrink: 0; }
.btn-upload { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 600px; margin: 24px auto 0; padding: 16px; font-size: 17px; border-radius: var(--radius); }

/* Progress bar */
.progress-bar-container { max-width: 600px; margin: 20px auto; }
.progress-bar { height: 6px; background: var(--gray-200); border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 100px; width: 0%; transition: width .4s ease; }
.progress-steps { display: flex; justify-content: space-between; gap: 8px; }
.progress-step { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.progress-step.active { color: var(--blue); }
.progress-step.done { color: var(--green); }

/* Results */
.result-container { max-width: 700px; margin: 0 auto; background: white; border-radius: var(--radius-lg); border: 1.5px solid var(--gray-200); padding: 40px; box-shadow: var(--shadow-lg); }
.result-header { margin-bottom: 32px; }
.result-header h3 { font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.result-filename { font-size: 14px; color: var(--gray-500); }
.result-score-container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-bottom: 32px; }
.score-ring-wrapper { position: relative; flex-shrink: 0; }
.score-svg { display: block; }
.score-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-percent { font-size: 36px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.score-label-ring { font-size: 13px; color: var(--gray-500); font-weight: 500; margin-top: 4px; }
.score-details { flex: 1; min-width: 200px; }
.score-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.score-item:last-child { border-bottom: none; }
.score-item-label { font-size: 14px; color: var(--gray-600); }
.score-item-value { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.score-item-value.original { color: var(--green); }
.score-item-value.plagiarized { color: var(--red); }
.score-badge { margin-top: 16px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.badge-original { background: var(--green-light); color: var(--green-dark); }
.badge-warning { background: #fffbeb; color: #92400e; }
.badge-danger { background: #fef2f2; color: #991b1b; }
.sources-list { margin-bottom: 28px; }
.sources-list h4 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 16px; }
.source-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.source-info { flex: 1; min-width: 0; }
.source-url { display: block; font-size: 13px; color: var(--blue); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.source-snippet { font-size: 13px; color: var(--gray-500); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.source-percent { font-size: 14px; font-weight: 700; color: var(--red); white-space: nowrap; flex-shrink: 0; }

/* Features */
.section-features { padding: 64px 0; background: white; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { padding: 32px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); transition: all .3s; }
.feature-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-blue { background: var(--blue-light); color: var(--blue); }
.feature-green { background: var(--green-light); color: var(--green); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* Footer */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo { color: white; font-size: 16px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-links h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-links h4 { margin-bottom: 12px; }
.footer-links a { color: var(--gray-400); font-size: 14px; text-decoration: none; padding: 4px 0; transition: color .2s; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--gray-700); padding-top: 24px; text-align: center; font-size: 13px; }

/* Error box */
.error-box { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 768px) {
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 24px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .result-score-container { flex-direction: column; align-items: center; }
  .nav-links { display: none; }
}
