/* ============ OMNIX Design Tokens ============ */
:root {
  /* Brand */
  --brand-500: #5A40EB;      /* primary purple */
  --brand-600: #4A2FDB;
  --brand-400: #7A63F0;
  --brand-300: #9F8DF5;
  --brand-200: #C3B7F9;
  --brand-100: #E4DEFC;
  --brand-50:  #F1EEFE;
  --brand-ink: #21194D;      /* deep navy */
  --brand-black: #1E1F22;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Font */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ============ Theme: Light ============ */
html[data-theme='light'] {
  --bg: #FBFAFD;
  --bg-elev: #FFFFFF;
  --bg-sunken: #F4F2F9;
  --surface: #FFFFFF;
  --surface-2: #F7F5FC;
  --border: rgba(33, 25, 77, 0.08);
  --border-strong: rgba(33, 25, 77, 0.14);
  --text: #1A1535;
  --text-2: #4A4668;
  --text-3: #777492;
  --text-inv: #FFFFFF;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --nav-border: rgba(33, 25, 77, 0.08);
  --shadow-sm: 0 1px 2px rgba(33,25,77,.05), 0 1px 1px rgba(33,25,77,.03);
  --shadow-md: 0 8px 24px rgba(33,25,77,.08), 0 2px 6px rgba(33,25,77,.04);
  --shadow-lg: 0 24px 60px rgba(33,25,77,.14), 0 6px 16px rgba(33,25,77,.06);
  --shadow-glow: 0 20px 60px -20px rgba(90,64,235,.45);
  --grid-line: rgba(33, 25, 77, 0.06);
}

/* ============ Theme: Dark ============ */
html[data-theme='dark'] {
  --bg: #0D0B1A;
  --bg-elev: #14122A;
  --bg-sunken: #08061A;
  --surface: #171432;
  --surface-2: #1E1B3D;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F3F1FA;
  --text-2: #B8B3D4;
  --text-3: #7F7AA0;
  --text-inv: #0D0B1A;
  --nav-bg: rgba(20, 18, 42, 0.6);
  --nav-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --shadow-glow: 0 20px 80px -20px rgba(122,99,240,.55);
  --grid-line: rgba(255, 255, 255, 0.04);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Selection */
::selection { background: var(--brand-500); color: white; }

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
}
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 84px); letter-spacing: -0.035em; font-weight: 650; }
h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); }
p { margin: 0; color: var(--text-2); text-wrap: pretty; }

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: 80px 0; }
}

/* ============ Nav (Floating Pill, Glass) ============ */
.nav-wrap {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: top .4s var(--ease);
}
.nav-wrap.scrolled { top: 12px; }
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 20px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  transition: all .4s var(--ease);
}
.nav-wrap.scrolled .nav {
  padding-left: 14px;
  transform: scale(0.97);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.nav-logo svg { height: 22px; width: auto; color: var(--text); }
.nav-logo-text {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  gap: 2px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-pill);
  transition: all .2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: all .25s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun, .theme-toggle .moon {
  grid-column: 1; grid-row: 1;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
html[data-theme='light'] .theme-toggle .sun { opacity: 1; transform: rotate(0); }
html[data-theme='light'] .theme-toggle .moon { opacity: 0; transform: rotate(-90deg); }
html[data-theme='dark'] .theme-toggle .sun { opacity: 0; transform: rotate(90deg); }
html[data-theme='dark'] .theme-toggle .moon { opacity: 1; transform: rotate(0); }

@media (max-width: 840px) {
  .nav-links { display: none; }
  .nav-logo { padding-right: 12px; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all .25s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--brand-500);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(90,64,235,.55), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -10px rgba(90,64,235,.7), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-ghost {
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-outline {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--text-3); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; }

/* ============ Hero ============ */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(90,64,235,0.18), transparent 60%);
  filter: blur(40px);
}
.hero-grid {
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 30%, transparent 75%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-tag {
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}
html[data-theme='dark'] .hero-badge-tag {
  background: rgba(90,64,235,.2);
  color: var(--brand-300);
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-400) 50%, var(--brand-ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme='dark'] .hero h1 .gradient {
  background: linear-gradient(135deg, #9F8DF5 0%, #7A63F0 50%, #5A40EB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  margin-top: 24px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}
.hero-trust-avatars {
  display: flex;
}
.hero-trust-avatars > div {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--brand-300);
}
.hero-trust-avatars > div:first-child { margin-left: 0; background: #F4A261; }
.hero-trust-avatars > div:nth-child(2) { background: #2A9D8F; }
.hero-trust-avatars > div:nth-child(3) { background: var(--brand-500); }
.hero-trust-avatars > div:nth-child(4) { background: #E76F51; }

/* Hero Product Preview */
.hero-preview {
  margin-top: 72px;
  position: relative;
  z-index: 1;
  perspective: 1800px;
}
.hero-preview-inner {
  transform: rotateX(18deg) translateY(0);
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
}
.hero-preview.in-view .hero-preview-inner {
  transform: rotateX(4deg);
}

/* Hero Variant: Chat Bubbles */
.hero-chat {
  position: relative;
  max-width: 1000px;
  margin: 64px auto 0;
  height: 360px;
  z-index: 1;
}
.chat-bubble {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  color: var(--text);
  animation: floatBubble 6s ease-in-out infinite;
  max-width: 320px;
}
.chat-bubble .ch-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
  font-size: 14px;
  font-weight: 600;
}
.chat-bubble .ch-name { font-weight: 600; font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.chat-bubble .ch-msg { font-size: 13px; line-height: 1.4; color: var(--text); }

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

/* ============ Section Headers ============ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: 18px; }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

/* ============ Channels Marquee ============ */
.channels {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.channels-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
}
.channels-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  align-items: center;
  justify-items: center;
}
@media (max-width: 900px) {
  .channels-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 0; }
}
.channel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  transition: all .3s var(--ease);
}
.channel-item:hover { color: var(--text); transform: translateY(-3px); }
.channel-item .ch-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.channel-item:hover .ch-logo {
  border-color: var(--brand-400);
  box-shadow: 0 8px 20px -8px rgba(90,64,235,.35);
}
.channel-item .ch-logo svg { width: 22px; height: 22px; }
.channel-item .ch-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

/* ============ Inbox Demo (Feature 1) ============ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.feature-split.reverse { grid-template-columns: 1.2fr 1fr; }
.feature-split.reverse .feat-copy { order: 2; }
@media (max-width: 900px) {
  .feature-split, .feature-split.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse .feat-copy { order: 0; }
}
.feat-copy h2 { margin-bottom: 20px; }
.feat-copy p { font-size: 17px; margin-bottom: 28px; }
.feat-list { list-style: none; padding: 0; margin: 0 0 32px; }
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
}
.feat-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--brand-500);
  margin-top: 2px;
}

/* Inbox Mock */
.mock-inbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 520px;
  font-size: 13px;
}
.mock-inbox-side {
  background: var(--bg-sunken);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  overflow: hidden;
}
.mock-inbox-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 8px 10px;
}
.mock-conv {
  display: flex;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--r-md);
  margin-bottom: 2px;
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.mock-conv:hover { background: var(--surface-2); }
.mock-conv.active { background: var(--surface); border: 1px solid var(--border); }
.mock-conv-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: white;
  font-size: 12px;
}
.mock-conv-body { flex: 1; min-width: 0; }
.mock-conv-top { display: flex; justify-content: space-between; align-items: baseline; }
.mock-conv-name { font-weight: 600; color: var(--text); font-size: 13px; }
.mock-conv-time { font-size: 10px; color: var(--text-3); }
.mock-conv-msg { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-conv-channel {
  position: absolute;
  bottom: 12px;
  left: 32px;
  width: 14px; height: 14px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-sunken);
}
.mock-conv.active .mock-conv-channel { border-color: var(--surface); }

.mock-inbox-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.mock-thread-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-thread-head-left { display: flex; align-items: center; gap: 12px; }
.mock-thread-head-name { font-weight: 600; font-size: 14px; }
.mock-thread-head-meta { font-size: 11px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.mock-thread-head-actions { display: flex; gap: 6px; }
.mock-icon-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: background .2s;
}
.mock-icon-btn:hover { background: var(--surface-2); }
.mock-icon-btn svg { width: 15px; height: 15px; }

.mock-thread-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-msg {
  max-width: 72%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.mock-msg.them {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.mock-msg.me {
  align-self: flex-end;
  background: var(--brand-500);
  color: white;
  border-bottom-right-radius: 4px;
}
.mock-msg-time {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  padding: 0 4px;
}
.mock-msg.them + .mock-msg-time { align-self: flex-start; }
.mock-msg.me + .mock-msg-time { align-self: flex-end; }
.typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: typing 1.4s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.mock-composer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--bg-sunken);
}
.mock-composer-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-3);
}
.mock-send {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--brand-500);
  display: grid;
  place-items: center;
  color: white;
}
.mock-send svg { width: 16px; height: 16px; }

/* Bot / AI Mock */
.mock-bot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
}
.bot-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.bot-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  position: relative;
}
.bot-node.ai {
  background: linear-gradient(135deg, rgba(90,64,235,.08), rgba(90,64,235,.02));
  border-color: rgba(90,64,235,.3);
}
.bot-node-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
}
.bot-node-icon.gray { background: var(--text-3); }
.bot-node-icon.purple { background: var(--brand-500); }
.bot-node-icon.green { background: #22C55E; }
.bot-node-title { font-size: 13px; font-weight: 600; color: var(--text); }
.bot-node-desc { font-size: 12px; color: var(--text-3); }
.bot-connector {
  width: 2px;
  height: 14px;
  background: var(--border-strong);
  margin-left: 31px;
}
.bot-branch {
  display: flex;
  gap: 10px;
  margin-left: 44px;
}
.bot-branch .bot-node { flex: 1; padding: 10px 12px; }
.bot-branch .bot-node-icon { width: 24px; height: 24px; font-size: 11px; }
.bot-branch .bot-node-title { font-size: 12px; }

/* Kanban Mock */
.mock-kanban {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  overflow: hidden;
}
.kanban-col {
  background: var(--bg-sunken);
  border-radius: var(--r-md);
  padding: 12px;
  min-height: 300px;
}
.kanban-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kanban-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kanban-col-dot { width: 8px; height: 8px; border-radius: 50%; }
.kanban-col-count { font-size: 11px; color: var(--text-3); background: var(--surface); padding: 2px 8px; border-radius: var(--r-pill); }
.kanban-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.kanban-card-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.kanban-card-meta { font-size: 11px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; }
.kanban-card-value { color: var(--brand-500); font-weight: 600; }

/* ============ Feature Grid ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand-500);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
html[data-theme='dark'] .feature-card-icon {
  background: rgba(90,64,235,.15);
  color: var(--brand-300);
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 19px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.55; }

/* ============ Integrations ============ */
.integrations-cloud {
  position: relative;
  height: 420px;
  max-width: 900px;
  margin: 0 auto;
}
.int-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: var(--brand-500);
  border-radius: 32px;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 20px 60px -10px rgba(90,64,235,.5), inset 0 1px 0 rgba(255,255,255,.2);
  z-index: 2;
}
.int-center svg { width: 60px; height: 60px; }
.int-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed var(--border-strong);
  pointer-events: none;
}
.int-ring-1 { width: 280px; height: 280px; margin-top:-140px; margin-left:-140px; }
.int-ring-2 { width: 440px; height: 440px; margin-top:-220px; margin-left:-220px; }

/* Orbit anchor: rotates 360°. Node is offset outward + counter-rotated to stay upright. */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--start, 0deg));
  animation: orbitSpin var(--dur, 24s) linear infinite;
}
.orbit-reverse { animation-name: orbitSpinRev; }
@keyframes orbitSpin {
  from { transform: rotate(var(--start, 0deg)); }
  to   { transform: rotate(calc(var(--start, 0deg) + 360deg)); }
}
@keyframes orbitSpinRev {
  from { transform: rotate(var(--start, 0deg)); }
  to   { transform: rotate(calc(var(--start, 0deg) - 360deg)); }
}
.int-node {
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;               /* center on origin */
  transform: translateX(var(--r, 140px)) rotate(calc(-1 * var(--start, 0deg)));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  animation: orbitNodeCounter var(--dur, 24s) linear infinite;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.orbit-reverse .int-node { animation-name: orbitNodeCounterRev; }
@keyframes orbitNodeCounter {
  from { transform: translateX(var(--r, 140px)) rotate(calc(-1 * var(--start, 0deg))); }
  to   { transform: translateX(var(--r, 140px)) rotate(calc(-1 * var(--start, 0deg) - 360deg)); }
}
@keyframes orbitNodeCounterRev {
  from { transform: translateX(var(--r, 140px)) rotate(calc(-1 * var(--start, 0deg))); }
  to   { transform: translateX(var(--r, 140px)) rotate(calc(-1 * var(--start, 0deg) + 360deg)); }
}
.int-node:hover {
  border-color: var(--brand-400);
  box-shadow: 0 14px 30px -8px rgba(90,64,235,.45);
}
.int-node svg { width: 26px; height: 26px; }
.integrations-cloud:hover .orbit,
.integrations-cloud:hover .int-node {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .orbit, .int-node { animation: none !important; }
}

/* ============ Stats Band ============ */
.stats-band {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item .stat-num {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 650;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-ink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
html[data-theme='dark'] .stat-item .stat-num {
  background: linear-gradient(180deg, #9F8DF5, var(--brand-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .stat-label { font-size: 14px; color: var(--text-3); margin-top: 8px; }

/* ============ Testimonial ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.testimonial-card.featured {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-ink));
  color: white;
  border: none;
}
.testimonial-card.featured p { color: rgba(255,255,255,.9); }
.testimonial-card.featured .testi-name { color: white; }
.testimonial-card.featured .testi-role { color: rgba(255,255,255,.7); }
.testi-quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 24px;
  flex: 1;
}
.testimonial-card.featured .testi-quote { color: white; }
.testi-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-300);
}
.testi-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testi-role { font-size: 12px; color: var(--text-3); }

/* ============ Pricing ============ */
.pricing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  margin: 0 auto 48px;
  position: relative;
}
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
}
.pricing-toggle button {
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  transition: color .25s;
  position: relative;
  z-index: 1;
}
.pricing-toggle button.active { color: white; }
.pricing-toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: var(--brand-500);
  border-radius: var(--r-pill);
  transition: all .4s var(--ease);
  z-index: 0;
}
.pricing-toggle .save-badge {
  margin-left: 6px;
  font-size: 10px;
  background: rgba(34,197,94,.15);
  color: #16A34A;
  padding: 2px 6px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.pricing-toggle button.active .save-badge {
  background: rgba(255,255,255,.2);
  color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.featured {
  background: linear-gradient(180deg, var(--brand-ink) 0%, #110B2E 100%);
  color: white;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-500);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -6px rgba(90,64,235,.6);
}
.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.plan-card.featured .plan-name { color: var(--brand-200); }
.plan-desc {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 24px;
  line-height: 1.45;
}
.plan-card.featured .plan-desc { color: rgba(255,255,255,.65); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.plan-price-currency { font-size: 20px; font-weight: 500; color: var(--text-2); }
.plan-card.featured .plan-price-currency { color: var(--brand-200); }
.plan-price-num {
  font-size: 52px;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.plan-card.featured .plan-price-num { color: white; }
.plan-price-per {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 28px;
}
.plan-card.featured .plan-price-per { color: rgba(255,255,255,.6); }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.plan-card.featured .plan-features li { color: rgba(255,255,255,.9); }
.plan-features svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--brand-500);
  margin-top: 1px;
}
.plan-card.featured .plan-features svg { color: var(--brand-300); }

.plan-cta {
  width: 100%;
  justify-content: center;
  padding: 14px;
}
.plan-card:not(.featured) .plan-cta {
  background: var(--surface-2);
  color: var(--text);
}
.plan-card:not(.featured) .plan-cta:hover {
  background: var(--text);
  color: var(--text-inv);
}

.price-num.animate-price {
  transition: opacity .3s, transform .3s;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 20px; height: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'><path d='M12 5v14M5 12h14'/></svg>");
  background-size: contain;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 640px;
}

/* ============ Final CTA ============ */
.final-cta {
  background: linear-gradient(135deg, var(--brand-ink) 0%, #0A0820 100%);
  border-radius: var(--r-2xl);
  padding: 80px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 1200px;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(90,64,235,.45), transparent 45%);
  animation: slowPulse 8s ease-in-out infinite;
}
@keyframes slowPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: white; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,.7); font-size: 18px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary {
  background: white;
  color: var(--brand-ink);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.3);
}
.final-cta .btn-primary:hover { background: var(--brand-100); }

/* ============ Footer ============ */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand svg { height: 28px; color: var(--text); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-3); max-width: 280px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text);
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand-500); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .2s var(--ease);
}
.footer-social a:hover { background: var(--brand-500); color: white; border-color: var(--brand-500); }
.footer-social svg { width: 16px; height: 16px; }

/* ============ Tweaks Panel ============ */
.tweaks-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  width: 260px;
  display: none;
  backdrop-filter: blur(12px);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 12px;
}
.tweak-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.tweak-row label { font-size: 13px; color: var(--text); font-weight: 500; }
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-opt {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid transparent;
}
.tweak-opt.active {
  background: var(--brand-500);
  color: white;
}
