/* ============================================================
   Sendly — Modern dark theme
   Aurora · cursor spotlight · 3D tilt · bento · meteors · globe
   Inspired by 21st.dev component patterns
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --bg:            #0a0a0a;
  --bg-soft:       #111111;
  --bg-card:       #131313;
  --bg-elevated:   #161616;
  --bg-invert:     #ffffff;

  --text:          #ffffff;
  --text-mute:     #a1a1aa;
  --text-faint:    #6b7280;

  --border:        #1f1f1f;
  --border-strong: #2a2a2a;
  --border-soft:   rgba(255,255,255,0.06);

  /* Brand gradient accents */
  --brand-1:       #818cf8;   /* indigo */
  --brand-2:       #f472b6;   /* pink */
  --brand-3:       #22d3ee;   /* cyan */

  --code-bg:       #0a0a0a;
  --code-fg:       #e5e7eb;
  --code-kw:       #f472b6;
  --code-st:       #86efac;
  --code-fn:       #93c5fd;
  --code-cm:       #6b7280;
  --code-cmp:      #fde68a;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow-lg:     0 30px 80px -20px rgba(0,0,0,0.9);

  --max:           1180px;

  --gradient-cta:  linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
  --gradient-bf:   linear-gradient(135deg, #0e0c1a 0%, #1a1330 50%, #2a1f5a 100%);
  --gradient-accent: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --gradient-text:  linear-gradient(180deg, #fff 0%, #a1a1aa 100%);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: rgba(129,140,248,0.4); color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; }

/* ════════════════════════════════════════════════════════════
   GLOBAL CURSOR SPOTLIGHT
   Fades a subtle radial gradient over the whole page following
   the mouse — driven by --x, --y CSS variables in JS.
   ════════════════════════════════════════════════════════════ */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(129,140,248,0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 400ms ease;
}
.has-spotlight .spotlight { opacity: 1; }
@media (max-width: 720px) { .has-spotlight .spotlight { opacity: 0; } }

/* ════════════════════════════════════════════════════════════
   ANNOUNCEMENT
   ════════════════════════════════════════════════════════════ */
.announce {
  background: #050505;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  position: relative;
  z-index: 5;
}
.announce .container { display: flex; justify-content: center; }
.announce-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0;
  transition: color 150ms ease;
}
.announce-link:hover { color: #fff; }
.announce-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34,197,94,0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.announce-arrow { color: var(--text-faint); transition: transform 150ms ease; }
.announce-link:hover .announce-arrow { transform: translateX(3px); color: #fff; }

/* ════════════════════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.brand-icon { width: 24px; height: 24px; border-radius: 6px; }
.brand-name { font-size: 16px; letter-spacing: -0.01em; }

.nav-links { display: none; align-items: center; gap: 28px; font-size: 14px; color: var(--text-mute); }
.nav-links a { transition: color 120ms ease; }
.nav-links a:hover { color: #fff; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.link-muted { font-size: 14px; color: var(--text-mute); }
.link-muted:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════
   BUTTONS (with optional glow + animated arrow)
   ════════════════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 150ms ease,
              color 120ms ease, box-shadow 200ms ease, border-color 120ms ease;
  isolation: isolate;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

.btn-arrow {
  display: inline-block;
  transition: transform 200ms cubic-bezier(.4, 0, .2, 1);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-light {
  background: #ffffff; color: var(--bg);
  box-shadow: 0 10px 24px -10px rgba(255,255,255,0.18);
}
.btn-light:hover { background: #e5e5e5; }

/* Glow ring on primary buttons */
.btn-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2), var(--brand-3));
  opacity: 0;
  filter: blur(12px);
  transition: opacity 300ms ease;
  z-index: -1;
}
.btn-glow:hover::before { opacity: 0.7; }

.btn-dark {
  background: var(--bg); color: #fff;
  border-color: var(--border-strong);
}
.btn-dark:hover { background: #1c1c1c; }

.btn-ghost-light {
  background: rgba(255,255,255,0.02);
  color: #ffffff;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--text-mute); }

/* ════════════════════════════════════════════════════════════
   HERO with aurora, grid, meteors
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

/* Animated aurora blobs in hero */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.7;
}
.aurora-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-1 {
  top: -10%; left: -10%;
  background: radial-gradient(circle, var(--brand-1) 0%, transparent 60%);
  animation: float-1 18s ease-in-out infinite;
}
.aurora-2 {
  top: 0%; right: -20%;
  background: radial-gradient(circle, var(--brand-2) 0%, transparent 60%);
  animation: float-2 22s ease-in-out infinite;
}
.aurora-3 {
  bottom: -30%; left: 30%;
  background: radial-gradient(circle, var(--brand-3) 0%, transparent 60%);
  animation: float-3 26s ease-in-out infinite;
  opacity: 0.5;
}
@keyframes float-1 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(120px, 60px) scale(1.1); }
}
@keyframes float-2 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(-80px, 80px) scale(1.2); }
}
@keyframes float-3 {
  0%,100% { transform: translate(0, 0) scale(1); }
  50%     { transform: translate(100px, -100px) scale(1.15); }
}

/* Subtle grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Meteors */
.meteors {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.meteor {
  position: absolute;
  top: -50px;
  width: 1px; height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  border-radius: 999px;
  transform: rotate(215deg);
  animation: fall linear infinite;
}
.meteor::after {
  content: "";
  position: absolute;
  top: 0; left: -1px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.8);
}
.meteor:nth-child(1) { left: 10%; animation-duration: 5s;  animation-delay: 0s; }
.meteor:nth-child(2) { left: 25%; animation-duration: 7s;  animation-delay: 2s; }
.meteor:nth-child(3) { left: 40%; animation-duration: 6s;  animation-delay: 4s; }
.meteor:nth-child(4) { left: 60%; animation-duration: 8s;  animation-delay: 1s; }
.meteor:nth-child(5) { left: 75%; animation-duration: 5.5s;animation-delay: 3s; }
.meteor:nth-child(6) { left: 90%; animation-duration: 7.5s;animation-delay: 5s; }
@keyframes fall {
  0%   { transform: translate(0, 0) rotate(215deg); opacity: 1; }
  100% { transform: translate(-800px, 800px) rotate(215deg); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 800px;
}

/* Chip with shimmer */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.chip-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(129,140,248,0.2);
}
.chip-arrow { color: var(--text-faint); transition: transform 200ms ease; }
.chip:hover .chip-arrow { transform: translateX(3px); color: #fff; }

/* Display title */
.display {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
  margin: 0 0 28px;
  color: #fff;
}
.display-grad {
  background: linear-gradient(180deg, #d4d4d8 0%, #52525b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--text-mute);
  max-width: 580px;
  margin: 0 0 32px;
}
.lead-light { color: rgba(255,255,255,0.7); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin: 22px 0 0;
}
.meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}
.meta-green {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-codeframe {
  position: relative;
  z-index: 2;
  margin: 72px auto 0;
  max-width: 880px;
  padding: 0 24px;
}

/* ════════════════════════════════════════════════════════════
   CODE WINDOWS
   ════════════════════════════════════════════════════════════ */
.code-window {
  position: relative;
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
}
.code-window-lg { max-width: 920px; margin: 36px auto 0; }
.code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: #050505;
  border-bottom: 1px solid var(--border);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-dot.d-r { background: #ff5f57; }
.code-dot.d-y { background: #febc2e; }
.code-dot.d-g { background: #28c840; }
.code-file {
  margin-left: 12px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--text-faint);
}
.code-badge {
  margin-left: auto;
  padding: 3px 8px;
  background: rgba(129,140,248,0.12);
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--brand-1);
  letter-spacing: 0.04em;
}

.code {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--code-fg);
  margin: 0;
  padding: 22px 24px 26px;
  white-space: pre;
  overflow-x: auto;
}
.code .kw  { color: var(--code-kw); }
.code .st  { color: var(--code-st); }
.code .fn  { color: var(--code-fn); }
.code .cm  { color: var(--code-cm); font-style: italic; }
.code .cmp { color: var(--code-cmp); }

.code-on-grad { background: rgba(0,0,0,0.45); }

/* ════════════════════════════════════════════════════════════
   3D TILT — perspective transform driven by data-tilt attr
   ════════════════════════════════════════════════════════════ */
.tilt-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 300ms cubic-bezier(.2, 1, .2, 1);
  will-change: transform;
}
.tilt-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(129,140,248,0.25),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 1;
}
.tilt-3d:hover .tilt-glow { opacity: 1; }

/* ════════════════════════════════════════════════════════════
   SPOTLIGHT CARD — per-card light following the cursor
   ════════════════════════════════════════════════════════════ */
.spotlight-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.spotlight-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 1;
}
.spotlight-card:hover .spotlight-glow { opacity: 1; }
.spotlight-card > *:not(.spotlight-glow):not(.tilt-glow) { position: relative; z-index: 2; }

/* ════════════════════════════════════════════════════════════
   LOGOS — infinite marquee
   ════════════════════════════════════════════════════════════ */
.logos {
  padding: 72px 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #060606;
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 36px;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  padding-right: 56px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.logo-mark {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 19px;
  color: rgba(255,255,255,0.4);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: color 200ms ease;
}
.logo-mark:hover { color: #fff; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════
   EYEBROW + TITLES
   ════════════════════════════════════════════════════════════ */
.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--text-mute);
  margin: 0 0 16px;
}
.eyebrow-tiny { font-size: 11px; margin-bottom: 12px; }
.eyebrow-light { color: rgba(255,255,255,0.65); }

.h1 {
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 24px;
  color: #fff;
}
.h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 18px;
  color: #fff;
}
.h2-light { color: #fff; }
.h2-grad {
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 620px;
  margin: 0 0 48px;
}
.sub-light { color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════════════════════════
   BENTO GRID FEATURES
   ════════════════════════════════════════════════════════════ */
.features { padding: 140px 0; background: var(--bg); position: relative; }
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.bento-card {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 250ms ease, background 250ms ease, transform 300ms ease;
  min-height: 220px;
  overflow: hidden;
}
.bento-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}
.bento-h {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: #fff;
}
.bento-p {
  font-size: 14.5px; color: var(--text-mute);
  margin: 0; line-height: 1.55;
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: #fff;
}
.card-icon svg { width: 19px; height: 19px; }

/* Big card */
.bento-xl {
  grid-column: span 1;
  min-height: 380px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.bento-xl .bento-body { z-index: 2; }
.bento-xl .bento-h {
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* Wide card */
.bento-wide { min-height: 280px; }

/* Chart visual */
.chart-visual {
  position: relative;
  margin-top: auto;
  height: 180px;
  display: flex; align-items: flex-end;
}
.chart-visual svg { width: 100%; height: 100%; overflow: visible; }
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 3s ease-out forwards;
}
@keyframes dash {
  to { stroke-dashoffset: 0; }
}

/* Mini code visual */
.mini-code {
  margin-top: auto;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.mini-code pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--code-fg);
  white-space: pre;
}
.mini-code .cmp { color: var(--code-cmp); }
.mini-code .st  { color: var(--code-st); }

/* ════════════════════════════════════════════════════════════
   GLOBE SECTION
   ════════════════════════════════════════════════════════════ */
.globe-section {
  padding: 80px 0 140px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.globe-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.globe-text .sub { margin-bottom: 32px; }
.globe-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.g-stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.g-num {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.g-label {
  font-size: 12px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.globe-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.globe-canvas-wrap canvas {
  width: 100%; height: 100%;
  display: block;
}
.globe-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,140,248,0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   BIG GRADIENT FEATURE
   ════════════════════════════════════════════════════════════ */
.big-feature { padding: 0 24px 140px; background: var(--bg); }
.big-feature-inner {
  background: var(--gradient-bf);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.big-feature-inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 50%, rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.bf-text { color: #fff; max-width: 540px; }
.bf-text .sub { margin-bottom: 32px; }
.bf-window {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
}
.bf-window .code-bar { background: rgba(0,0,0,0.55); border-bottom-color: rgba(255,255,255,0.08); }

/* ════════════════════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════════════════════ */
.tabs-section { padding: 0 0 140px; background: var(--bg); }
.tabs {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  margin: 8px 0 24px;
}
.tab {
  padding: 8px 16px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-mute);
  border-radius: 9px;
  transition: background 150ms ease, color 150ms ease;
}
.tab:hover { color: #fff; }
.tab.is-active {
  background: var(--bg-elevated);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08),
              0 0 24px -8px rgba(129,140,248,0.4);
}
.code-window-lg .code { display: none; }
.code-window-lg .code.is-active { display: block; }

/* ════════════════════════════════════════════════════════════
   STATS (big numbers grid)
   ════════════════════════════════════════════════════════════ */
.stats {
  padding: 0 0 140px;
  background: var(--bg);
  position: relative;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  margin-top: 48px;
}
.stat-cell {
  background: var(--bg-card);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background 250ms ease;
}
.stat-cell:hover { background: var(--bg-elevated); }
.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 14px;
  color: var(--text-mute);
}

/* ════════════════════════════════════════════════════════════
   QUOTES
   ════════════════════════════════════════════════════════════ */
.quotes { padding: 0 0 140px; background: var(--bg); }
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.quote {
  position: relative;
  margin: 0;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 200ms ease, background 200ms ease;
}
.quote:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.quote blockquote {
  margin: 0 0 24px;
  font-size: 16.5px; line-height: 1.55;
  color: #fff;
  letter-spacing: -0.005em;
}
.quote figcaption {
  display: flex; align-items: center; gap: 12px;
}
.quote figcaption strong {
  display: block; font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #fff;
}
.quote figcaption span { font-size: 13px; color: var(--text-mute); }

.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.avatar-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.avatar-2 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.avatar-3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }

/* ════════════════════════════════════════════════════════════
   PRICING (with animated gradient border on Pro)
   ════════════════════════════════════════════════════════════ */
.pricing { padding: 0 0 140px; background: var(--bg); }
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.price-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex; flex-direction: column; gap: 14px;
}

.price-card-featured {
  background: linear-gradient(180deg, #161616 0%, #0e0e0e 100%);
  box-shadow: 0 30px 80px -30px rgba(99,102,241,0.35);
}

/* Animated rotating gradient border */
.animated-border {
  position: relative;
  background-clip: padding-box;
  border: 1px solid transparent;
}
.animated-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    var(--brand-1),
    var(--brand-2),
    var(--brand-3),
    var(--brand-1)
  );
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  animation: spin-angle 6s linear infinite;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-angle { to { --angle: 360deg; } }

.price-badge {
  position: absolute;
  top: -10px;
  right: 24px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 8px 24px -8px rgba(129,140,248,0.5);
}
.price-card h3 {
  margin: 0;
  font-size: 14px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.price-num {
  margin: 4px 0 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
}
.price-num span {
  font-size: 16px; font-weight: 500;
  color: var(--text-mute); letter-spacing: 0;
}
.price-sub { margin: 0 0 8px; font-size: 14px; color: var(--text-mute); }
.price-card ul {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  flex: 1;
}
.price-card li {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding-left: 24px;
  position: relative;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(129,140,248,0.25), rgba(244,114,182,0.25));
  border: 1px solid var(--border-strong);
}
.price-card li::after {
  content: "";
  position: absolute;
  left: 5px; top: 11px;
  width: 6px; height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════
   CTA with sparkles
   ════════════════════════════════════════════════════════════ */
.cta {
  background: var(--gradient-cta);
  color: #fff;
  padding: 130px 0 140px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(129,140,248,0.25) 0%, transparent 70%),
    radial-gradient(40% 40% at 80% 100%, rgba(244,114,182,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 760px; margin: 0 auto; z-index: 2; }
.cta .hero-cta { justify-content: center; margin-top: 28px; }

/* Sparkle particles canvas-style */
.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.sparkles::before,
.sparkles::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%,  rgba(255,255,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 30% 70%,  rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1.5px 1.5px at 50% 30%, rgba(255,255,255,0.8) 50%, transparent),
    radial-gradient(1px 1px at 70% 60%,  rgba(255,255,255,0.9) 50%, transparent),
    radial-gradient(1px 1px at 85% 25%,  rgba(255,255,255,0.6) 50%, transparent),
    radial-gradient(1px 1px at 20% 85%,  rgba(255,255,255,0.7) 50%, transparent),
    radial-gradient(1.5px 1.5px at 60% 90%, rgba(255,255,255,0.8) 50%, transparent),
    radial-gradient(1px 1px at 90% 75%,  rgba(255,255,255,0.7) 50%, transparent);
  background-size: 250px 250px;
  animation: twinkle 6s ease-in-out infinite;
}
.sparkles::after {
  animation-delay: -3s;
  background-size: 350px 350px;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.footer {
  background: #050505;
  color: rgba(255,255,255,0.65);
  padding: 80px 0 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.brand-light .brand-name { color: #fff; }
.footer-tag { font-size: 14px; color: rgba(255,255,255,0.55); margin: 14px 0 18px; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.35); margin: 0; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 24px;
}
.footer-cols h4 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding: 5px 0;
  transition: color 150ms ease;
}
.footer-cols a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (min-width: 720px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
  }
  .bento-xl    { grid-column: span 2; grid-row: span 2; }
  .bento-wide  { grid-column: span 2; }
  .quote-grid  { grid-template-columns: repeat(3, 1fr); }
  .price-grid  { grid-template-columns: repeat(3, 1fr); }
  .stat-grid   { grid-template-columns: repeat(4, 1fr); }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .globe-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .big-feature-inner {
    grid-template-columns: 1.05fr 1fr;
    padding: 80px;
  }
  .footer-inner {
    grid-template-columns: 1.2fr 2fr;
    gap: 64px;
  }
}

@media (max-width: 540px) {
  .hero { padding: 60px 0 50px; }
  .features, .big-feature, .tabs-section, .quotes,
  .pricing, .globe-section, .stats { padding-bottom: 90px; }
  .features { padding-top: 90px; }
  .cta { padding: 90px 0; }
  .big-feature-inner { padding: 40px 24px; }
  .bento-card { padding: 24px; }
  .stat-cell { padding: 28px 22px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .aurora-blob,
  .meteor,
  .marquee-track,
  .animated-border::before { animation: none !important; }
}
