/* ============================================================
   EuroExtract — main.css
   European Fintech: Precision Dark
   ============================================================ */

/* 1. Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ============================================================
   2. CSS Custom Properties
   ============================================================ */
:root {
  /* Colors */
  --color-bg:           #080c14;
  --color-bg-card:      #0d1420;
  --color-bg-card-hover:#101828;
  --color-bg-elevated:  #111827;
  --color-border:       rgba(255, 255, 255, 0.07);
  --color-border-focus: rgba(37, 99, 235, 0.6);

  --color-text:         #e8edf4;
  --color-text-muted:   #8b95a3;
  --color-text-faint:   #4a5568;

  --color-accent:       #2563eb;
  --color-accent-hover: #3b82f6;
  --color-accent-dim:   rgba(37, 99, 235, 0.15);
  --color-accent-glow:  rgba(37, 99, 235, 0.25);

  --color-success:      #10b981;
  --color-success-dim:  rgba(16, 185, 129, 0.12);
  --color-warning:      #f59e0b;
  --color-warning-dim:  rgba(245, 158, 11, 0.12);
  --color-danger:       #ef4444;
  --color-danger-dim:   rgba(239, 68, 68, 0.12);
  --color-danger-hover: #dc2626;

  --color-processing:   #f59e0b;
  --color-completed:    #10b981;
  --color-failed:       #ef4444;
  --color-cancelled:    #6b7280;

  /* Typography */
  --font-heading:  'Syne', sans-serif;
  --font-body:     'DM Mono', monospace;
  --font-mono:     'DM Mono', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  --leading-tight:  1.2;
  --leading-snug:   1.375;
  --leading-normal: 1.5;
  --leading-relaxed:1.7;

  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide:  0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest:0.2em;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max:  1200px;
  --container-wide: 1400px;
  --sidebar-width:  260px;
  --navbar-height:  64px;

  /* Borders */
  --radius: 2px;
  --radius-sm: 1px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.7);
  --shadow-accent: 0 0 20px rgba(37, 99, 235, 0.3);

  /* Transitions */
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Grid texture */
  --grid-color: rgba(255, 255, 255, 0.025);

  /* Theme-aware overlay colors (dark defaults) */
  --color-overlay-xs:  rgba(255,255,255,0.02);
  --color-overlay-sm:  rgba(255,255,255,0.04);
  --color-overlay-md:  rgba(255,255,255,0.05);
  --color-overlay-lg:  rgba(255,255,255,0.1);
  --color-overlay-xl:  rgba(255,255,255,0.15);
  --color-overlay-2xl: rgba(255,255,255,0.3);
  --scrollbar-thumb:   rgba(255,255,255,0.1);
  --scrollbar-hover:   rgba(255,255,255,0.2);

  /* ── Short-form aliases (used by dashboard.css) ── */
  --bg:           var(--color-bg);
  --bg-card:      var(--color-bg-card);
  --bg-elevated:  var(--color-bg-elevated);
  --border:       var(--color-border);
  --border-active:var(--color-border-focus);
  --text:         var(--color-text);
  --text-muted:   var(--color-text-muted);
  --text-dim:     var(--color-text-faint);
  --accent:       var(--color-accent);
  --accent-glow:  var(--color-accent-dim);
  --green:        var(--color-success);
  --amber:        var(--color-warning);
  --red:          var(--color-danger);
}

/* ============================================================
   Light theme overrides
   ============================================================ */
[data-theme="light"] {
  --color-bg:           #f8fafc;
  --color-bg-card:      #ffffff;
  --color-bg-card-hover:#f1f5f9;
  --color-bg-elevated:  #f1f5f9;
  --color-border:       rgba(0, 0, 0, 0.08);
  --color-border-focus: rgba(37, 99, 235, 0.5);

  --color-text:         #0f172a;
  --color-text-muted:   #475569;
  --color-text-faint:   #94a3b8;

  --color-accent:       #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-dim:   rgba(37, 99, 235, 0.1);
  --color-accent-glow:  rgba(37, 99, 235, 0.15);

  --color-success-dim:  rgba(16, 185, 129, 0.1);
  --color-warning-dim:  rgba(245, 158, 11, 0.1);
  --color-danger-dim:   rgba(239, 68, 68, 0.1);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.12);
  --shadow-accent: 0 0 20px rgba(37, 99, 235, 0.15);

  --grid-color: rgba(0, 0, 0, 0.03);

  --color-overlay-xs:  rgba(0,0,0,0.02);
  --color-overlay-sm:  rgba(0,0,0,0.03);
  --color-overlay-md:  rgba(0,0,0,0.04);
  --color-overlay-lg:  rgba(0,0,0,0.06);
  --color-overlay-xl:  rgba(0,0,0,0.1);
  --color-overlay-2xl: rgba(0,0,0,0.15);
  --scrollbar-thumb:   rgba(0,0,0,0.15);
  --scrollbar-hover:   rgba(0,0,0,0.25);
}

/* Light mode: hero section adjustments */
[data-theme="light"] .hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 50%, #eef2ff 100%);
}
[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(37,99,235,0.06) 0%, transparent 60%);
}
[data-theme="light"] .hero__eyebrow {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.15);
}

/* Light mode: stats ticker */
[data-theme="light"] .stats-ticker {
  background: #f1f5f9;
  border-color: rgba(0,0,0,0.06);
}

/* Light mode: navbar */
[data-theme="light"] .navbar {
  background: rgba(248,250,252,0.95);
  border-bottom-color: rgba(0,0,0,0.08);
}

/* Light mode: card hover states */
[data-theme="light"] .card:hover,
[data-theme="light"] .pricing-card:hover,
[data-theme="light"] .pricing-card--featured:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Light mode: buttons secondary/ghost need border visibility */
[data-theme="light"] .btn-secondary {
  border-color: rgba(0,0,0,0.12);
  color: var(--color-text);
}
[data-theme="light"] .btn-ghost {
  color: var(--color-text-muted);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0,0,0,0.04);
  color: var(--color-text);
}

/* Light mode: form inputs */
[data-theme="light"] .form-input {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  color: var(--color-text);
}
[data-theme="light"] .form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* Light mode: pricing featured card */
[data-theme="light"] .pricing-card--featured {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
}

/* Light mode: FAQ */
[data-theme="light"] .faq__question {
  background: #ffffff;
}
[data-theme="light"] .faq-item.open .faq__question {
  background: #f8fafc;
}

/* Light mode: footer */
[data-theme="light"] .footer {
  background: #f1f5f9;
  border-top-color: rgba(0,0,0,0.08);
}

/* Light mode: section backgrounds */
[data-theme="light"] .features,
[data-theme="light"] .how-it-works {
  background: transparent;
}
[data-theme="light"] .testimonials {
  background: #f1f5f9;
}
/* CTA card stays dark in light mode — intentional contrast */

/* Light mode: mobile nav drawer */
[data-theme="light"] .navbar__mobile {
  background: #f8fafc;
}

/* Light mode: banks badges */
[data-theme="light"] .banks__badge {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  color: var(--color-text-muted);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-hover); }

ul, ol { list-style: none; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-hover); }

/* ============================================================
   4. Typography Scale
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.text-xs     { font-size: var(--text-xs); }
.text-sm     { font-size: var(--text-sm); }
.text-base   { font-size: var(--text-base); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.text-2xl    { font-size: var(--text-2xl); }
.text-3xl    { font-size: var(--text-3xl); }
.text-4xl    { font-size: var(--text-4xl); }
.text-5xl    { font-size: var(--text-5xl); }
.text-6xl    { font-size: var(--text-6xl); }
.text-7xl    { font-size: var(--text-7xl); }

.text-muted  { color: var(--color-text-muted); }
.text-faint  { color: var(--color-text-faint); }
.text-accent { color: var(--color-accent); }
.text-success{ color: var(--color-success); }
.text-warning{ color: var(--color-warning); }
.text-danger { color: var(--color-danger); }

.font-heading { font-family: var(--font-heading); }
.font-mono    { font-family: var(--font-mono); }
.font-400     { font-weight: 400; }
.font-500     { font-weight: 500; }
.font-600     { font-weight: 600; }
.font-700     { font-weight: 700; }
.font-800     { font-weight: 800; }

.tracking-tight   { letter-spacing: var(--tracking-tight); }
.tracking-wide    { letter-spacing: var(--tracking-wide); }
.tracking-wider   { letter-spacing: var(--tracking-wider); }
.tracking-widest  { letter-spacing: var(--tracking-widest); }

.uppercase { text-transform: uppercase; }
.numeric   { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.mono      { font-family: var(--font-mono); }

/* ============================================================
   5. Layout Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

.section-sm {
  padding-block: var(--space-16);
}

/* Flex */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-start{ align-items: flex-start; }
.items-center{ align-items: center; }
.items-end  { align-items: flex-end; }
.justify-start  { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end    { justify-content: flex-end; }
.justify-between{ justify-content: space-between; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Grid */
.grid     { display: grid; }
.grid-2   { grid-template-columns: repeat(2, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }
.grid-auto-fill-280 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Misc */
.w-full      { width: 100%; }
.h-full      { height: 100%; }
.relative    { position: relative; }
.absolute    { position: absolute; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border);
  width: 100%;
  margin-block: var(--space-6);
}

/* ============================================================
   6. Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.navbar__inner {
  max-width: var(--container-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
  box-sizing: border-box;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-mark {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-sm);
  color: #fff;
  letter-spacing: 0;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--tracking-tight);
}

.navbar__logo-text span {
  color: var(--color-accent);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

.navbar__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.navbar__link:hover {
  color: var(--color-text);
  background: var(--color-overlay-sm);
}

.navbar__link.active {
  color: var(--color-text);
}

.navbar__spacer { flex: 1; }

.navbar__locale {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  border-right: 1px solid var(--color-border);
  padding-right: var(--space-4);
  margin-right: var(--space-2);
}

.navbar__locale-link {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
}

.navbar__locale-link:hover,
.navbar__locale-link.active {
  color: var(--color-text);
  background: var(--color-overlay-md);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X animation */
.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav drawer */
.navbar__mobile {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: var(--space-4) var(--space-6);
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
  z-index: 200;
  overflow-y: auto;
}

.navbar__mobile.open { display: flex; }

/* Drawer link styles */
.navbar__mobile .navbar__link {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  letter-spacing: 0;
}

.navbar__mobile .navbar__link:hover {
  color: var(--color-accent);
  background: none;
}

.navbar__mobile .btn {
  margin-top: var(--space-6);
  width: 100%;
  justify-content: center;
  padding: var(--space-4);
  font-size: var(--text-base);
}

.navbar__mobile-locale {
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-6);
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}

.navbar__mobile-locale a {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}

.navbar__mobile-locale a:hover,
.navbar__mobile-locale a.active {
  color: var(--color-text);
}

/* ============================================================
   7. Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
  margin-top: var(--space-24);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
  max-width: 300px;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--color-text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.info-page {
  padding-block: var(--space-16) var(--space-24);
}

.info-page__container {
  max-width: 840px;
}

.info-page__eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.info-page__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.info-page__lead {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-10);
}

.info-page__section {
  margin-bottom: var(--space-8);
}

.info-page__section h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.info-page__section p,
.info-page__section li {
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.info-page__section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.footer__badges {
  display: flex;
  gap: var(--space-3);
}

.footer__badge {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  color: var(--color-text-faint);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  border-radius: var(--radius);
}

/* ============================================================
   8. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
}

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary — cobalt */
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  color: #fff;
}

/* Secondary — ghost */
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-overlay-sm);
  border-color: var(--color-overlay-xl);
  color: var(--color-text);
}

/* Ghost — no border */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--color-overlay-sm);
  color: var(--color-text);
}

/* Danger */
.btn-danger {
  background: transparent;
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: var(--color-danger-dim);
  border-color: var(--color-danger);
  color: var(--color-danger);
}

/* Danger filled */
.btn-danger-filled {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.btn-danger-filled:hover {
  background: var(--color-danger-hover);
  border-color: var(--color-danger-hover);
  color: #fff;
}

/* Sizes */
.btn-xs {
  padding: 0.25rem var(--space-3);
  font-size: var(--text-xs);
}
.btn-sm {
  padding: 0.4rem var(--space-4);
  font-size: var(--text-sm);
}
.btn-lg {
  padding: 0.875rem var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Icon button */
.btn-icon {
  padding: 0.5rem;
  aspect-ratio: 1;
}

/* Loading state */
.btn.loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}
.btn.loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-overlay-2xl);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   9. Forms
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.625rem var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition),
              background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-faint);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--color-overlay-lg);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
  background: var(--color-bg-elevated);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px var(--color-danger-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b95a3' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.form-error::before {
  content: '×';
  font-size: var(--text-base);
  line-height: 1;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  border-radius: 0;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

/* Alert / flash */
.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid;
}

.alert-error {
  background: var(--color-danger-dim);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: var(--color-success-dim);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-warning {
  background: var(--color-warning-dim);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

/* ============================================================
   10. Landing Page Sections
   ============================================================ */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-24);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(37,99,235,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Dot grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(37,99,235,0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
  background: rgba(37,99,235,0.08);
  max-width: 100%;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin-bottom: var(--space-6);
}

.hero__title-top {
  display: block;
  color: var(--color-text);
  white-space: nowrap;
}

.hero__title-bottom {
  display: block;
  color: var(--color-text);
  white-space: nowrap;
}

.hero__title-accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero__title .accent {
  color: var(--color-accent);
  position: relative;
}

@media (max-width: 900px) {
  .hero__title-top,
  .hero__title-bottom {
    white-space: normal;
  }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.02em;
}

.hero__trust-item::before {
  content: '✓';
  color: var(--color-success);
  font-size: var(--text-sm);
}

/* --- Stats Ticker --- */
.stats-ticker {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
  padding-block: var(--space-6);
}

.stats-ticker__track {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  width: max-content;
  animation: ticker 30s linear infinite;
}

.stats-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.stats-ticker__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-shrink: 0;
}

.stats-ticker__number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stats-ticker__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.stats-ticker__sep {
  color: var(--color-border);
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

/* --- Bank Logos Grid --- */
.banks {
  padding-block: var(--space-20);
}

.banks__title {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-10);
}

.banks__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  align-items: center;
}

.banks__badge {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition);
}

.banks__badge:hover {
  color: var(--color-text-muted);
  border-color: var(--color-overlay-lg);
  background: var(--color-overlay-xs);
}

/* --- How it Works --- */
.how-it-works {
  padding-block: var(--space-24);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
}

.step-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  border-radius: var(--radius);
  position: relative;
  transition: border-color var(--transition), background var(--transition);
}

.step-card:hover {
  border-color: rgba(37,99,235,0.3);
  background: var(--color-bg-card-hover);
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dim);
  border: 1px solid rgba(37,99,235,0.3);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-accent);
  border-radius: var(--radius);
  margin-bottom: var(--space-6);
}

.step-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --- Feature Grid --- */
.features {
  padding-block: var(--space-24);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--color-bg-card);
  padding: var(--space-8);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.feature-card:hover {
  background: var(--color-bg-card-hover);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dim);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-accent);
  flex-shrink: 0;
}
.feature-icon svg { flex-shrink: 0; }

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* --- Testimonials --- */
.testimonials {
  padding-block: var(--space-24);
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-16);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-8);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--color-overlay-lg);
}

.testimonial-quote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
  font-style: italic;
}

.testimonial-quote::before {
  content: '"';
  font-size: var(--text-4xl);
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
  font-style: normal;
  font-family: var(--font-heading);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  background: var(--color-accent-dim);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* --- Security --- */
.security {
  padding-block: var(--space-24);
}

.security__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.security__badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.security-badge {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: border-color var(--transition);
}

.security-badge:hover {
  border-color: rgba(37,99,235,0.3);
}

.security-badge-icon {
  font-size: var(--text-2xl);
  flex-shrink: 0;
}

.security-badge-text {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.security-badge-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
}

/* --- Pricing --- */
.pricing {
  padding-block: var(--space-24) var(--space-32);
}

/* Hero */
.pricing__hero {
  text-align: center;
  margin-bottom: var(--space-12);
}

.pricing__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.pricing__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.pricing__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* Toggle */
.pricing__toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.pricing__toggle-opt {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition);
}

.pricing__toggle-opt.active {
  color: var(--color-text);
}

.pricing__switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
  display: block;
}

.pricing__switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.pricing__switch-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: background var(--transition), border-color var(--transition);
}

.pricing__switch-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  background: var(--color-text-muted);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.pricing__switch input:checked + .pricing__switch-track {
  background: var(--color-accent-dim);
  border-color: rgba(37,99,235,0.4);
}

.pricing__switch input:checked + .pricing__switch-track .pricing__switch-thumb {
  transform: translateX(24px);
  background: var(--color-accent);
}

.pricing__save-pill {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--color-accent-dim);
  color: var(--color-accent-hover);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* Cards grid — 2 cards */
.pricing__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

/* Individual card */
.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.pricing-card:hover {
  border-color: rgba(255,255,255,0.12);
}

.pricing-card--featured {
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.08), 0 8px 32px rgba(37,99,235,0.1);
}

.pricing-card--featured:hover {
  border-color: rgba(37,99,235,0.6);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.15), 0 12px 40px rgba(37,99,235,0.15);
}

/* Glow behind featured card content */
.pricing-card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37,99,235,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* "Most Popular" badge */
.pricing-card__badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-accent-dim);
  color: var(--color-accent-hover);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Tier label */
.pricing-card__tier {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}

/* Price block */
.pricing-card__price-block {
  margin-bottom: var(--space-4);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card__currency {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  align-self: flex-start;
  padding-top: 6px;
}

.pricing-card__amount {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  padding-bottom: 6px;
}

.pricing-card__billed {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
}

/* Description */
.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

/* Features list */
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--color-accent-hover);
  font-size: var(--text-sm);
  flex-shrink: 0;
  width: 16px;
  font-weight: 600;
}

.pricing-card__features li.unavailable {
  opacity: 0.35;
}

.pricing-card__features li.unavailable::before {
  content: '×';
  color: var(--color-text-faint);
  font-weight: 400;
}

/* CTA */
.pricing-card__cta {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ── Extra page packs ─────────────────── */
.pricing__packs-section {
  margin-top: 80px;
}

.pricing__packs-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.pricing__packs-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.pricing__packs-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.pricing__packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 540px;
  margin: 0 auto;
}

.pricing-pack {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  position: relative;
  transition: border-color var(--transition);
}

.pricing-pack--featured {
  border-color: rgba(37,99,235,0.35);
}

.pricing-pack__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--color-accent-dim);
  color: var(--color-accent-hover);
  border: 1px solid rgba(37,99,235,0.25);
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-pack__pages {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-pack__label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.pricing-pack__price {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-accent-hover);
}

/* ── FAQ section ───────────────────────── */
.pricing__faq-section {
  margin-top: 80px;
  max-width: 680px;
  margin-inline: auto;
  margin-top: 80px;
}

.pricing__faq-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-8);
  text-align: center;
}

/* --- FAQ --- */
.faq {
  padding-block: var(--space-24);
}

.faq__list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover {
  border-color: var(--color-overlay-lg);
}

.faq-item.open {
  border-color: rgba(37,99,235,0.3);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  gap: var(--space-4);
  user-select: none;
  list-style: none;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq__chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq__answer {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  display: none;
}

.faq-item.open .faq__answer {
  display: block;
}

/* --- Final CTA --- */
.cta-section {
  padding-block: var(--space-24);
  padding-bottom: calc(var(--space-24) + 80px);
  position: relative;
}

.cta-card {
  position: relative;
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 6vw, 4rem);
  border-radius: 24px;
  background: #050a18;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(37,99,235,0.15),
    0 0 80px rgba(37,99,235,0.20),
    0 40px 100px rgba(0,0,0,0.8);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* Large blue glow erupting from center-bottom */
.cta-card::before {
  content: '';
  position: absolute;
  bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 80%;
  height: 300px;
  background: radial-gradient(ellipse at center bottom,
    rgba(37,99,235,0.55) 0%,
    rgba(59,130,246,0.25) 35%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(4px);
}

/* Animated shimmer line at top */
.cta-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 300%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    transparent 20%,
    rgba(99,179,246,0.9) 50%,
    transparent 80%,
    transparent 100%);
  animation: cta-shimmer 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes cta-shimmer {
  0%   { transform: translateX(-30%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(30%); opacity: 0; }
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(99,179,246,0.3);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: var(--space-6);
}

.cta-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.cta-card p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-8);
  max-width: 440px;
  margin-inline: auto;
  line-height: 1.6;
}

.cta-card__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

/* Primary btn inside CTA: inverted — white bg, dark text */
.cta-card .btn-primary {
  background: #ffffff;
  color: #0a1628;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.cta-card .btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  box-shadow: 0 6px 28px rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* Ghost btn inside CTA: white-outlined */
.cta-card .btn-ghost {
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
}
.cta-card .btn-ghost:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.cta-card__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.cta-card__trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

.cta-card__trust-item svg {
  color: rgba(99,179,246,0.7);
  flex-shrink: 0;
}

/* Fix text selection visibility on dark CTA card */
.cta-card ::selection {
  background: rgba(99,179,246,0.5);
  color: #ffffff;
}

/* Light mode: CTA card stays dark — deliberate contrast */
[data-theme="light"] .cta-card {
  background: #050a18;
  border-color: rgba(255,255,255,0.06);
}

/* ============================================================
   11. Auth Pages
   ============================================================ */
.auth-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  min-height: calc(100vh - var(--navbar-height));
}

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.auth-card__logo {
  margin-bottom: var(--space-8);
}

.auth-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.auth-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-footer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.auth-footer a {
  color: var(--color-accent);
}

/* Password strength */
.password-strength {
  margin-top: var(--space-2);
}

.strength-bar {
  height: 2px;
  background: var(--color-border);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width var(--transition), background var(--transition);
  border-radius: 0;
}

.strength-fill[data-level="1"] { width: 25%; background: var(--color-danger); }
.strength-fill[data-level="2"] { width: 50%; background: var(--color-warning); }
.strength-fill[data-level="3"] { width: 75%; background: #84cc16; }
.strength-fill[data-level="4"] { width: 100%; background: var(--color-success); }

.strength-text {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================================================
   12. Animations
   ============================================================ */

/* Fade in up — triggered by JS adding .visible */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.0s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.32s; }
.stagger > *:nth-child(6) { animation-delay: 0.40s; }
.stagger > *:nth-child(7) { animation-delay: 0.48s; }
.stagger > *:nth-child(8) { animation-delay: 0.56s; }
.stagger > *:nth-child(9) { animation-delay: 0.64s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page load hero animation */
.hero__inner > * {
  animation: heroFade 0.6s ease both;
}
.hero__inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.2s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.3s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.4s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.5s; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   13. Utility / Misc
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px var(--space-2);
  border-radius: var(--radius);
  border: 1px solid;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.badge-blue {
  background: var(--color-accent-dim);
  border-color: rgba(37,99,235,0.3);
  color: #93c5fd;
}

.badge-green {
  background: var(--color-success-dim);
  border-color: rgba(16,185,129,0.3);
  color: #6ee7b7;
}

.badge-amber {
  background: var(--color-warning-dim);
  border-color: rgba(245,158,11,0.3);
  color: #fcd34d;
}

.badge-red {
  background: var(--color-danger-dim);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}

.badge-gray {
  background: rgba(107,114,128,0.12);
  border-color: rgba(107,114,128,0.2);
  color: var(--color-text-faint);
}

/* Dot indicator */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot-green  { background: var(--color-success); }
.dot-amber  { background: var(--color-warning); }
.dot-red    { background: var(--color-danger); }
.dot-gray   { background: var(--color-cancelled); }

/* Card base */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-6);
}

.card-hover {
  transition: border-color var(--transition), background var(--transition),
              box-shadow var(--transition);
}
.card-hover:hover {
  border-color: var(--color-overlay-lg);
  background: var(--color-bg-card-hover);
}

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

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

  .navbar__nav,
  .navbar__locale,
  .navbar__actions,
  .navbar__theme-toggle {
    display: none;
  }

  .navbar__hamburger { display: flex; }
}

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before { display: none; }

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

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

  /* Pricing — stack cards on mobile */
  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .pricing__packs {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  /* Toggle row — allow wrapping */
  .pricing__toggle-wrap {
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Prevent horizontal overflow globally */
  body {
    overflow-x: hidden;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card {
    padding: var(--space-10) var(--space-6);
  }
}

@media (max-width: 480px) {
  .container,
  .container-wide {
    padding-inline: var(--space-4);
  }

  .auth-card {
    padding: var(--space-8) var(--space-5);
  }

  .stats-ticker__number {
    font-size: var(--text-2xl);
  }

  /* Hero: tighten font so title doesn't overflow on very narrow screens */
  .hero__title {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  /* Hero eyebrow: shrink font to fit on one line */
  .hero__eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  /* Footer badges: prevent wrapping inside each badge */
  .footer__badges {
    flex-wrap: wrap;
  }
  .footer__badge {
    white-space: nowrap;
  }

  /* 404 error page: tighter padding on small screens */
  .error-page {
    padding: var(--space-12) var(--space-4);
    overflow: hidden;
  }
}

/* ─── ERROR PAGES ─────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-16) var(--space-6);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 22vw, 6rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
  max-width: 100%;
}
.error-page h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}
.error-page p {
  color: var(--text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}


/* ── Legacy button shims (templates using btn-primary without .btn base) ── */
.btn-primary, .btn-ghost, .btn-secondary, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
}
.btn-primary:active, .btn-ghost:active, .btn-secondary:active, .btn-danger:active {
  transform: translateY(1px);
}
.btn-sm { padding: 0.4rem var(--space-4) !important; font-size: var(--text-sm) !important; }
.btn-lg { padding: 0.875rem var(--space-8) !important; font-size: var(--text-base) !important; font-weight: 600 !important; }
.btn-full { width: 100%; }
