/* Orbit — marketing site. Tokens first; everything else uses them. */
:root {
  --ink: #10173a;
  --ink-2: #1f2a5a;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eff1f5;
  --line: #e3e5eb;
  --text: #141936;
  --muted: #5d6478;
  --sun: #f4a63a;
  --sun-soft: #fdf0db;
  --sun-ink: #8a5200;
  --live: #1fa971;
  --live-soft: #def5ea;
  --wa-bg: #ece5dd;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --shadow: 0 1px 2px rgba(16, 23, 58, .05), 0 12px 40px rgba(16, 23, 58, .08);
  --r: 14px;
  --r-lg: 22px;
  --display: 'Unbounded', 'Mukta', system-ui, sans-serif;
  --body: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1160px;
  color-scheme: light;
}
/* Dark: neutral black like a premium product site — colour comes from content, not chrome */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ink: #ffffff; --ink-2: #e6e6e6;
    --paper: #000000; --surface: #0e0e10; --surface-2: #17171a; --line: #222226;
    --text: #ffffff; --muted: #a1a1a6;
    --sun-soft: #2a1d08; --sun-ink: #ffc46b; --live-soft: #0d2a1d;
    --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b;
    --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --ink: #ffffff; --ink-2: #e6e6e6;
  --paper: #000000; --surface: #0e0e10; --surface-2: #17171a; --line: #222226;
  --text: #ffffff; --muted: #a1a1a6;
  --sun-soft: #2a1d08; --sun-ink: #ffc46b; --live-soft: #0d2a1d;
  --wa-bg: #0b141a; --wa-in: #202c33; --wa-out: #005c4b;
  --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.03em; font-weight: 500; }
h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 18px; letter-spacing: -0.02em; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); transition: transform .12s ease, background .15s ease, border-color .15s ease; white-space: nowrap; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--ink-2); }
:root[data-theme='dark'] .btn.primary { color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .btn.primary { color: #000; } }
.btn.sm { height: 42px; padding: 0 18px; font-size: 15px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; }
.nav-links a:hover { color: var(--text); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: 10px; color: var(--text); cursor: pointer; }

/* hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--live-soft); color: var(--live); font-weight: 600; font-size: 14px; margin-bottom: 22px; }
.eyebrow-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 25%, transparent); }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 540px; margin-top: 22px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* the orbit — the one memorable thing */
.orbit { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-left: auto; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1.5px dashed var(--line); }
.ring.r1 { width: 46%; height: 46%; }
.ring.r2 { width: 72%; height: 72%; }
.ring.r3 { width: 98%; height: 98%; }
.sun { position: absolute; inset: 0; margin: auto; width: 25%; height: 25%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd189, var(--sun) 60%, #e08a12); box-shadow: 0 0 0 12px color-mix(in srgb, var(--sun) 16%, transparent), 0 0 70px color-mix(in srgb, var(--sun) 45%, transparent); display: grid; place-items: center; text-align: center; color: #3b2300; font-family: var(--display); font-weight: 600; font-size: clamp(11px, 1.3vw, 14px); line-height: 1.15; padding: 8px; }
.track { position: absolute; inset: 0; margin: auto; border-radius: 50%; animation: spin var(--speed, 40s) linear infinite; }
.track.t1 { width: 46%; height: 46%; --speed: 28s; }
.track.t2 { width: 72%; height: 72%; --speed: 44s; animation-direction: reverse; }
.track.t3 { width: 98%; height: 98%; --speed: 64s; }
.agent { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.agent-in { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; white-space: nowrap; animation: spin var(--speed, 40s) linear infinite reverse; }
.track.t2 .agent-in { animation-direction: normal; }
.agent-in b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; flex: none; background: var(--surface-2); }
@keyframes spin { to { transform: rotate(360deg); } }

/* sections */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; font-size: 18.5px; color: var(--muted); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

/* team grid */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.band .role { background: var(--paper); }
.role .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.role ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; display: flex; flex-direction: column; gap: 4px; }
.role.manager { background: var(--ink); color: #fff; border-color: var(--ink); }
.role.manager ul, .role.manager p { color: color-mix(in srgb, #fff 78%, transparent); }
:root[data-theme='dark'] .role.manager { background: #141416; border-color: #2a2a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .role.manager { background: #141416; border-color: #2a2a30; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--sun); display: block; margin-bottom: 14px; }
.step p { margin-top: 8px; color: var(--muted); }

/* showcase: chat + explanation */
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.phone { width: min(380px, 100%); margin: 0 auto; border-radius: 34px; border: 9px solid #141936; background: var(--wa-bg); overflow: hidden; box-shadow: var(--shadow); }
.phone-head { background: #0b6e5f; color: #fff; padding: 12px 16px; display: flex; gap: 10px; align-items: center; }
.phone-head .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.phone-head small { display: block; opacity: .8; font-size: 12px; line-height: 1.2; }
.chat { padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; font-size: 14.5px; line-height: 1.4; color: #111b21; }
:root[data-theme='dark'] .chat { color: #e9edef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .chat { color: #e9edef; } }
.b { max-width: 82%; padding: 7px 10px; border-radius: 10px; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; }
.b.in { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 3px; }
.b.out { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 3px; }
.b .pay { display: block; margin: 7px -10px -7px; padding: 9px; border-top: 1px solid rgba(0,0,0,.08); text-align: center; color: #027eb5; font-weight: 600; }
.reveal .b { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.reveal.on .b { opacity: 1; transform: none; }
.points { display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.point { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.point .dot { width: 40px; height: 40px; border-radius: 12px; background: var(--sun-soft); color: var(--sun-ink); display: grid; place-items: center; font-size: 18px; }
.point p { color: var(--muted); margin-top: 2px; }

/* templates */
.tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tpl { padding: 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.tpl .em { font-size: 26px; }
.tpl b { font-family: var(--display); font-weight: 600; font-size: 16px; }
.tpl span { color: var(--muted); font-size: 15px; }
.tpl.more { background: transparent; border-style: dashed; justify-content: center; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust div { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.trust p { color: var(--muted); margin-top: 8px; }

/* faq */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--display); color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }

/* cta */
.cta { border-radius: 28px; background: var(--ink); color: #fff; padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
:root[data-theme='dark'] .cta { background: #0e0e10; box-shadow: inset 0 0 0 1px #222226; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .cta { background: #0e0e10; box-shadow: inset 0 0 0 1px #222226; } }
.cta p { color: color-mix(in srgb, #fff 75%, transparent); margin-top: 14px; font-size: 18px; }
.cta .btn { background: var(--sun); border-color: var(--sun); color: #2b1800; }
.cta .btn.ghost { background: transparent; border-color: color-mix(in srgb, #fff 35%, transparent); color: #fff; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta::after { content: ''; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, #fff 20%, transparent); pointer-events: none; }

/* footer */
footer { padding: 56px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 10px; font-size: 14px; color: var(--text); font-weight: 700; }
.foot a { text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--text); }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* legal pages */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 24px 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc .updated { color: var(--muted); margin: 12px 0 36px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-top: 16px; }

/* scroll reveal for sections (one gentle moment; off for reduced motion) */
.fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.fade.on { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1023px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .orbit { margin: 8px auto 0; width: min(460px, 100%); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show { grid-template-columns: 1fr; gap: 40px; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 759px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav .btn.sm.demo { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .hero { padding: 28px 0 48px; }
  .section { padding: 64px 0; }
  .team, .steps, .trust, .tpls { grid-template-columns: 1fr; }
  .tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-in { font-size: 12px; padding: 6px 10px 6px 6px; }
  .agent-in b { width: 22px; height: 22px; font-size: 12px; }
  .foot { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .agent-in { animation: none !important; }
  .fade, .reveal .b { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* dark-mode refinements: quiet chrome, subtle surfaces */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn:not(.primary) { background: rgba(255,255,255,.08); border-color: transparent; }
  :root:not([data-theme='light']) .btn:not(.primary):hover { background: rgba(255,255,255,.14); }
  :root:not([data-theme='light']) .phone { border-color: #222226; }
  :root:not([data-theme='light']) .ring { border-color: #26262b; }
  :root:not([data-theme='light']) .step::before { color: var(--sun); }
}
:root[data-theme='dark'] .btn:not(.primary) { background: rgba(255,255,255,.08); border-color: transparent; }
:root[data-theme='dark'] .phone { border-color: #222226; }
:root[data-theme='dark'] .ring { border-color: #26262b; }
