:root {
  --bg: #FAFAF8;
  --nav-bg: rgba(250, 250, 248, 0.85);
  --nav-border: rgba(11, 29, 46, 0.08);
  --primary: #0B1D2E;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --accent-mid: rgba(245, 166, 35, 0.4);
  --cream: #FFFDF9;
  --muted: #6B7A8C;
  --border: rgba(11, 29, 46, 0.1);
  --section-pad: 100px 0;
  --inner-max: 1100px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-mid); border-radius: 4px; }

/* ─── NAV ─────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
}
.nav-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* ─── HERO ─────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,166,35,0.5) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(11,29,46,0.08) 0%, transparent 70%);
  bottom: 0; left: 10%;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,29,46,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,29,46,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--primary);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-step {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  gap: 20px;
}
.doc-panel {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  width: 180px;
  flex-shrink: 0;
  box-shadow: 0 4px 32px rgba(11,29,46,0.06);
}
.doc-header {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.doc-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.doc-lines { display: flex; flex-direction: column; gap: 8px; }
.doc-line {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}
.doc-line-short { width: 65%; }
.doc-line-med { width: 80%; }
.doc-label {
  margin-top: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
}
.transform-arrow {
  flex-shrink: 0;
  animation: pulse-right 2s ease-in-out infinite;
}
@keyframes pulse-right {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(4px); }
}
.game-panel {
  background: var(--primary);
  border-radius: 16px;
  padding: 20px;
  width: 200px;
  box-shadow: 0 8px 48px rgba(11,29,46,0.25);
}
.game-hud {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hud-score, .hud-level { display: flex; flex-direction: column; }
.hud-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,166,35,0.5);
}
.hud-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Playfair Display', serif;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.game-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.15);
}
.game-cell-active { background: rgba(245,166,35,0.35); border-color: var(--accent); }
.game-cell-correct { background: rgba(34,197,94,0.3); border-color: rgba(34,197,94,0.5); }
.game-cell-wrong { background: rgba(239,68,68,0.3); border-color: rgba(239,68,68,0.5); }
.game-bar {
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.game-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.game-label {
  margin-top: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,166,35,0.4);
  text-align: center;
}

/* ─── SECTION COMMON ──────────────── */
.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 32px;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 64px;
  max-width: 580px;
}

/* ─── PROCESS ──────────────────────── */
.process {
  padding: var(--section-pad);
  background: var(--cream);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.process-card {
  background: var(--bg);
  padding: 40px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,29,46,0.08);
}
.process-card-accent {
  background: var(--primary);
  border-color: var(--primary);
}
.process-card-accent h3,
.process-card-accent p { color: rgba(255,255,255,0.85); }
.process-card-accent .process-tag,
.process-card-accent .process-num { color: var(--accent); }
.process-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 24px; right: 28px;
  line-height: 1;
}
.process-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
.process-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── FEATURES ─────────────────────── */
.features {
  padding: var(--section-pad);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  transition: border-color 0.3s;
}
.feature-card:hover { border-color: var(--accent); }
.feature-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.feature-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── TESTIMONIAL ──────────────────── */
.testimonial {
  padding: var(--section-pad);
  background: var(--primary);
}
.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial-quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 120px;
  line-height: 0.5;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 32px;
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-bottom: 40px;
}
.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-attr strong {
  display: block;
  font-size: 14px;
  color: white;
  margin-bottom: 4px;
}
.testimonial-attr span {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

/* ─── CLOSING ──────────────────────── */
.closing {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.closing h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--primary);
  margin-bottom: 28px;
}
.closing p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}
.closing-bg-decor {
  position: absolute;
  top: 50%; right: -100px;
  transform: translateY(-50%);
  pointer-events: none;
}
.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.closing-ring-1 { width: 400px; height: 400px; opacity: 0.08; }
.closing-ring-2 { width: 560px; height: 560px; opacity: 0.05; }
.closing-ring-3 { width: 720px; height: 720px; opacity: 0.03; }

/* ─── FOOTER ──────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 8px;
}
.footer p {
  font-size: 13px;
  color: var(--muted);
}
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ─── RESPONSIVE ──────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-right { display: flex; justify-content: center; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { margin-bottom: 40px; }
}

/* ─── UPLOAD FORM (closing section) ─── */
.upload-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
}

/* Drop zone — positioned above the textarea */
.drop-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-zone:hover {
  border-color: var(--accent);
  background: rgba(245,166,35,0.04);
}
.drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(245,166,35,0.08);
  border-style: solid;
}
.drop-zone.has-file {
  border-color: var(--accent);
  background: rgba(245,166,35,0.06);
}
.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}
.drop-icon {
  color: var(--muted);
  transition: color 0.2s;
}
.drop-zone.drag-over .drop-icon,
.drop-zone:hover .drop-icon { color: var(--accent); }
.drop-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin: 0;
}
.drop-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  max-width: 320px;
  line-height: 1.5;
}

/* File badge (shown after file is selected) */
.file-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}
.file-badge svg { color: var(--accent); flex-shrink: 0; }
.file-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.file-remove:hover { color: #ef4444; }

.upload-area,
textarea.upload-area {
  width: 100%;
  padding: 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--primary);
  resize: vertical;
  line-height: 1.6;
  transition: border-color 0.2s;
  outline: none;
}
.upload-area textarea:focus {
  border-color: var(--accent);
}
.upload-area textarea::placeholder { color: var(--muted); }
.upload-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: -8px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
  letter-spacing: -0.2px;
}
.cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.upload-error {
  font-size: 13px;
  color: #ef4444;
  padding: 10px 16px;
  background: rgba(239,68,68,0.08);
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.2);
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 80px; }
  .hero-headline { letter-spacing: -1px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .closing-ring-1 { width: 280px; height: 280px; }
  .closing-ring-2 { width: 380px; height: 380px; }
  .closing-ring-3 { width: 480px; height: 480px; }
  .cta-btn { width: 100%; justify-content: center; }
}
