/* ==========================================================================
   DUELAPAY — Global Stylesheet
   ========================================================================== */

/* 0. Brand Fonts
   ========================================================================== */
@font-face {
  font-family: 'Chavelite';
  src: url('../fonts/Chavelite.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AlmostSeriousAccent';
  src: url('../fonts/AlmostSeriousAccent.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan';
  src: url('../fonts/Spartan-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* 1. Design Tokens
   ========================================================================== */
:root {
  /* Colors */
  --color-bg:         #0C1E32;
  --color-surface:    #112338;
  --color-surface-2:  #162D45;
  --color-primary:    #1F5B99;
  --color-primary-dim:#184878;
  --color-secondary:  #5293CF;
  --color-accent:     #5293CF;
  --color-cta:        #ED4524;
  --color-cta-hover:  #d63d1e;
  --color-text:       #E6E6E5;
  --color-muted:      rgba(230,230,229,0.55);
  --color-white:      #ffffff;
  --color-border:     rgba(255,255,255,0.09);

  /* Gradients */
  --gradient-brand:   linear-gradient(135deg, #1F5B99 0%, #ED4524 100%);
  --gradient-primary: linear-gradient(135deg, #1F5B99 0%, #5293CF 100%);
  --gradient-glow:    radial-gradient(ellipse at center, rgba(31,91,153,0.35) 0%, transparent 70%);
  --gradient-hero:    linear-gradient(160deg, #0C1E32 0%, #0E2540 50%, #0C1E32 100%);

  /* Typography */
  --font-display: 'Chavelite', 'Spartan', sans-serif;
  --font-accent:  'AlmostSeriousAccent', cursive;
  --font-body:    'Spartan', sans-serif;

  /* Font Sizes */
  --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-d1:   clamp(2.8rem, 6vw, 5rem);
  --text-d2:   clamp(2rem, 4vw, 3.5rem);
  --text-d3:   clamp(1.6rem, 3vw, 2.4rem);

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

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-primary: 0 0 40px rgba(31,91,153,0.3);
  --shadow-accent:  0 0 40px rgba(82,147,207,0.2);
  --shadow-cta:     0 4px 24px rgba(237,69,36,0.4);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(1rem, 5vw, 2rem);
}

/* =====================================================
   LIGHT MODE — overrides all colour tokens
   Applied when <html data-theme="light">
   ===================================================== */
[data-theme="light"] {
  --color-bg:         #F7F8FA;
  --color-surface:    #FFFFFF;
  --color-surface-2:  #EEF1F6;
  --color-primary:    #1F5B99;
  --color-primary-dim:#184878;
  --color-secondary:  #1F5B99;
  --color-accent:     #1F5B99;
  --color-cta:        #ED4524;
  --color-cta-hover:  #d63d1e;
  --color-text:       #0C1E32;
  --color-muted:      rgba(12, 30, 50, 0.58);
  --color-white:      #ffffff;
  --color-border:     rgba(12, 30, 50, 0.11);

  --gradient-brand:   linear-gradient(135deg, #1F5B99 0%, #ED4524 100%);
  --gradient-primary: linear-gradient(135deg, #1F5B99 0%, #5293CF 100%);
  --gradient-glow:    radial-gradient(ellipse at center, rgba(31,91,153,0.12) 0%, transparent 70%);
  --gradient-hero:    linear-gradient(160deg, #EEF3FA 0%, #F7F8FA 50%, #EEF3FA 100%);
}

/* Smooth theme transition — applied to key properties only to avoid jank */
html {
  color-scheme: dark light;
}
body,
.navbar,
.card,
.hero,
.footer,
.mobile-nav-inner,
.faq-item,
.cta-block,
.trust-bar,
.page-hero {
  transition: background-color 0.3s ease, border-color 0.2s ease, color 0.2s ease;
}

/* =====================================================
   LIGHT MODE — Component Overrides
   ===================================================== */

/* 3a. Navbar */
[data-theme="light"] .navbar {
  background: rgba(247, 248, 250, 0.92);
  border-bottom: 1px solid rgba(12, 30, 50, 0.08);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(247, 248, 250, 0.98);
  box-shadow: 0 2px 20px rgba(12, 30, 50, 0.08);
}
[data-theme="light"] .nav-links a {
  color: rgba(12, 30, 50, 0.65);
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: var(--color-primary);
  background: rgba(31, 91, 153, 0.07);
}
[data-theme="light"] .btn-ghost {
  color: var(--color-text);
  border-color: rgba(12, 30, 50, 0.2);
}
[data-theme="light"] .mobile-menu-btn span {
  background: var(--color-text);
}

/* 3b. Mobile nav */
[data-theme="light"] .mobile-nav {
  background: rgba(12, 30, 50, 0.4);
}
[data-theme="light"] .mobile-nav-inner {
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
}
[data-theme="light"] .mobile-nav-inner a {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}
[data-theme="light"] #mobileClose {
  color: var(--color-text);
}

/* 3c. Hero section */
[data-theme="light"] .hero {
  background: var(--gradient-hero);
}
[data-theme="light"] .hero-title {
  color: var(--color-text);
}
[data-theme="light"] .hero-subtitle {
  color: var(--color-muted);
}
[data-theme="light"] .hero-float-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 8px 32px rgba(12, 30, 50, 0.1);
}
[data-theme="light"] .hero-pills .badge {
  background: rgba(31, 91, 153, 0.1);
  color: var(--color-primary);
  border-color: rgba(31, 91, 153, 0.2);
}

/* 3d. Cards and surfaces */
[data-theme="light"] .card {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 2px 12px rgba(12, 30, 50, 0.06);
}
[data-theme="light"] .card:hover {
  box-shadow: 0 8px 32px rgba(12, 30, 50, 0.12);
  border-color: rgba(31, 91, 153, 0.2);
}
[data-theme="light"] .trust-bar {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .trust-divider {
  background: var(--color-border);
}
[data-theme="light"] .testimonial-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .step-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .benefit-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .integration-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .logo-placeholder {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-muted);
}

/* 3e. Split sections */
[data-theme="light"] .split-section {
  background: transparent;
}
[data-theme="light"] .split-section.bg-surface {
  background: var(--color-surface);
}
[data-theme="light"] .check-list li::before {
  color: var(--color-primary);
}

/* 3f. FAQ */
[data-theme="light"] .faq-tab {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-muted);
}
[data-theme="light"] .faq-tab.active,
[data-theme="light"] .faq-tab:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
[data-theme="light"] .faq-item {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .faq-question {
  color: var(--color-text);
}
[data-theme="light"] .faq-answer {
  color: var(--color-muted);
}
[data-theme="light"] .faq-question::after {
  color: var(--color-primary);
}

/* 3g. CTA block */
[data-theme="light"] .cta-block {
  background: linear-gradient(160deg, #EEF3FA 0%, #F7F8FA 100%);
}
[data-theme="light"] .cta-block-bg {
  background: linear-gradient(135deg, rgba(31,91,153,0.08) 0%, rgba(247,248,250,0.95) 100%);
}
[data-theme="light"] .cta-block h2,
[data-theme="light"] .cta-block .section-label {
  color: var(--color-text);
}

/* 3h. Footer — keep dark in light mode for contrast */
[data-theme="light"] .footer {
  background: #0C1E32;
  border-top-color: rgba(255,255,255,0.08);
}
[data-theme="light"] .footer h5,
[data-theme="light"] .footer-col a,
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-bottom p {
  color: rgba(230, 230, 229, 0.7);
}
[data-theme="light"] .footer-col a:hover {
  color: #E6E6E5;
}
[data-theme="light"] .footer-bottom {
  border-top-color: rgba(255,255,255,0.08);
}
[data-theme="light"] .footer-bottom-links a {
  color: rgba(230, 230, 229, 0.5);
}
[data-theme="light"] .social-link {
  background: rgba(255,255,255,0.08);
  color: rgba(230, 230, 229, 0.7);
}

/* 3i. Pattern dividers — darker strokes for light bg */
[data-theme="light"] .pattern-divider {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Cg stroke='%231F5B99' stroke-width='1' fill='none' opacity='0.25'%3E%3Cpolyline points='0,0 16,22 32,0'/%3E%3Cpolyline points='2,0 16,20 30,0'/%3E%3Cpolyline points='4,0 16,18 28,0'/%3E%3Cpolyline points='6,0 16,16 26,0'/%3E%3Cpolyline points='8,0 16,14 24,0'/%3E%3Cpolyline points='10,0 16,12 22,0'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="light"] .pattern-divider--footer {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='26'%3E%3Cg stroke='%230C1E32' stroke-width='1.2' fill='none' opacity='0.2'%3E%3Cpolyline points='0,0 16,26 32,0'/%3E%3Cpolyline points='2,0 16,24 30,0'/%3E%3Cpolyline points='4,0 16,22 28,0'/%3E%3Cpolyline points='6,0 16,20 26,0'/%3E%3Cpolyline points='8,0 16,18 24,0'/%3E%3Cpolyline points='10,0 16,16 22,0'/%3E%3C/g%3E%3C/svg%3E");
}
[data-theme="light"] .pattern-bg::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Cg stroke='%231F5B99' stroke-width='0.8' fill='none' opacity='0.05'%3E%3Cpolyline points='0,0 16,22 32,0'/%3E%3C/g%3E%3C/svg%3E");
}

/* 3j. Forms */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: var(--color-muted);
}
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 91, 153, 0.15);
}

/* 3k. Page hero (inner pages) */
[data-theme="light"] .page-hero {
  background: linear-gradient(160deg, #EEF3FA 0%, #F7F8FA 100%);
}
[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero p {
  color: var(--color-text);
}

/* 3l. Comparison table */
[data-theme="light"] .comparison-table {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .comparison-table th {
  background: var(--color-surface-2);
  color: var(--color-text);
}
[data-theme="light"] .comparison-table td {
  border-color: var(--color-border);
  color: var(--color-muted);
}
[data-theme="light"] .comparison-table tr:hover td {
  background: rgba(31, 91, 153, 0.04);
}

/* 3m. Blog cards, survey, legal pages */
[data-theme="light"] .blog-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(12,30,50,0.06);
}
[data-theme="light"] .blog-card:hover {
  box-shadow: 0 8px 24px rgba(12,30,50,0.1);
}
[data-theme="light"] .blog-filter-tab {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-muted);
}
[data-theme="light"] .blog-filter-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
[data-theme="light"] .survey-option {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="light"] .survey-option:hover,
[data-theme="light"] .survey-option.selected {
  border-color: var(--color-primary);
  background: rgba(31,91,153,0.05);
}
[data-theme="light"] .cookie-banner {
  background: var(--color-surface);
  border-top-color: var(--color-border);
}

/* 3n. Context boxes and callouts */
[data-theme="light"] .context-box {
  background: rgba(31, 91, 153, 0.07);
  border-color: rgba(31, 91, 153, 0.2);
}
[data-theme="light"] .journey-step {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-secondary);
  background: rgba(82, 147, 207, 0.1);
}
/* In dark mode: show sun icon (to switch to light) */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: block; }
/* In light mode: show moon icon (to switch to dark) */
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle {
  color: var(--color-muted);
  border-color: rgba(12,30,50,0.15);
}
[data-theme="light"] .theme-toggle:hover {
  color: var(--color-primary);
  background: rgba(31, 91, 153, 0.08);
  border-color: var(--color-primary);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* 3. Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
}

h1 { font-size: var(--text-d1); }
h2 { font-size: var(--text-d2); }
h3 { font-size: var(--text-d3); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p {
  color: var(--color-muted);
  line-height: 1.7;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent  { color: var(--color-secondary); }
.text-primary { color: var(--color-primary); }
.text-cta     { color: var(--color-cta); }
.text-white   { color: var(--color-white); }
.text-muted   { color: var(--color-muted); }

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
}

/* 4. Layout Utilities
   ========================================================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

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

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

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

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

.text-center { text-align: center; }
.mx-auto { margin: 0 auto; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
}

/* 5. Components
   ========================================================================== */

/* 5.1 Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-3) 0;
  transition: background var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(12, 30, 50, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  color: white;
}

.logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.logo-duela {
  font-family: var(--font-accent);
}

.logo-pay {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-cta);
}

.logo-text strong {
  color: var(--color-cta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 auto;
}

.nav-links a {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  padding: var(--space-24) var(--space-8) var(--space-8);
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-muted);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav a:hover {
  color: var(--color-text);
}

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* 5.2 Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-cta);
  color: white;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(237,69,36,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
  box-shadow: var(--shadow-accent);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: white;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.05);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn-xl {
  padding: 1.1rem 2.4rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-full);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 5.3 Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: rgba(31,91,153,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 1.5rem;
}

.card-icon.purple { background: rgba(31,91,153,0.15); }
.card-icon.cyan   { background: rgba(82,147,207,0.12); }
.card-icon.coral  { background: rgba(237,69,36,0.12); }
.card-icon.blue   { background: rgba(31,91,153,0.12); }

.card h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* 5.4 Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-accent {
  background: rgba(82,147,207,0.12);
  color: var(--color-secondary);
  border: 1px solid rgba(82,147,207,0.2);
}

.badge-primary {
  background: rgba(31,91,153,0.15);
  color: var(--color-primary);
  border: 1px solid rgba(31,91,153,0.2);
}

.badge-secondary {
  background: rgba(82,147,207,0.12);
  color: var(--color-secondary);
  border: 1px solid rgba(82,147,207,0.2);
}

.badge-cta {
  background: rgba(237,69,36,0.12);
  color: var(--color-cta);
  border: 1px solid rgba(237,69,36,0.2);
}

/* 5.5 Divider */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto 0;
}

/* 5.6 Check list */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-muted);
}

.check-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(82,147,207,0.15);
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 6. Sections
   ========================================================================== */

/* 6.1 Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: var(--space-24);
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(31,91,153,0.22) 0%, transparent 60%);
  border-radius: 50%;
}

.hero-glow-2 {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(82,147,207,0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 580px;
}

.hero-badge {
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: var(--text-d1);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.hero-title .line-2 {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-muted);
  margin-bottom: var(--space-10);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
  margin-bottom: var(--space-12);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.hero-note svg {
  color: var(--color-secondary);
  width: 16px;
  height: 16px;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 80px rgba(31,91,153,0.2);
}

.hero-image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-image-card {
  position: absolute;
  background: rgba(17, 35, 56, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
}

.hero-image-card.card-1 {
  bottom: var(--space-8);
  left: calc(-1 * var(--space-8));
}

.hero-image-card.card-2 {
  top: var(--space-8);
  right: calc(-1 * var(--space-8));
}

.hero-image-card .card-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}

.hero-image-card .card-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.hero-image-card .card-value span {
  color: var(--color-secondary);
}

/* 6.2 Trust Bar */
.trust-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  flex-wrap: wrap;
}

.trust-stat {
  text-align: center;
}

.trust-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.trust-stat-value span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-stat-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* 6.3 How It Works */
.how-it-works {
  background: var(--color-bg);
}

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(16.66% + var(--space-4));
  right: calc(16.66% + var(--space-4));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), transparent);
  opacity: 0.4;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  transition: border-color var(--transition-base), transform var(--transition-slow);
}

.step-card:hover {
  border-color: rgba(31,91,153,0.4);
  transform: translateY(-6px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  color: white;
  margin: 0 auto var(--space-6);
  box-shadow: 0 0 30px rgba(31,91,153,0.4);
}

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

/* 6.4 Split Sections (Shoppers / Merchants) */
.split-section {
  padding: var(--space-24) 0;
}

.split-section.reverse .split-image { order: -1; }

.split-content {
  padding: var(--space-8);
}

.split-content h2 {
  margin-bottom: var(--space-6);
}

.split-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.split-content .check-list {
  margin-bottom: var(--space-8);
}

.split-content > .btn,
.split-content > a.btn {
  margin-top: var(--space-6);
}

.split-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.split-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.split-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12,30,50,0.8) 100%);
}

/* 6.5 Testimonials */
.testimonials {
  background: var(--color-surface);
  overflow: hidden;
}

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

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color var(--transition-base), transform var(--transition-slow);
}

.testimonial-card:hover {
  border-color: rgba(31,91,153,0.3);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
  color: #F59E0B;
  font-size: var(--text-sm);
}

.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

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

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

/* 6.6 Merchant Logos */
.merchant-logos {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.merchant-logos-label {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
}

.logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.logo-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-muted);
  transition: color var(--transition-base), border-color var(--transition-base);
}

.logo-placeholder:hover {
  color: var(--color-text);
  border-color: rgba(255,255,255,0.15);
}

/* 6.7 FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-tabs {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-14);
}

.faq-tab {
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-tab.active {
  background: var(--color-cta);
  color: white;
  border-color: var(--color-cta);
}

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

.faq-item.open {
  border-color: rgba(31,91,153,0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  gap: var(--space-4);
}

.faq-question:hover {
  color: var(--color-secondary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform var(--transition-base), background var(--transition-base);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(31,91,153,0.2);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.7;
  display: none;
}

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

/* 6.8 Trust & Compliance */
.trust-compliance {
  background: var(--color-surface);
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-12);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  transition: border-color var(--transition-base), color var(--transition-base);
}

.trust-badge-item:hover {
  border-color: var(--color-secondary);
  color: var(--color-text);
}

.trust-badge-icon {
  font-size: 1.4rem;
}

/* 6.9 CTA Block */
.cta-block {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--space-32) 0;
}

.cta-block-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(31,91,153,0.18) 0%, rgba(12,30,50,0.95) 100%);
}

.cta-block-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(31,91,153,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block .container {
  position: relative;
  z-index: 1;
}

.cta-block h2 {
  font-size: var(--text-d2);
  margin-bottom: var(--space-4);
}

.cta-block p {
  font-size: var(--text-lg);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* 6.10 Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  max-width: 260px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: all var(--transition-base);
}

.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-secondary);
  background: rgba(31,91,153,0.1);
}

.footer-col h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  font-size: var(--text-xs);
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-text);
}

/* 7. Page Specific — Shoppers / Merchants */
.page-hero {
  position: relative;
  padding: 160px 0 var(--space-24);
  overflow: hidden;
  background: var(--gradient-hero);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero .hero-glow-1,
.page-hero .hero-glow-2 {
  position: absolute;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero .hero-actions,
.page-hero .hero-pills {
  justify-content: center;
}

.page-hero h1 {
  margin-bottom: var(--space-6);
}

.page-hero p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* 8. Installment Calculator */
.calculator {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  max-width: 500px;
  margin: var(--space-12) auto 0;
}

.calculator h4 {
  text-align: center;
  margin-bottom: var(--space-6);
  font-size: var(--text-xl);
}

.calc-input-group {
  margin-bottom: var(--space-6);
}

.calc-input-group label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.calc-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-4);
  font-size: var(--text-xl);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-base);
}

.calc-input:focus {
  border-color: var(--color-primary);
}

.calc-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.calc-term {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
}

.calc-term.active {
  border-color: var(--color-primary);
  color: var(--color-secondary);
  background: rgba(31,91,153,0.1);
}

.calc-result {
  background: var(--color-bg);
  border: 1px solid rgba(82,147,207,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}

.calc-result-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-cta);
}

.calc-result-label {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
}

/* 9. Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(31,91,153,0.3); }
  50%       { box-shadow: 0 0 60px rgba(31,91,153,0.6); }
}

.animate-fade-up  { animation: fadeInUp 0.7s ease both; }
.animate-fade     { animation: fadeIn  0.7s ease both; }
.animate-float    { animation: float   4s ease-in-out infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 9b. Extra components
   ========================================================================== */

/* Logo clip — navbar: logo-icon.svg (gradient D, brand geometry) */
.logo-clip {
  width: 52px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-clip img,
.logo-img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* Footer full lockup — logo-white.svg (D + wordmark) */
.footer-logo {
  height: 88px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-5);
}

/* =====================================================
   NDEBELE CHEVRON PATTERN DIVIDER
   South African geometric beadwork-inspired band.
   Pure CSS data-URI SVG — zero JS, all browsers,
   fully responsive, GPU-composited.
   ===================================================== */

/* Section divider — Danube blue chevrons */
.pattern-divider {
  width: 100%;
  height: 22px;
  flex-shrink: 0;
  line-height: 0;
  margin: 10px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Cg stroke='%235293CF' stroke-width='1' fill='none' opacity='0.45'%3E%3Cpolyline points='0,0 16,22 32,0'/%3E%3Cpolyline points='2,0 16,20 30,0'/%3E%3Cpolyline points='4,0 16,18 28,0'/%3E%3Cpolyline points='6,0 16,16 26,0'/%3E%3Cpolyline points='8,0 16,14 24,0'/%3E%3Cpolyline points='10,0 16,12 22,0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 32px 22px;
  background-position: left center;
}

/* Footer-top variant — Quill Gray, more prominent */
.pattern-divider--footer {
  height: 26px;
  margin: 0 0 20px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='26'%3E%3Cg stroke='%23E6E6E5' stroke-width='1.2' fill='none' opacity='0.5'%3E%3Cpolyline points='0,0 16,26 32,0'/%3E%3Cpolyline points='2,0 16,24 30,0'/%3E%3Cpolyline points='4,0 16,22 28,0'/%3E%3Cpolyline points='6,0 16,20 26,0'/%3E%3Cpolyline points='8,0 16,18 24,0'/%3E%3Cpolyline points='10,0 16,16 22,0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 32px 26px;
}

/* Brand gradient variant — Matisse→Pomegranate for CTAs */
.pattern-divider--brand {
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3ClinearGradient id='pg' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%231F5B99' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%23ED4524' stop-opacity='0.6'/%3E%3C/linearGradient%3E%3Cg stroke='url(%23pg)' stroke-width='1' fill='none'%3E%3Cpolyline points='0,0 16,22 32,0'/%3E%3Cpolyline points='2,0 16,20 30,0'/%3E%3Cpolyline points='4,0 16,18 28,0'/%3E%3Cpolyline points='6,0 16,16 26,0'/%3E%3Cpolyline points='8,0 16,14 24,0'/%3E%3Cpolyline points='10,0 16,12 22,0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 32px 22px;
}

/* Subtle full-tile background texture (e.g. hero, CTA section) */
.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='22'%3E%3Cg stroke='%235293CF' stroke-width='0.8' fill='none' opacity='0.07'%3E%3Cpolyline points='0,0 16,22 32,0'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 32px 22px;
  pointer-events: none;
  z-index: 0;
}

/* Hero canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Hero layout */
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

/* Badge dot */
.badge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Floating cards on hero image */
.hero-float-card {
  position: absolute;
  background: rgba(17, 35, 56, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
}

.card-bottom-left {
  bottom: 1.5rem;
  left: -2rem;
  animation-delay: 0s;
}

.card-top-right {
  top: 1.5rem;
  right: -2rem;
  animation-delay: 1.5s;
}

.float-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.float-card-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-bottom: 2px;
}

.float-card-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.float-card-value span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-secondary);
  font-weight: 500;
  display: block;
}

/* Hero image overlay */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12,30,50,0.75) 100%);
}

/* Trust bar partner entry */
.trust-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.trust-partner-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-partner-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-secondary);
}

/* Mobile nav rewrite */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100%;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  overflow-y: auto;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-header button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  color: var(--color-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-base);
}

.mobile-nav-header button:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-text);
}

.mobile-nav-inner > a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-muted);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav-inner > a:hover,
.mobile-nav-inner > a.active {
  color: var(--color-text);
}

.mobile-nav-actions {
  margin-top: auto;
  padding-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Mobile menu burger animation */
.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* FAQ group display */
.faq-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* Promise Bar — pre-launch value pillars */
.promise-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}
.promise-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.promise-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.promise-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(31, 91, 153, 0.12);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.promise-text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}
.promise-text span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 1px;
}
.promise-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}
[data-theme="light"] .promise-icon {
  background: rgba(31, 91, 153, 0.08);
}

/* Launch badge — pre-launch hero announcement */
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(31, 91, 153, 0.12);
  border: 1px solid rgba(31, 91, 153, 0.25);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

/* Pre-launch announcement bar */
.prelaunch-bar {
  background: var(--gradient-brand);
  padding: 0.55rem 0;
  text-align: center;
  position: relative;
  z-index: 200;
}
.prelaunch-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}
.prelaunch-bar p {
  font-size: var(--text-sm);
  color: #fff;
  margin: 0;
  line-height: 1.4;
}
.prelaunch-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}
.prelaunch-bar strong {
  color: #fff;
}
.prelaunch-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  flex-shrink: 0;
  position: absolute;
  right: 1.5rem;
}
.prelaunch-close:hover { color: #fff; }
[data-theme="light"] .prelaunch-bar p,
[data-theme="light"] .prelaunch-bar a,
[data-theme="light"] .prelaunch-bar strong { color: #fff; }

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

  .hero-image { display: none; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-pills { justify-content: center; }

  .split-section .grid-2 { grid-template-columns: 1fr; }
  .split-section .split-image { order: -1; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }

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

  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

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

  .trust-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .trust-divider { display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cta-actions { flex-direction: column; align-items: center; }

  .hero-float-card { display: none; }

  .faq-tabs { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  .promise-items { gap: var(--space-4); }
  .promise-divider { display: none; }
  .promise-item { flex-basis: calc(50% - var(--space-4)); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .logos-grid { gap: var(--space-4); }
  .trust-badges { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .promise-item { flex-basis: 100%; }
}

/* Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--color-surface-2); border-top: 1px solid var(--color-border);
  padding: 1rem 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--color-muted);
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { flex: 1; min-width: 200px; margin: 0; }
.cookie-banner a { color: var(--color-secondary); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* Back to Top button
   ========================================================================== */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(31,91,153,0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#backToTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#backToTop:hover {
  box-shadow: 0 6px 28px rgba(31,91,153,0.5);
  transform: translateY(-2px);
}
