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

:root {
  /* Background layers */
  --bg:      #02020c;
  --bg2:     #07071a;
  --bg3:     #0b0b22;
  --bg4:     #10102a;

  /* Glass */
  --glass:        rgba(255,255,255,.042);
  --glass-h:      rgba(255,255,255,.075);
  --glass-border: rgba(255,255,255,.08);
  --glass-border-h: rgba(255,255,255,.16);

  /* Text */
  --text:       #ffffff;
  --text-muted: rgba(255,255,255,.52);
  --text-dim:   rgba(255,255,255,.22);

  /* Accent — electric blue */
  --accent:       #3b82f6;
  --accent-hover: #60a5fa;
  --accent-dim:   rgba(59,130,246,.14);
  --accent-glow:  rgba(59,130,246,.45);

  /* Status */
  --danger:  #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --info:    #38bdf8;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 4px 24px rgba(0,0,0,.6);
  --shadow-md: 0 12px 48px rgba(0,0,0,.85);

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-doc:  "Georgia", "Times New Roman", serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }

/* ─── Lucide icons ─────────────────────────────────────────────────────────────── */
[data-lucide] { display: inline-block; }
.feature-icon svg,
.feature-icon [data-lucide] svg {
  width: 22px; height: 22px;
  color: var(--accent); stroke-width: 1.8;
}
.process-icon svg,
.process-icon [data-lucide] svg {
  width: 24px; height: 24px;
  color: var(--accent); stroke-width: 1.6;
}
.brand-icon svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.2; display: block; }
.navbar-links svg { width: 15px; height: 15px; vertical-align: middle; }

/* ─── Section label ────────────────────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,.25);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* ─── Navbar ───────────────────────────────────────────────────────────────────── */
/* ── Floating pill nav (matches landing page) ── */
.navbar {
  position: fixed;
  top: 18px;
  left: 20px;
  right: 20px;
  width: auto;
  max-width: 880px;
  margin: 0 auto;
  z-index: 200;
}
.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 100px;
  padding: 9px 9px 9px 18px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  flex-shrink: 0;
}
.navbar-brand img {
  width: 26px; height: 26px;
  border-radius: 7px;
  object-fit: contain;
}
.navbar-center {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}
.navbar-center > a {
  pointer-events: auto;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: 6px 13px;
  border-radius: 100px;
  transition: color .15s, background .15s;
}
.navbar-center > a:hover,
.navbar-center > a.active { color: #fff; background: rgba(255,255,255,.07); }
.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
/* Offset page content so it doesn't sit behind fixed nav */
.main-content { padding-top: 80px; }

/* Pill buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-pill:hover { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-pill-primary {
  background: #f97316;
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 16px rgba(249,115,22,.40);
}
.btn-pill-primary:hover { background: #ea6c10; box-shadow: 0 4px 24px rgba(249,115,22,.55); color: #fff; }

/* Legacy — keep for internal app pages that still use .navbar-links */
.navbar-links { display: flex; align-items: center; gap: 2px; }
.navbar-links > a {
  color: rgba(255,255,255,.62);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 50px;
  transition: color .15s;
}
.navbar-links > a:hover { color: #fff; }

/* ─── Buttons ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  border-color: rgba(59,130,246,.4);
  box-shadow: 0 0 20px rgba(37,99,235,.25);
}
.btn-primary:hover {
  box-shadow: 0 0 36px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-h); border-color: var(--glass-border-h); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-lg { padding: 13px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* ─── Forms ────────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--glass);
  transition: border-color .15s, background .15s;
  outline: none;
  font-family: var(--font-body);
  backdrop-filter: blur(10px);
}
.form-control:focus { border-color: rgba(59,130,246,.5); background: var(--glass-h); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check label { margin-bottom: 0; }
.form-submit-row { margin-top: 24px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 400; }

/* Tab groups */
.tab-group { display: flex; gap: 0; margin-bottom: 8px; }
.tab-btn {
  padding: 7px 16px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-body);
}
.tab-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.tab-btn:last-child  { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: none; }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-content { display: block; }
.tab-content.hidden { display: none; }

/* ─── Alerts ───────────────────────────────────────────────────────────────────── */
.flash-container { padding: 12px 24px; }
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 8px;
  border: 1px solid;
}
.alert-danger  { background: rgba(239,68,68,.08);  color: #fca5a5; border-color: rgba(239,68,68,.25); }
.alert-success { background: rgba(34,197,94,.08);  color: #86efac; border-color: rgba(34,197,94,.25); }
.alert-warning { background: rgba(245,158,11,.08); color: #fcd34d; border-color: rgba(245,158,11,.25); }
.alert-info    { background: rgba(56,189,248,.08); color: #7dd3fc; border-color: rgba(56,189,248,.25); }

/* ─── Layout ───────────────────────────────────────────────────────────────────── */
.main-content { flex: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.page-content { padding: 64px 24px; max-width: 900px; margin: 0 auto; }
.page-lead { font-size: 1.1rem; color: var(--text-muted); margin: 8px 0 32px; }

/* ─── Footer ───────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 36px 28px;
  margin-top: auto;
  background: rgba(2,2,12,.9);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand-block { flex: 1; }
.footer-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand-name .brand-icon { width: 22px; height: 22px; font-size: 11px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-dim);
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}
.footer-sep { display: none; }

/* ─── Hero ─────────────────────────────────────────────────────────────────────── */
.hero {
  padding: 130px 24px 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Blob background layers ── */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Main large blue mass — right side */
.hero-bg-blob1 {
  position: absolute;
  width: 950px; height: 820px;
  top: -220px; right: -220px;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(30, 64, 220, 0.88) 0%,
    rgba(37, 99, 235, 0.60) 30%,
    rgba(29, 78, 216, 0.28) 58%,
    transparent 75%
  );
  filter: blur(72px);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  transform: rotate(-12deg);
}
/* Iridescent shimmer rim on right blob */
.hero-bg-iris {
  position: absolute;
  width: 1000px; height: 870px;
  top: -250px; right: -260px;
  background: conic-gradient(from 200deg at 38% 42%,
    transparent 0deg,
    rgba(220, 38, 38, 0.22) 18deg,
    rgba(251, 191, 36, 0.18) 38deg,
    rgba(52, 211, 153, 0.20) 58deg,
    rgba(56, 189, 248, 0.35) 82deg,
    rgba(167, 139, 250, 0.28) 108deg,
    rgba(236, 72, 153, 0.18) 130deg,
    transparent 155deg,
    transparent 360deg
  );
  filter: blur(28px);
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  transform: rotate(-12deg);
  mix-blend-mode: screen;
  opacity: 0.65;
}
/* Left curved arc */
.hero-bg-blob2 {
  position: absolute;
  width: 500px; height: 680px;
  top: -120px; left: -160px;
  background: radial-gradient(ellipse at 72% 48%,
    rgba(37, 99, 235, 0.72) 0%,
    rgba(37, 99, 235, 0.30) 40%,
    transparent 68%
  );
  filter: blur(85px);
  border-radius: 65% 35% 30% 70% / 45% 60% 40% 55%;
  transform: rotate(22deg);
}
/* Deep purple accent — lower right */
.hero-bg-blob3 {
  position: absolute;
  width: 640px; height: 500px;
  bottom: -80px; right: 160px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(109, 40, 217, 0.50) 0%,
    rgba(139, 92, 246, 0.22) 45%,
    transparent 70%
  );
  filter: blur(100px);
  border-radius: 50%;
}
/* Center dark blue wash */
.hero-bg-blob4 {
  position: absolute;
  width: 700px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(30, 64, 220, 0.10) 0%,
    transparent 72%
  );
  filter: blur(80px);
}
/* Subtle noise grain */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.06;
  color: #fff;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent-hover); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 24px auto 44px;
  max-width: 560px;
  line-height: 1.72;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 48px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-trust span { color: var(--text-muted); }

/* ─── Features ─────────────────────────────────────────────────────────────────── */
.features { padding: 100px 24px; position: relative; }
.features-header { text-align: center; margin-bottom: 56px; }
.features-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; }
.features-header p  { font-size: 1rem; color: var(--text-muted); margin-top: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  padding: 28px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .25s, transform .25s, background .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,179,237,.5), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  border-color: var(--glass-border-h);
  background: var(--glass-h);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 9px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.68; }

/* ─── Process ──────────────────────────────────────────────────────────────────── */
.process {
  padding: 100px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,7,26,.85) 30%, rgba(7,7,26,.85) 70%, transparent 100%);
}
.process-header { text-align: center; margin-bottom: 56px; }
.process-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; }
.process-header p  { font-size: 1rem; color: var(--text-muted); margin-top: 14px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  max-width: 950px;
  margin: 0 auto;
}
.process-card {
  padding: 28px 26px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.process-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,.22);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.process-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.process-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.68; }

/* ─── Pricing ──────────────────────────────────────────────────────────────────── */
.pricing-section  { padding: 100px 24px; text-align: center; }
.pricing-preview  { padding: 100px 24px; text-align: center; }
.pricing-header   { margin-bottom: 56px; }
.pricing-header h2, .pricing-preview h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 12px; }
.pricing-header h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; }
.pricing-header p  { font-size: 1rem; color: var(--text-muted); margin-top: 12px; }
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.pack-grid-lg { max-width: 1040px; }
.pack-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.pack-card:hover {
  border-color: rgba(59,130,246,.4);
  box-shadow: 0 0 40px rgba(37,99,235,.2);
  transform: translateY(-3px);
}
.pack-featured {
  border-color: rgba(59,130,246,.5);
  box-shadow: 0 0 50px rgba(37,99,235,.25);
}
.pack-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.pack-label        { font-weight: 700; font-size: 1rem; margin-bottom: 8px; }
.pack-credits      { font-size: 2.2rem; font-weight: 900; color: var(--accent-hover); margin: 8px 0; letter-spacing: -0.02em; }
.pack-credits-unit { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.pack-price        { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.pack-per          { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
.pack-radio { cursor: pointer; }
.pack-radio.selected { border-color: var(--accent); }
.pack-select-indicator { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-top: 8px; }
.pack-radio.selected .pack-select-indicator { color: var(--accent); }
.pricing-notes { margin-top: 36px; font-size: 14px; color: var(--text-muted); }

/* ─── FAQ ──────────────────────────────────────────────────────────────────────── */
.faq-section { padding: 100px 24px; }
.faq-header  { text-align: center; margin-bottom: 56px; }
.faq-header h2 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; }
.faq-header p  { font-size: 1rem; color: var(--text-muted); margin-top: 14px; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.hiw-faq { margin: 24px 0 48px; display: flex; flex-direction: column; gap: 8px; }
.hiw-faq h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 20px; }
.hiw-faq details,
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color .2s;
}
.hiw-faq details:hover,
.faq-item:hover { border-color: var(--glass-border-h); }
.hiw-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  padding: 16px 20px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary svg { transition: transform .2s; }
.hiw-faq details[open] summary svg { transform: rotate(180deg); }
.hiw-faq p { padding: 0 20px 16px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.pricing-notes svg { width: 14px; height: 14px; vertical-align: middle; color: var(--accent); margin-right: 4px; }

/* ─── CTA section ──────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 110px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(37,99,235,.18) 0%,
    rgba(109,40,217,.10) 40%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.cta-section h2 { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 18px; }
.cta-section p  { font-size: 1rem; color: var(--text-muted); margin-bottom: 40px; }

/* ─── Auth ─────────────────────────────────────────────────────────────────────── */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 24px;
}
.auth-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }
.auth-links { margin-top: 20px; font-size: 13px; color: var(--text-muted); text-align: center; }
.auth-links a { color: var(--accent-hover); text-decoration: none; }

/* ─── Dashboard ────────────────────────────────────────────────────────────────── */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.dashboard-header h1 { font-size: 1.8rem; font-weight: 700; }
.credit-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(59,130,246,.22);
}
.credit-count { font-size: 1.8rem; font-weight: 800; color: var(--accent-hover); }
.credit-label { font-size: 14px; font-weight: 600; color: var(--accent-hover); margin-right: 8px; }
.credit-badge-inline { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.credit-badge-inline a { color: var(--accent-hover); text-decoration: none; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.dashboard-section {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(16px);
}
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-header h2 { font-size: 1.1rem; font-weight: 700; }
.summary-list { display: flex; flex-direction: column; gap: 12px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.summary-info { display: flex; flex-direction: column; gap: 2px; }
.summary-title { font-weight: 600; color: var(--text); text-decoration: none; font-size: 14px; }
.summary-title:hover { color: var(--accent-hover); }
.summary-meta { font-size: 12px; color: var(--text-muted); }
.summary-actions { display: flex; gap: 6px; }
.empty-state { font-size: 14px; color: var(--text-muted); }
.tx-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.tx-table th { font-weight: 600; color: var(--text-muted); }
.tx-table td, .tx-table th { padding: 8px 0; border-bottom: 1px solid var(--glass-border); }
.tx-pos { color: var(--success); font-weight: 600; }
.tx-neg { color: var(--danger); font-weight: 600; }
.referral-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
}
.referral-box h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.referral-link-row { display: flex; gap: 8px; margin-top: 12px; }

/* ─── Summarize ────────────────────────────────────────────────────────────────── */
.summarize-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; }

/* ─── Summary document view ────────────────────────────────────────────────────── */
.summary-doc-container { display: flex; gap: 0; min-height: calc(100vh - 64px); }
.summary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 62px;
  background: rgba(2,2,12,.88);
  backdrop-filter: blur(14px);
  z-index: 10;
}
.summary-toolbar-right { display: flex; align-items: center; gap: 10px; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-done       { background: rgba(34,197,94,.12);  color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.badge-processing { background: rgba(245,158,11,.12); color: #fcd34d; border: 1px solid rgba(245,158,11,.25); }
.badge-failed,
.badge-partial    { background: rgba(239,68,68,.12);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.summary-doc { flex: 1; max-width: 760px; margin: 0 auto; padding: 48px 32px; font-family: var(--font-doc); }
.doc-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin-bottom: 8px; }
.doc-meta { text-align: center; color: var(--text-muted); font-family: var(--font-body); font-size: 13px; margin-bottom: 32px; }
.doc-divider { border: none; border-top: 1px solid var(--glass-border); margin-bottom: 40px; }
.doc-chapter { margin-bottom: 48px; }
.doc-chapter-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; border-bottom: 1px solid var(--glass-border); padding-bottom: 8px; }
.doc-chapter-body { font-size: 1rem; line-height: 1.8; color: var(--text); }
.doc-chapter-body h1,
.doc-chapter-body h2 { font-size: 1.15rem; font-weight: 700; margin: 24px 0 8px; border-bottom: 1px solid var(--glass-border); padding-bottom: 4px; }
.doc-chapter-body h3 { font-size: 1rem; font-weight: 700; margin: 18px 0 6px; }
.doc-chapter-body p  { margin-bottom: 12px; }
.doc-chapter-body ul,
.doc-chapter-body ol { margin: 8px 0 12px 24px; }
.doc-chapter-body li { margin-bottom: 4px; }
.doc-chapter-body strong { font-weight: 700; }
.doc-chapter-body em { font-style: italic; }
.chapter-nav { width: 220px; flex-shrink: 0; border-left: 1px solid var(--glass-border); }
.chapter-nav-inner { position: sticky; top: 130px; padding: 24px 16px; }
.chapter-nav strong { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.chapter-nav ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.chapter-nav a { font-size: 13px; color: var(--text-muted); text-decoration: none; display: block; padding: 4px 8px; border-radius: 4px; }
.chapter-nav a:hover { background: var(--glass); color: var(--accent-hover); }

/* ─── How it works (steps) ─────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 18px; margin: 32px 0 48px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(14px);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(37,99,235,.45);
}
.step-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step-body p { color: var(--text-muted); }

/* ─── Responsive ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .hero { padding: 90px 24px 80px; min-height: auto; }
  .chapter-nav { display: none; }
  .summary-doc { padding: 24px 16px; }
  .navbar-links .btn { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .features-header h2,
  .process-header h2,
  .pricing-header h2,
  .faq-header h2,
  .cta-section h2 { font-size: 1.7rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
  .navbar { padding: 0 20px; }
}

/* ─── Utility ──────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════════
   FUTURISTIC ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────────────────────────────── */

@keyframes blob1-drift {
  0%,100% { transform: rotate(-12deg) translate(0,0) scale(1);
             border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
  30%      { transform: rotate(-6deg) translate(32px,-24px) scale(1.05);
             border-radius: 52% 48% 46% 54% / 44% 56% 44% 56%; }
  65%      { transform: rotate(-19deg) translate(-20px,32px) scale(0.95);
             border-radius: 33% 67% 62% 38% / 58% 38% 62% 42%; }
}

@keyframes blob2-drift {
  0%,100% { transform: rotate(22deg) translate(0,0);
             border-radius: 65% 35% 30% 70% / 45% 60% 40% 55%; }
  45%      { transform: rotate(16deg) translate(-28px, 20px);
             border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%; }
  75%      { transform: rotate(28deg) translate(16px,-18px);
             border-radius: 72% 28% 36% 64% / 38% 68% 32% 62%; }
}

@keyframes blob3-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.72; }
}

@keyframes blob4-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.9; }
  50%      { transform: translate(-50%,-50%) scale(1.4); opacity: 0.4; }
}

@keyframes iris-spin {
  0%   { transform: rotate(-12deg); }
  100% { transform: rotate(348deg); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes btn-glow-pulse {
  0%,100% { box-shadow: 0 0 18px rgba(37,99,235,.28); }
  50%      { box-shadow: 0 0 42px rgba(37,99,235,.60), 0 0 80px rgba(37,99,235,.18); }
}

@keyframes label-glow {
  0%,100% { box-shadow: none; border-color: rgba(59,130,246,.25); }
  50%      { box-shadow: 0 0 16px 3px rgba(59,130,246,.38); border-color: rgba(59,130,246,.6); }
}

@keyframes card-shimmer {
  from { left: -65%; }
  to   { left: 115%; }
}

@keyframes particle-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 0.5; }
  100% { transform: translateY(-640px) translateX(var(--drift, 0px)); opacity: 0; }
}

@keyframes scan-x {
  0%   { transform: translateX(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateX(200%); opacity: 0; }
}

@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Apply blob animations ──────────────────────────────────────────────────────── */
.hero-bg-blob1 { animation: blob1-drift 22s ease-in-out infinite; }
.hero-bg-blob2 { animation: blob2-drift 26s ease-in-out infinite; }
.hero-bg-blob3 { animation: blob3-pulse 17s ease-in-out infinite; }
.hero-bg-blob4 { animation: blob4-breathe 13s ease-in-out infinite; }
.hero-bg-iris  { animation: iris-spin 38s linear infinite; }

/* ── Hero scan line (horizontal sweep) ──────────────────────────────────────────── */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0; width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(99,179,237,.7) 40%,
    rgba(167,139,250,.6) 60%,
    transparent 100%
  );
  filter: blur(1px);
  animation: scan-x 9s cubic-bezier(.4,0,.6,1) infinite;
  z-index: 2;
}

/* ── Hero vignette (text readability) ───────────────────────────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 48%,
    rgba(0,0,8,.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Navbar entrance ─────────────────────────────────────────────────────────────── */
.navbar { animation: fade-down .55s cubic-bezier(.16,1,.3,1) both; }

/* ── Hero text staggered entrance ────────────────────────────────────────────────── */
.hero-inner { z-index: 2; }
.hero-inner .section-label { animation: fade-up .7s cubic-bezier(.16,1,.3,1) both; animation-delay: .10s; }
.hero-inner h1              { animation: fade-up .85s cubic-bezier(.16,1,.3,1) both; animation-delay: .28s; }
.hero-inner .hero-sub       { animation: fade-up .8s cubic-bezier(.16,1,.3,1) both;  animation-delay: .48s; }
.hero-inner .hero-cta       { animation: fade-up .75s cubic-bezier(.16,1,.3,1) both; animation-delay: .68s; }
.hero-inner .hero-trust     { animation: fade-in .7s ease both; animation-delay: .92s; }

/* ── Section label glow ──────────────────────────────────────────────────────────── */
.section-label { animation: label-glow 3.8s ease-in-out infinite; }

/* ── Button glow pulse ───────────────────────────────────────────────────────────── */
.btn-primary { animation: btn-glow-pulse 3s ease-in-out infinite; }
.btn-primary:hover { animation: none; transform: translateY(-2px); box-shadow: 0 0 50px rgba(37,99,235,.7); }

/* ── Card shimmer sweep on hover ─────────────────────────────────────────────────── */
.process-card { position: relative; overflow: hidden; }

.feature-card::after,
.process-card::after {
  content: '';
  position: absolute;
  top: 0; left: -65%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.06) 50%,
    transparent
  );
  pointer-events: none;
  z-index: 2;
}
.feature-card:hover::after,
.process-card:hover::after {
  animation: card-shimmer .7s cubic-bezier(.4,0,.2,1) forwards;
}

/* ── Animated gradient border on featured pack card ──────────────────────────────── */
.pack-featured {
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
              linear-gradient(135deg, #3b82f6, #7c3aed, #3b82f6) border-box;
  border: 1px solid transparent;
  background-size: 200% 200%;
  animation: border-flow 4s ease infinite;
}

/* ── Scroll reveal ───────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .28s; }
.reveal-d4 { transition-delay: .38s; }

/* ── Step number glow ────────────────────────────────────────────────────────────── */
.step-num { animation: btn-glow-pulse 3s ease-in-out infinite; }
