/* ─── TOKENS ────────────────────────────────────────────────────────────── */
:root {
  --black:   #000000;
  --black-1: #0a0a0a;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #222222;
  --white:   #ffffff;
  --white-2: rgba(255,255,255,0.85);
  --white-3: rgba(255,255,255,0.55);
  --white-4: rgba(255,255,255,0.25);
  --white-5: rgba(255,255,255,0.08);

  --blue:    #3B82F6;
  --blue-l:  #60A5FA;
  --blue-d:  #1D4ED8;
  --blue-glow: rgba(59,130,246,0.25);
  --blue-glow-s: rgba(59,130,246,0.12);

  --red:     #EF4444;
  --red-glow: rgba(239,68,68,0.15);

  --border:  rgba(255,255,255,0.09);
  --border-h: rgba(255,255,255,0.18);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --ease-out-expo: cubic-bezier(0.16,1,0.3,1);
  --ease-spring:   cubic-bezier(0.34,1.56,0.64,1);
}

/* ─── RESET ─────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─── CONTAINER ──────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAV ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px;
  transition: background 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 15px; font-weight: 600;
  color: var(--white);
}
.nav-logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-logo em { color: var(--white-3); font-style: normal; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px; color: var(--white-3);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.btn-nav {
  height: 36px; padding: 0 18px;
  border: 1px solid var(--border-h);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--white);
  display: flex; align-items: center;
  transition: background 0.2s, border-color 0.2s;
  background: var(--white-5);
}
.btn-nav:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 120px 0 80px;
  max-width: 1160px; margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
  position: relative;
}

.hero-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59,130,246,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(59,130,246,0.04) 0%, transparent 60%);
}

.hero-content { position: relative; z-index: 2; }
.hero-visual { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-h);
  background: var(--white-5);
  backdrop-filter: blur(12px);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12px; font-weight: 500; color: var(--white-3);
  margin-bottom: 28px;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 4px var(--blue); }
  50% { box-shadow: 0 0 12px var(--blue); }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(44px, 5.5vw, 68px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em;
  animation: fadeSlideUp 0.8s 0.1s var(--ease-out-expo) both;
}
.headline-accent {
  color: var(--blue-l);
  position: relative;
}
.headline-accent::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.hero-sub {
  margin-top: 20px;
  font-size: 17px; line-height: 1.6;
  color: var(--white-3);
  max-width: 460px;
  animation: fadeSlideUp 0.8s 0.2s var(--ease-out-expo) both;
}

.hero-cta {
  margin-top: 36px;
  display: flex; gap: 14px; align-items: center;
  animation: fadeSlideUp 0.8s 0.3s var(--ease-out-expo) both;
}
.btn-primary {
  height: 50px; padding: 0 28px;
  background: var(--blue);
  border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s, background 0.2s;
  box-shadow: 0 0 40px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--blue-l);
  box-shadow: 0 8px 40px rgba(59,130,246,0.5);
}
.btn-primary.btn-large { height: 56px; padding: 0 36px; font-size: 16px; }
.btn-ghost {
  height: 50px; padding: 0 20px;
  font-size: 15px; font-weight: 500; color: var(--white-3);
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--border-h); }

.hero-trust {
  margin-top: 40px;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--white-3);
  animation: fadeSlideUp 0.8s 0.4s var(--ease-out-expo) both;
}
.trust-dots { display: flex; gap: 4px; }
.trust-dots span {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--black-3);
  border: 1.5px solid var(--border);
  display: block;
}
.trust-dots span:not(:first-child) { margin-left: -8px; }

/* Bridge Graphic */
.bridge-wrapper {
  display: flex; align-items: center; gap: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  backdrop-filter: blur(20px);
  animation: fadeSlideUp 0.8s 0.15s var(--ease-out-expo) both;
  position: relative;
}
.bridge-wrapper::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(59,130,246,0.2), transparent 50%);
  z-index: -1;
}
.app-block {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 80px;
}
.app-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--black-3);
  border: 1px solid var(--border-h);
  transition: transform 0.3s;
  overflow: hidden;
  padding: 10px;
}
.app-icon img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.app-block:hover .app-icon { transform: scale(1.05); }
.app-block span {
  font-size: 13px; font-weight: 600; color: var(--white-3);
}

.bridge-anim {
  flex: 1; position: relative; display: flex;
  flex-direction: column; align-items: center; gap: 6px;
  min-width: 120px;
}
.bridge-line {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.5;
}
.bridge-pulses {
  position: absolute; top: -12px; left: 0; right: 0;
  display: flex; pointer-events: none;
}
.pulse {
  position: absolute; top: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  transform: translateY(-3px);
}
.p1 { animation: slidePulse 2.4s ease-in-out infinite 0s; }
.p2 { animation: slidePulse 2.4s ease-in-out infinite 0.8s; }
.p3 { animation: slidePulse 2.4s ease-in-out infinite 1.6s; }
@keyframes slidePulse {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
.bridge-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--blue); text-transform: uppercase;
  margin-top: 8px;
}

/* Float cards */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: var(--black-2);
  border: 1px solid var(--border-h);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 12px; font-weight: 500; color: var(--white-3);
  backdrop-filter: blur(20px);
  white-space: nowrap;
  animation: floatCard 3s ease-in-out infinite;
}
.fc-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.fc-dot.green { background: #10B981; box-shadow: 0 0 8px #10B981; }
.fc-dot.blue  { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.fc-dot.white { background: var(--white); box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.fc1 { bottom: 0; left: -60px; animation-delay: 0s; }
.fc2 { top: 20px; right: -20px; animation-delay: 1s; }
.fc3 { bottom: 60px; right: -40px; animation-delay: 0.5s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ─── PAIN SECTION ───────────────────────────────────────────────────────── */
.pain {
  position: relative; z-index: 2;
  padding: 120px 0 80px;
  background: var(--black-1);
}
.pain-header { margin-bottom: 64px; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.pain-card {
  background: var(--black-2);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.pain-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse 60% 40% at 10% 10%, rgba(239,68,68,0.06), transparent);
  pointer-events: none;
}
.pain-card:hover {
  border-color: rgba(239,68,68,0.3);
  transform: translateY(-3px);
}
.pain-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.pain-card h3 {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--white);
}
.pain-card p {
  font-size: 14px; color: var(--white-3); line-height: 1.65;
}
.pain-card em { color: var(--white-2); font-style: normal; }

.pain-callout {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.03));
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  text-align: center;
}
.pain-callout-text {
  font-size: 18px; line-height: 1.6; color: var(--white-3);
}
.pain-callout-text strong {
  color: var(--white);
  font-weight: 700;
}

/* ─── NUMBERS ─────────────────────────────────────────────────────────────── */
.numbers {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--black-1);
  padding: 48px 0;
}
.numbers-grid {
  display: flex; align-items: center;
  justify-content: space-around;
  gap: 16px;
}
.num-card { text-align: center; padding: 0 24px; }
.num-value {
  font-family: var(--font-head);
  font-size: 52px; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--white);
  display: flex; align-items: baseline; gap: 2px;
  justify-content: center;
}
.num-suffix { font-size: 28px; color: var(--blue); }
.num-card p { font-size: 13px; color: var(--white-3); margin-top: 8px; }
.num-divider { width: 1px; height: 60px; background: var(--border); }

/* ─── SECTION SHARED ─────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}
.accent { color: var(--blue-l); }

/* ─── HOW IT WORKS ────────────────────────────────────────────────────────── */
.how {
  position: relative; z-index: 2;
  padding: 120px 0;
}
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 40px; align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.step.visible { opacity: 1; transform: translateY(0); }
.step:first-child { border-top: 1px solid var(--border); }

.step-visual { display: flex; flex-direction: column; align-items: center; }
.step-icon {
  width: 60px; height: 60px;
  border: 1px solid var(--border-h);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-l);
  background: var(--white-5);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.step:hover .step-icon {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 30px var(--blue-glow);
}
.step-content { padding-top: 8px; }
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--white-4); margin-bottom: 12px; display: block;
}
.step-content h3 {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.step-content p { font-size: 16px; color: var(--white-3); max-width: 540px; }

/* ─── FEATURES ───────────────────────────────────────────────────────────── */
.features {
  position: relative; z-index: 2;
  padding: 120px 0;
  background: var(--black-1);
}
.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
  align-items: stretch;
}

/*
  Bento layout — explicit placement:
  Row 1: [Card1 — cols 1-2]  [Card2 — col 3]
  Row 2: [Card3 — col 1]     [Card4 — cols 2-3]
  Row 3: [Card5 — cols 1-2]  [Card6 — col 3]
  Row 4: [Card7 — cols 1-3]
*/

.feat-card {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
  opacity: 0; transform: translateY(24px);
  display: flex;
  flex-direction: column;
}
.feat-card.visible { opacity: 1; transform: translateY(0); }
.feat-card.visible:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Row 1, cols 1-2 */
.feat-large {
  grid-column: 1 / span 2;
  grid-row: 1;
}
/* Row 1, col 3 */
.features-bento .feat-card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}
/* Row 2, col 1 */
.features-bento .feat-card:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}
/* Row 2, cols 2-3 */
.feat-medium {
  grid-column: 2 / span 2;
  grid-row: 2;
}
/* Row 3, cols 1-2 */
.features-bento .feat-card:nth-child(5) {
  grid-column: 1 / span 2;
  grid-row: 3;
}
/* Row 3, col 3 */
.features-bento .feat-card:nth-child(6) {
  grid-column: 3;
  grid-row: 3;
}
/* Row 4, full width */
.feat-wide {
  grid-column: 1 / span 3;
  grid-row: 4;
}

.feat-card-content { position: relative; z-index: 2; }
.feat-card-visual {
  margin-top: 28px; position: relative; z-index: 2;
}

.feat-highlight {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), var(--black-2));
  border-color: rgba(59,130,246,0.25);
}
.feat-highlight:hover {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 20px 60px rgba(59,130,246,0.15);
}

.feat-glow {
  background: linear-gradient(135deg, rgba(59,130,246,0.05), var(--black-2));
  border-color: rgba(59,130,246,0.2);
}

.feat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white-5);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-l); margin-bottom: 18px;
  transition: background 0.3s, box-shadow 0.3s;
}
.feat-card:hover .feat-icon-wrap {
  background: rgba(59,130,246,0.12);
  box-shadow: 0 0 20px var(--blue-glow-s);
}

.feat-card h3 {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.feat-card p { font-size: 14px; color: var(--white-3); line-height: 1.6; }

/* Sync animation with real logos */
.sync-anim {
  display: flex; align-items: center; gap: 20px;
  background: var(--black-3); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 24px;
}
.sync-node-img {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700;
  color: var(--white-3); white-space: nowrap;
}
.sync-node-img img {
  width: 28px; height: 28px;
  object-fit: contain;
  border-radius: 6px;
}
.sync-track {
  flex: 1; height: 24px; position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.sync-beam {
  position: absolute; top: 50%; height: 2px;
  border-radius: 1px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.b1 { animation: beamFlow 1.8s linear infinite 0s; width: 40%; }
.b2 { animation: beamFlow 1.8s linear infinite 0.6s; width: 30%; }
.b3 { animation: beamFlow 1.8s linear infinite 1.2s; width: 50%; }
@keyframes beamFlow {
  0%   { left: -50%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Presence cards */
.feat-presence { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.presence-user {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--black-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.presence-user:hover { border-color: var(--border-h); }
.presence-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.presence-info { flex: 1; }
.presence-info span { font-size: 13px; font-weight: 600; display: block; }
.presence-info small { font-size: 11px; color: var(--white-3); }
.presence-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981; box-shadow: 0 0 8px #10B981;
  animation: pulse-dot 2s infinite;
}
.presence-user.offline { opacity: 0.5; }

/* Clash */
.clash-indicator { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.clash-bar { flex: 1; }
.clash-item {
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600;
  border: 1px solid transparent;
}
.ci-red  { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); color: #FCA5A5; }
.ci-blue { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.3); color: var(--blue-l); }
.clash-vs {
  font-size: 11px; font-weight: 700; color: var(--white-4);
  letter-spacing: 0.06em;
}

/* Bidir */
.bidir-vis {
  margin-top: 20px;
  display: flex; align-items: center; gap: 16px;
}
.bidir-app {
  display: flex; align-items: center; gap: 8px;
}
.bidir-app img {
  width: 24px; height: 24px;
  object-fit: contain;
  border-radius: 5px;
}
.bidir-tag {
  font-size: 12px; font-weight: 700; color: var(--white-3);
  background: var(--black-3); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 12px;
}

/* AI Glow */
.feat-card-inner { display: flex; align-items: flex-start; gap: 20px; position: relative; z-index: 2; }
.ai-glow-orb {
  position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 70%);
  pointer-events: none;
  animation: orbPulse 4s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ─── PRICING ─────────────────────────────────────────────────────────────── */
.pricing {
  position: relative; z-index: 2;
  padding: 120px 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plans.plans-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}
.plan {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.plan:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
}
.plan-featured {
  background: linear-gradient(160deg, rgba(59,130,246,0.08), var(--black-2));
  border-color: rgba(59,130,246,0.35);
  transform: scale(1.03);
}
.plan-featured:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(59,130,246,0.6);
  box-shadow: 0 24px 60px rgba(59,130,246,0.2);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.plan-header { margin-bottom: 28px; }
.plan-name {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white-3);
  margin-bottom: 12px;
}
.plan-price {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--font-head);
  margin-bottom: 10px;
}
.price-currency { font-size: 24px; font-weight: 700; color: var(--white-3); }
.price-amount { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-period { font-size: 16px; color: var(--white-3); }
.plan-desc { font-size: 13px; color: var(--white-3); }

.plan-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--white-2);
}
.feat-locked { color: var(--white-3) !important; opacity: 0.5; }

.btn-plan {
  display: block; text-align: center;
  height: 46px; line-height: 46px;
  border: 1px solid var(--border-h);
  border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  color: var(--white);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  background: var(--white-5);
}
.btn-plan:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.btn-plan-featured {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(59,130,246,0.3);
}
.btn-plan-featured:hover {
  background: var(--blue-l);
  border-color: var(--blue-l);
  box-shadow: 0 8px 30px rgba(59,130,246,0.5);
}

/* ─── CTA ─────────────────────────────────────────────────────────────────── */
.cta-section {
  position: relative; z-index: 2;
  padding: 120px 0;
  background: var(--black-1);
}
.cta-card {
  position: relative; overflow: hidden;
  background: var(--black-2);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
}
.cta-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.2), transparent 70%);
  pointer-events: none;
}
.cta-logos {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 36px;
  position: relative; z-index: 2;
}
.cta-logo {
  width: 52px; height: 52px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 16px rgba(59,130,246,0.3));
}
.cta-logo-connector {
  position: relative; width: 80px; height: 4px;
  display: flex; align-items: center;
}
.cta-pulse-line {
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue-d), var(--blue-l));
  border-radius: 1px;
}
.cta-pulse-dot {
  position: absolute; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue);
  transform: translateY(-50%);
  animation: ctaPulseDot 2s linear infinite;
}
@keyframes ctaPulseDot {
  0%   { left: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}
.cta-card h2 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 16px; position: relative; z-index: 2;
}
.cta-card p {
  font-size: 18px; color: var(--white-3);
  margin-bottom: 36px; position: relative; z-index: 2;
}
.cta-card .btn-primary { margin: 0 auto; display: inline-flex; position: relative; z-index: 2; }
.cta-footnote { margin-top: 16px !important; font-size: 13px !important; position: relative; z-index: 2; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--black);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--white-3);
}
.footer-logo-img {
  width: 22px; height: 22px;
  border-radius: 5px;
  object-fit: contain;
}
.footer-brand small {
  color: var(--white-4); font-size: 12px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px; color: var(--white-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

/* ─── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-visual { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Reset explicit placements and use span-2 for all large/medium/wide */
  .feat-large,
  .features-bento .feat-card:nth-child(2),
  .features-bento .feat-card:nth-child(3),
  .feat-medium,
  .features-bento .feat-card:nth-child(5),
  .features-bento .feat-card:nth-child(6),
  .feat-wide {
    grid-column: unset;
    grid-row: unset;
  }
  .feat-large  { grid-column: span 2; }
  .feat-medium { grid-column: span 2; }
  .feat-wide   { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plans.plans-two { grid-template-columns: 1fr; max-width: 480px; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .numbers-grid { flex-wrap: wrap; }
  .num-divider { display: none; }
  .num-card { width: 45%; }
  .features-bento { grid-template-columns: 1fr; }
  .feat-large,
  .features-bento .feat-card:nth-child(2),
  .features-bento .feat-card:nth-child(3),
  .feat-medium,
  .features-bento .feat-card:nth-child(5),
  .features-bento .feat-card:nth-child(6),
  .feat-wide {
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .step-visual { flex-direction: row; }
  .cta-card { padding: 48px 24px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .pain-callout { padding: 24px; }
}
@media (max-width: 500px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .pain-grid { grid-template-columns: 1fr; }
}

/* ─── REDUCED MOTION ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
#success-page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #060b14;
  padding: 40px 20px;
}

.success-wrap {
  text-align: center;
  max-width: 520px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  color: #3b82f6;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.success-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0f4ff;
  margin-bottom: 16px;
}

.success-sub {
  color: #8896b0;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 36px;
}

.success-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: #556070;
}

.success-note a {
  color: #3b82f6;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CHECKOUT MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #0d1526;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #556070;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: #f0f4ff;
  background: rgba(255, 255, 255, 0.06);
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f0f4ff;
  margin-bottom: 6px;
}

.modal-sub {
  color: #8896b0;
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.modal-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.modal-plan-name {
  font-weight: 600;
  color: #c8d8f0;
  font-size: 0.93rem;
}

.modal-plan-price {
  font-weight: 700;
  color: #3b82f6;
  font-size: 1rem;
}

.modal-field {
  margin-bottom: 16px;
}

.modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8896b0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.modal-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: #f0f4ff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.modal-field input:focus {
  border-color: rgba(59, 130, 246, 0.5);
}

.modal-field input::placeholder {
  color: #3a4a60;
}

.modal-error {
  color: #f87171;
  font-size: 0.83rem;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
}

.modal-submit {
  width: 100%;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-bottom: 16px;
}

.modal-submit:hover:not(:disabled) {
  background: #2563eb;
}

.modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-note {
  font-size: 0.76rem;
  color: #556070;
  line-height: 1.55;
  text-align: center;
}

.modal-note a {
  color: #4d80c0;
  text-decoration: none;
}

.modal-note a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER ADDITIONS
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-stripe {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #445060;
}

.footer-stripe strong {
  color: #6b7c96;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
}

.footer-copy p {
  font-size: 0.78rem;
  color: #445060;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BTN PLAN — button variant (was <a>, now <button>)
   ═══════════════════════════════════════════════════════════════════════════ */
button.btn-plan {
  font-family: inherit;
  cursor: pointer;
  border: none;
  width: 100%;
}

button.btn-primary {
  font-family: inherit;
  cursor: pointer;
  border: none;
}
