* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- nav ---------- */
.nav .theme-switch { margin-left: 2px; }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(27,31,59,.06);
}
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: inherit; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: background .2s; }
.nav-account:hover { background: var(--surface); }
.nav-account .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--ink); font-size: 13px; font-weight: 700; }
.nav.dark .nav-account { border-color: rgba(255,255,255,.18); color: #fff; }
.nav.dark .nav-account:hover { background: rgba(255,255,255,.08); }
.nav-links-auth { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 20px rgba(27,31,59,.25); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-cyan:hover { box-shadow: 0 6px 24px rgba(0,212,255,.45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; left: 50%; top: -260px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,212,255,.22), transparent 62%);
  filter: blur(10px); pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); box-shadow: var(--shadow);
}
.pill b { background: var(--navy); color: var(--cyan); font-size: 11.5px; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.hero h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.045em; line-height: .98;
  font-size: clamp(48px, 8.6vw, 104px); margin: 26px 0 22px;
}
.grad { background: linear-gradient(100deg, var(--grad-start) 10%, var(--grad-mid) 55%, var(--cyan) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* hero demo window */
.demo {
  margin: 64px auto 0; max-width: 880px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(27,31,59,.28), 0 2px 6px rgba(27,31,59,.05);
  overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.demo-bar i:nth-child(2) { background: #febc2e; }
.demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar span { margin-left: 10px; }
.demo-bar .timer { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--cyan-2); font-weight: 600; }
.demo-body { padding: 28px 30px 30px; min-height: 330px; }
.bubble-user { margin-left: auto; max-width: 78%; width: fit-content; background: var(--bg); padding: 12px 18px; border-radius: 20px; font-size: 15.5px; }
.bubble-ai { display: flex; gap: 14px; margin-top: 22px; font-size: 15.5px; }
.bubble-ai img { width: 28px; height: 28px; flex: none; }
.bubble-ai .txt { flex: 1; }
.bubble-ai table { border-collapse: collapse; width: 100%; margin: 10px 0 4px; font-size: 14px; }
.bubble-ai td, .bubble-ai th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.bubble-ai th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.caret { display: inline-block; width: 8px; height: 17px; background: var(--cyan); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
section { padding: 110px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-2); margin-bottom: 14px; }
.h2 { font-family: var(--display); font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 700; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

.logos { padding: 40px 0 10px; }
.logos p { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.logos .row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 56px; color: #9aa0bd; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }

/* product grid */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.p-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px;
  overflow: hidden; display: flex; flex-direction: column; min-height: 380px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -24px rgba(27,31,59,.3); }
.p-card.span3 { grid-column: span 3; }
.p-card.span2 { grid-column: span 2; }
.p-card.span4 { grid-column: span 4; }
.p-card.span6 { grid-column: span 6; }
.p-card .tag { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.p-card .tag img { width: 22px; height: 22px; }
.p-card h3 { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; margin: 16px 0 10px; line-height: 1.1; }
.p-card p { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.p-card .go { margin-top: auto; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; color: var(--strong); }
.p-card .go:hover { gap: 10px; }
.p-card .go::after { content: "\2192"; transition: margin .2s; }
.p-card.dark { background: var(--ink); color: #fff; border-color: var(--line-strong); }
.p-card.dark p, .p-card.dark .tag { color: #a6abcf; }
.p-card.dark .go { color: var(--cyan); }
.beta { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--ink); background: var(--cyan); padding: 3px 8px; border-radius: 6px; }

.mini-chat { margin-top: auto; background: var(--bg); border-radius: 16px; padding: 16px; font-size: 13.5px; display: grid; gap: 10px; }
.mini-chat .u { justify-self: end; background: var(--surface); padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); }
.mini-chat .a { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.mini-chat .a img { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.code-mini { margin-top: auto; background: var(--ink); color: #cfd3f5; border-radius: 16px; padding: 18px; font: 13px/1.7 "JetBrains Mono", ui-monospace, Consolas, monospace; overflow: hidden; }
.code-mini .k { color: #ff8fd8; } .code-mini .f { color: var(--cyan); } .code-mini .s { color: #a5f3a0; } .code-mini .c { color: #6e7499; }
.connectors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.connectors span { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.connectors span i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.flow-canvas { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.flow-canvas > div { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; }
.assist-card-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; flex: 1; }
.assist-card-inner .chipwrap { display: grid; place-items: center; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.stat b { display: block; font-family: var(--display); font-size: 52px; letter-spacing: -.04em; line-height: 1; }
.stat b small { font-size: 26px; color: var(--cyan-2); }
.stat span { color: var(--muted); font-size: 15px; display: block; margin-top: 10px; }

/* case studies */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; }
.case .who { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.case .who .av { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.case .who small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.case .ba { margin: 26px 0; display: grid; gap: 12px; }
.ba-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.ba-row .bar { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ba-row .bar i { display: block; height: 100%; border-radius: 99px; background: var(--track); width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.ba-row.after .bar i { background: linear-gradient(90deg, var(--cyan-2), var(--cyan)); }
.ba-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.case blockquote { margin: auto 0 0; font-size: 15.5px; color: var(--text); }
.case .saved { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.case .saved b { color: var(--strong); }

/* story */
.story { background: var(--navy); color: #fff; border-radius: 40px; margin: 0 20px; position: relative; overflow: hidden; }
.story::after { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,212,255,.18), transparent 65%); }
.story .sub { color: #aab0d6; }
.definition { font-family: Georgia, "Times New Roman", serif; margin: 40px 0 70px; max-width: 760px; }
.definition .word { font-size: clamp(40px, 6vw, 68px); font-style: italic; }
.definition .phon { color: var(--cyan); font-size: 20px; margin-left: 14px; font-style: normal; }
.definition .pos { font-style: italic; color: #8a90b8; margin: 6px 0 12px; font-size: 18px; }
.definition .def { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.4; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.tl { border-top: 2px solid rgba(255,255,255,.14); padding-top: 26px; position: relative; }
.tl::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid #8a90b8; }
.tl.now::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(0,212,255,.2); }
.tl.future { border-top-style: dashed; }
.tl small { color: var(--cyan); font-weight: 700; letter-spacing: .12em; font-size: 12px; text-transform: uppercase; }
.tl h4 { font-family: var(--display); font-size: 24px; margin: 8px 0; letter-spacing: -.02em; }
.tl p { color: #aab0d6; margin: 0; font-size: 15.5px; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.fact { padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.fact .n { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--cyan-2); }
.fact h4 { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin: 12px 0 10px; line-height: 1.2; }
.fact p { color: var(--muted); margin: 0; font-size: 15.5px; }
.swatches { display: flex; gap: 8px; margin-top: 18px; }
.swatches i { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 34px; display: flex; flex-direction: column; }
.plan.pop { background: var(--navy); color: #fff; border-color: var(--navy); position: relative; box-shadow: 0 30px 60px -25px rgba(27,31,59,.55); }
.plan.pop .muted, .plan.pop li { color: #c1c5e4; }
.plan .badge { position: absolute; top: 26px; right: 26px; }
.plan h4 { margin: 0; font-size: 18px; }
.plan .price { font-family: var(--display); font-size: 54px; letter-spacing: -.04em; margin: 18px 0 4px; line-height: 1; }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan.pop .price small { color: #aab0d6; }
.muted { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.plan li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2300a9d6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan.pop li::before { background-color: rgba(0,212,255,.15); }
.plan .btn { margin-top: auto; }

/* cta */
.cta-band { text-align: center; padding: 120px 0; }
.cta-band .h2 { max-width: 780px; margin: 0 auto 18px; }
.cta-band .hero-ctas { margin-top: 34px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 30px; }
.foot h5 { color: var(--text); font-size: 14px; margin: 0 0 14px; }
.foot a { display: block; margin-bottom: 10px; }
.foot a:hover { color: var(--text); }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .products { grid-template-columns: 1fr 1fr; }
  .p-card.span3, .p-card.span2, .p-card.span4, .p-card.span6 { grid-column: span 2; }
  .assist-card-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cases, .facts, .pricing, .timeline { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav.open .nav-links-auth { display: block; }
  .nav-account { padding: 0 4px; }
  .nav-account .nm { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .nav .wrap { gap: 12px; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); padding: 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  section { padding: 80px 0; }
  .hero { padding-top: 64px; }
  .demo-body { padding: 20px; }
  .story { margin: 0 8px; border-radius: 28px; }
  .p-card { padding: 26px; }
  .stat b { font-size: 40px; }
}
