/* ============================================================
   ORBIT — SaaS Landing Page Template · style.css
   ------------------------------------------------------------
   TABLE OF CONTENTS
   01. Design tokens (edit your brand here)
   02. Accent themes  (iris / mint / sunset / orchid)
   03. Reset & base
   04. Typography & utilities
   05. Buttons
   06. Navigation
   07. Hero + dashboard mockup
   08. Logo marquee
   09. Stats
   10. Features (bento)
   11. How it works
   12. Integrations orbit
   13. Pricing
   14. Testimonials
   15. FAQ
   16. CTA panel
   17. Footer
   18. Demo switcher
   19. Reveal animations
   20. Responsive
   21. Reduced motion & print
   ============================================================ */

/* ============================================================
   01. DESIGN TOKENS — edit these to rebrand in minutes
   ============================================================ */
:root {
  /* Surfaces & text — LIGHT */
  --bg:        #FAFAFE;
  --surface:   #FFFFFF;
  --surface-2: #F3F4FB;
  --text:      #101334;
  --text-2:    #545877;
  --border:    #E6E8F5;

  /* Semantic (independent of accent) */
  --up:   #12B981;
  --down: #F0564A;

  /* Type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Figtree", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Shape & effects */
  --radius:    16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 52, .05), 0 2px 8px rgba(16, 19, 52, .05);
  --shadow-md: 0 4px 12px rgba(16, 19, 52, .06), 0 12px 32px rgba(16, 19, 52, .08);
  --shadow-lg: 0 8px 24px rgba(16, 19, 52, .08), 0 24px 64px rgba(16, 19, 52, .12);

  --nav-h: 68px;
  --container: 1160px;

  color-scheme: light;
}

/* Surfaces & text — DARK */
[data-theme="dark"] {
  --bg:        #080A1A;
  --surface:   #0F1229;
  --surface-2: #151936;
  --text:      #EEF0FF;
  --text-2:    #A0A5CC;
  --border:    #252A52;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .40), 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .45), 0 24px 64px rgba(0, 0, 0, .55);

  color-scheme: dark;
}

/* ============================================================
   02. ACCENT THEMES — set data-accent="…" on <html>
   Derived tints use color-mix(), so each theme is 4 lines.
   ============================================================ */
[data-accent="iris"]   { --accent:#5457F0; --accent-hover:#4649E5; --grad-2:#8F7BFF; --pop:#FF8A5C; }
[data-accent="mint"]   { --accent:#0EA97E; --accent-hover:#0B9670; --grad-2:#3ED6A0; --pop:#FFB35C; }
[data-accent="sunset"] { --accent:#F45D3C; --accent-hover:#E14E2F; --grad-2:#FF9A62; --pop:#6C8CFF; }
[data-accent="orchid"] { --accent:#B44CE0; --accent-hover:#A13BD0; --grad-2:#E879F9; --pop:#FFC15C; }

[data-theme="dark"][data-accent="iris"]   { --accent:#8A8FFF; --accent-hover:#A0A5FF; --grad-2:#B9AFFF; }
[data-theme="dark"][data-accent="mint"]   { --accent:#34D6A8; --accent-hover:#4BE0B6; --grad-2:#7CEBC6; }
[data-theme="dark"][data-accent="sunset"] { --accent:#FF7E5C; --accent-hover:#FF9070; --grad-2:#FFB08A; }
[data-theme="dark"][data-accent="orchid"] { --accent:#C879F2; --accent-hover:#D493F7; --grad-2:#EBA8FC; }

:root {
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 32%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 22%, transparent);
  --on-accent:   #FFFFFF;
}

/* ============================================================
   03. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

img, svg { display: inline-block; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }

section { scroll-margin-top: calc(var(--nav-h) + 12px); }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   04. TYPOGRAPHY & UTILITIES
   ============================================================ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container-narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--surface-2); transition: background-color .3s ease; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.75rem, 6vw, 4rem);
  text-align: center;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-2);
  font-size: 1.06rem;
}

.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--grad-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--accent);
}
.text-link:hover { color: var(--accent-hover); }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform .2s ease; }
.text-link.inline { display: inline; }

/* ============================================================
   05. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease,
              color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }

.btn-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   06. NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.brand-mark { color: var(--accent); display: inline-flex; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
  font-size: .94rem;
  color: var(--text-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  color: var(--text-2);
  transition: background-color .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--accent); }

/* theme toggle shows the icon of the mode you'd switch TO */
.icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-burger { display: none; position: relative; }
.burger-line {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.burger-line:nth-child(1) { top: 15px; }
.burger-line:nth-child(2) { top: 22px; }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.nav-mobile-cta { display: none; }

/* ============================================================
   07. HERO + DASHBOARD MOCKUP
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}

/* dotted grid + single soft glow */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 78%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 780px; height: 520px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  filter: blur(10px);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color .2s ease, color .2s ease;
}
.hero-badge:hover { border-color: var(--accent-line); color: var(--accent); }
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pop);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pop) 25%, transparent);
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 22px 0 18px;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
  color: var(--text-2);
  max-width: 34rem;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.avatar-stack { display: flex; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  color: #fff;
}
.avatar + .avatar { margin-left: -9px; }
.av-1 { background: linear-gradient(135deg, var(--accent), var(--grad-2)); }
.av-2 { background: linear-gradient(135deg, #E86AA6, #F0A05C); }
.av-3 { background: linear-gradient(135deg, #22B8CF, #4C86F0); }
.av-4 { background: linear-gradient(135deg, #7A5CF0, #B44CE0); }
.av-5 { background: var(--text-2); font-size: .58rem; }

.proof-text { font-size: .9rem; color: var(--text-2); }
.proof-text strong { color: var(--text); }
.stars { color: #F5B331; margin-right: 6px; white-space: nowrap; }

/* ----- the mockup ----- */
.hero-visual { position: relative; }

.dash {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform .5s ease, box-shadow .5s ease;
}
.hero-visual:hover .dash { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.dash-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.dash-dot:nth-child(1) { background: #F0564A; }
.dash-dot:nth-child(2) { background: #F5B331; }
.dash-dot:nth-child(3) { background: #12B981; }
.dash-url {
  margin-left: 10px;
  flex: 1;
  max-width: 240px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--text-2);
}

.dash-body { display: flex; }

.dash-side {
  width: 74px;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--grad-2));
  margin-bottom: 8px;
}
.side-item {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}
.side-item.active { background: var(--accent); opacity: .85; }
.w-60 { width: 60%; } .w-65 { width: 65%; } .w-70 { width: 70%; }
.w-75 { width: 75%; } .w-80 { width: 80%; } .w-85 { width: 85%; }

.dash-main { flex: 1; padding: 20px; min-width: 0; }

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.skel-title { display: block; width: 130px; height: 12px; border-radius: 6px; background: var(--text); opacity: .85; margin-bottom: 7px; }
.skel-sub   { display: block; width: 90px;  height: 8px;  border-radius: 4px; background: var(--surface-2); }
.dash-avatars { display: flex; }
.mini-av {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: linear-gradient(135deg, var(--grad-2), var(--accent));
}
.mini-av:nth-child(2) { background: linear-gradient(135deg, #E86AA6, #F0A05C); }
.mini-av:nth-child(3) { background: linear-gradient(135deg, #22B8CF, #4C86F0); }
.mini-av + .mini-av { margin-left: -8px; }

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.kpi {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  min-width: 0;
}
.kpi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 5px;
  white-space: nowrap;
}
.kpi-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.kpi-delta { font-family: var(--font-mono); font-size: .6rem; font-weight: 600; }
.kpi-delta.up { color: var(--up); }
.kpi-delta.down { color: var(--down); }

.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 96px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 14px;
}
.dash-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, transparent));
  transform-origin: bottom;
  animation: bar-grow .9s cubic-bezier(.2, .7, .3, 1) backwards;
}
.dash-chart i.pop { background: linear-gradient(180deg, var(--pop), color-mix(in srgb, var(--pop) 55%, transparent)); }
.dash-chart i:nth-child(1)  { animation-delay: .10s; } .dash-chart i:nth-child(2)  { animation-delay: .16s; }
.dash-chart i:nth-child(3)  { animation-delay: .22s; } .dash-chart i:nth-child(4)  { animation-delay: .28s; }
.dash-chart i:nth-child(5)  { animation-delay: .34s; } .dash-chart i:nth-child(6)  { animation-delay: .40s; }
.dash-chart i:nth-child(7)  { animation-delay: .46s; } .dash-chart i:nth-child(8)  { animation-delay: .52s; }
.dash-chart i:nth-child(9)  { animation-delay: .58s; } .dash-chart i:nth-child(10) { animation-delay: .64s; }
.dash-chart i:nth-child(11) { animation-delay: .70s; } .dash-chart i:nth-child(12) { animation-delay: .76s; }

@keyframes bar-grow { from { transform: scaleY(0); } }

.dash-rows { display: flex; flex-direction: column; gap: 9px; }
.dash-row { display: flex; align-items: center; gap: 10px; }
.row-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.row-dot.alt { background: var(--pop); }
.row-bar { height: 8px; border-radius: 4px; background: var(--surface-2); }
.row-time { margin-left: auto; font-family: var(--font-mono); font-size: .6rem; color: var(--text-2); }

/* floating chips */
.float-chip, .float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-chip {
  top: -18px;
  right: 6%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--up);
}
.float-card {
  bottom: -22px;
  left: -4%;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  max-width: 260px;
  padding: 13px 15px;
  border-radius: 14px;
  animation-delay: 1.4s;
}
.float-card strong { display: block; font-size: .82rem; letter-spacing: -0.01em; }
.float-card span { font-size: .74rem; color: var(--text-2); line-height: 1.4; }
.float-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--up);
  color: #fff;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* ============================================================
   08. LOGO MARQUEE
   ============================================================ */
.logos { padding: 3rem 0 3.4rem; border-top: 1px solid var(--border); }
.logos-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 26px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.logo-word {
  font-size: 1.12rem;
  color: var(--text-2);
  opacity: .75;
  white-space: nowrap;
  transition: opacity .2s ease, color .2s ease;
}
.logo-word:hover { opacity: 1; color: var(--text); }
.lw-1 { font-family: var(--font-display); font-weight: 700; }
.lw-2 { font-weight: 600; letter-spacing: .02em; }
.lw-3 { font-family: var(--font-mono); font-weight: 600; letter-spacing: .22em; font-size: .95rem; }
.lw-4 { font-family: var(--font-display); font-weight: 500; font-style: italic; }
.lw-5 { font-weight: 700; }
.lw-6 { font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; }
.lw-7 { font-family: var(--font-mono); font-size: .92rem; letter-spacing: .1em; }

/* ============================================================
   09. STATS
   ============================================================ */
.stats { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: clamp(2.6rem, 5vw, 3.6rem);
  border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.stat-label { font-size: .9rem; color: var(--text-2); }

/* ============================================================
   10. FEATURES — BENTO GRID
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.bento-card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.span-2 { grid-column: span 2; }
.row-2  { grid-row: span 2; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.bento-card h3 { margin-bottom: 8px; }
.bento-card p { color: var(--text-2); font-size: .94rem; }

/* live analytics panel (big card) */
.live-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 13px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--up);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.live-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.live-tag {
  flex: none;
  width: 66px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  padding: 3px 0;
  text-align: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.live-tag.alt { background: color-mix(in srgb, var(--pop) 14%, transparent); color: var(--pop); }
.live-bar { height: 7px; border-radius: 4px; background: var(--surface-2); }
.live-val { margin-left: auto; font-family: var(--font-mono); font-size: .64rem; color: var(--text-2); }

.live-spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.live-spark i {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 45%, transparent));
}

/* automation flow chips */
.flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.flow-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.flow-chip em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: .74rem;
  color: var(--text);
}
.flow-chip.pulse {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.flow-arrow { color: var(--text-2); font-size: .9rem; }

.chip-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mini-chip {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
}

/* ============================================================
   11. HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 8px, transparent 8px 16px);
}
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 15px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--accent-glow);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: .95rem; }

/* ============================================================
   12. INTEGRATIONS ORBIT
   ============================================================ */
.integr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.integr-copy h2 { margin-bottom: 14px; }
.integr-copy p { color: var(--text-2); margin-bottom: 22px; max-width: 30rem; }

.orbit-wrap {
  position: relative;
  height: 400px;
  display: grid;
  place-items: center;
}
.orbit-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--grad-2));
  color: #fff;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px dashed var(--accent-line);
  border-radius: 50%;
}
.ring-1 {
  width: 218px; height: 218px;
  margin: -109px 0 0 -109px;
  animation: spin 30s linear infinite;
}
.ring-2 {
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  animation: spin-rev 48s linear infinite;
}
@keyframes spin     { from { transform: rotate(0); }     to { transform: rotate(360deg); } }
@keyframes spin-rev { from { transform: rotate(0); }     to { transform: rotate(-360deg); } }

.orbit-chip {
  position: absolute;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
/* chips counter-rotate so labels stay upright while the ring spins */
@keyframes chip-upright-cw  { from { transform: translate(-50%, -50%) rotate(0); }
                              to   { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes chip-upright-ccw { from { transform: translate(-50%, -50%) rotate(0); }
                              to   { transform: translate(-50%, -50%) rotate(-360deg); } }
.orbit-chip { transform: translate(-50%, -50%); }
.ring-1 .orbit-chip { animation: chip-upright-ccw 30s linear infinite; }
.ring-2 .orbit-chip { animation: chip-upright-cw 48s linear infinite; }

/* ring 1 — compass points */
.oc-1 { top: 0;    left: 50%;  }
.oc-2 { top: 50%;  left: 100%; }
.oc-3 { top: 100%; left: 50%;  }
.oc-4 { top: 50%;  left: 0;    }
/* ring 2 — diagonal points, so the two rings never align */
.ring-2 .oc-1 { top: 14.6%; left: 85.4%; }
.ring-2 .oc-2 { top: 85.4%; left: 85.4%; }
.ring-2 .oc-3 { top: 85.4%; left: 14.6%; }
.ring-2 .oc-4 { top: 14.6%; left: 14.6%; }

/* ============================================================
   13. PRICING
   ============================================================ */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: max-content;
  margin: 0 auto clamp(2.2rem, 4vw, 3rem);
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.bill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-2);
  transition: background-color .2s ease, color .2s ease;
}
.bill-btn.active {
  background: var(--accent);
  color: var(--on-accent);
}
.save-pill {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 16%, transparent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.price-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.price-card.featured {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-lg);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(150deg, var(--accent), var(--grad-2)) border-box;
  border: 1px solid transparent;
}
.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--grad-2));
  color: #fff;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.price-desc { font-size: .88rem; color: var(--text-2); min-height: 2.6em; margin-bottom: 16px; }

.price-line { display: flex; align-items: baseline; gap: 7px; }
.price-value {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-period { color: var(--text-2); font-size: .92rem; }
.price-note {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--text-2);
  margin: 6px 0 22px;
  transition: opacity .2s ease;
}

.price-list { margin-top: 24px; display: flex; flex-direction: column; gap: 11px; }
.price-list li {
  position: relative;
  padding-left: 28px;
  font-size: .92rem;
  color: var(--text-2);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.price-list li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 8px;
  width: 8px; height: 4.5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================================
   14. TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testi-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.testi-card:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testi-card blockquote {
  font-size: .97rem;
  line-height: 1.65;
  color: var(--text);
  flex: 1;
}
.testi-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.testi-card figcaption .avatar { border-color: var(--surface); }
.testi-card strong { display: block; font-size: .9rem; letter-spacing: -0.01em; }
.testi-card figcaption span:not(.avatar) { font-size: .8rem; color: var(--text-2); }

/* ============================================================
   15. FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s ease;
}
.faq-item.open { border-color: var(--accent-line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.faq-icon {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform .3s ease, background-color .2s ease;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }

/* smooth height animation via grid rows */
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: .95rem;
  max-width: 60ch;
}

/* ============================================================
   16. CTA PANEL
   ============================================================ */
.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--accent), var(--grad-2), var(--accent)) border-box;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 320px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  pointer-events: none;
}
.cta-panel h2 { position: relative; margin-bottom: 12px; }
.cta-panel > p { position: relative; color: var(--text-2); font-size: 1.05rem; margin-bottom: 28px; }

.cta-form {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 16px;
}
.cta-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cta-input::placeholder { color: var(--text-2); }
.cta-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cta-note {
  position: relative;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-2);
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  transition: background-color .3s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.footer-brand p {
  color: var(--text-2);
  font-size: .92rem;
  max-width: 30ch;
  margin: 16px 0 20px;
}
.socials { display: flex; gap: 6px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--text-2);
  transition: color .2s ease, background-color .2s ease;
}
.socials a:hover { color: var(--accent); background: var(--accent-soft); }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.footer-col a {
  font-size: .92rem;
  color: var(--text-2);
  width: max-content;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-2);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================================
   18. DEMO SWITCHER — remove this block in production
   ============================================================ */
.demo-switcher {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.demo-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.demo-dot:hover { transform: scale(1.15); }
.demo-dot.active { border-color: var(--text); }

/* ============================================================
   19. REVEAL ANIMATIONS (driven by js/main.js)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* gentle stagger inside grids */
.bento .reveal:nth-child(2),  .testi-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2),  .stats-grid .reveal:nth-child(2),
.pricing-grid .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3),  .testi-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3),  .stats-grid .reveal:nth-child(3),
.pricing-grid .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4),  .testi-grid .reveal:nth-child(4),
.stats-grid .reveal:nth-child(4) { transition-delay: .24s; }
.bento .reveal:nth-child(5),  .testi-grid .reveal:nth-child(5) { transition-delay: .32s; }
.bento .reveal:nth-child(6),  .testi-grid .reveal:nth-child(6) { transition-delay: .40s; }

/* ============================================================
   20. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; }
  .dash { transform: none; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-row: auto; }

  .integr-grid { grid-template-columns: 1fr; }
  .integr-copy { text-align: center; }
  .integr-copy p { margin-inline: auto; }
  .orbit-wrap { transform: scale(.92); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-signin, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 20px 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-link { padding: 13px 14px; font-size: 1rem; }
  .nav-link.active::after { display: none; }
  .nav-mobile-cta { display: block; margin-top: 10px; }

  .hero-title { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .float-card { display: none; }
  .float-chip { top: -14px; right: 4%; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .kpi { padding: 9px; }
  .kpi-value { font-size: .88rem; }
  .dash-side { width: 56px; padding: 14px 10px; }

  .bento, .testi-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }

  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps::before {
    top: 0; bottom: 0;
    left: 20px; right: auto;
    width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--accent-line) 0 8px, transparent 8px 16px);
  }
  .step { padding-left: 62px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }

  .orbit-wrap { transform: scale(.72); height: 320px; }

  .cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
  .demo-switcher { bottom: 12px; left: 12px; }
}

/* ============================================================
   21. REDUCED MOTION & PRINT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .dash { transform: none; }
}

@media print {
  .nav, .demo-switcher, .hero-bg, .float-chip, .float-card { display: none; }
}
