/* ╔══════════════════════════════════════════════════════════╗
   ║  BasketBridge Landing Page — Design System & Styles     ║
   ║  Dark futuristic aesthetic · Stripe/Vercel inspired     ║
   ╚══════════════════════════════════════════════════════════╝ */

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

:root {
  /* Palette — derived from the logo mark (logo-mark.svg):
     coral lattice #EF7A52 = primary accent, sky basket #7DB4DA = secondary.
     Neutrals are tinted toward the basket's navy (#1B4D6E) hue. */
  --bg:           #06090D;
  --bg-raised:    #0B1016;
  --bg-card:      #0F151C;
  --bg-card-alt:  #131A23;
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);

  --text:         #E8EEF3;
  --text-muted:   #8A97A5;
  --text-dim:     #5C6A79;

  --accent-rgb:   239 122 82;     /* coral, logo lattice */
  --accent:       #EF7A52;
  --accent-light: #F59874;
  --accent-glow:  rgb(var(--accent-rgb) / 0.25);
  --on-accent:    #140A06;        /* white on coral is 2.8:1 — fails AA */
  --accent-2-rgb: 125 180 218;    /* sky blue, logo basket */
  --accent-2:     #7DB4DA;
  --green:        #34D399;
  --green-dim:    rgba(52,211,153,0.15);
  --red:          #F4677F;        /* rose, kept distinct from coral accent */
  --red-dim:      rgba(244,103,127,0.12);
  --yellow:       #FBBF24;
  --yellow-dim:   rgba(251,191,36,0.12);

  /* Type */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Sizes */
  --container: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #fff; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgb(var(--accent-rgb) / 0.1);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-xs);
  color: var(--accent-light);
}

img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--on-accent); }

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── SECTION HEADER ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.65;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-desc {
  margin: 0 auto;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
/* Shimmer sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s var(--ease);
}
.btn:hover::before { left: 100%; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn--primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 32px rgb(var(--accent-rgb) / 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  color: var(--on-accent);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hover);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgb(var(--accent-rgb) / 0.06);
  transform: translateY(-1px);
}
.btn--outline:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  padding: 0.5rem 1rem;
}
.btn--ghost:hover { color: #fff; }
.btn--lg { padding: 0.85rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,9,13,0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav__icon { width: 40px; height: 40px; margin: -4px -2px -4px -6px; }
.nav__wordmark { font-family: 'Manrope', var(--font-sans, system-ui), sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; color: var(--text); }
.nav__tld { color: var(--accent); }
.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
  position: relative;
}
/* Animated underline slide on nav links */
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-light);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { width: 100%; }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.nav__mobile a {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.5rem 0;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Interactive particle constellation canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Mouse-following orb */
.hero__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / 0.12) 0%, rgb(var(--accent-2-rgb) / 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  filter: blur(30px);
}

.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgb(var(--accent-rgb) / 0.15) 0%, rgb(var(--accent-rgb) / 0.05) 40%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(var(--accent-2-rgb) / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--accent-2-rgb) / 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero entrance animations */
.hero__badge {
  margin-bottom: 1.5rem;
  animation: heroFadeIn 0.6s 0.1s var(--ease) both;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.25rem;
  animation: heroFadeIn 0.7s 0.2s var(--ease) both;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
  animation: heroFadeIn 0.7s 0.35s var(--ease) both;
}
.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  animation: heroFadeIn 0.7s 0.5s var(--ease) both;
}
.hero__microcopy {
  font-size: 0.82rem;
  color: var(--text-dim);
  animation: heroFadeIn 0.6s 0.65s var(--ease) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgb(var(--accent-rgb) / 0.08);
  border: 1px solid rgb(var(--accent-rgb) / 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
}
.badge__dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52,211,153,0.5);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(52,211,153,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 16px rgba(52,211,153,0.8); }
}

/* Shimmer gradient text animation */
.hero__gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent-light) 0%,
    #FBDCCD 25%,
    var(--accent-2) 50%,
    #FBDCCD 75%,
    var(--accent-light) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Example chat in the hero */
.chat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgb(var(--accent-2-rgb) / 0.08);
}
.chat__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
.chat__msg {
  font-size: 0.93rem;
  line-height: 1.55;
  border-radius: 14px;
}
.chat__msg--you {
  align-self: flex-end;
  max-width: 85%;
  padding: 0.7rem 1rem;
  background: rgb(var(--accent-2-rgb) / 0.14);
  border: 1px solid rgb(var(--accent-2-rgb) / 0.22);
  color: var(--text);
  border-bottom-right-radius: 4px;
}
.chat__msg--ai {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text);
}
.chat__product {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.chat__thumb {
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-xs);
}
.chat__product-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.chat__product-text strong { color: #fff; font-weight: 600; font-size: 0.92rem; }
.chat__price { font-weight: 700; color: #fff; }
.chat__link {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.88rem;
}
.chat__disclosure {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hero__chat {
  animation: heroCodeIn 1s 0.4s var(--ease) both;
}
@keyframes heroCodeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SOCIAL PROOF BAR ─── */
.proof {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.proof__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.proof__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.proof__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.5;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.proof__logo:hover {
  opacity: 1;
  transform: scale(1.08);
}
/* Gentle floating animation for proof logos */
.proof__logo:nth-child(odd)  { animation: floatY 5s ease-in-out infinite; }
.proof__logo:nth-child(even) { animation: floatY 5s 1.5s ease-in-out infinite; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ─── PROBLEM ─── */
.problem {
  padding: 6rem 0;
}
.problem__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.problem__card {
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.problem__card--bad {
  background: linear-gradient(135deg, rgba(244,103,127,0.04), rgba(244,103,127,0.02));
  border-color: rgba(244,103,127,0.15);
}
.problem__card--good {
  background: linear-gradient(135deg, rgba(52,211,153,0.06), rgba(52,211,153,0.02));
  border-color: rgba(52,211,153,0.2);
}
.problem__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.problem__card--bad .problem__icon {
  background: var(--red-dim);
  color: var(--red);
}
.problem__card--good .problem__icon {
  background: var(--green-dim);
  color: var(--green);
}
.problem__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}
.problem__card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.problem__card li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}
.problem__card--bad li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
}
.problem__card--good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
}

/* ─── HOW IT WORKS ─── */
.how {
  padding: 6rem 0;
  background: var(--bg-raised);
}
.how__steps {
  max-width: 700px;
  margin: 0 auto;
}
.how__step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.how__step-num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.1);
  border: 1px solid rgb(var(--accent-rgb) / 0.25);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-light);
  font-family: var(--mono);
  transition: all 0.3s var(--ease);
  animation: stepPulse 3s ease-in-out infinite;
}
.how__step:hover .how__step-num {
  background: rgb(var(--accent-rgb) / 0.2);
  border-color: var(--accent-light);
  box-shadow: 0 0 20px rgb(var(--accent-rgb) / 0.2);
  transform: scale(1.08);
}
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0); }
  50%      { box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / 0.08); }
}
.how__step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  transition: color 0.2s var(--ease);
}
.how__step:hover .how__step-content h3 { color: var(--accent-light); }
.how__step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.how__connector {
  width: 2px;
  height: 3rem;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  margin-left: 27px;
  margin: 0.5rem 0 0.5rem 27px;
  animation: connectorGlow 2s ease-in-out infinite alternate;
}
@keyframes connectorGlow {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

/* ─── ADD IT ─── */
.add {
  padding: 6rem 0;
}
.add__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.add-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  background: linear-gradient(180deg, rgb(var(--accent-rgb) / 0.05), var(--bg-card) 45%);
  border: 1px solid rgb(var(--accent-rgb) / 0.25);
  border-radius: var(--radius);
  scroll-margin-top: 96px;
}
.add-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}
.add-card__steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 1;
  margin-bottom: 1.75rem;
}
.add-card__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.add-card__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -0.05rem;
  width: 1.7rem; height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.14);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
}
.add-card__steps strong { color: var(--text); }

/* ─── WHAT TO ASK ─── */
.ask {
  padding: 6rem 0;
  background: var(--bg-raised);
}
.ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.ask__item {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

/* ─── SECURITY ─── */
.security {
  padding: 6rem 0;
}
.security__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.security__card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.security__card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.security__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.security__card:hover .security__icon {
  transform: scale(1.15) rotate(-5deg);
}
.security__card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.security__card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.security__card p a { white-space: nowrap; }

/* ─── FAQ ─── */
.faq {
  padding: 6rem 0;
  background: var(--bg-raised);
}
.faq__grid {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.faq__item[open] {
  border-color: rgb(var(--accent-rgb) / 0.2);
}
.faq__item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.faq__item:hover summary { color: var(--accent-light); }
.faq__item[open] summary  { color: var(--accent-light); }
.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-light);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  animation: faqExpand 0.35s var(--ease);
}
@keyframes faqExpand {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── FINAL CTA ─── */
.final-cta {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta__glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgb(var(--accent-rgb) / 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}
.final-cta__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.final-cta__options {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* ─── FOOTER ─── */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__brand p {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.footer__col a {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer__col a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.footer__bottom p {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__chat { max-width: 520px; }
  .security__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.open { display: flex; }

  .hero {
    padding: 7rem 0 3rem;
    min-height: auto;
  }
  .hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .problem__compare { grid-template-columns: 1fr; }
  .add__grid, .ask__grid { grid-template-columns: 1fr; }
  .how__step { gap: 1.25rem; }

  .security__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__links { flex-wrap: wrap; justify-content: center; }

  .final-cta__options { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .proof__logos { gap: 1.5rem; }
}

/* ─── SCROLL ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale-in variant for pricing cards */
.scale-in {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── SMOOTH SCROLL OFFSET ─── */
section[id] {
  scroll-margin-top: 80px;
}

/* ─── PREFERS REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__canvas { display: none; }
  .hero__orb    { display: none; }
  .fade-in,
  .scale-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── SECTION LABEL ANIMATED LINE ─── */
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  margin-right: 0.5rem;
  animation: labelLine 2s ease-in-out infinite alternate;
}
@keyframes labelLine {
  from { width: 12px; opacity: 0.5; }
  to   { width: 24px; opacity: 1; }
}
