:root {
  --ink: #07100d;
  --ink-soft: #12201b;
  --paper: #f4f3ed;
  --paper-bright: #fffef8;
  --line: rgba(7, 16, 13, 0.14);
  --muted: #63716c;
  --accent: #b7f34a;
  --accent-strong: #82d51e;
  --cyan: #70e8cf;
  --radius: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -60px; z-index: 999; padding: 12px 18px; background: var(--accent); border-radius: 10px; transition: top .2s ease; }
.skip-link:focus { top: 20px; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease; }
.site-header.scrolled { background: rgba(244, 243, 237, .86); border-color: var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .92rem; font-weight: 900; letter-spacing: .14em; }
.brand-mark { position: relative; width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 4px; border-radius: 7px; background: var(--ink); }
.brand-mark i { display: block; width: 100%; background: var(--accent); border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 55%; }
.brand-mark i:nth-child(2) { height: 90%; }
.brand-mark i:nth-child(3) { height: 70%; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav a { color: #38453f; font-size: .9rem; font-weight: 700; }
.site-nav a:hover { color: var(--ink); }
.menu-toggle { display: none; border: 0; background: none; padding: 9px; }
.menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 2px; margin: 5px; background: var(--ink); }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 12px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); background: #1b2b25; }
.button:focus-visible, a:focus-visible, summary:focus-visible, .menu-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.button-small { min-height: 42px; padding-inline: 18px; font-size: .88rem; }
.button-outline { color: var(--ink); background: transparent; }
.button-outline:hover { color: white; }
.button-light { color: var(--ink); background: var(--paper-bright); border-color: var(--paper-bright); white-space: nowrap; }
.button-light:hover { color: var(--ink); background: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; border-bottom: 1px solid var(--ink); }

.hero { position: relative; min-height: 790px; display: flex; align-items: center; padding-top: 150px; overflow: hidden; background: radial-gradient(circle at 86% 24%, rgba(112, 232, 207, .2), transparent 28%), radial-gradient(circle at 12% 28%, rgba(183, 243, 74, .12), transparent 26%), var(--paper); }
.hero::before { content: ""; position: absolute; inset: 76px 0 0; pointer-events: none; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 82%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: .76rem; font-weight: 900; letter-spacing: .17em; }
.eyebrow > span { width: 26px; height: 2px; background: var(--accent-strong); }
.hero h1 { margin: 0; max-width: 740px; font-size: clamp(3.5rem, 7vw, 6.4rem); line-height: .93; letter-spacing: -.065em; font-weight: 900; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 2px var(--ink); }
.hero-lead { max-width: 650px; margin: 30px 0; color: #45534d; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.trust-row { display: flex; gap: 0; padding: 34px 0 0; margin: 46px 0 0; list-style: none; border-top: 1px solid var(--line); }
.trust-row li { min-width: 125px; display: grid; gap: 1px; padding-right: 28px; margin-right: 28px; border-right: 1px solid var(--line); }
.trust-row li:last-child { border: 0; }
.trust-row b { font-size: 1.1rem; }
.trust-row span { color: var(--muted); font-size: .82rem; }

.api-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.api-visual::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: var(--accent); filter: blur(1px); }
.orbit { position: absolute; border: 1px dashed rgba(7, 16, 13, .35); border-radius: 50%; animation: spin 28s linear infinite; }
.orbit::before { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.orbit-one { width: 500px; height: 500px; }
.orbit-two { width: 570px; height: 380px; animation-direction: reverse; }
.code-panel { position: relative; z-index: 2; width: min(470px, 92%); overflow: hidden; color: #eff8f3; background: rgba(7, 16, 13, .96); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .68rem; letter-spacing: .12em; }
.panel-bar > div { display: flex; gap: 6px; }
.panel-bar > div span { width: 8px; height: 8px; border-radius: 50%; background: #52615b; }
.panel-bar > div span:first-child { background: var(--accent); }
.panel-bar p { margin: 0; color: #9eaaa5; }
.status-dot { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.code-panel pre { margin: 0; padding: 30px; overflow: auto; font: 500 .85rem/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-panel .dim { color: #7d8b85; }
.code-panel .key { color: var(--cyan); }
.code-panel .value { color: var(--accent); }
.response-line { display: flex; justify-content: space-between; padding: 14px 20px; color: #aebbb5; border-top: 1px solid rgba(255,255,255,.12); font: 700 .72rem ui-monospace, monospace; }
.response-line span:first-child { color: var(--accent); }
.response-line i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.float-card { position: absolute; z-index: 3; display: grid; gap: 3px; padding: 13px 17px; background: var(--paper-bright); border: 1px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 var(--ink); }
.float-card span { color: var(--muted); font-size: .58rem; font-weight: 900; letter-spacing: .13em; }
.float-card b { font: 900 .8rem ui-monospace, monospace; }
.card-token { left: -10px; bottom: 78px; }
.card-route { right: -6px; top: 68px; }

.ticker { overflow: hidden; color: white; background: var(--ink); border-block: 1px solid #1c2b25; }
.ticker-track { min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 38px; padding: 17px 30px; font-weight: 900; letter-spacing: .08em; }
.ticker-track i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 80px; margin-bottom: 50px; }
.section-heading h2, .process h2, .faq h2, .contact h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.05em; }
.section-heading > p { max-width: 450px; margin: 0; color: var(--muted); }
.model-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.model-card { position: relative; min-height: 420px; padding: 32px; display: flex; flex-direction: column; background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease; }
.model-card:hover { transform: translateY(-7px); box-shadow: 0 20px 50px rgba(7, 16, 13, .08); }
.model-card.featured { color: white; background: var(--ink); }
.model-top { display: flex; justify-content: space-between; align-items: center; }
.model-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }
.tag { padding: 5px 9px; color: var(--ink); background: var(--accent); border-radius: 99px; font-size: .68rem; font-weight: 900; }
.tag.muted { color: var(--muted); background: #e8e9e3; }
.model-card h3 { margin: 50px 0 10px; font-size: 1.6rem; letter-spacing: -.03em; }
.model-card > p { margin: 0; color: #73817b; }
.model-card.featured > p { color: #aebbb5; }
.model-card ul, .plan-card ul { padding: 20px 0 0; margin: auto 0 25px; list-style: none; border-top: 1px solid rgba(99,113,108,.25); }
.model-card li, .plan-card li { position: relative; padding: 5px 0 5px 22px; font-size: .9rem; }
.model-card li::before, .plan-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-strong); }
.model-card > a { display: flex; justify-content: space-between; font-weight: 900; }

.plans { background: #e9eae4; border-block: 1px solid var(--line); }
.plan-card { position: relative; min-height: 490px; display: flex; flex-direction: column; padding: 34px; background: var(--paper-bright); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-primary { color: white; background: var(--ink-soft); transform: translateY(-15px); box-shadow: 0 22px 45px rgba(7, 16, 13, .16); }
.plan-no { position: absolute; right: 28px; top: 26px; color: #bbc3bf; font: 900 2rem ui-monospace, monospace; }
.popular { position: absolute; right: 28px; top: -14px; padding: 6px 12px; color: var(--ink); background: var(--accent); border-radius: 99px; font-size: .72rem; font-weight: 900; }
.plan-label { margin: 0 0 40px; color: var(--accent-strong); font: 900 .75rem ui-monospace, monospace; letter-spacing: .15em; }
.plan-card h3 { margin: 0 0 8px; font-size: 1.75rem; }
.plan-card > p:not(.plan-label) { margin: 0; color: #74817c; }
.plan-primary > p:not(.plan-label) { color: #aab7b1; }
.plan-price { margin: 30px 0 22px; font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.plan-card ul { margin-top: 0; }
.plan-card .button { margin-top: auto; }
.plan-primary .button { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.process { color: white; background: var(--ink); }
.process-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.process-copy > p:not(.eyebrow) { max-width: 420px; color: #a8b6b0; }
.process .eyebrow > span { background: var(--accent); }
.service-note { display: grid; gap: 3px; margin-top: 55px; padding: 20px; border: 1px solid #35443e; border-radius: 12px; }
.service-note b { color: var(--accent); }
.service-note span { color: #9eaba5; font-size: .88rem; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #35443e; }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid #35443e; }
.steps > li > span { color: var(--accent); font: 900 .85rem ui-monospace, monospace; }
.steps h3 { margin: 0 0 4px; font-size: 1.2rem; }
.steps p { margin: 0; color: #98a69f; }

.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.faq-heading > p:not(.eyebrow) { color: var(--muted); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; justify-content: space-between; gap: 20px; padding: 25px 0; cursor: pointer; list-style: none; font-size: 1.07rem; font-weight: 800; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { font-size: 1.5rem; transition: transform .2s ease; }
.accordion details[open] summary span { transform: rotate(45deg); }
.accordion details p { margin: -7px 40px 25px 0; color: var(--muted); }

.contact { padding: 70px 0; color: var(--ink); background: var(--accent); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 70px; }
.contact .eyebrow { margin-bottom: 12px; }
.contact .eyebrow > span { background: var(--ink); }
.contact h2 { max-width: 720px; }
.contact p:not(.eyebrow) { margin: 12px 0 0; }

.site-footer { padding: 55px 0; color: #a9b5b0; background: #050b09; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: start; }
.site-footer .brand { color: white; }
.site-footer p { margin: 14px 0 0; font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .88rem; font-weight: 700; }
.footer-links a:hover { color: white; }
.legal { grid-column: 1 / -1; max-width: 850px; padding-top: 28px; border-top: 1px solid #26332e; }

.contact-dialog { width: min(520px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: var(--paper-bright); box-shadow: var(--shadow); }
.contact-dialog::backdrop { background: rgba(2, 8, 6, .75); backdrop-filter: blur(6px); }
.contact-dialog form { position: relative; padding: 38px; }
.contact-dialog h2 { margin: 0 0 12px; font-size: 2rem; letter-spacing: -.04em; }
.contact-dialog form > p:not(.eyebrow) { color: var(--muted); }
.dialog-close { position: absolute; right: 17px; top: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e8e9e3; font-size: 1.5rem; cursor: pointer; }
.copy-box { margin: 22px 0 14px; padding: 16px; border: 1px dashed #91a098; border-radius: 10px; background: #f1f2ed; font-size: .92rem; }
.contact-dialog small { display: block; margin-top: 16px; color: #7a8781; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .section { padding: 85px 0; }
  .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; cursor: pointer; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: 70px; display: none; padding: 15px; flex-direction: column; align-items: stretch; gap: 0; color: white; background: var(--ink); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px; color: white; border-bottom: 1px solid #2b3934; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 760px; }
  .api-visual { min-height: 500px; }
  .model-grid, .plan-grid { grid-template-columns: 1fr; }
  .model-card { min-height: 380px; }
  .plan-primary { transform: none; }
  .process-grid, .faq-grid { grid-template-columns: 1fr; gap: 55px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 70px 0; }
  .nav-wrap { min-height: 66px; }
  .hero { padding-top: 120px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.6rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust-row { display: grid; grid-template-columns: repeat(3, 1fr); }
  .trust-row li { min-width: 0; padding-right: 12px; margin-right: 12px; }
  .api-visual { min-height: 380px; }
  .api-visual::before { width: 290px; height: 290px; }
  .orbit-one { width: 330px; height: 330px; }
  .orbit-two { width: 360px; height: 260px; }
  .code-panel { width: 96%; }
  .code-panel pre { padding: 20px; font-size: .7rem; }
  .float-card { padding: 10px 12px; }
  .card-token { left: 0; bottom: 15px; }
  .card-route { right: 0; top: 12px; }
  .section-heading { display: grid; gap: 18px; margin-bottom: 35px; }
  .model-card, .plan-card { padding: 26px; }
  .steps li { grid-template-columns: 50px 1fr; }
  .contact-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal { grid-column: 1; }
  .contact-dialog form { padding: 30px 22px; }
}
