:root {
  --indigo: #5B3CF0;
  --indigo-deep: #3A28C0;
  --indigo-soft: #ECECFD;
  --graphite: #0F1827;
  --graphite-soft: #2A2F3E;
  --cream: #F5F2EC;
  --cream-warm: #EFEAE0;
  --orange: #FF6A00;
  --orange-soft: #FCE6D4;
  --line-soft: #D9D3C4;
  --green: #1F9D6E;
  --red: #C24545;
  --paper: #FBFAF6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter Tight', sans-serif; background: var(--graphite); color: var(--cream); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.display { font-family: 'Fraunces', serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.02em; }
.container { max-width: 1340px; margin: 0 auto; padding: 0 2.5rem; }
abbr { text-decoration: underline dotted; text-decoration-color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: help; border: none; color: inherit; }

.nav { position: sticky; top: 0; z-index: 100; background: rgba(15, 24, 39, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(245,242,236,0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; line-height: 1; }
.brand-symbol { width: 34px; height: 34px; flex-shrink: 0; display: block; }
.brand-text { font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--cream); }
.brand-fy { color: var(--indigo); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a { color: rgba(245,242,236,0.8); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta { background: var(--indigo); color: var(--cream) !important; padding: 0.55rem 1.2rem; border-radius: 999px; font-size: 0.88rem; transition: background 0.2s; }
.nav-cta:hover { background: var(--orange); }

.hero { position: relative; padding: 5rem 0 3rem; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: radial-gradient(circle, rgba(91,60,240,0.25) 0%, transparent 65%); pointer-events: none; }
.hero::after { content: ''; position: absolute; top: 10%; right: -5%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,106,0,0.12) 0%, transparent 65%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; background: rgba(91,60,240,0.15); border: 1px solid rgba(91,60,240,0.35); color: #B9A8FF; padding: 0.6rem 1.3rem; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; margin-bottom: 2rem; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; margin-bottom: 1.6rem; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--indigo); }
.hero h1 .glow { color: var(--orange); font-style: italic; }
.hero-lead { font-size: 1.2rem; color: rgba(245,242,236,0.72); line-height: 1.6; max-width: 620px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-primary, .btn-secondary { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 0.95rem 1.7rem; border-radius: 999px; transition: all 0.25s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-primary { background: var(--cream); color: var(--graphite); }
.btn-primary:hover { background: var(--indigo); color: var(--cream); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--cream); border: 1px solid rgba(245,242,236,0.3); }
.btn-secondary:hover { border-color: var(--cream); background: rgba(245,242,236,0.06); }

.hero-showcase { position: relative; z-index: 1; margin-top: 4rem; perspective: 2000px; }
.browser-frame { background: #1a2536; border-radius: 14px 14px 0 0; border: 1px solid rgba(245,242,236,0.12); border-bottom: none; overflow: hidden; box-shadow: 0 -10px 80px -20px rgba(91,60,240,0.4), 0 40px 100px -30px rgba(0,0,0,0.6); max-width: 1100px; margin: 0 auto; }
.browser-bar { background: #0f1825; padding: 0.7rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid rgba(245,242,236,0.08); }
.browser-dots { display: flex; gap: 0.45rem; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots span:nth-child(1){ background:#FF5F57; }
.browser-dots span:nth-child(2){ background:#FEBC2E; }
.browser-dots span:nth-child(3){ background:#28C840; }
.browser-url { flex: 1; background: rgba(245,242,236,0.06); border-radius: 6px; padding: 0.35rem 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: rgba(245,242,236,0.5); text-align: center; max-width: 340px; margin: 0 auto; }
.browser-img { display: block; width: 100%; height: auto; }

.section { padding: 6rem 0; position: relative; }
.section-light { background: var(--cream); color: var(--graphite); }
.section-paper { background: var(--paper); color: var(--graphite); }

.intro-strip { padding: 4rem 0; background: var(--graphite); border-top: 1px solid rgba(245,242,236,0.08); border-bottom: 1px solid rgba(245,242,236,0.08); }
.intro-strip-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.intro-strip h2 { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.3; color: var(--cream); }
.intro-strip h2 em { font-style: italic; color: var(--orange); }

.steps-wrap { background: var(--cream); color: var(--graphite); }
.step { padding: 5.5rem 0; position: relative; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: none; }
.step-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: center; }
.step.reverse .step-grid { grid-template-columns: 1.25fr 1fr; }
.step.reverse .step-text { order: 2; }
.step.reverse .step-visual { order: 1; }
.step-text { position: relative; }
.step-number { font-family: 'Fraunces', serif; font-weight: 300; font-size: 7rem; line-height: 0.8; color: var(--indigo); opacity: 0.13; position: absolute; top: -3.5rem; left: -1rem; pointer-events: none; }
.step-tag { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); font-weight: 700; margin-bottom: 1.2rem; position: relative; }
.step-tag .step-line { width: 32px; height: 2px; background: var(--indigo); }
.step-text h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; margin-bottom: 1.1rem; }
.step-text h3 em { font-style: italic; color: var(--indigo); }
.step-text > p { font-size: 1.05rem; color: var(--graphite-soft); line-height: 1.65; margin-bottom: 1.5rem; }
.step-features { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.step-features li { display: grid; grid-template-columns: 24px 1fr; gap: 0.8rem; align-items: start; font-size: 0.92rem; line-height: 1.5; }
.step-features li .fi { width: 22px; height: 22px; border-radius: 6px; background: var(--indigo-soft); color: var(--indigo); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.step-features li strong { color: var(--graphite); }

.shot { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px -25px rgba(15,19,32,0.4); border: 1px solid var(--line-soft); transition: transform 0.4s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.4s; }
.shot:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 45px 90px -25px rgba(15,19,32,0.5); }
.shot-bar { background: var(--graphite); padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.7rem; }
.shot-dots { display: flex; gap: 0.4rem; }
.shot-dots span { width: 9px; height: 9px; border-radius: 50%; }
.shot-dots span:nth-child(1){ background:#FF5F57; }
.shot-dots span:nth-child(2){ background:#FEBC2E; }
.shot-dots span:nth-child(3){ background:#28C840; }
.shot-label { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: rgba(245,242,236,0.5); letter-spacing: 0.05em; margin-left: auto; }
.shot img { display: block; width: 100%; height: auto; }
.shot-wrap { position: relative; }
.shot-badge { position: absolute; z-index: 3; background: var(--graphite); color: var(--cream); padding: 0.7rem 1.1rem; border-radius: 10px; box-shadow: 0 12px 30px -8px rgba(15,19,32,0.45); border: 1px solid rgba(91,60,240,0.4); display: flex; align-items: center; gap: 0.7rem; max-width: 250px; }
.shot-badge .bi { width: 32px; height: 32px; border-radius: 8px; background: var(--indigo); color: white; display: grid; place-items: center; flex-shrink: 0; }
.shot-badge .bt { font-size: 0.8rem; line-height: 1.3; }
.shot-badge .bt strong { display: block; color: var(--cream); font-weight: 600; }
.shot-badge .bt span { color: rgba(245,242,236,0.6); font-size: 0.72rem; }
.shot-badge.tl { top: -16px; left: -16px; }
.shot-badge.br { bottom: -16px; right: -16px; }
.shot-badge.tr { top: -16px; right: -16px; }
.shot-badge.orange { border-color: rgba(255,106,0,0.5); }
.shot-badge.orange .bi { background: var(--orange); }

.map-section { background: linear-gradient(180deg, var(--graphite) 0%, #16243a 100%); color: var(--cream); padding: 6rem 0; position: relative; overflow: hidden; }
.map-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(91,60,240,0.18) 0%, transparent 55%); }
.map-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; position: relative; z-index: 1; }
.map-head .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.2rem; display: inline-block; }
.map-head h2 { font-family: 'Fraunces', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.1rem; color: var(--cream); }
.map-head h2 em { font-style: italic; color: var(--indigo); }
.map-head p { font-size: 1.1rem; color: rgba(245,242,236,0.72); line-height: 1.55; }
.map-shot { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.6); border: 1px solid rgba(245,242,236,0.12); }
.map-shot .shot-bar { background: #0f1825; }
.map-shot img { display: block; width: 100%; height: auto; }

.cert-section { background: var(--cream); color: var(--graphite); padding: 6rem 0; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.cert-text .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--indigo); padding: 0.4rem 0; border-top: 2px solid var(--indigo); display: inline-block; margin-bottom: 1.4rem; }
.cert-text h2 { font-family: 'Fraunces', serif; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; line-height: 1.1; margin-bottom: 1.2rem; }
.cert-text h2 em { font-style: italic; color: var(--indigo); }
.cert-text > p { font-size: 1.05rem; color: var(--graphite-soft); line-height: 1.65; margin-bottom: 1.5rem; }
.cert-badges { display: flex; gap: 0.8rem; margin: 1.5rem 0; flex-wrap: wrap; }
.cert-badge { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.8rem 1.1rem; flex: 1; min-width: 180px; }
.cert-badge .cb-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 3px; display: inline-block; margin-bottom: 0.5rem; }
.cert-badge.def .cb-tag { background: var(--indigo); color: white; }
.cert-badge.reg .cb-tag { background: var(--orange); color: white; }
.cert-badge h5 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1rem; margin-bottom: 0.2rem; }
.cert-badge p { font-size: 0.78rem; color: var(--graphite-soft); line-height: 1.4; }
.cert-soon { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--orange-soft); color: #B5491A; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; margin-top: 0.5rem; }
.cert-soon::before { content: '◷'; font-size: 1rem; }

.cert-visual { perspective: 1500px; }
.pdf-stack { position: relative; }
.pdf-doc { background: white; border-radius: 10px; box-shadow: 0 30px 70px -25px rgba(15,19,32,0.35); border: 1px solid var(--line-soft); overflow: hidden; position: relative; z-index: 2; }
.pdf-doc::before { content: ''; position: absolute; top: 12px; left: 12px; right: -12px; bottom: -12px; background: white; border: 1px solid var(--line-soft); border-radius: 10px; z-index: -1; opacity: 0.5; }
.pdf-top { background: var(--graphite); padding: 0.65rem 1.1rem; display: flex; justify-content: space-between; align-items: center; }
.pdf-top .fn { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--cream); }
.pdf-top .pg { background: var(--indigo); color: white; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; padding: 0.15rem 0.5rem; border-radius: 3px; font-weight: 700; }
.pdf-page { padding: 1.6rem 1.8rem; }
.pdf-ph { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1.1rem; }
.pdf-ph .bn { font-family: 'Inter Tight'; font-weight: 800; font-size: 0.92rem; letter-spacing: -0.02em; }
.pdf-ph .bn span { color: var(--indigo); }
.pdf-ph .rf { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--graphite-soft); text-align: right; }
.pdf-title { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.15rem; margin-bottom: 0.3rem; }
.pdf-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--graphite-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.pdf-toc { list-style: none; }
.pdf-toc li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; padding: 0.3rem 0; font-size: 0.78rem; color: var(--graphite-soft); border-bottom: 1px dotted var(--line-soft); }
.pdf-toc li:last-child { border: none; }
.pdf-toc .pg { font-family: 'JetBrains Mono', monospace; color: var(--indigo); font-weight: 600; }
.pdf-foot { margin-top: 1rem; padding-top: 0.7rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; }
.pdf-foot .seal { color: var(--indigo); font-weight: 700; }
.pdf-foot .seal::before { content: '🔒 '; }
.pdf-foot .folio { color: var(--graphite); font-weight: 700; }
.pdf-foot .hash { color: var(--orange); }

.concepts { background: var(--graphite); color: var(--cream); padding: 6rem 0; }
.concepts-head { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.concepts-head .eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.2rem; display: inline-block; }
.concepts-head h2 { font-family: 'Fraunces', serif; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 400; line-height: 1.1; color: var(--cream); }
.concepts-head h2 em { font-style: italic; color: var(--indigo); }
.concepts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.concept-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(245,242,236,0.1); border-radius: 14px; padding: 1.8rem; transition: all 0.3s; }
.concept-card:hover { border-color: rgba(91,60,240,0.5); background: rgba(91,60,240,0.08); transform: translateY(-3px); }
.concept-card .ci { width: 44px; height: 44px; border-radius: 10px; background: rgba(91,60,240,0.2); color: #B9A8FF; display: grid; place-items: center; margin-bottom: 1.1rem; }
.concept-card h4 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.15rem; color: var(--cream); margin-bottom: 0.4rem; }
.concept-card .term { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--orange); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.concept-card p { font-size: 0.86rem; color: rgba(245,242,236,0.65); line-height: 1.55; }

.cta-final { background: var(--graphite); color: var(--cream); text-align: center; padding: 6rem 0 7rem; position: relative; overflow: hidden; border-top: 1px solid rgba(245,242,236,0.08); }
.cta-final::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(91,60,240,0.25) 0%, transparent 60%); pointer-events: none; }
.cta-final-content { position: relative; z-index: 1; }
.cta-final h2 { font-family: 'Fraunces', serif; font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 400; line-height: 1.08; margin-bottom: 1.3rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-final h2 em { color: var(--indigo); font-style: italic; }
.cta-final p { font-size: 1.15rem; color: rgba(245,242,236,0.7); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-final-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-accent { background: var(--indigo); color: var(--cream); }
.cert-note { font-size: 0.88rem; color: var(--graphite-soft); }

footer { background: #0a121e; color: rgba(245,242,236,0.6); padding: 3rem 0; border-top: 1px solid rgba(245,242,236,0.08); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-symbol { width: 48px; height: 48px; }
.footer-name { font-family: 'Inter Tight'; font-weight: 800; font-size: 1.3rem; color: var(--cream); letter-spacing: -0.02em; }
.footer-name span { color: var(--indigo); }
.footer-tag { font-family: 'Fraunces', serif; font-style: italic; font-size: 0.9rem; color: rgba(245,242,236,0.6); margin-top: 0.2rem; }
.footer-services { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-services .fs-title { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.4rem; }
.footer-services a { color: rgba(245,242,236,0.7); text-decoration: none; font-size: 0.86rem; transition: color 0.2s; }
.footer-services a:hover { color: var(--cream); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.2,0.8,0.2,1), transform 0.9s cubic-bezier(0.2,0.8,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 1s ease, transform 1s cubic-bezier(0.2,0.8,0.2,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

@media (max-width: 980px) {
  .container { padding: 0 1.3rem; }
  .step-grid, .step.reverse .step-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .step.reverse .step-text { order: 1; }
  .step.reverse .step-visual { order: 2; }
  .step-number { font-size: 5rem; top: -2.5rem; }
  .cert-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .concepts-grid { grid-template-columns: 1fr; }
  .cert-badges { flex-direction: column; }
  .nav-links li:not(.nav-cta-li) { display: none; }
  .shot-badge { position: static; margin: 1rem 0 0; max-width: none; }
  .hero-showcase { margin-top: 2.5rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
}

.lang-switch { position: relative; }
.lang-trigger { display: inline-flex; align-items: center; gap: 0.35rem; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 999px; padding: 0.4rem 0.8rem; font-family: 'Inter Tight', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--graphite); cursor: pointer; transition: all 0.2s; }
.lang-trigger:hover { border-color: var(--indigo); color: var(--indigo); }
.lang-trigger svg { opacity: 0.55; }
.lang-caret { font-size: 0.62rem; opacity: 0.55; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(15,19,32,0.3); padding: 0.4rem; min-width: 160px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.2s; z-index: 200; list-style: none; }
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: 0.55rem 0.9rem; font-size: 0.86rem; color: var(--graphite); text-decoration: none; border-radius: 8px; cursor: pointer; transition: background 0.15s; }
.lang-menu a:hover { background: var(--paper); color: var(--indigo); }
.lang-menu a.active { background: var(--indigo-soft); color: var(--indigo-deep); font-weight: 600; }
