/* ==========================================================================
   OortCodex — Design System (restyled after qoder.com.cn)
   Aesthetic: warm near-black, flat panels, bright-green accent, no glow
   ========================================================================== */

:root {
  --bg: #080807;
  --bg-soft: #101010;
  --bg-elev: #171716;
  --panel: #171716;
  --panel-strong: #292926;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --ink: #fff;
  --ink-dim: #959593;
  --ink-faint: #7b7b75;
  --ink-fainter: #484743;
  --ice: #2adb5c;
  --ice-deep: #1fb84c;
  --violet: #2adb5c;
  --grad: #2adb5c;
  --grad-soft: rgba(42, 219, 92, .08);
  --font-display: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: Inter, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --header-h: 64px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --shadow-glow: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
::selection { background: rgba(42, 219, 92, .3); }

/* ---- starfield canvas (hidden in flat theme) ---- */
#starfield { display: none; }
.page-wrap { position: relative; z-index: 1; }

/* ---- nebula ambience (hidden in flat theme) ---- */
.nebula { display: none; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.grad-text {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: #fff; color: #fff;
}
.kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ice); margin-bottom: 14px;
}
.section { padding: 108px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3vw, 32px); line-height: 1.3; letter-spacing: -.01em;
}
.section-head p { color: var(--ink-dim); margin-top: 14px; font-size: 17px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border-radius: 32px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: filter .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--ice); color: #171716;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .2); color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn-glow {
  background: var(--ice); color: #171716; font-weight: 600;
}
.btn-glow:hover { filter: brightness(1.1); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; border-radius: 20px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.announce {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 48px 9px 20px;
  background: #d8f3d7;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-size: 13.5px; color: #4b4b45;
}
.announce a { color: #171716; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.announce a:hover .grad-text { opacity: .75; }
.announce .grad-text { color: #171716; -webkit-text-fill-color: #171716; }
.announce .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ice-deep); flex: none; }
.announce__close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; color: #7b7b75;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
  transition: background .2s, color .2s;
}
.announce__close:hover { background: rgba(0, 0, 0, .07); color: #171716; }
.announce.hidden { display: none; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 8, 7, .85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__left { display: flex; align-items: center; gap: 36px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: .02em;
  color: #fff;
}
.brand__name span { color: #fff; }

.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-dim);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav__link.is-active { color: var(--ink); }
.nav__link .caret { font-size: 9px; opacity: .7; transition: transform .25s; }
.badge-new {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  padding: 2px 6px; border-radius: 4px; color: #171716;
  background: var(--ice); font-weight: 700; margin-left: 2px;
}

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 300px; padding: 8px;
  background: rgba(23, 23, 22, .97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav__item:hover .dropdown, .nav__item.open .dropdown {
  opacity: 1; transform: none; pointer-events: auto;
}
.nav__item:hover .caret { transform: rotate(180deg); }
.dropdown a {
  display: flex; gap: 13px; padding: 12px 13px; border-radius: 8px;
  transition: background .2s;
}
.dropdown a:hover { background: rgba(255, 255, 255, .05); }
.dropdown__icon {
  width: 38px; height: 38px; flex: none; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
  font-size: 17px;
}
.dropdown__title { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.dropdown__desc { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; line-height: 1.5; }

.nav__right { display: flex; align-items: center; gap: 10px; flex: none; }
.nav__signin { font-size: 14px; font-weight: 500; color: var(--ink-dim); padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav__signin:hover { color: var(--ink); background: rgba(255,255,255,.05); }

/* hamburger */
.nav__burger {
  display: none; width: 40px; height: 40px; border-radius: 9px;
  place-items: center; color: var(--ink);
}
.nav__burger svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: rgba(8, 8, 7, .97);
  backdrop-filter: blur(12px);
  padding: 26px 24px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.mobile-drawer.open { transform: none; }
.mobile-drawer ul { list-style: none; display: grid; gap: 2px; }
.mobile-drawer .m-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 6px; font-size: 18px; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-drawer .m-group { padding: 15px 6px 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-faint); text-transform: uppercase; }
.mobile-drawer .m-sub { display: block; padding: 12px 6px; font-size: 15.5px; color: var(--ink-dim); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.045); }
.mobile-drawer .m-cta { margin-top: 26px; display: grid; gap: 12px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; padding: 96px 0 70px; text-align: center; overflow: hidden;
}
/* orbit rings hidden in flat theme */
.hero__orbit { display: none; }

.hero__badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 30px; position: relative;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
  font-size: 13px; color: var(--ink-dim); font-weight: 500;
  transition: border-color .25s, background .25s;
}
.chip:hover { border-color: rgba(42, 219, 92, .45); background: rgba(42, 219, 92, .06); }
.chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(42, 219, 92, .6); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(42, 219, 92, .55); }
  70% { box-shadow: 0 0 0 9px rgba(42, 219, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 219, 92, 0); }
}

.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 44px); line-height: 1.36; letter-spacing: -.01em;
  max-width: 880px; margin: 0 auto 22px; position: relative;
}
.hero__sub {
  max-width: 660px; margin: 0 auto 38px; color: var(--ink-dim); font-size: 17.5px;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero__endorse {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 9px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--panel);
  font-size: 13px; color: var(--ink-dim);
}
.hero__endorse b { color: var(--ink); }
.hero__endorse .medal { font-size: 17px; }
.hero__motto { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; color: var(--ink-faint); }

/* hero app window */
.hero__window {
  margin: 64px auto 0; max-width: 960px; position: relative;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, #171716, #101010);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
  overflow: hidden; text-align: left;
}
.winbar {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
.winbar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.winbar i:first-child { background: #ff5f57; } .winbar i:nth-child(2) { background: #febc2e; } .winbar i:nth-child(3) { background: #28c840; }
.winbar__title { margin-left: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.hero__window .winbody { display: grid; grid-template-columns: 190px 1fr 250px; min-height: 330px; }
.win-side { border-right: 1px solid var(--border); padding: 16px 14px; display: grid; gap: 9px; align-content: start; }
.win-side .file { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); display: flex; gap: 7px; align-items: center; }
.win-side .file.active { color: var(--ice); }
.win-editor { padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; color: var(--ink-dim); overflow: hidden; }
.win-editor .ln { display: flex; gap: 16px; }
.win-editor .no { color: rgba(255,255,255,.16); width: 18px; text-align: right; flex: none; }
.tk-k { color: #7ee79a; } .tk-s { color: #a5d6a7; } .tk-f { color: #d9d9d6; } .tk-c { color: rgba(255,255,255,.28); } .tk-v { color: #fca5a5; }
.win-agent { border-left: 1px solid var(--border); padding: 16px 14px; display: grid; gap: 10px; align-content: start; }
.win-agent__head { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--ice); }
.agent-msg { border: 1px solid var(--border); background: rgba(255,255,255,.03); border-radius: 8px; padding: 10px 11px; font-size: 12px; color: var(--ink-dim); line-height: 1.55; }
.agent-msg b { color: var(--ink); font-size: 12px; }
.agent-task { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--ink-faint); }
.agent-task .tick { color: #34d399; }
.agent-task .run { color: var(--ice); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ==========================================================================
   Paradigm intro
   ========================================================================== */
.paradigm { text-align: center; }
.paradigm h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px);
  font-weight: 500; max-width: 760px; margin: 0 auto 18px; line-height: 1.36;
}
.paradigm p { max-width: 720px; margin: 0 auto; color: var(--ink-dim); font-size: 16.5px; }

/* ==========================================================================
   Product suite (tabs)
   ========================================================================== */
.suite__tabs {
  display: flex; gap: 10px; margin-bottom: 34px; flex-wrap: wrap;
}
.suite__tab {
  flex: 1; min-width: 260px; text-align: left;
  padding: 20px 24px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--panel);
  transition: border-color .3s, background .3s;
  position: relative; overflow: hidden;
}
.suite__tab::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--ice); opacity: 0; transition: opacity .3s;
}
.suite__tab:hover { border-color: var(--border-strong); }
.suite__tab.active { border-color: rgba(42, 219, 92, .5); background: rgba(42, 219, 92, .05); }
.suite__tab.active::before { opacity: 1; }
.suite__tab h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 7px; display: flex; align-items: center; gap: 9px; }
.suite__tab p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }

.suite__panels { position: relative; }
.suite__panel {
  display: none; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 34px; gap: 34px;
}
.suite__panel.active { display: grid; grid-template-columns: 1.05fr .95fr; animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.suite__info h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-bottom: 12px; }
.suite__info > p { color: var(--ink-dim); font-size: 15px; margin-bottom: 22px; }
.suite__points { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.suite__points li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-dim); align-items: flex-start; }
.suite__points .check {
  flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center; font-size: 11px; color: #171716;
  background: var(--ice);
}
.suite__visual {
  border-radius: var(--radius-md); border: 1px solid var(--border);
  background: var(--bg-soft); overflow: hidden; min-height: 320px;
  display: flex; flex-direction: column;
}

/* fake console (DSH) */
.console { display: flex; flex-direction: column; height: 100%; font-size: 12.5px; }
.console .winbar { padding: 11px 15px; }
.console__body { padding: 16px; display: grid; gap: 12px; flex: 1; align-content: start; }
.console__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-tile { border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; background: rgba(255,255,255,.02); }
.stat-tile b { font-family: var(--font-mono); font-size: 17px; color: var(--ice); display: block; }
.stat-tile span { font-size: 10.5px; color: var(--ink-faint); letter-spacing: .04em; }
.pod-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); background: rgba(255,255,255,.015); }
.pod-row .st { margin-left: auto; font-size: 10px; padding: 3px 9px; border-radius: 999px; }
.st-run { color: #34d399; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
.st-queue { color: var(--ice); background: rgba(42,219,92,.08); border: 1px solid rgba(42,219,92,.3); }
.st-idle { color: var(--ink-faint); background: rgba(255,255,255,.05); border: 1px solid var(--border); }

/* ==========================================================================
   Feature bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento__card {
  grid-column: span 2;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--panel); padding: 26px;
  transition: border-color .35s, background .35s;
  position: relative; overflow: hidden;
}
.bento__card:hover { border-color: var(--border-strong); background: var(--panel-strong); }
.bento__card.wide { grid-column: span 3; }
.bento__icon {
  width: 46px; height: 46px; border-radius: 8px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 21px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border);
}
.bento__card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 8px; letter-spacing: .01em; }
.bento__card p { font-size: 14px; color: var(--ink-dim); }

/* ==========================================================================
   Build-your-way cards
   ========================================================================== */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.way-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--panel); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .3s, background .3s;
}
.way-card:hover { border-color: var(--border-strong); background: var(--panel-strong); }
.way-card__icon { font-size: 26px; }
.way-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.way-card p { font-size: 13.5px; color: var(--ink-dim); flex: 1; }
.way-card .install {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px;
  background: #0c0c0b; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; color: var(--ice);
}
.way-card .install .copy {
  margin-left: auto; color: var(--ink-faint); font-size: 13px; padding: 2px 5px; border-radius: 5px;
  transition: color .2s, background .2s;
}
.way-card .install .copy:hover { color: var(--ink); background: rgba(255,255,255,.09); }
.os-select {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-dim); font-weight: 600;
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px;
  background: rgba(255,255,255,.02); width: max-content;
}
.os-select select {
  background: transparent; border: none; color: var(--ice); font-weight: 600; font-size: 12.5px; outline: none;
}
.os-select select option { background: var(--bg-elev); }

/* ==========================================================================
   Stats band
   ========================================================================== */
.stats-band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 64px;
}
.stat-block {
  text-align: center; padding: 40px 20px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--panel);
}
.stat-block b {
  font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600;
  display: block; line-height: 1.1;
}
.stat-block b em { font-style: normal; font-size: .55em; color: var(--ice); }
.stat-block span { color: var(--ink-dim); font-size: 14px; display: block; margin-top: 10px; }

.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.concept {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 30px 28px; background: var(--panel); position: relative; overflow: hidden;
  transition: border-color .3s;
}
.concept:hover { border-color: var(--border-strong); }
.concept .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--ice); letter-spacing: .18em; display: block; margin-bottom: 16px;
}
.concept h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.concept p { font-size: 14px; color: var(--ink-dim); }

/* ==========================================================================
   Testimonials marquee
   ========================================================================== */
.social-proof { display: flex; align-items: center; gap: 34px; margin-bottom: 46px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars i {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bg);
  margin-left: -12px; display: grid; place-items: center;
  font-style: normal; font-weight: 700; font-size: 14px; color: #171716;
}
.avatars i:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #2adb5c, #1fb84c); }
.av-2 { background: linear-gradient(135deg, #b9b9b3, #8a8a84); }
.av-3 { background: linear-gradient(135deg, #7ef0c8, #2ec99b); }
.av-4 { background: linear-gradient(135deg, #ffd28c, #f09a4b); }
.av-5 { background: linear-gradient(135deg, #ff9ecb, #e05fa0); }
.stars { color: #ffd28c; letter-spacing: 3px; font-size: 15px; }
.proof-meta b { font-size: 20px; font-family: var(--font-display); font-weight: 600; }
.proof-meta span { color: var(--ink-faint); font-size: 13.5px; display: block; }

.marquee { overflow: hidden; position: relative; padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track { display: flex; gap: 18px; width: max-content; animation: scrollX 46s linear infinite; }
.marquee.rev .marquee__track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.t-card {
  width: 380px; flex: none; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--panel); transition: border-color .3s;
}
.t-card:hover { border-color: var(--border-strong); }
.t-card p { font-size: 14px; color: var(--ink-dim); line-height: 1.65; margin-bottom: 18px; }
.t-card .who { display: flex; align-items: center; gap: 12px; }
.t-card .who i {
  width: 38px; height: 38px; border-radius: 50%; font-style: normal;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #171716; flex: none;
}
.t-card .who b { font-size: 14px; display: block; }
.t-card .who span { font-size: 12px; color: var(--ink-faint); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--panel); overflow: hidden;
  transition: border-color .3s, background .3s;
}
.faq__item.open { border-color: rgba(42, 219, 92, .4); background: rgba(42, 219, 92, .04); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 21px 24px; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.faq__q .pm {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: grid; place-items: center;
  font-size: 14px; color: var(--ice); transition: transform .35s var(--ease), background .3s;
}
.faq__item.open .pm { transform: rotate(45deg); background: rgba(42, 219, 92, .12); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a-inner { padding: 0 24px 22px; color: var(--ink-dim); font-size: 14.5px; line-height: 1.75; }
.faq__a-inner p + p { margin-top: 10px; }
.faq__a-inner a { color: var(--ice); border-bottom: 1px solid rgba(42, 219, 92, .35); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative; text-align: center; padding: 90px 28px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 500; margin-bottom: 14px; }
.cta-band p { color: var(--ink-dim); margin-bottom: 32px; font-size: 16.5px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0; margin-top: 40px; position: relative; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer__brand .slogan { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.footer__brand .copy { font-size: 13px; color: var(--ink-faint); max-width: 300px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 34px; flex: 1; max-width: 760px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: var(--ink-dim); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.06); padding-top: 26px; }
.footer__legal { font-size: 13px; color: var(--ink-faint); }
.footer__legal a { color: var(--ink-dim); border-bottom: 1px dotted var(--ink-faint); }
.footer__tools { display: flex; align-items: center; gap: 16px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.socials { display: flex; gap: 8px; }
.socials a {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--ink-dim); font-size: 14px;
  transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--ink); border-color: var(--border-strong); }
.footer__icp {
  display: flex; gap: 12px; align-items: center;
  margin-top: 40px; padding-bottom: 30px;
}
.footer__icp a {
  font-size: 14px; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color .2s;
}
.footer__icp a:hover { color: rgba(255,255,255,.8); }

.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(23, 23, 22, .9); border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 17px; display: grid; place-items: center;
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s, transform .3s, border-color .3s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { border-color: rgba(42, 219, 92, .6); color: var(--ice); }

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */
.pricing-hero { text-align: center; padding: 84px 0 40px; position: relative; }
.pricing-hero h1 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 44px); font-weight: 500; margin-bottom: 14px; }
.pricing-hero .sub { color: var(--ink-dim); font-size: 16.5px; max-width: 560px; margin: 0 auto 22px; }
.pricing-hero .notice {
  display: inline-flex; gap: 9px; align-items: center; font-size: 13.5px; color: var(--ink-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; background: var(--panel);
}
.pricing-hero .notice a { color: var(--ice); font-weight: 600; }

/* segmented control */
.segmented-wrap { display: flex; justify-content: center; margin-bottom: 52px; }
.segmented {
  position: relative; display: inline-flex; padding: 5px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--panel);
}
.segmented__thumb {
  position: absolute; top: 5px; bottom: 5px; border-radius: 999px;
  background: var(--ice); transition: left .4s var(--ease), width .4s var(--ease);
}
.segmented button {
  position: relative; z-index: 1; padding: 11px 34px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--ink-dim);
  transition: color .3s; white-space: nowrap;
}
.segmented button.active { color: #171716; }

/* plan grid */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.plans.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-left: auto; margin-right: auto; }
.plan {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color .35s, background .35s;
}
.plan:hover { border-color: var(--border-strong); }
.plan.featured { border-color: rgba(42, 219, 92, .6); background: rgba(42, 219, 92, .04); }
.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  background: var(--ice); color: #171716;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 14px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan .price b { font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1; color: var(--ink); }
.plan .price span { color: var(--ink-faint); font-size: 13.5px; }
.plan .tag { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 20px; min-height: 20px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 13.8px; color: var(--ink-dim); align-items: flex-start; }
.plan li .check { color: var(--ice); flex: none; margin-top: 1px; font-size: 14px; }
.plan .btn { width: 100%; }
.pane { display: none; }
.pane.active { display: block; animation: panelIn .5s var(--ease); }
.pane.active .plans { margin-bottom: 30px; }

/* credit pack */
.credit-pack {
  max-width: 620px; margin: 26px auto 0; padding: 30px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel);
}
.credit-pack h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.credit-pack .cp-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; }
.credit-pack .cp-rate {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px;
}
.credit-pack .cp-rate b { font-family: var(--font-display); font-size: 30px; font-weight: 600; }
.credit-pack .cp-rate span { color: var(--ink-faint); font-size: 13.5px; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.stepper {
  display: inline-flex; align-items: center; border: 1px solid var(--border-strong);
  border-radius: 8px; overflow: hidden; background: #0c0c0b;
}
.stepper button {
  width: 44px; height: 46px; font-size: 19px; color: var(--ink);
  transition: background .2s, color .2s;
}
.stepper button:hover:not(:disabled) { background: rgba(42, 219, 92, .1); color: var(--ice); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper input {
  width: 110px; height: 46px; text-align: center; background: transparent; border: none;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
  color: var(--ink); font-family: var(--font-mono); font-size: 15px; font-weight: 600; outline: none;
}
.cp-summary { display: grid; gap: 8px; border-top: 1px dashed var(--border-strong); padding-top: 18px; margin-top: 6px; }
.cp-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-dim); }
.cp-line.total { color: var(--ink); font-weight: 700; font-size: 16px; }
.cp-line.total b { font-family: var(--font-mono); color: var(--ice); }
.credit-pack .btn { width: 100%; margin-top: 20px; }
.tax-note { text-align: center; color: var(--ink-faint); font-size: 12.5px; margin-top: 34px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* unified products badge */
.unified-badge {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  width: fit-content; margin: 0 auto 44px; padding: 12px 24px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel);
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.unified-badge__icon { font-size: 16px; }
.unified-badge__sep { color: var(--ink-faint); font-weight: 500; }
.unified-badge__tag {
  font-size: 12px; font-weight: 600; color: var(--ice);
  border: 1px solid rgba(42, 219, 92, .4); border-radius: 999px; padding: 4px 12px;
  background: rgba(42, 219, 92, .08); margin-left: 4px;
}

/* enterprise custom band */
.enterprise-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 980px; margin: 40px auto 0; padding: 26px 30px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
  background: var(--panel);
}
.enterprise-band h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.enterprise-band p { font-size: 13.5px; color: var(--ink-dim); max-width: 640px; }
.enterprise-band .btn { flex: none; }
.compare a { color: var(--ice); font-weight: 600; }

/* comparison table */
.compare-wrap { margin-top: 84px; }
.compare-wrap h3 { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); font-weight: 500; text-align: center; margin-bottom: 36px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table.compare { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14px; }
.compare th, .compare td { padding: 15px 18px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.055); }
.compare thead th { background: rgba(255, 255, 255, .03); }
.compare thead th .t-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; display: block; }
.compare thead th .t-sub { font-size: 11.5px; color: var(--ink-faint); font-weight: 500; display: block; margin-top: 3px; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare td:first-child { color: var(--ink-dim); }
.compare tbody tr:hover td { background: rgba(255,255,255,.02); }
.compare tr.group td {
  text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ice); background: rgba(42, 219, 92, .05); padding: 11px 18px;
}
.compare .yes { color: var(--ice); font-size: 15px; }
.compare .no { color: rgba(255,255,255,.18); }
.compare .val { color: var(--ink-dim); font-size: 13px; }

/* ==========================================================================
   Checkout modal
   ========================================================================== */
.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: block; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px); animation: fadeIn .3s;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 40px));
  background: var(--panel);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  animation: modalIn .4s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 8px; display: grid; place-items: center; color: var(--ink-faint); font-size: 17px;
  transition: background .2s, color .2s;
}
.modal__close:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.modal h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.modal .m-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.m-summary {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px 18px; margin-bottom: 22px; background: rgba(255,255,255,.02);
}
.m-summary .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-dim); padding: 3px 0; }
.m-summary .row.big { color: var(--ink); font-weight: 700; font-size: 16px; border-top: 1px dashed var(--border-strong); margin-top: 8px; padding-top: 11px; }
.m-summary .row.big b { color: var(--ice); font-family: var(--font-mono); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); margin-bottom: 7px; }
.field input[type="email"] {
  width: 100%; height: 46px; padding: 0 15px;
  background: #0c0c0b; border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--ink); font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input[type="email"]:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(42, 219, 92, .15); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.pay-methods label {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 11px 8px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-dim); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s; margin: 0;
}
.pay-methods input { display: none; }
.pay-methods label:has(input:checked) { border-color: var(--ice); background: rgba(42, 219, 92, .08); color: var(--ink); }
.modal .btn { width: 100%; margin-top: 8px; }
.modal .fine { font-size: 11.5px; color: var(--ink-faint); text-align: center; margin-top: 14px; }
.modal .success { text-align: center; padding: 18px 0 6px; display: none; }
.modal.done .checkout-form { display: none; }
.modal.done .success { display: block; animation: panelIn .45s var(--ease); }
.success .orb {
  width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--ice); display: grid; place-items: center; font-size: 32px; color: #171716;
  animation: popIn .5s var(--ease);
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } }
.success h3 { margin-bottom: 8px; }
.success p { color: var(--ink-dim); font-size: 14px; margin-bottom: 24px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px);
  z-index: 120; padding: 12px 22px; border-radius: 8px;
  background: rgba(23, 23, 22, .97); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--ink); font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* page footnote */
.page-note { padding: 0 0 60px; text-align: center; color: var(--ink-faint); font-size: 12.5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card, .bento__card.wide { grid-column: span 1; }
  .ways { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans.cols-3 { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .hero__window .winbody { grid-template-columns: 1fr 250px; }
  .win-side { display: none; }
}
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__burger { display: grid; }
  .suite__panel.active { grid-template-columns: 1fr; }
  .stats-band, .concepts { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }
  .plans, .plans.cols-3 { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 50px; }
  .hero__window .winbody { grid-template-columns: 1fr; }
  .win-agent { display: none; }
  .social-proof { justify-content: center; text-align: center; }
  .t-card { width: 300px; }
  .segmented button { padding: 10px 20px; font-size: 13.5px; }
  .footer__top { flex-direction: column; }
}
