/* ─── RESET & BASE ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0f1e35;   /* primary text — dark navy (logo "Card" colour) */
  --navy-mid:   #ffffff;   /* card / surface background */
  --navy-light: #f5f8fc;   /* subtle tinted surface */
  --blue:       #4d94d4;
  --blue-light: #7cc8e8;
  --blue-dark:  #2d6eb8;
  --white:      #ffffff;
  --w80:  rgba(15,30,53,0.72);   /* body text */
  --w50:  rgba(15,30,53,0.50);   /* muted text */
  --w20:  rgba(15,30,53,0.14);   /* subtle border */
  --w10:  rgba(15,30,53,0.08);   /* very subtle border */
  --w05:  rgba(15,30,53,0.04);   /* near-invisible tint */
  --b30:  rgba(77,148,212,0.30);
  --b20:  rgba(77,148,212,0.20);
  --b10:  rgba(77,148,212,0.10);
  --font-d: 'Outfit', 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --font-b: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: #f0f6ff;
  color: var(--navy);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── KEYFRAMES ─────────────────────────────────────────────────────────── */
@keyframes blob1 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(50px,-60px) scale(1.12); }
  66%      { transform: translate(-35px,35px) scale(0.9); }
}
@keyframes blob2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-55px,40px) scale(0.88); }
  66%      { transform: translate(45px,-45px) scale(1.1); }
}
@keyframes blob3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(35px,55px) scale(1.15); }
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-22px) rotate(2deg); }
}
@keyframes floatAlt {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
@keyframes pulseRing {
  0%   { transform: scale(0.75); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 28px rgba(77,148,212,0.28); }
  50%      { box-shadow: 0 0 58px rgba(77,148,212,0.55); }
}
@keyframes progressFill {
  from { width: 0%; }
  to   { width: 40%; }
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.42s; }

/* ─── NAV ───────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-color: var(--b20);
  box-shadow: 0 1px 24px rgba(15,30,53,0.08);
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo em { color: var(--blue); font-style: normal; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--w80); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue) !important; color: #ffffff !important;
  padding: 9px 20px; border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--blue-light) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none; background: none; border: 0;
  width: 44px; height: 44px; padding: 10px; cursor: pointer; z-index: 201;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--navy);
  border-radius: 2px; margin: 5px 0;
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ──────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 128px 60px 88px;
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cursor-glow {
  position: absolute; pointer-events: none;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,148,212,0.18) 0%, rgba(77,148,212,0.06) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}
#hero:hover .cursor-glow { opacity: 1; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(88px); opacity: 0.30;
}
.blob-a {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #b8d8f5 0%, transparent 70%);
  top: -120px; right: 22%;
  animation: blob1 14s ease-in-out infinite;
}
.blob-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #7cc8e8 0%, transparent 70%);
  bottom: -60px; right: 8%;
  animation: blob2 16s ease-in-out infinite;
  opacity: 0.22;
}
.blob-c {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #c5dff7 0%, transparent 70%);
  top: 32%; left: -110px;
  animation: blob3 11s ease-in-out infinite;
}

.hero-grid {
  max-width: 1280px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}

/* badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--b10); border: 1px solid var(--b30);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.75rem; font-weight: 600; color: var(--blue-dark);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 26px;
  animation: fadeUp 0.8s ease both;
}
.badge-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; position: relative;
}
.badge-pulse::after {
  content: ''; position: absolute; inset: -3px;
  border-radius: 50%; border: 1px solid var(--blue);
  animation: pulseRing 1.6s ease-out infinite;
}

/* headline */
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 700; line-height: 1.13;
  letter-spacing: -0.025em; margin-bottom: 22px;
  animation: fadeUp 0.8s ease 0.10s both;
}
.hero-h1 .blue { color: var(--blue); }
.hero-h1 .italic { font-style: italic; }

.hero-tagline {
  font-size: 1.1rem; color: var(--w80);
  line-height: 1.75; font-weight: 300;
  max-width: 480px; margin-bottom: 38px;
  animation: fadeUp 0.8s ease 0.18s both;
}

.hero-actions {
  display: flex; gap: 14px; align-items: center;
  animation: fadeUp 0.8s ease 0.26s both;
}

/* buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #ffffff;
  padding: 14px 26px; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.93rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(77,148,212,0.38);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--w80);
  padding: 14px 22px; border-radius: 8px;
  font-family: var(--font-b); font-size: 0.93rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--w20); cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--b30); color: var(--blue-dark); background: var(--b10); }

/* stats */
.hero-stats {
  display: flex; gap: 36px;
  margin-top: 50px; padding-top: 32px;
  border-top: 1px solid var(--w10);
  animation: fadeUp 0.8s ease 0.34s both;
}
.stat-num {
  font-family: var(--font-d); font-size: 1.7rem;
  font-weight: 700; color: var(--blue);
}
.stat-lbl {
  font-size: 0.72rem; color: var(--w50);
  text-transform: uppercase; letter-spacing: 0.09em;
}

/* ─── HERO VISUAL ───────────────────────────────────────────────────────── */
.hero-visual {
  position: relative; height: 640px;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 0.8s ease 0.14s both;
}

/* Spline canvas — shown on load */
#spline-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.9s ease;
  pointer-events: none;
}
#spline-canvas.loaded { opacity: 1; pointer-events: auto; }

/* CSS card scene fallback */
.card-scene { position: relative; width: 100%; height: 100%; perspective: 1200px; }

/* ── 3 separate fanned cards ───────────────────────────────────────────── */

/* Base card */
.vcard {
  width: 280px; height: 175px;
  border-radius: 18px;
  position: absolute;
  overflow: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.55s cubic-bezier(0.22,1,0.36,1),
              filter 0.4s ease;
}

/* Brushed-metal hairline + diagonal sheen overlay (all cards) */
.vcard::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      108deg,
      rgba(255,255,255,0.055) 0px,
      rgba(255,255,255,0.055) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(118deg, rgba(255,255,255,0.22) 0%, transparent 42%, rgba(0,0,0,0.18) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}
/* Soft highlight sheen near top-left + diagonal shine sweep on hover */
.vcard::after {
  content: '';
  position: absolute;
  top: -40%; left: -20%;
  width: 80%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.28) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* Shine sweep bar — hidden off-card, swipes across on hover */
.vcard-shine {
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255,255,255,0.14) 40%,
    rgba(255,255,255,0.42) 50%,
    rgba(255,255,255,0.14) 60%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 2;
  transition: left 0.85s cubic-bezier(0.22,1,0.36,1);
}
.vcard:hover .vcard-shine { left: 130%; }

/* Fanned positions — vertically staggered with generous gaps (no overlap) */
.vcard--pos-top {
  top: 10px; left: 6%;
  --tilt: -8deg;
  transform: rotate(-8deg);
  animation: cardFloatA 7s ease-in-out infinite;
  z-index: 3;
}
.vcard--pos-mid {
  top: 230px; left: 44%;
  --tilt: 5deg;
  transform: rotate(5deg);
  animation: cardFloatB 8.5s ease-in-out infinite 0.4s;
  z-index: 2;
}
.vcard--pos-bot {
  top: 450px; left: 10%;
  --tilt: -4deg;
  transform: rotate(-4deg);
  animation: cardFloatA 9s ease-in-out infinite reverse 0.8s;
  z-index: 1;
}

.vcard:hover {
  transform: rotate(var(--tilt)) translateY(-14px) scale(1.05);
  z-index: 10;
  filter: brightness(1.08) saturate(1.1);
  animation-play-state: paused;
}
.vcard--virtual:hover {
  box-shadow:
    0 14px 34px rgba(77,148,212,0.48),
    0 32px 72px rgba(77,148,212,0.42),
    0 0 0 1px rgba(255,255,255,0.35) inset;
}
.vcard--disposable:hover {
  box-shadow:
    0 14px 34px rgba(32,96,176,0.55),
    0 32px 72px rgba(20,60,130,0.48),
    0 0 0 1px rgba(255,255,255,0.20) inset;
}
.vcard--onetime:hover {
  box-shadow:
    0 14px 34px rgba(10,30,70,0.65),
    0 32px 72px rgba(8,22,55,0.55),
    0 0 0 1px rgba(124,200,232,0.22) inset;
}
.vcard:hover::after { opacity: 1.4; }

/* Per-card colour — matched to reference photo */
.vcard--virtual {
  background: linear-gradient(125deg, #9dd4ee 0%, #6bb3dd 40%, #4d94d4 70%, #7cc8e8 100%);
  box-shadow:
    0 6px 20px rgba(77,148,212,0.35),
    0 22px 56px rgba(77,148,212,0.28);
}
.vcard--disposable {
  background: linear-gradient(125deg, #3f7fc4 0%, #2560a8 50%, #1d4e90 100%);
  box-shadow:
    0 6px 20px rgba(32,96,176,0.40),
    0 22px 56px rgba(20,60,130,0.32);
}
.vcard--onetime {
  background: linear-gradient(125deg, #1a3560 0%, #0c1e40 55%, #102b55 100%);
  box-shadow:
    0 6px 20px rgba(10,30,70,0.50),
    0 22px 56px rgba(8,22,55,0.40);
}

/* Holographic chip (square, foil-like) */
.vcard-holo {
  width: 26px; height: 26px; border-radius: 5px;
  background: conic-gradient(
    from 45deg,
    #e6f4ff, #c9e4f9, #a0c7e8, #dff0fb, #f2faff, #bcdcf2, #e6f4ff
  );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.35),
    0 1px 3px rgba(0,0,0,0.22);
  flex-shrink: 0;
  position: relative;
}
.vcard-holo::after {
  content: '';
  position: absolute; inset: 3px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.55) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.6;
}
.vcard-holo--sm { width: 20px; height: 20px; border-radius: 4px; }

/* EMV chip (gold) */
.vcard-chip {
  width: 34px; height: 26px; border-radius: 4px;
  background:
    linear-gradient(135deg, #e6c156 0%, #c49a32 35%, #a0781f 60%, #d9b345 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.25),
    inset 0 -1px 2px rgba(0,0,0,0.35),
    0 1px 3px rgba(0,0,0,0.28);
  position: relative;
  flex-shrink: 0;
}
.vcard-chip::before,
.vcard-chip::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.28);
}
.vcard-chip::before {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
}
.vcard-chip::after {
  left: 0; right: 0; top: 50%;
  height: 1px;
}

/* Brand group (logo + type) */
.vcard-brand { text-align: right; }

/* Card type label */
.vcard-type {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Micro text for one-time-use labels */
.vcard-micro {
  font-size: 0.5rem; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* Chip row (virtual card) */
.vcard-chip-row {
  display: flex; align-items: center; gap: 14px;
}

/* Masked card number */
.vcard-num {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.08em;
}
.vcard-num--right { text-align: right; }

/* Colour tokens per card */
.vcard--virtual .vcard-logo { color: #ffffff; }
.vcard--virtual .vcard-logo em { color: #ffffff; }
.vcard--virtual .vcard-type { color: rgba(15,30,53,0.55); }
.vcard--virtual .vcard-num { color: rgba(15,30,53,0.88); }
.vcard--virtual .vcard-exp-val { color: var(--navy); }
.vcard--virtual .vcard-exp-lbl { color: rgba(15,30,53,0.55); }

.vcard--disposable .vcard-logo,
.vcard--onetime .vcard-logo { color: #ffffff; }
.vcard--disposable .vcard-logo em,
.vcard--onetime .vcard-logo em { color: #ffffff; }
.vcard--disposable .vcard-type,
.vcard--onetime .vcard-type { color: rgba(255,255,255,0.60); }
.vcard--disposable .vcard-num,
.vcard--onetime .vcard-num { color: rgba(255,255,255,0.92); }
.vcard--disposable .vcard-exp-val,
.vcard--onetime .vcard-exp-val { color: rgba(255,255,255,0.95); }
.vcard--disposable .vcard-exp-lbl,
.vcard--onetime .vcard-exp-lbl { color: rgba(255,255,255,0.55); }

.vcard-inner {
  padding: 20px 22px; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; z-index: 1;
}
.vcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vcard-logo {
  font-family: var(--font-d); font-size: 1.55rem; font-weight: 700;
  color: var(--navy); line-height: 1;
  letter-spacing: -0.02em;
}
.vcard-logo em { color: var(--blue); font-style: normal; }
.vcard--disposable .vcard-logo,
.vcard--onetime .vcard-logo {
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}
.vcard-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.vcard-name { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.92); letter-spacing: 0.03em; margin-top: 2px; text-transform: uppercase; }
.vcard--virtual .vcard-name { color: var(--navy); }
.vcard-exp-lbl { font-size: 0.54rem; text-transform: uppercase; letter-spacing: 0.08em; }
.vcard-exp-val { font-size: 0.78rem; font-weight: 600; }

/* Independent per-card float keyframes (small amplitude — preserves no-overlap) */
@keyframes cardFloatA {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50%      { transform: rotate(var(--tilt)) translateY(-4px); }
}
@keyframes cardFloatB {
  0%, 100% { transform: rotate(var(--tilt)) translateY(0); }
  50%      { transform: rotate(var(--tilt)) translateY(-5px); }
}
/* Centered mobile card float (keeps translate(-50%,-50%) anchor) */
@keyframes cardFloatMobile {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg) translateY(0); }
  50%      { transform: translate(-50%, -50%) rotate(-3deg) translateY(-6px); }
}

/* Floating UI widgets */
.fui {
  position: absolute;
  background: linear-gradient(160deg, #ffffff 60%, rgba(77,148,212,0.04) 100%);
  border: 1px solid rgba(77,148,212,0.14);
  border-radius: 18px; padding: 14px 17px;
  box-shadow:
    0 2px 6px rgba(77,148,212,0.06),
    0 8px 28px rgba(15,30,53,0.09),
    0 20px 48px rgba(15,30,53,0.07);
}
.fui-1 { top: 28px; right: 16px; width: 168px; animation: floatAlt 8s ease-in-out infinite; }
.fui-2 { top: 370px; left: 0; width: 160px; animation: floatAlt 7.2s ease-in-out infinite reverse; }
.fui-3 { bottom: -28px; right: 16px; width: 148px; animation: floatAlt 9s ease-in-out infinite 1.2s; }
.fui-lbl { font-size: 0.62rem; color: rgba(15,30,53,0.45); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.fui-val { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.fui-val .g { color: var(--blue); }
.fui-val .sm { font-size: 0.65rem; color: rgba(15,30,53,0.45); font-family: var(--font-b); font-weight: 400; }
.fui-bar { height: 4px; background: rgba(15,30,53,0.08); border-radius: 2px; margin-top: 7px; overflow: hidden; }
.fui-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  animation: progressFill 2.4s ease 0.5s both;
}
.fui-tx { display: flex; align-items: center; gap: 9px; }
.fui-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.fui-tx-name { font-size: 0.72rem; font-weight: 600; color: var(--navy); }
.fui-tx-amt { font-size: 0.66rem; color: rgba(15,30,53,0.50); }
.fui-green { color: #16a34a; font-size: 0.65rem; font-weight: 700; }

/* ─── SECTION COMMONS ───────────────────────────────────────────────────── */
section { padding: 104px 60px; }
.container { max-width: 1280px; margin: 0 auto; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700;
  color: var(--blue); text-transform: uppercase; letter-spacing: 0.13em;
  margin-bottom: 14px;
}
.sec-tag::before {
  content: ''; display: block;
  width: 22px; height: 1px; background: var(--blue);
}
.sec-tag.center { justify-content: center; }
.sec-tag.center::before { display: none; }

.sec-title {
  font-family: var(--font-d);
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -0.022em; margin-bottom: 16px;
}
.sec-sub {
  font-size: 1.02rem; color: var(--w80);
  line-height: 1.72; font-weight: 300; max-width: 560px;
}
.sec-sub.center { max-width: 580px; margin: 0 auto; text-align: center; }

/* divider line */
.section-divider {
  position: relative;
}
.section-divider::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b20), transparent);
}

/* ─── PROBLEM ───────────────────────────────────────────────────────────── */
#problem { background: #ffffff; }

.problem-hd { max-width: 600px; margin-bottom: 56px; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.p-card {
  background: linear-gradient(160deg, #ffffff 55%, rgba(77,148,212,0.03) 100%);
  border: 1px solid rgba(77,148,212,0.10);
  border-radius: 22px; padding: 32px 26px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,30,53,0.04), 0 1px 2px rgba(15,30,53,0.02);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s;
}
.p-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.p-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(77,148,212,0.08), 0 24px 60px rgba(77,148,212,0.13);
  border-color: rgba(77,148,212,0.20);
}
.p-card:hover::before { transform: scaleX(1); }
.p-icon {
  width: 52px; height: 52px; color: var(--blue);
  background: linear-gradient(135deg, rgba(77,148,212,0.08), rgba(77,148,212,0.18));
  border: 1px solid rgba(77,148,212,0.16);
  border-radius: 14px; padding: 12px;
  box-sizing: border-box; margin-bottom: 22px;
  transition: background 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.p-card:hover .p-icon {
  background: linear-gradient(135deg, rgba(77,148,212,0.15), rgba(77,148,212,0.28));
  transform: scale(1.08) rotate(-3deg);
}
.p-card h3 {
  font-family: var(--font-d); font-size: 1.02rem;
  font-weight: 600; margin-bottom: 10px; line-height: 1.32;
}
.p-card p { font-size: 0.86rem; color: var(--w50); line-height: 1.65; }

/* ─── HOW IT WORKS ──────────────────────────────────────────────────────── */
#how { position: relative; background: #f8fbff; }
.hiw-hd { text-align: center; margin-bottom: 92px; }

/* ── Journey container ── */
.journey {
  max-width: 920px; margin: 0 auto;
  position: relative;
}

/* SVG vertical path that draws on scroll */
.journey-svg {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; width: 4px;
  pointer-events: none; overflow: visible;
  z-index: 0;
}

/* ── Step rows ── */
.js-row {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  padding: 44px 0;
  position: relative; z-index: 1;
}

/* ── Numbered node ── */
.js-node {
  grid-column: 2; grid-row: 1;
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-light), var(--blue), var(--blue-dark));
  color: var(--white);
  font-family: var(--font-d); font-size: 1.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 8px rgba(77,148,212,0.08), 0 16px 40px rgba(77,148,212,0.25);
  /* pop-in state */
  opacity: 0; transform: scale(0.35);
  will-change: opacity, transform;
  transition: opacity 0.5s ease 0.15s,
              transform 0.5s cubic-bezier(0.175,0.885,0.32,1.55) 0.15s;
}
.js-node.in { opacity: 1; transform: scale(1); }
/* outer ring */
.js-node::after {
  content: ''; position: absolute; inset: -9px;
  border-radius: 50%; border: 1px solid var(--b30);
}
/* pulse ring (fires after pop-in) */
.js-node.in::before {
  content: ''; position: absolute; inset: -16px;
  border-radius: 50%; border: 1px solid var(--b20);
  animation: pulseRing 2.8s ease-out infinite 0.6s;
}

/* ── Content card ── */
.js-card {
  background: linear-gradient(160deg, #ffffff 55%, rgba(77,148,212,0.03) 100%);
  border: 1px solid rgba(77,148,212,0.10);
  border-radius: 22px; padding: 32px 28px;
  position: relative;
  box-shadow: 0 2px 8px rgba(15,30,53,0.04);
  /* slide-in state */
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.65s ease 0.05s,
              transform 0.65s cubic-bezier(0.22,1,0.36,1) 0.05s,
              box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s;
}
.js-card:hover {
  box-shadow: 0 8px 24px rgba(77,148,212,0.10), 0 20px 52px rgba(77,148,212,0.12);
  border-color: rgba(77,148,212,0.22);
}
/* Left card — col 1, slides in from left */
.js-l .js-card { grid-column: 1; grid-row: 1; transform: translateX(-52px); margin-right: 20px; }
/* Right card — col 3, slides in from right */
.js-r .js-card { grid-column: 3; grid-row: 1; transform: translateX(52px); margin-left: 20px; }
/* Void spacer */
.js-l .js-void { grid-column: 3; grid-row: 1; }
.js-r .js-void { grid-column: 1; grid-row: 1; }

.js-card.in { opacity: 1; transform: translateX(0); }

/* top gradient accent */
.js-card::before {
  content: ''; position: absolute;
  top: 0; left: 20px; right: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  border-radius: 0 0 2px 2px;
}
/* arrow notch pointing toward the center node */
.js-l .js-card::after {
  content: ''; position: absolute;
  right: -10px; top: 50%; transform: translateY(-50%);
  border: 9px solid transparent;
  border-left-color: #ffffff;
}
.js-r .js-card::after {
  content: ''; position: absolute;
  left: -10px; top: 50%; transform: translateY(-50%);
  border: 9px solid transparent;
  border-right-color: #ffffff;
}

/* step label */
.js-lbl {
  font-size: 0.65rem; font-weight: 700; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 14px;
}
.js-lbl::before {
  content: ''; display: block;
  width: 14px; height: 1px; background: var(--blue);
}

/* card icon box */
.js-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, rgba(77,148,212,0.08), rgba(77,148,212,0.18));
  border: 1px solid rgba(77,148,212,0.16);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 18px;
}
.js-card h3 {
  font-family: var(--font-d); font-size: 1.2rem;
  font-weight: 700; margin-bottom: 10px; line-height: 1.28;
}
.js-card p { font-size: 0.875rem; color: var(--w50); line-height: 1.72; }

/* ─── FEATURES ──────────────────────────────────────────────────────────── */
#features { background: #f0f6ff; }

.feat-hd {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 32px; margin-bottom: 52px;
}

.feat-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
}

.f-card {
  background: linear-gradient(160deg, #ffffff 55%, rgba(77,148,212,0.03) 100%);
  border: 1px solid rgba(77,148,212,0.10);
  border-radius: 22px; padding: 34px 28px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,30,53,0.04), 0 1px 2px rgba(15,30,53,0.02);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s;
}
.f-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.f-card::after {
  content: ''; position: absolute;
  bottom: -50px; right: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,148,212,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.45s; pointer-events: none;
}
.f-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(77,148,212,0.08), 0 24px 60px rgba(77,148,212,0.13);
  border-color: rgba(77,148,212,0.20);
}
.f-card:hover::before { transform: scaleX(1); }
.f-card:hover::after { opacity: 1; }
.f-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(77,148,212,0.08), rgba(77,148,212,0.18));
  border: 1px solid rgba(77,148,212,0.16);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); margin-bottom: 22px;
  transition: background 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.f-card:hover .f-icon {
  background: linear-gradient(135deg, rgba(77,148,212,0.15), rgba(77,148,212,0.28));
  transform: scale(1.08) rotate(-3deg);
}
.f-card h3 { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; line-height: 1.32; }
.f-card p { font-size: 0.86rem; color: var(--w50); line-height: 1.65; }

/* ─── WHO IT'S FOR ──────────────────────────────────────────────────────── */
#for-who { position: relative; background: #ffffff; }

.fw-hd { text-align: center; margin-bottom: 60px; }

.audience-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 30px; max-width: 980px; margin: 0 auto;
}

.a-card {
  background: linear-gradient(160deg, #ffffff 50%, rgba(77,148,212,0.03) 100%);
  border: 1px solid rgba(77,148,212,0.10);
  border-radius: 24px; padding: 42px 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,30,53,0.04), 0 1px 2px rgba(15,30,53,0.02);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.4s cubic-bezier(0.22,1,0.36,1),
              border-color 0.3s;
}
.a-card::before {
  content: ''; position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,148,212,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.a-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue), var(--blue-light));
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.a-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(77,148,212,0.10), 0 28px 64px rgba(77,148,212,0.14);
  border-color: rgba(77,148,212,0.20);
}
.a-card:hover::after { transform: scaleX(1); }
.role-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(77,148,212,0.10), rgba(77,148,212,0.20));
  border: 1px solid rgba(77,148,212,0.22);
  border-radius: 100px; padding: 6px 15px;
  font-size: 0.72rem; font-weight: 700; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 22px;
}
.a-card h3 { font-family: var(--font-d); font-size: 1.45rem; font-weight: 700; margin-bottom: 10px; }
.a-card > p { font-size: 0.875rem; color: var(--w50); margin-bottom: 26px; line-height: 1.68; }
.cap-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cap-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--w80); }
.chk { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); margin-top: 2px; }

/* ─── EARLY ACCESS ──────────────────────────────────────────────────────── */
#early-access {
  background: linear-gradient(145deg, #e8f3fc 0%, #dceefa 50%, #e4f0fb 100%);
  position: relative; overflow: hidden; text-align: center;
}
.cta-glow {
  position: absolute; width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,148,212,0.12) 0%, transparent 68%);
  top: -250px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.ea-content { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.ea-content .sec-title { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-bottom: 16px; }

.signup-form { display: flex; gap: 12px; max-width: 490px; margin: 0 auto; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.email-input {
  flex: 1; background: #ffffff; border: 1px solid var(--b20);
  border-radius: 8px; padding: 14px 18px;
  color: var(--navy); font-family: var(--font-b); font-size: 0.94rem;
  outline: none; transition: border-color 0.2s, background 0.2s;
}
.email-input::placeholder { color: var(--w50); }
.email-input:focus { border-color: var(--b30); background: var(--b10); }
.email-input.err { border-color: #ef4444; }
.form-note { font-size: 0.78rem; color: var(--w50); margin-top: 14px; }

/* ─── TOAST ─────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 30px; right: 30px;
  background: #ffffff; border: 1px solid var(--b20);
  border-radius: 14px; padding: 16px 22px;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.88rem; color: var(--navy);
  box-shadow: 0 16px 48px rgba(15,30,53,0.14);
  transform: translateY(110px); opacity: 0;
  transition: transform 0.42s cubic-bezier(0.175,0.885,0.32,1.275), opacity 0.42s ease;
  z-index: 500; max-width: 340px;
}
#toast.show { transform: translateY(0); opacity: 1; }
.toast-ic {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px;
  background: rgba(34,197,94,0.14);
  display: flex; align-items: center; justify-content: center;
  color: #22c55e;
}
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-sub { font-size: 0.78rem; color: var(--w50); }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
footer {
  padding: 48px 60px;
  border-top: 1px solid var(--w10);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-logo { font-family: var(--font-d); font-size: 1.4rem; font-weight: 700; }
.footer-logo em { color: var(--blue); font-style: normal; }
.footer-tagline { font-size: 0.82rem; color: var(--w50); margin-top: 4px; }
.footer-note { font-size: 0.78rem; color: var(--w50); text-align: right; line-height: 1.65; }
.footer-note strong { color: var(--blue); font-weight: 500; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #nav { padding: 18px 32px; }
  #hero, section { padding-left: 32px; padding-right: 32px; }
  footer { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 820px) {
  .problem-grid { grid-template-columns: repeat(2,1fr); }
  .feat-grid { grid-template-columns: repeat(2,1fr); }
  .feat-hd { flex-direction: column; align-items: flex-start; }
  .feat-hd .sec-sub { max-width: 100%; }

  .hero-grid { gap: 48px; }
  .hero-visual { height: 460px; }
  section { padding: 80px 32px; }
  .hiw-hd { margin-bottom: 56px; }
  .js-row { grid-template-columns: 1fr 72px 1fr; padding: 32px 0; }
  .js-node { width: 72px; height: 72px; font-size: 1.5rem; }
}

@media (max-width: 768px) {
  #nav { padding: 16px 20px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--b20);
    padding: 12px 20px 20px; margin: 0;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 14px 4px;
    font-size: 1rem; border-bottom: 1px solid var(--w10);
  }
  .nav-links .nav-cta { margin-top: 10px; text-align: center; border-bottom: 0; }

  #hero { padding: 96px 20px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: 1; height: 270px; }
  .card-scene { transform: none; height: 270px; }
  .fui { display: none; }
  .vcard--pos-top, .vcard--pos-bot { display: none; }
  .vcard--pos-mid {
    top: 50%; left: 50%;
    width: 280px; height: 175px;
    transform: translate(-50%, -50%) rotate(-3deg);
    animation: cardFloatMobile 6s ease-in-out infinite;
  }
  .vcard--pos-mid:hover {
    transform: translate(-50%, -50%) rotate(-3deg) scale(1.03);
    animation-play-state: paused;
  }

  section { padding: 68px 20px; }
  footer { padding: 32px 20px; flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }

  /* journey — mobile: stack vertically, node on top of card */
  .journey-svg { display: none; }
  .js-row {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
  .js-l .js-card,
  .js-r .js-card {
    grid-column: 1; grid-row: 2;
    margin: 0; transform: translateY(18px);
  }
  .js-l .js-card.in,
  .js-r .js-card.in { transform: translateY(0); }
  .js-card { padding: 24px 20px; border-radius: 16px; }
  .js-node {
    grid-column: 1; grid-row: 1;
    width: 72px; height: 72px; font-size: 1.45rem;
    margin: 0 auto 16px;
  }
  .js-node::after { inset: -6px; }
  .js-l .js-void,
  .js-r .js-void { display: none; }
  .js-l .js-card::after,
  .js-r .js-card::after { display: none; }

  .audience-grid { grid-template-columns: 1fr; }
  .signup-form { flex-direction: column; }

  .hero-tagline { font-size: 1rem; margin-bottom: 28px; }
  .hero-stats { margin-top: 32px; padding-top: 24px; gap: 24px; }
  .sec-hd, .hiw-hd, .feat-hd { margin-bottom: 48px; }
}

@media (max-width: 540px) {
  .problem-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  #hero { padding: 88px 18px 48px; }
  section { padding: 56px 18px; }
  .hero-h1 { font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: 18px; }
  .hero-badge { font-size: 0.7rem; margin-bottom: 18px; }
  .hero-visual { height: 240px; }
  .card-scene { height: 240px; }
  .vcard--pos-mid { width: 260px; height: 162px; }
  .vcard-num { font-size: 0.8rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 13px 20px; }
  .hero-actions { width: 100%; gap: 10px; }
  .stat-num { font-size: 1.4rem; }
  .js-card h3 { font-size: 1.05rem; }
  .js-card p { font-size: 0.84rem; }
}

@media (max-width: 390px) {
  #hero { padding: 80px 14px 40px; }
  section { padding: 48px 14px; }
  .hero-h1 { font-size: clamp(1.75rem, 9vw, 2.2rem); }
  .hero-visual, .card-scene { height: 220px; }
  .vcard--pos-mid { width: 240px; height: 150px; }
  .hero-stats { gap: 16px; }
  .nav-logo { font-size: 1.3rem; }
}
