/* SnipTray landing — hand-written CSS */

:root {
  --bg: #0A0612;
  --bg-alt: #0F0918;
  --bg-deep: #070310;
  --surface: rgba(255,255,255,0.04);
  --surface-hi: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hi: rgba(255,255,255,0.14);
  --text: #F4F0FF;
  --muted: #A89DC4;
  --purple-1: #8E5BF5;
  --purple-2: #5226C7;
  --grad: linear-gradient(135deg, #8E5BF5 0%, #5226C7 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--grad); color: #fff; padding: 10px 14px; border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; top: 16px; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Typography ============ */
.h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 14px 0 18px;
}
.h1-line { display: block; }
.h1-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 10px 0 14px;
}
h3 { font-size: 18px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
h4 { font-size: 13px; font-weight: 600; margin: 0 0 12px; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0;
  background: var(--surface);
}

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 0 28px;
}
.lede.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(142,91,245,0.55), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(142,91,245,0.7), 0 1px 0 rgba(255,255,255,0.15) inset; }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--border-hi); transform: translateY(-1px); }
.btn-white {
  background: #fff;
  color: #1a0a2e;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6);
}
.btn-white:hover { transform: translateY(-1px); }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,6,18,0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(10,6,18,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 4px 14px -4px rgba(142,91,245,0.7), 0 1px 0 rgba(255,255,255,0.2) inset;
}
.brand-word { font-size: 17px; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a { transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  flex-direction: column; gap: 4px; justify-content: center; align-items: center;
}
.nav-toggle span {
  width: 16px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,6,18,0.95);
}
.nav-mobile a {
  padding: 12px 4px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.nav-mobile a:last-child { border-bottom: 0; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -10% -20% auto auto;
  width: 80vw; height: 80vw;
  max-width: 1100px; max-height: 1100px;
  background:
    radial-gradient(closest-side, rgba(142,91,245,0.28), rgba(142,91,245,0) 70%),
    radial-gradient(closest-side, rgba(82,38,199,0.25), rgba(82,38,199,0) 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 6px;
}
.trust-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { width: 16px; height: 16px; fill: var(--purple-1); }

/* ===== Hero mock strip ===== */
.hero-mock {
  position: relative;
  min-height: 340px;
  perspective: 1400px;
}
.mock-backdrop {
  position: absolute;
  inset: -10% -8%;
  background:
    radial-gradient(60% 60% at 50% 60%, rgba(142,91,245,0.25), rgba(10,6,18,0) 70%),
    radial-gradient(40% 40% at 70% 30%, rgba(82,38,199,0.22), rgba(10,6,18,0) 70%);
  filter: blur(30px);
  border-radius: 32px;
  pointer-events: none;
}
.mock-strip {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 4px;
  transform-style: preserve-3d;
}
.clip-card {
  aspect-ratio: 1 / 1;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 48px -18px rgba(0,0,0,0.6),
    0 1px 0 rgba(255,255,255,0.08) inset;
  display: flex; flex-direction: column;
  transform: translateY(24px);
  opacity: 0;
  animation: cardIn 900ms var(--ease) forwards;
  animation-delay: var(--delay);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.hero-mock:hover .clip-card {
  transform: translateY(-4px);
  box-shadow:
    0 36px 64px -22px rgba(0,0,0,0.75),
    0 1px 0 rgba(255,255,255,0.1) inset;
}
.clip-head {
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000 30%));
  color: #fff;
  padding: 14px 14px 12px;
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  row-gap: 4px;
  align-items: center;
  min-height: 84px;
}
.clip-icon {
  grid-row: span 2;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,0.22);
  display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset;
}
.clip-icon svg { width: 18px; height: 18px; fill: #fff; stroke: #fff; stroke-width: 0; }
.clip-card:nth-child(4) .clip-icon svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clip-type {
  font-size: 13px; font-weight: 700; letter-spacing: -0.005em;
  padding-left: 10px;
}
.clip-time {
  grid-column: 2; padding-left: 10px;
  font-size: 11px; opacity: 0.85;
  font-weight: 500;
}
.clip-body {
  flex: 1;
  padding: 12px 14px 14px;
  font-size: 13px;
  color: #E7E0FA;
  display: flex; flex-direction: column; gap: 8px;
}
.clip-body p { margin: 0; line-height: 1.45; }
.clip-body .meta { color: var(--muted); font-size: 11px; }
.clip-body-img { gap: 10px; }
.fake-img {
  flex: 1;
  min-height: 90px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(97,140,242,0.45), rgba(97,140,242,0.15)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 8px, rgba(255,255,255,0.02) 8px 16px);
  border: 1px solid rgba(255,255,255,0.08);
}

@keyframes cardIn {
  0% { opacity: 0; transform: translateY(34px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: no-preference) {
  .clip-card {
    animation:
      cardIn 900ms var(--ease) forwards,
      breathe 6s ease-in-out infinite;
    animation-delay: var(--delay), calc(900ms + var(--phase));
  }
}
@media (prefers-reduced-motion: reduce) {
  .clip-card { animation: none; opacity: 1; transform: none; }
}

/* ============ Band / sync section ============ */
.band {
  background: var(--bg-alt);
  padding: 110px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band .h2 { text-align: center; }
.band .eyebrow { display: block; text-align: center; margin: 0 auto 18px; width: max-content; }

.sync-diagram {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 56px auto 0;
}
.device {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
}
.device-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #1b1128, #120a1f);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.08) inset;
  position: relative;
}
.device-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%; top: 10px;
  background: rgba(255,255,255,0.15);
}
.device-dot:nth-child(1) { left: 12px; background: rgba(252,102,89,0.85); }
.device-dot:nth-child(2) { left: 26px; background: rgba(242,129,64,0.85); }
.device-dot:nth-child(3) { left: 40px; background: rgba(97,140,242,0.85); }
.device-phone .device-screen {
  aspect-ratio: 9 / 18;
  width: 120px;
  border-radius: 22px;
  padding: 22px 12px 12px;
}
.device-phone { align-items: center; }
.device-notch {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 14px; background: #000; border-radius: 0 0 10px 10px;
}
.mini-clip {
  background: var(--c, rgba(255,255,255,0.1));
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 6px 10px;
  border-radius: 7px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset;
}
.device-stand {
  width: 60%; height: 8px;
  background: linear-gradient(180deg, #1b1128, #0d0718);
  border: 1px solid var(--border);
  border-radius: 0 0 8px 8px;
}
.device-label {
  margin-top: 10px; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.sync-arrow {
  width: 100%;
  height: 100px;
  overflow: visible;
}
.arrow-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1800ms var(--ease);
}
.arrow-dot {
  opacity: 0;
  offset-path: path('M 10 50 Q 200 -10 390 50');
  offset-distance: 0%;
}
.sync-diagram.playing .arrow-path { stroke-dashoffset: 0; }
.sync-diagram.playing .arrow-dot {
  opacity: 1;
  animation: dotRun 1800ms var(--ease) forwards;
}
@keyframes dotRun {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .arrow-path { stroke-dashoffset: 0; }
  .arrow-dot { display: none; }
  .arrow-dot-halo { display: none; }
}

/* ---- Enhanced sync animations: breathing, ambient glow, glyph, flying dot halo, clip pulse ---- */

/* Devices breathe gently on an infinite, offset cycle so the diagram never
   feels static. Phase-offset so Mac and iPhone aren't in lockstep. */
@media (prefers-reduced-motion: no-preference) {
  .device-mac .device-screen,
  .device-phone .device-screen {
    animation: deviceBreathe 7s ease-in-out infinite;
  }
  .device-phone .device-screen {
    animation-delay: -3.5s;
  }
}
@keyframes deviceBreathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* Wrap holds the SVG, the ambient glow, and the E2EE chip so they share the
   same centering + width. */
.sync-arrow-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft pulsing radial glow behind the arrow. Purely decorative. */
.sync-arrow-glow {
  position: absolute;
  inset: -30% 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(142, 91, 245, 0.24), rgba(142, 91, 245, 0) 70%);
  filter: blur(4px);
  opacity: 0.55;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.75; transform: scale(1.08); }
}

/* The dot halo travels along the same path and fades in with the dot. */
.arrow-dot-halo {
  opacity: 0;
  offset-path: path('M 10 50 Q 200 -10 390 50');
  offset-distance: 0%;
  color: #8E5BF5;
}
.sync-diagram.playing .arrow-dot-halo {
  opacity: 0.9;
  animation: dotRun 1800ms var(--ease) forwards;
}

/* The arrow dot now also inherits its fill from the --dot-color custom prop
   set by JS at the start of each cycle, so the traveling dot changes color
   to match the clip kind being "sent". */
.sync-diagram {
  --dot-color: #8E5BF5;
}
.arrow-dot,
.arrow-dot-halo {
  color: var(--dot-color);
}
.arrow-dot.playing-tint {
  fill: var(--dot-color);
}

/* E2EE chip below the arrow — subtle pulse so it reads as alive. */
.sync-lock {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #B79CFE;
  background: rgba(142, 91, 245, 0.10);
  border: 1px solid rgba(142, 91, 245, 0.28);
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sync-lock svg { color: #B79CFE; flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sync-lock { animation: lockPulse 3.5s ease-in-out infinite; }
}
@keyframes lockPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(142, 91, 245, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(142, 91, 245, 0.12); }
}

/* Mini-clip send/receive pulses. JS adds .glow-out to a Mac clip at cycle
   start, and .glow-in to the matching iPhone clip when the dot arrives. */
.mini-clip {
  position: relative;
  transition: transform 180ms var(--ease);
}
.mini-clip.glow-out {
  animation: clipSend 700ms var(--ease);
  z-index: 2;
}
.mini-clip.glow-in {
  animation: clipRecv 700ms var(--ease);
  z-index: 2;
}
@keyframes clipSend {
  0%   { transform: translateX(0)   scale(1);    box-shadow: 0 0 0 0 var(--c); }
  35%  { transform: translateX(10px) scale(1.08); box-shadow: 0 0 18px 2px var(--c); }
  100% { transform: translateX(0)   scale(1);    box-shadow: 0 0 0 0 transparent; }
}
@keyframes clipRecv {
  0%   { transform: translateX(-10px) scale(0.9);  box-shadow: 0 0 0 0 transparent; }
  35%  { transform: translateX(0)    scale(1.10); box-shadow: 0 0 18px 2px var(--c); }
  100% { transform: translateX(0)    scale(1);    box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-clip.glow-out,
  .mini-clip.glow-in { animation: none; }
  .sync-arrow-glow { animation: none; opacity: 0.45; }
  .sync-lock { animation: none; }
}

/* ============ Features ============ */
.features { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .h2 { margin-bottom: 12px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  transform-style: preserve-3d;
}
.feature::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.feature:hover { background: var(--surface-hi); }
.feature:hover::before { opacity: 1; }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(142,91,245,0.6);
}
.feature-icon svg { width: 22px; height: 22px; fill: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .tilt {
    transform:
      perspective(800px)
      rotateX(calc(var(--ty, 0) * 1deg))
      rotateY(calc(var(--tx, 0) * 1deg));
  }
}

/* ============ Collaborate ============ */
.collab {
  padding: 120px 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(142,91,245,0.14), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(82,38,199,0.1), transparent 60%);
}
.collab-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.collab-copy { max-width: 520px; }
.badge-new {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px -6px rgba(142,91,245,0.7);
}

.collab-mock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.collab-screen {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
}
.collab-head {
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.collab-head .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--c, #8C73F2);
}
.collab-clip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
}
.collab-clip.is-new {
  border-color: rgba(142,91,245,0.6);
  box-shadow: 0 0 0 1px rgba(142,91,245,0.3), 0 10px 24px -10px rgba(142,91,245,0.4);
}
@media (prefers-reduced-motion: no-preference) {
  .collab-clip.is-new { animation: newPulse 3s var(--ease) infinite; }
  @keyframes newPulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 1px rgba(142,91,245,0.3), 0 10px 24px -10px rgba(142,91,245,0.4); }
    50% { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(142,91,245,0.55), 0 16px 32px -10px rgba(142,91,245,0.6); }
  }
}
.collab-arrow { width: 70px; height: 40px; }

/* ============ Pricing ============ */
.pricing { padding: 120px 0; background: var(--bg-alt); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.plan:hover { border-color: var(--border-hi); }
.plan-name { font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: 0.01em; }
.plan-price {
  display: flex; align-items: baseline; gap: 8px;
  margin: 12px 0 6px;
}
.plan-price .amount { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price .per { color: var(--muted); font-size: 14px; }
.plan-tag { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.plan-features {
  margin: 10px 0 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: 14px; color: var(--text);
  padding-left: 26px;
  position: relative;
}
.plan-features li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(142,91,245,0.1);
}
.plan-features li::after {
  content: ''; position: absolute;
  left: 4px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.plan-featured {
  transform: scale(1.05);
  border-color: transparent;
  background:
    linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .plan-featured {
    animation: planGlow 4s ease-in-out infinite;
  }
  @keyframes planGlow {
    0%, 100% { box-shadow: 0 20px 50px -25px rgba(142,91,245,0.5), 0 0 0 1px rgba(142,91,245,0.15); }
    50%      { box-shadow: 0 30px 70px -25px rgba(142,91,245,0.75), 0 0 0 1px rgba(142,91,245,0.3); }
  }
}
.plan-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: #2fd27b;
  color: #062414;
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(47,210,123,0.7);
}
.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 36px;
}
.fineprint.light { color: rgba(255,255,255,0.85); }

/* ============ FAQ ============ */
.faq { padding: 120px 0; }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq details[open] { background: var(--surface-hi); border-color: var(--border-hi); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.chev {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: transform .3s var(--ease);
}
.chev::before, .chev::after {
  content: ''; position: absolute;
  width: 8px; height: 2px; background: var(--text); border-radius: 2px;
  top: 50%; left: 50%;
}
.chev::before { transform: translate(-70%, -50%) rotate(45deg); }
.chev::after  { transform: translate(-30%, -50%) rotate(-45deg); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 66ch;
}

/* ============ Final CTA ============ */
.final-cta {
  margin: 0;
  padding: 100px 0;
  background: var(--grad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 20% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(50% 60% at 80% 90%, rgba(0,0,0,0.3), transparent 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; }
.final-cta .h2 { color: #fff; margin-bottom: 28px; }

/* ============ Footer ============ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  color: var(--muted);
}
.footer .brand { color: var(--text); margin-bottom: 12px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; }
.footer li a {
  color: var(--muted);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer li a:hover { color: var(--text); }
.footer p { margin: 6px 0; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: transform, opacity;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .collab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: none; }
  /* Below 900px fall back to a horizontal scrolling row of square cards
     instead of a 2x2 grid — looks better at narrow widths. */
  .mock-strip {
    display: flex;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .mock-strip::-webkit-scrollbar { display: none; }
  .clip-card {
    flex: 0 0 62%;
    min-width: 62%;
    max-width: 62%;
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 860px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-featured { order: -1; transform: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-right .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .band, .features, .collab, .pricing, .faq { padding: 80px 0; }
  .final-cta { padding: 70px 0; }
  .sync-diagram { grid-template-columns: 1fr; gap: 40px; }
  .sync-arrow { transform: rotate(90deg); height: 60px; max-width: 240px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .trust-row { gap: 10px 16px; }
}
