:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #edf3f6;
  --ink: #102035;
  --muted: #5c6b7b;
  --line: #d9e2e9;
  --brand: #087e74;
  --brand-strong: #056a63;
  --brand-soft: #d9f4ef;
  --navy: #0b1728;
  --code: #07111f;
  --code-ink: #d9e7f2;
  --warning: #a15c0c;
  --shadow: 0 24px 70px rgba(16, 32, 53, .1);
  --radius: 18px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #08111e;
  --surface: #0e1b2c;
  --surface-soft: #142438;
  --ink: #edf6fa;
  --muted: #a6b6c5;
  --line: #26394d;
  --brand: #67ddcf;
  --brand-strong: #8aeadf;
  --brand-soft: #133b3c;
  --navy: #06101d;
  --shadow: 0 24px 70px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0 0 auto;
  height: 720px;
  background: radial-gradient(circle at 78% 9%, rgba(103, 221, 207, .13), transparent 35%), radial-gradient(circle at 15% 0, rgba(89, 135, 255, .08), transparent 27%);
  pointer-events: none;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 5px; }
img, svg { max-width: 100%; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); backdrop-filter: blur(16px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.22rem; font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; color: var(--brand); }
.site-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: .93rem; font-weight: 620; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-button { width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.icon-button svg { width: 20px; height: 20px; }
.theme-sun, [data-theme="light"] .theme-moon { display: none; }
[data-theme="light"] .theme-sun, [data-theme="dark"] .theme-moon { display: block; }
.menu-button { display: none; }
.menu-button span, .menu-button::before, .menu-button::after { content: ""; width: 20px; height: 2px; display: block; position: absolute; background: currentColor; border-radius: 3px; transition: transform .2s ease, opacity .2s ease; }
.menu-button::before { transform: translateY(-6px); }
.menu-button::after { transform: translateY(6px); }
.menu-button[aria-expanded="true"] span { opacity: 0; }
.menu-button[aria-expanded="true"]::before { transform: rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: rotate(-45deg); }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; color: #06221f; background: #6ee7d8; border: 1px solid #6ee7d8; border-radius: 11px; font: inherit; font-size: .94rem; font-weight: 750; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { color: #051f1c; background: #91eee4; border-color: #91eee4; transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button.secondary:hover { color: var(--ink); background: var(--surface); border-color: var(--muted); }
.button.small { min-height: 40px; padding: 8px 14px; font-size: .88rem; }

.hero { padding: clamp(70px, 10vw, 132px) 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(45px, 7vw, 92px); }
.eyebrow, .badge { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: .79rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before, .badge::before { content: ""; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.badge { padding: 7px 11px; background: var(--brand-soft); border-radius: 999px; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -.045em; }
h1 { max-width: 720px; margin-top: 20px; font-size: clamp(2.75rem, 5.2vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; }
.hero-copy > p { max-width: 630px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.microcopy { display: block; margin-top: 15px; color: var(--muted); font-size: .84rem; }

.pipeline-card { position: relative; padding: 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, var(--brand)), var(--surface)); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.pipeline-card::before { content: ""; position: absolute; z-index: -1; inset: -30px; background: radial-gradient(circle, rgba(103, 221, 207, .16), transparent 67%); }
.window { overflow: hidden; background: var(--code); border: 1px solid #26384c; border-radius: 16px; color: var(--code-ink); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid #223044; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #405269; }
.window-label { margin-left: auto; color: #8496aa; font: 600 .72rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.request-line { padding: 19px 22px; border-bottom: 1px solid #223044; font: 650 .84rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.method { margin-right: 9px; color: #6ee7d8; }
.mini-code { margin: 0; padding: 21px 22px; overflow: auto; color: #becbda; font: .78rem/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.code-key { color: #89b4ff; }
.code-string { color: #a7e4bc; }
.delivery { padding: 20px 22px 23px; background: #0a1625; border-top: 1px solid #223044; }
.delivery-label { color: #7f91a7; font: 650 .7rem ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.status-flow { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.status { display: flex; align-items: center; gap: 6px; color: #c7d5e3; font-size: .74rem; font-weight: 650; }
.status::before { content: ""; width: 7px; height: 7px; background: #6ee7d8; border-radius: 50%; }
.status-line { height: 1px; flex: 1; background: linear-gradient(90deg, #6ee7d8, #34465b); }

.section { padding: clamp(76px, 9vw, 120px) 0; }
.section.divided { border-top: 1px solid var(--line); }
.section-heading { max-width: 700px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 1.05rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.card { min-width: 0; padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 22px; color: var(--brand); background: var(--brand-soft); border-radius: 12px; }
.card-icon svg { width: 23px; height: 23px; }
.card p { margin: 12px 0 0; color: var(--muted); font-size: .94rem; }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.steps::before { content: ""; position: absolute; top: 21px; left: 8%; right: 8%; height: 1px; background: var(--line); }
.step { position: relative; }
.step-number { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 23px; color: var(--brand); background: var(--bg); border: 1px solid var(--brand); border-radius: 50%; font-weight: 800; }
.step p { color: var(--muted); }
.note { margin-top: 36px; padding: 17px 20px; color: var(--muted); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); border-radius: 12px; font-size: .93rem; }

.dev-grid, .security-grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(42px, 7vw, 90px); }
.dev-copy p, .security-copy > p { margin: 20px 0; color: var(--muted); }
.code-panel { overflow: hidden; background: var(--code); border: 1px solid #26384c; border-radius: var(--radius); box-shadow: var(--shadow); }
.code-top { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 10px 8px 20px; border-bottom: 1px solid #223044; }
.code-top span { color: #8394aa; font-size: .75rem; }
.copy-button { min-width: 92px; min-height: 38px; color: #d6e1ec; background: #132338; border: 1px solid #2b4058; border-radius: 9px; cursor: pointer; }
.copy-button:hover, .copy-button.is-copied { background: #1c3548; color: #6ee7d8; }
.code-block { margin: 0; padding: 24px; overflow-x: auto; color: #c8d5e2; font: .76rem/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre; }
.code-command { color: #6ee7d8; }
.code-url { color: #89b4ff; }

.security-grid { grid-template-columns: 1fr 1fr; }
.check-list, .policy-list { display: grid; gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.check-list { grid-template-columns: 1fr 1fr; }
.check-list li, .policy-list li { position: relative; padding-left: 29px; color: var(--ink); font-size: .94rem; }
.check-list li::before, .policy-list li::before { content: "✓"; position: absolute; top: 0; left: 0; color: var(--brand); font-weight: 900; }
.security-visual { padding: 34px; background: var(--navy); border: 1px solid #26384c; border-radius: 24px; color: #dbe8f2; }
.shield { width: 80px; height: 80px; display: grid; place-items: center; margin-bottom: 30px; color: #6ee7d8; background: rgba(110, 231, 216, .08); border: 1px solid rgba(110, 231, 216, .25); border-radius: 22px; }
.shield svg { width: 40px; }
.security-visual h3 { color: #f2f8fb; font-size: 1.6rem; }
.security-visual p { color: #aab9c7; }
.security-rule { height: 1px; margin: 28px 0; background: #26384c; }
.security-meta { display: flex; align-items: center; gap: 10px; color: #6ee7d8; font-size: .85rem; font-weight: 680; }

.responsible { padding: clamp(34px, 5vw, 58px); background: linear-gradient(135deg, var(--brand-soft), var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 32%, var(--line)); border-radius: 26px; }
.responsible-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.responsible p { color: var(--muted); }
.policy-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }

.feature-table { margin-top: 45px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; min-height: 66px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border: 0; }
.feature-name { font-weight: 650; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--bg); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.status-pill.development { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.status-pill.beta { color: var(--warning); background: color-mix(in srgb, #f5a623 13%, var(--surface)); border-color: color-mix(in srgb, #f5a623 35%, transparent); }

.faq-list { max-width: 850px; margin: 45px auto 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 4px; font-weight: 720; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 750px; margin: -4px 0 24px; color: var(--muted); }

.cta-section { padding: 0 0 100px; }
.cta { position: relative; overflow: hidden; padding: clamp(42px, 7vw, 76px); background: var(--navy); border: 1px solid #26384c; border-radius: 28px; color: #fff; text-align: center; }
.cta::before { content: ""; position: absolute; width: 400px; height: 400px; top: -300px; left: calc(50% - 200px); background: #6ee7d8; filter: blur(110px); opacity: .22; }
.cta h2 { position: relative; color: #fff; }
.cta p { position: relative; max-width: 620px; margin: 18px auto 28px; color: #adbdca; }
.cta .button { position: relative; }

.site-footer { padding: 54px 0 28px; background: var(--navy); color: #b1c0ce; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo { color: #eff7fa; }
.footer-intro p { max-width: 300px; margin-top: 16px; font-size: .9rem; }
.footer-group h2 { margin: 3px 0 15px; color: #eff7fa; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-group a { display: block; margin: 9px 0; color: #b1c0ce; font-size: .9rem; text-decoration: none; }
.footer-group a:hover { color: #6ee7d8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid #26384c; font-size: .8rem; }

.legal-hero { padding: 76px 0 54px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { max-width: 800px; font-size: clamp(2.5rem, 6vw, 4.7rem); }
.legal-hero p { max-width: 670px; margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.legal-meta { margin-top: 22px; color: var(--muted); font-size: .85rem; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: 70px; padding: 68px 0 100px; }
.legal-nav { align-self: start; position: sticky; top: 105px; }
.legal-nav span { display: block; margin-bottom: 10px; color: var(--muted); font-size: .75rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.legal-nav a { display: block; padding: 6px 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--brand); font-weight: 750; }
.prose { min-width: 0; }
.prose h2 { margin: 48px 0 14px; font-size: 1.55rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose .contact-box { margin: 30px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.contact-address { display: inline-block; margin: 5px 0; color: var(--brand); font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 760; letter-spacing: -.025em; overflow-wrap: anywhere; }
.not-found { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 60px 20px; text-align: center; }
.not-found-code { color: var(--brand); font: 800 clamp(4rem, 14vw, 9rem)/1 ui-monospace, monospace; letter-spacing: -.08em; }
.not-found h1 { margin-top: 20px; font-size: clamp(2rem, 5vw, 3.7rem); }
.not-found p { max-width: 520px; margin: 18px auto 28px; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 930px) {
  .menu-button { display: inline-grid; position: relative; }
  .site-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; align-items: stretch; gap: 2px; padding: 14px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.08); }
  .site-nav.is-open { display: grid; }
  .site-nav a { min-height: 46px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; }
  .nav-actions { margin-left: auto; }
  .nav-actions > .button { display: none; }
  .hero-grid, .dev-grid, .security-grid, .responsible-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .pipeline-card { width: min(100%, 620px); margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 66px; }
  .hero { padding-top: 62px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .cards, .steps, .check-list, .footer-grid { grid-template-columns: 1fr; }
  .steps { gap: 15px; }
  .steps::before { display: none; }
  .step { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .step-number { margin-bottom: 16px; background: var(--surface); }
  .status-flow { gap: 5px; }
  .status { font-size: .65rem; }
  .request-line, .mini-code, .delivery { padding-inline: 16px; }
  .card { padding: 23px; }
  .responsible { padding: 28px 22px; }
  .feature-row { align-items: start; }
  .footer-bottom { flex-direction: column; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 42px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .legal-nav span { width: 100%; }
  .hero-actions .button { width: 100%; }
}

@media (max-width: 380px) {
  .logo span { font-size: 1.05rem; }
  .pipeline-card { padding: 7px; border-radius: 19px; }
  .status-line { min-width: 8px; }
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
