:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #697386;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #dfe4ec;
  --green: #3659d9;
  --green-bright: #5f7ee6;
  --green-pale: #e8edff;
  --night: #151c2e;
  --code: #151c2e;
  --amber: #e4a93f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: fixed; z-index: 20; top: -60px; left: 16px; padding: 10px 14px; color: white; background: var(--green); }
.skip-link:focus { top: 12px; }
.section-shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid rgba(23,32,51,.09); background: rgba(245,247,250,.94); backdrop-filter: blur(14px); }
.nav-shell { width: min(1240px, calc(100% - 48px)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 38px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.wordmark-mark { position: relative; width: 25px; height: 25px; display: inline-block; border: 2px solid var(--green); border-radius: 7px; transform: rotate(45deg); }
.wordmark-mark i { position: absolute; width: 8px; height: 8px; border: 2px solid var(--green); border-radius: 2px; }
.wordmark-mark i:first-child { top: -5px; left: -5px; background: var(--paper); }
.wordmark-mark i:last-child { right: -5px; bottom: -5px; background: var(--paper); }
.nav-shell nav { margin-left: auto; display: flex; gap: 30px; }
.nav-shell nav a, footer nav a { color: #43506a; font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-shell nav a:hover, footer nav a:hover { color: var(--green); }
.nav-login { padding: 9px 16px; border: 1px solid #bdc5d2; border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-login:hover { border-color: var(--green); color: var(--green); }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(50px, 8vw, 110px); padding-block: 90px 100px; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 2px; margin: 0 8px 3px 0; background: var(--green-bright); }
.eyebrow.light { color: #9eb2ff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 720px; margin-bottom: 25px; font-size: clamp(46px, 5.5vw, 76px); font-weight: 650; }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 52px); font-weight: 620; }
h3 { font-size: 21px; }
.hero-lead { max-width: 620px; margin-bottom: 32px; color: var(--muted); font-size: clamp(19px, 2vw, 23px); line-height: 1.55; }
.hero-actions, .final-cta-inner > div:last-child { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--green); }
.button.primary:hover { background: #2948b8; }
.button.secondary { border-color: #bdc5d2; background: transparent; }
.proof-line { margin: 26px 0 0; color: #697386; font-size: 13px; }
.proof-line b { padding: 0 7px; color: var(--green-bright); }

.match-visual { position: relative; padding: 25px; border: 1px solid #cbd3e1; border-radius: 15px; background: rgba(255,255,255,.82); box-shadow: 0 28px 70px rgba(23,32,51,.12); }
.match-visual::before { content: ""; position: absolute; z-index: -1; inset: -24px 40px 40px -28px; border-radius: 18px; background-image: radial-gradient(#aebcf0 1px, transparent 1px); background-size: 13px 13px; opacity: .35; }
.visual-topline { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: #697386; font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.live-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--green-bright); }
.name-row { padding: 22px 0; }
.row-label, .score span { display: block; margin-bottom: 8px; color: #7b8496; font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.tokens { display: flex; gap: 8px; }
.tokens strong { flex: 1; padding: 10px 11px; border: 1px solid #d9dfeb; border-radius: 6px; background: #f8faff; font: 650 15px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.match-lines { height: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.match-lines i { position: relative; border-left: 1px solid #8098ee; border-right: 1px solid #8098ee; }
.match-lines i::after { content: ""; position: absolute; top: 12px; left: 20%; right: 20%; border-top: 1px dashed #8098ee; }
.decision-row { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; }
.match-badge { display: inline-block; padding: 5px 10px; border-radius: 5px; color: #2946a3; background: var(--green-pale); font: 800 13px/1.2 ui-monospace, monospace; }
.score { text-align: right; }
.score strong { font-size: 28px; line-height: 1; }
.confidence-track { height: 4px; margin: 17px 0; overflow: hidden; border-radius: 4px; background: #e4e8f0; }
.confidence-track span { display: block; width: 97%; height: 100%; background: var(--green-bright); }
.match-visual > code { color: #5f6b82; font-size: 11px; }

.problem-band, .multilingual, .final-cta { color: white; background: var(--night); }
.problem-grid { min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; padding-block: 90px; }
.problem-grid > div:first-child p:not(.eyebrow), .language-grid > div:first-child p:not(.eyebrow) { color: #c4cdea; font-size: 18px; }
.comparison-card { padding: 28px; border: 1px solid #344565; border-radius: 12px; background: #202d49; }
.comparison-card > div > span { display: block; margin-bottom: 5px; color: #9aa9cc; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.comparison-card > div > strong { font: 600 18px/1.4 ui-monospace, monospace; }
.comparison-divider { margin: 23px 0; border-top: 1px dashed #536585; text-align: center; }
.comparison-divider span { display: inline-block !important; padding: 0 10px; background: #202d49; transform: translateY(-9px); }
.comparison-card p { margin: 25px 0 0; display: flex; flex-wrap: wrap; gap: 7px; }
.comparison-card p b { padding: 5px 8px; border-radius: 4px; color: #b8c6ff; background: #2a3d70; font-size: 11px; font-weight: 700; }

.steps, .api-section, .security { padding-block: 120px; }
.section-heading { max-width: 720px; margin-bottom: 55px; }
.section-heading > p:last-child { max-width: 650px; color: var(--muted); font-size: 18px; }
.step-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; counter-reset: stages; }
.step-grid li { position: relative; min-height: 310px; padding: 30px; border: 1px solid var(--line); background: white; }
.step-grid li + li { border-left: 0; }
.step-grid li:first-child { border-radius: 12px 0 0 12px; }
.step-grid li:last-child { border-radius: 0 12px 12px 0; }
.step-number { float: right; color: #9aa59f; font: 700 11px/1 ui-monospace, monospace; }
.step-symbol { width: 62px; height: 62px; margin-bottom: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: #edf1ff; font: 750 19px/1 ui-monospace, monospace; }
.step-symbol.understand { display: flex; justify-content: center; align-items: end; gap: 4px; padding-bottom: 20px; }
.step-symbol.understand i { width: 6px; border-radius: 3px; background: var(--green); }
.step-symbol.understand i:nth-child(1) { height: 13px; }.step-symbol.understand i:nth-child(2) { height: 24px; }.step-symbol.understand i:nth-child(3) { height: 18px; }
.step-symbol.decide i { width: 21px; height: 11px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) translateY(-3px); }
.step-grid p { color: var(--muted); }

.multilingual { background: #1b2d53; }
.language-grid { min-height: 650px; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 100px; padding-block: 100px; }
.script-list { border-top: 1px solid #495e89; }
.script-list > div { min-height: 80px; display: grid; grid-template-columns: 105px 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid #495e89; }
.script-list span { color: #9faed0; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .14em; }
.script-list strong { font-size: 19px; font-weight: 500; }
.script-list em { padding: 4px 8px; border: 1px solid #6379aa; border-radius: 4px; color: #b9c7ff; font-size: 10px; font-style: normal; font-weight: 700; text-transform: uppercase; }

.api-section { text-align: center; }
.api-section .section-heading { margin-inline: auto; }
.code-window { overflow: hidden; margin-bottom: 27px; border: 1px solid #303b55; border-radius: 12px; color: #e1e7f7; background: var(--code); text-align: left; box-shadow: 0 25px 60px rgba(23,32,51,.12); }
.code-title { min-height: 56px; display: flex; align-items: center; gap: 13px; padding: 0 22px; border-bottom: 1px solid #303b55; }
.code-title > span { display: flex; gap: 6px; margin-right: auto; }
.code-title i { width: 8px; height: 8px; border-radius: 50%; background: #59657e; }
.code-title b { padding: 3px 7px; border-radius: 3px; color: #b9c7ff; background: #293e78; font-size: 10px; }
.code-title code { color: #b5bfd5; }
.code-columns { display: grid; grid-template-columns: 1fr 1fr; }
.code-columns > div { padding: 29px; }
.code-columns > div + div { border-left: 1px solid #303b55; }
.code-label { color: #8e9ab4; font: 700 10px/1 ui-monospace, monospace; letter-spacing: .15em; }
pre { overflow-x: auto; margin: 18px 0 0; color: #e1e7f7; font: 14px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.text-link { color: var(--green); font-weight: 750; text-decoration: none; }
.text-link span { padding-left: 5px; }

.explain-section { padding-block: 90px; border-block: 1px solid var(--line); background: white; }
.explain-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.explain-grid > div:first-child p:last-child { color: var(--muted); font-size: 17px; }
.reason-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.reason-cloud code { padding: 10px 13px; border: 1px solid #ccd5ec; border-radius: 5px; color: #3659d9; background: #f4f6ff; font-size: 12px; }

.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: white; }
.security-grid article { min-height: 220px; padding: 30px; }
.security-grid article:nth-child(odd) { border-right: 1px solid var(--line); }
.security-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.security-grid article > span { color: var(--green); font: 700 11px/1 ui-monospace, monospace; }
.security-grid h3 { margin-top: 30px; }
.security-grid p { color: var(--muted); }
.security-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; }

.final-cta { background: var(--green); }
.final-cta-inner { min-height: 310px; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.final-cta h2 { max-width: 700px; margin: 0; }
.button.inverted { color: var(--green); background: white; }
.button.ghost { border-color: rgba(255,255,255,.5); color: white; }
footer { color: #aeb8ce; background: #111827; }
.footer-inner { min-height: 140px; display: flex; align-items: center; gap: 42px; }
.footer-brand { color: white; }
.footer-brand .wordmark-mark, .footer-brand .wordmark-mark i { border-color: #8fa5ff; }
.footer-brand .wordmark-mark i { background: #111827; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
footer nav a { color: #aeb8ce; }
footer p { margin: 0; font-size: 13px; }

.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-shell { width: min(860px, calc(100% - 48px)); margin: auto; padding-block: 80px; }
.legal-shell h1 { font-size: clamp(42px, 6vw, 66px); }
.legal-shell h2 { margin-top: 42px; font-size: 24px; }
.legal-shell > p:not(.eyebrow), .legal-shell li, .legal-shell dd { color: var(--muted); line-height: 1.75; }
.legal-shell > p:not(.eyebrow) { max-width: 780px; font-size: 17px; }
.legal-shell li + li { margin-top: 8px; }
.legal-updated { font-size: 14px !important; }
.legal-notice { margin: 28px 0 38px; padding: 18px 20px; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; background: #f3f7f5; color: #344357; line-height: 1.6; }
.legal-dl dt { margin-top: 18px; font-weight: 700; }
.legal-dl dd { margin: 4px 0 0; }
.legal-table-wrap { overflow-x: auto; margin-top: 28px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 14px; border: 1px solid #dce3e9; text-align: left; vertical-align: top; line-height: 1.55; }
.legal-table th { background: #f3f7f5; }
.legal-page footer { margin-top: auto; }

.contact-page { min-height: 100vh; display: flex; flex-direction: column; }
.contact-shell { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding-block: 85px 110px; }
.contact-intro { max-width: 760px; margin-bottom: 48px; }
.contact-intro h1 { margin-bottom: 20px; font-size: clamp(42px, 6vw, 66px); }
.contact-intro > p:last-child { color: var(--muted); font-size: 19px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 32px; align-items: start; }
.contact-card, .contact-details { padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.contact-card h2, .contact-details h2 { font-size: 27px; }
.contact-form { display: grid; gap: 9px; }
.contact-form label { margin-top: 9px; font-size: 14px; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #bdc5d2; border-radius: 7px; color: var(--ink); background: white; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(54,89,217,.18); border-color: var(--green); }
.contact-form .button { justify-self: start; margin-top: 12px; cursor: pointer; }
.form-help, .privacy-link { color: var(--muted); font-size: 13px; }
.privacy-link { margin: 22px 0 0; }
.privacy-link a, .contact-details a { color: var(--green); }
.form-notice { margin-bottom: 20px; padding: 12px 14px; border-radius: 7px; }
.form-notice.success { color: #1e5631; background: #e7f6eb; }
.form-notice.error { color: #852424; background: #fdecec; }
.contact-details dl, .contact-details dd { margin: 0; }
.contact-details dl > div { padding: 19px 0; border-top: 1px solid var(--line); }
.contact-details dt { margin-bottom: 4px; font-weight: 750; }
.contact-details dd { color: var(--muted); }
.contact-details dd p { margin: 9px 0 0; font-size: 13px; }

@media (max-width: 900px) {
  .nav-shell nav { display: none; }
  .nav-login { margin-left: auto; }
  .hero, .problem-grid, .language-grid, .explain-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero { padding-block: 75px; }
  .problem-grid, .language-grid { padding-block: 80px; }
  .step-grid { grid-template-columns: 1fr; }
  .step-grid li + li { border-left: 1px solid var(--line); border-top: 0; }
  .step-grid li:first-child { border-radius: 12px 12px 0 0; }
  .step-grid li:last-child { border-radius: 0 0 12px 12px; }
  .step-grid li { min-height: 260px; }
  .final-cta-inner { padding-block: 70px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 650px) {
  .section-shell, .nav-shell, .legal-shell, .contact-shell { width: min(100% - 30px, 1160px); }
  .site-header { position: static; }
  .nav-shell { min-height: 66px; }
  .nav-login { padding: 7px 11px; font-size: 12px; }
  h1 { font-size: 43px; }
  .hero { min-height: auto; padding-block: 60px 70px; }
  .match-visual { padding: 18px; }
  .tokens strong { font-size: 12px; }
  .steps, .api-section, .security { padding-block: 80px; }
  .script-list > div { grid-template-columns: 80px 1fr; gap: 12px; }
  .script-list em { grid-column: 2; margin: -16px 0 14px; justify-self: start; }
  .code-columns { grid-template-columns: 1fr; }
  .code-columns > div + div { border-top: 1px solid #303b55; border-left: 0; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid article:nth-child(odd) { border-right: 0; }
  .security-grid article:not(:last-child) { border-bottom: 1px solid var(--line); }
  .footer-inner { padding-block: 35px; flex-direction: column; align-items: flex-start; gap: 22px; }
  footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
