/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors — Frame.io-inspired deep navy / indigo / violet palette */
  --bg-primary:      #06080F;
  --bg-secondary:    #0C1018;
  --bg-card:         #101628;
  --bg-card-hover:   #141C32;
  --accent:          #7C83FF;
  --accent-glow:     rgba(124,131,255,0.38);
  --accent-dim:      rgba(124,131,255,0.12);
  --accent-border:   rgba(124,131,255,0.28);
  --text-primary:    #F4F6FB;
  --text-secondary:  #9AA3BE;
  --text-muted:      #4E5A7A;
  --border:          rgba(255,255,255,0.07);
  --success:         #22C55E;
  --warning:         #EAB308;
  --danger:          #FF5F57;

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 24px rgba(0,0,0,0.55);
  --shadow-lg:   0 8px 48px rgba(0,0,0,0.65);
  --shadow-glow: 0 0 32px rgba(124,131,255,0.20);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 100px;

  /* Typography — fluid scale */
  --fs-xs:  clamp(0.65rem, 1.2vw, 0.75rem);
  --fs-sm:  clamp(0.78rem, 1.5vw, 0.875rem);
  --fs-md:  clamp(0.875rem, 1.8vw, 1rem);
  --fs-lg:  clamp(1rem, 2vw, 1.125rem);
  --fs-xl:  clamp(1.1rem, 2.5vw, 1.35rem);
  --fs-2xl: clamp(1.3rem, 3vw, 1.75rem);
  --fs-3xl: clamp(1.6rem, 4vw, 2.5rem);
  --fs-4xl: clamp(2rem, 5vw, 3.5rem);
  --fs-5xl: clamp(2.4rem, 6vw, 5rem);

  /* Spacing scale */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:    0.28s var(--ease);
  --transition-re: 0.45s var(--ease-spring);

  /* Fonts */
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  /* Layout */
  --container-max: 1280px;
  --navbar-h: 64px;

  /* Safe-area insets (notch/home-bar on iOS) */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  /* ── Legacy aliases (inner pages use these names) ── */
  --accent-blue:      #7C83FF;
  --accent-blue-dim:  rgba(124,131,255,0.12);
  --accent-blue-glow: rgba(124,131,255,0.38);
  --border-blue:      rgba(124,131,255,0.28);
  --border-subtle:    rgba(255,255,255,0.07);
  --bg-card-hover:    #141C32;
  --radius-xs:        4px;
  --radius-sm:        6px;
  --radius-md:        12px;
  --radius-lg:        18px;
  --radius-xl:        28px;
  --radius-pill:      100px;
  --shadow-sm:        0 2px 8px rgba(0,0,0,0.4);
  --shadow-card:      0 4px 24px rgba(0,0,0,0.55);
  --shadow-glow:      0 0 32px rgba(124,131,255,0.20);
  --transition:       0.28s cubic-bezier(0.4,0,0.2,1);
  --font-body:        'Inter', system-ui, -apple-system, sans-serif;
  --font-display:     'Space Grotesk', system-ui, sans-serif;
  --text-primary:     #F4F6FB;
  --text-secondary:   #9AA3BE;
  --text-muted:       #4E5A7A;
  --bg-primary:       #06080F;
  --bg-secondary:     #0C1018;
  --bg-card:          #101628;
}

/* ============================================================
   1b. LIGHT THEME — [data-theme="light"]
   Corporate blue palette, defaults off (dark is base)
   ============================================================ */
[data-theme="light"] {
  /* Backgrounds — clean light grays */
  --bg-primary:      #F9FAFB;
  --bg-secondary:    #F1F4F8;
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #EEF2FF;

  /* Brand accent — professional corporate blue */
  --accent:          #0056D2;
  --accent-glow:     rgba(0, 86, 210, 0.22);
  --accent-dim:      rgba(0, 86, 210, 0.08);
  --accent-border:   rgba(0, 86, 210, 0.22);

  /* Text */
  --text-primary:    #0D1117;
  --text-secondary:  #4B5563;
  --text-muted:      #9CA3AF;

  /* Borders — subtle on white */
  --border:          rgba(0, 0, 0, 0.09);

  /* Shadows — softer on light bg */
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.13);
  --shadow-glow: 0 0 28px rgba(0,86,210,0.14);

  /* Legacy aliases */
  --accent-blue:      #0056D2;
  --accent-blue-dim:  rgba(0,86,210,0.08);
  --accent-blue-glow: rgba(0,86,210,0.22);
  --border-blue:      rgba(0,86,210,0.22);
  --border-subtle:    rgba(0,0,0,0.09);
  --shadow-card:      0 4px 20px rgba(0,0,0,0.10);
  --text-primary:     #0D1117;
  --text-secondary:   #4B5563;
  --text-muted:       #9CA3AF;
  --bg-primary:       #F9FAFB;
  --bg-secondary:     #F1F4F8;
  --bg-card:          #FFFFFF;
  --bg-card-hover:    #EEF2FF;
}

/* ── Light theme: body & base ── */
[data-theme="light"] body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ── Scrollbar ── */
[data-theme="light"] ::-webkit-scrollbar-track { background: #F1F4F8; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #0056D2; }
[data-theme="light"] ::selection { background: rgba(0,86,210,0.18); color: #0D1117; }

/* ── Noise overlay — reduce on light (it's designed for dark) ── */
[data-theme="light"] .noise-overlay { opacity: 0.08; }

/* ── Gradient text — stays brand blue on light ── */
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0056D2 0%, #2979FF 45%, #5B5FE8 80%, #0091EA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar — glassmorphism adapted for light ── */
[data-theme="light"] .navbar.scrolled {
  background: rgba(249,250,251,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

/* Bottom separator line — corporate blue gradient */
[data-theme="light"] .navbar::after {
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(0,86,210,0.06)      15%,
    rgba(0,86,210,0.40)      40%,
    rgba(0,86,210,0.65)      50%,
    rgba(0,86,210,0.40)      60%,
    rgba(0,86,210,0.06)      85%,
    transparent              100%
  );
}

/* Glow bloom beneath navbar line */
[data-theme="light"] .navbar::before {
  background: radial-gradient(ellipse at center, rgba(0,86,210,0.10) 0%, transparent 100%);
}

[data-theme="light"] .nav-links a {
  color: var(--text-secondary);
}
[data-theme="light"] .nav-links a:hover {
  color: var(--text-primary);
}
[data-theme="light"] .nav-links a.active {
  color: var(--text-primary);
  background: transparent;
}
[data-theme="light"] .nav-links a.active::after {
  background: linear-gradient(90deg, transparent, #0056D2, transparent);
  box-shadow: 0 0 10px rgba(0, 86, 210, 0.6);
}

/* Mobile nav drawer */
[data-theme="light"] .nav-mobile {
  background: rgba(249,250,251,0.98);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid rgba(0,0,0,0.09);
}
[data-theme="light"] .nav-mobile a { color: var(--text-secondary); }
[data-theme="light"] .nav-mobile a:hover,
[data-theme="light"] .nav-mobile a:focus-visible {
  color: var(--text-primary);
  background: rgba(0, 86, 210, 0.10);
  border-left-color: #0056D2;
}
[data-theme="light"] .nav-mobile a:active {
  background: rgba(0, 86, 210, 0.18);
}
[data-theme="light"] .nav-mobile a.active {
  color: var(--text-primary);
  background: rgba(0, 86, 210, 0.08);
  border-left-color: #0056D2;
}
[data-theme="light"] .nav-mobile a.active:hover,
[data-theme="light"] .nav-mobile a.active:focus-visible {
  background: rgba(0, 86, 210, 0.15);
}

[data-theme="light"] .nav-hamburger span { background: var(--text-secondary); }

/* ── Buttons ── */
[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #0056D2, #1565C0);
  color: #fff;
  box-shadow: 0 3px 16px rgba(0,86,210,0.30);
}
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 6px 28px rgba(0,86,210,0.45);
}
[data-theme="light"] .btn-outline {
  border-color: rgba(0,86,210,0.30);
  color: #0056D2;
  background: rgba(0,86,210,0.07);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(0,86,210,0.13);
  border-color: #0056D2;
  box-shadow: 0 0 18px rgba(0,86,210,0.14);
}
[data-theme="light"] .btn-ghost { color: var(--text-secondary); }
[data-theme="light"] .btn-ghost:hover { color: var(--text-primary); background: rgba(0,0,0,0.06); }

/* ── Badges ── */
[data-theme="light"] .badge {
  background: rgba(0,86,210,0.08);
  color: #0056D2;
  border-color: rgba(0,86,210,0.22);
}
[data-theme="light"] .badge-blue {
  background: rgba(0,86,210,0.08);
  color: #0056D2;
  border-color: rgba(0,86,210,0.22);
}
[data-theme="light"] .badge-dot::before {
  background: #0056D2;
  box-shadow: 0 0 6px #0056D2;
}
[data-theme="light"] .badge-dot-green::before {
  background: #16A34A;
  box-shadow: 0 0 7px #16A34A, 0 0 14px rgba(22,163,74,0.40);
}

/* ── Cards ── */
[data-theme="light"] .card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
[data-theme="light"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(0,86,210,0.35), transparent);
}
[data-theme="light"] .card:hover {
  background: #F5F8FF;
  border-color: rgba(0,86,210,0.25);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ── Card icon ── */
[data-theme="light"] .card-icon {
  background: rgba(0,86,210,0.08);
}

/* ── Section headers ── */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
  color: var(--text-primary);
}

/* ── Hero section ── */
[data-theme="light"] #hero,
[data-theme="light"] .inner-hero {
  background: linear-gradient(175deg, #EEF2FF 0%, #F9FAFB 60%);
}

/* Aurora bands — soft blue tones on light */
[data-theme="light"] .aurora-band-1 {
  background: linear-gradient(90deg, rgba(0,86,210,0.10), rgba(79,70,229,0.07), rgba(0,145,234,0.05));
}
[data-theme="light"] .aurora-band-2 {
  background: linear-gradient(90deg, rgba(79,70,229,0.06), rgba(0,86,210,0.09), rgba(0,145,234,0.04));
}
[data-theme="light"] .aurora-band-3 {
  background: linear-gradient(90deg, rgba(0,120,255,0.04), rgba(55,15,180,0.07), rgba(0,86,210,0.06));
}

/* Orbs — faint blue tint */
[data-theme="light"] .hero-orb-1 {
  background: radial-gradient(circle, rgba(0,86,210,0.12), rgba(0,86,210,0.04) 55%, transparent 70%);
}
[data-theme="light"] .hero-orb-2 {
  background: radial-gradient(circle, rgba(79,70,229,0.10), rgba(0,86,210,0.04) 55%, transparent 70%);
}

/* Hero grid bg */
[data-theme="light"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(0,86,210,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,86,210,0.05) 1px, transparent 1px);
}

/* ── Glow backgrounds ── */
[data-theme="light"] .bg-glow-blue {
  background: radial-gradient(circle, rgba(0,86,210,0.10), transparent 70%);
}

/* ── Trust strip lines ── */
[data-theme="light"] .trust-strip::before,
[data-theme="light"] .trust-strip::after {
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(0,86,210,0.04)      15%,
    rgba(0,86,210,0.28)      40%,
    rgba(0,86,210,0.48)      50%,
    rgba(0,86,210,0.28)      60%,
    rgba(0,86,210,0.04)      85%,
    transparent              100%
  );
}

/* ── Footer ── */
[data-theme="light"] footer {
  background: #F1F4F8;
  border-top: 1px solid rgba(0,0,0,0.09);
}
[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.09);
}
[data-theme="light"] .footer-col a { color: var(--text-secondary); }
[data-theme="light"] .footer-col a:hover { color: var(--text-primary); }
[data-theme="light"] .footer-col h4 { color: var(--text-muted); }
[data-theme="light"] .footer-brand p { color: var(--text-secondary); }
[data-theme="light"] .social-link {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.12);
  color: var(--text-secondary);
}
[data-theme="light"] .social-link:hover {
  background: rgba(0,86,210,0.10);
  border-color: rgba(0,86,210,0.25);
  color: #0056D2;
}

/* ── Hero canvas — full opacity; colours are adapted in JS ── */
[data-theme="light"] #hero-canvas { opacity: 1; }

/* ── Dashboard preview ── */
[data-theme="light"] .dashboard-preview {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 8px 48px rgba(0,0,0,0.10), 0 0 80px rgba(0,86,210,0.07);
}
[data-theme="light"] .dash-bar,
[data-theme="light"] .dash-sidebar {
  background: #F1F4F8;
  border-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .dash-body { background: #F9FAFB; }
[data-theme="light"] .dash-stat-card,
[data-theme="light"] .dash-asset-row {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .dash-menu-item { color: var(--text-secondary); }
[data-theme="light"] .dash-menu-item.active {
  background: rgba(0,86,210,0.08);
  color: #0056D2;
}

/* ── Pillar / module cards ── */
[data-theme="light"] .pillar-card,
[data-theme="light"] .module-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .pillar-card:hover,
[data-theme="light"] .module-card:hover {
  border-color: rgba(0,86,210,0.25);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ── Solutions tabs ── */
[data-theme="light"] .tab-btn {
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
  border-color: rgba(0,0,0,0.09);
}
[data-theme="light"] .tab-btn.active,
[data-theme="light"] .tab-btn:hover {
  background: rgba(0,86,210,0.09);
  color: #0056D2;
  border-color: rgba(0,86,210,0.25);
}

/* ── Stats / counter numbers ── */
[data-theme="light"] .stat-value { color: #0056D2; }

/* ── Input / form fields ── */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.15);
  color: var(--text-primary);
}
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: var(--text-muted); }
[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
  border-color: #0056D2;
  box-shadow: 0 0 0 3px rgba(0,86,210,0.12);
}

/* ── Problem / feature section ── */
[data-theme="light"] .problem-card,
[data-theme="light"] .feature-card {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.09);
}

/* ── Theme toggle button ── */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--accent-dim);
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}
.theme-toggle:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
/* Icon swap — sun shown in dark, moon shown in light */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none;  }
[data-theme="light"] .theme-toggle .icon-sun  { display: none;  }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle {
  border-color: rgba(0,86,210,0.22);
  background: rgba(0,86,210,0.07);
  color: #0056D2;
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0,86,210,0.14);
  box-shadow: 0 0 12px rgba(0,86,210,0.18);
}

/* ── Page loader ── */
[data-theme="light"] .page-loader { background: #F9FAFB; }

/* ── Cursor ── */
[data-theme="light"] .cursor-outer {
  border-color: rgba(0,86,210,0.5);
}
[data-theme="light"] .cursor-inner {
  background: #0056D2;
}

/* ── Privacy modal ── */
[data-theme="light"] .privacy-modal-overlay {
  background: rgba(0,0,0,0.35);
}
[data-theme="light"] .privacy-modal-dialog {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.12);
  color: var(--text-primary);
}

/* ── Inner-page hero grid lines ── */
[data-theme="light"] [style*="rgba(124,131,255,0.055)"] {
  background-image:
    linear-gradient(rgba(0,86,210,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,86,210,0.06) 1px, transparent 1px) !important;
}

/* ── Smooth theme transition ── */
body,
.navbar,
.nav-mobile,
.card,
footer,
.dashboard-preview,
.dash-bar,
.dash-sidebar,
.dash-body,
.dash-stat-card,
.dash-asset-row,
.pillar-card,
.module-card,
.tab-btn,
.btn,
.badge,
input, select, textarea {
  transition:
    background-color 0.3s var(--ease),
    border-color     0.3s var(--ease),
    color            0.3s var(--ease),
    box-shadow       0.3s var(--ease);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Prevent iOS font-size inflation on orientation change */
@media screen and (max-width: 768px) {
  body { -webkit-text-size-adjust: none; }
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button { cursor: pointer; border: none; outline: none; background: none; }

/* Focus visible — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* Selection */
::selection { background: rgba(124,131,255,0.3); color: #fff; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-hero { font-size: var(--fs-5xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.display-1    { font-size: var(--fs-4xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.display-2    { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.12; }
.display-3    { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.18; }

.text-lg   { font-size: var(--fs-lg);  line-height: 1.75; }
.text-md   { font-size: var(--fs-md);  line-height: 1.70; }
.text-sm   { font-size: var(--fs-sm);  line-height: 1.65; }
.text-xs   { font-size: var(--fs-xs);  line-height: 1.6; }

/* Aliases kept for backward-compat */
.body-lg { font-size: var(--fs-lg); line-height: 1.75; }
.body-md { font-size: var(--fs-md); line-height: 1.70; }
.body-sm { font-size: var(--fs-sm); line-height: 1.65; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #7C83FF 45%, #B8A4FF 80%, #53C7FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted   { color: var(--text-secondary); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.font-bold    { font-weight: 700; }
.font-semi    { font-weight: 600; }
.uppercase    { text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================
   4. LAYOUT — CONTAINER & GRID
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

section { position: relative; overflow: hidden; }

.section-pad    { padding-block: clamp(56px, 8vw, 100px); }
.section-pad-sm { padding-block: clamp(32px, 5vw, 60px); }

/* Responsive grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-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; }
.flex-wrap   { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.gap-8 { gap: var(--sp-8); }

.w-full  { width: 100%; }
.hidden  { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   5. SECTION HEADER
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-header .badge { margin-bottom: var(--sp-5); }

.section-header h2 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--sp-4);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
  line-height: 1.75;
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: calc(var(--navbar-h) + var(--safe-t));
  padding-top: var(--safe-t);
  padding-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
}

/* Bottom accent line — violet gradient, blurred edges, heavy centre */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(124,131,255,0.08)   15%,
    rgba(180,185,255,0.55)   40%,
    rgba(200,204,255,0.85)   50%,
    rgba(180,185,255,0.55)   60%,
    rgba(124,131,255,0.08)   85%,
    transparent              100%
  );
  pointer-events: none;
}

/* Soft glow bloom beneath the centre of the line */
.navbar::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 15%;
  right: 15%;
  height: 8px;
  background: radial-gradient(ellipse at center, rgba(124,131,255,0.20) 0%, transparent 100%);
  filter: blur(4px);
  pointer-events: none;
  z-index: -1;
}

.navbar .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

.navbar.scrolled {
  background: rgba(6,8,15,0.93);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* left | centre | right */
  align-items: center;
  gap: var(--sp-4);
}

/* Logo — left column, left-aligned */
.nav-inner .nav-logo {
  justify-self: start;
  flex-shrink: 0;
}

/* Nav links — centre column, naturally centred */
.nav-inner .nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

/* CTA group — right column, right-aligned */
.nav-inner .nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger stays in the CTA column on mobile */
.nav-inner .nav-hamburger {
  justify-self: end;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 44px;
}

.nav-logo .logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

/* ── Light theme: swap to dark-wordmark logo ── */
[data-theme="light"] .nav-logo .logo-img,
[data-theme="light"] footer .nav-logo .logo-img {
  content: url('../images/axion11-logo-dark.svg');
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 13px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* Hover: brighten text only, no background */
.nav-links a:hover {
  color: var(--text-primary);
}

/* Active: brighten text + add glowing gradient underline */
.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
  background: transparent;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(124, 131, 255, 0.8);
  pointer-events: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  border-radius: var(--r-sm);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  inset-block-start: var(--navbar-h);
  inset-inline: 0;
  background: rgba(10,14,20,0.98);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-5) var(--sp-6) calc(var(--sp-8) + var(--safe-b));
  z-index: 999;
  flex-direction: column;
  gap: 2px;
  /* safe-area for notch */
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* ── Mobile nav backdrop (blurs page content when drawer is open) ── */
.nav-mobile-backdrop {
  position: fixed;
  inset-block-start: var(--navbar-h);
  inset-inline: 0;
  inset-block-end: 0;
  background: rgba(6, 8, 15, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 998;  /* sits just under .nav-mobile (999) and .navbar (1000) */
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.nav-mobile-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Light-theme — lighter tint so blur stays readable */
[data-theme="light"] .nav-mobile-backdrop {
  background: rgba(250, 250, 252, 0.55);
}

/* Desktop — backdrop never needed; drawer is hidden anyway */
@media (min-width: 769px) {
  .nav-mobile-backdrop { display: none !important; }
}

/* Reduced motion — instant on/off */
@media (prefers-reduced-motion: reduce) {
  .nav-mobile-backdrop { transition: none; }
}

.nav-mobile a {
  padding: 14px 18px;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.15s var(--ease);
  min-height: 52px;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  border-left: 3px solid transparent;
}

/* Hover / focus — strong accent tint + brighter text */
.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  color: var(--text-primary);
  background: rgba(124, 131, 255, 0.16);
  border-left-color: var(--accent);
  outline: none;
}

/* Pressed state — extra feedback on tap */
.nav-mobile a:active {
  background: rgba(124, 131, 255, 0.26);
  transform: scale(0.99);
}

/* Active (current page) — always-visible indicator */
.nav-mobile a.active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(124, 131, 255, 0.12);
  border-left-color: var(--accent);
}
.nav-mobile a.active:hover,
.nav-mobile a.active:focus-visible {
  background: rgba(124, 131, 255, 0.22);
}

.nav-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* Minimum touch target */
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, #7C83FF, #5B5FE8);
  color: #fff;
  box-shadow: 0 3px 16px rgba(124,131,255,0.38);
}
.btn-primary::before { background: linear-gradient(rgba(255,255,255,0.14), transparent); }
.btn-primary:hover   { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124,131,255,0.55); }
.btn-primary:active  { transform: translateY(0); }

.btn-outline {
  border: 1px solid var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-outline:hover {
  background: rgba(124,131,255,0.18);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(124,131,255,0.18);
}

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

.btn-lg { padding: 14px 30px; font-size: var(--fs-md); border-radius: var(--r-md); min-height: 50px; }
.btn-sm { padding: 8px 16px;  font-size: var(--fs-xs); min-height: 36px; }

/* ============================================================
   8. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-blue {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Green variant — overrides the dot colour + glow */
.badge-dot-green::before {
  background: #22C55E;
  box-shadow: 0 0 7px #22C55E, 0 0 14px rgba(34, 197, 94, 0.45);
  animation: pulse-dot-green 1.4s ease-in-out infinite;
}

@keyframes pulse-dot-green {
  0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 7px #22C55E, 0 0 14px rgba(34,197,94,0.45); }
  50%       { opacity: 0.35; transform: scale(0.7); box-shadow: 0 0 3px #22C55E, 0 0  4px rgba(34,197,94,0.20); }
}

/* Early Access badge — orange + animated stroke + green dot */
.badge-early-access {
  background: rgba(255, 120, 20, 0.13);
  color: #FF7814;
  border: 1.5px solid #FF7814;
  animation: earlyAccessStroke 2s ease-in-out infinite;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  padding: 9px 20px;
  gap: 9px;
}

@keyframes earlyAccessStroke {
  0%, 100% { border-color: #FF7814; box-shadow: 0 0 0px rgba(255,120,20,0); }
  50%       { border-color: #FFB066; box-shadow: 0 0 10px rgba(255,120,20,0.55); }
}

.badge-early-access::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 9px #22C55E;
  animation: greenPulseDot 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes greenPulseDot {
  0%, 100% { opacity: 1;   transform: scale(1);    box-shadow: 0 0 6px #22C55E; }
  50%       { opacity: 0.4; transform: scale(0.75); box-shadow: 0 0 2px #22C55E; }
}

/* ============================================================
   9. CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,131,255,0.55), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--sp-5);
  flex-shrink: 0;
}

/* ============================================================
   10. STATUS PILLS
   ============================================================ */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-approved { background: rgba(34,197,94,0.12);  color: var(--success); }
.status-review   { background: rgba(234,179,8,0.12);  color: var(--warning); }
.status-editing  { background: rgba(124,131,255,0.12); color: var(--accent); }

/* ============================================================
   11. DIVIDER
   ============================================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ============================================================
   12. GLOW BACKGROUNDS
   ============================================================ */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-blue  { background: radial-gradient(circle, rgba(100,80,255,0.20), transparent 70%); }

/* ============================================================
   13. NOISE TEXTURE
   ============================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.35;
}

/* ============================================================
   13b. SWUP PAGE TRANSITIONS
   ============================================================ */

/* The content container — always visible at rest */
#swup.transition-fade {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity      0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform    0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

/* State applied by Swup while the old page is leaving */
html.is-animating #swup.transition-fade {
  opacity:   0;
  transform: translateY(10px);
}

/* ============================================================
   14. PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.page-loader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-ring {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

/* ============================================================
   15. SCROLL REVEAL
   ────────────────────────────────────────────────────────────
   Fail-safe design: `.reveal` is ONLY hidden when JS has signalled
   it's ready to manage reveal animations (by adding `js-reveal-ready`
   to <html>). If JS fails to load entirely, content stays visible.
   ============================================================ */
.reveal {
  /* Default state — visible. JS will add hide rules via js-reveal-ready. */
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease-spring), transform 0.65s var(--ease-spring);
  will-change: transform, opacity;
}

/* Once JS is ready, hide unrevealed elements so the animation can play */
.js-reveal-ready .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(28px);
}

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

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.26s; }
.reveal-delay-4 { transition-delay: 0.34s; }
.reveal-delay-5 { transition-delay: 0.42s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .js-reveal-ready .reveal:not(.visible) {
    opacity: 1; transform: none; transition: none;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   16. HERO SECTION
   ============================================================ */
#hero {
  min-height: 100svh; /* svh = small viewport height — fixes mobile browser chrome */
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-h) + clamp(40px,6vw,80px));
  padding-bottom: clamp(48px,6vw,100px);
  position: relative;
  overflow: hidden; /* clip canvas & aurora so they never bleed into the next section */
}

/* Animated grid */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,131,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,131,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
  animation: gridDrift 20s linear infinite;
  will-change: background-position;
}
@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 56px 56px, 56px 56px; }
}

/* Canvas */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
  /* Fallback background — a faint radial glow so the hero never looks
     empty even if the canvas fails to initialise (rare on old GPUs,
     hardware-acceleration-disabled Chrome, or RDP sessions). */
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%,
      rgba(124,131,255,0.08) 0%,
      transparent 60%);
}

/* When the canvas can't initialise (corporate PCs with HW accel off,
   remote desktop, old drivers), JS adds this class to <html> so the
   CSS aurora & orbs are boosted to fill the visual gap. */
.canvas-unavailable #hero-canvas { display: none !important; }
.canvas-unavailable .hero-aurora { opacity: 1.1; }
.canvas-unavailable .hero-orb    { opacity: 1.15; }
.canvas-unavailable .aurora-band { filter: blur(60px); }

/* Aurora bands */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora-band {
  position: absolute;
  width: 160%;
  height: 260px;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0;
  animation: auroraFlow 14s ease-in-out infinite;
  will-change: transform, opacity;
}
.aurora-band-1 {
  background: linear-gradient(90deg, rgba(124,131,255,0.22), rgba(160,60,255,0.16), rgba(80,200,255,0.10));
  top: 10%; left: -30%;
  animation-delay: 0s; animation-duration: 14s;
}
.aurora-band-2 {
  background: linear-gradient(90deg, rgba(180,60,255,0.13), rgba(124,131,255,0.19), rgba(60,180,255,0.09));
  top: 38%; left: -10%;
  animation-delay: -5s; animation-duration: 18s;
}
.aurora-band-3 {
  background: linear-gradient(90deg, rgba(60,140,255,0.09), rgba(110,30,220,0.15), rgba(124,131,255,0.12));
  top: 62%; left: -20%;
  animation-delay: -9s; animation-duration: 22s;
}
@keyframes auroraFlow {
  0%   { opacity: 0;   transform: translateX(-5%)  scaleY(1)   skewX(-6deg); }
  15%  { opacity: 1; }
  50%  { opacity: 0.7; transform: translateX(12%)  scaleY(1.3) skewX(4deg); }
  85%  { opacity: 1; }
  100% { opacity: 0;   transform: translateX(-5%)  scaleY(1)   skewX(-6deg); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
  will-change: transform;
}
.hero-orb-1 {
  width: clamp(280px, 40vw, 520px); height: clamp(280px, 40vw, 520px);
  background: radial-gradient(circle, rgba(124,131,255,0.28), rgba(100,60,255,0.10) 55%, transparent 70%);
  top: -15%; right: -8%;
  animation: orbDrift1 16s ease-in-out infinite;
}
.hero-orb-2 {
  width: clamp(200px, 30vw, 380px); height: clamp(200px, 30vw, 380px);
  background: radial-gradient(circle, rgba(170,60,255,0.22), transparent 70%);
  bottom: -8%; left: -5%;
  animation: orbDrift2 20s ease-in-out infinite;
}
.hero-orb-3 {
  width: clamp(140px, 20vw, 260px); height: clamp(140px, 20vw, 260px);
  background: radial-gradient(circle, rgba(83,199,255,0.17), transparent 70%);
  top: 30%; left: 20%;
  animation: orbDrift3 24s ease-in-out infinite;
}
.hero-orb-4 {
  width: clamp(100px, 15vw, 200px); height: clamp(100px, 15vw, 200px);
  background: radial-gradient(circle, rgba(124,131,255,0.24), transparent 70%);
  top: 55%; right: 15%;
  animation: orbDrift4 18s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  25%     { transform: translate(-30px,25px) scale(1.08); }
  50%     { transform: translate(18px,50px) scale(0.95); }
  75%     { transform: translate(40px,-16px) scale(1.04); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.12); }
  66%     { transform: translate(-24px,24px) scale(0.9); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0) scale(1); opacity:.8; }
  40%     { transform: translate(50px,30px) scale(1.18); opacity:1; }
  70%     { transform: translate(-30px,16px) scale(0.84); opacity:.6; }
}
@keyframes orbDrift4 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-40px,24px) scale(1.25); }
}

/* Cursor spotlight */
.hero-spotlight {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,131,255,0.11), rgba(100,60,255,0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease);
  opacity: 0;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.hero-badge { margin-bottom: clamp(20px, 3vw, 28px); }

.hero-headline {
  font-size: var(--fs-5xl);
  margin-bottom: clamp(16px, 2.5vw, 24px);
  line-height: 1.06;
  color: rgba(244, 246, 251, 0.92);       /* slightly off-white — less stark */
  text-shadow:
    0 1px 6px rgba(0, 0, 0, 0.28),        /* was 0.55 — softer close shadow  */
    0 4px 22px rgba(0, 0, 0, 0.18),       /* was 0.40 — reduced depth bloom  */
    0 0 60px rgba(124, 131, 255, 0.10);   /* was 0.18 — faint accent glow    */
}

/* Light theme: dark headline, no shadow needed */
[data-theme="light"] .hero-headline {
  color: #0D1117;
  text-shadow: none;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: clamp(28px, 4vw, 40px);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--border);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Trust strip */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  padding-block: clamp(24px, 4vw, 36px);
  margin-top: clamp(40px, 6vw, 64px);
  position: relative;
}

/* Top line */
.trust-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent            0%,
    rgba(255,255,255,0.28) 35%,
    rgba(255,255,255,0.48) 50%,
    rgba(255,255,255,0.28) 65%,
    transparent            100%
  );
  border-radius: 1px;
}

/* Bottom line */
.trust-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent            0%,
    rgba(255,255,255,0.28) 35%,
    rgba(255,255,255,0.48) 50%,
    rgba(255,255,255,0.28) 65%,
    transparent            100%
  );
  border-radius: 1px;
}

.trust-logo {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.4vw, 1rem);
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.trust-logo:hover { opacity: 0.85; }

/* ============================================================
   17. DASHBOARD MOCKUP
   ============================================================ */
.dashboard-preview {
  position: relative;
  z-index: 2; /* sit above the hero canvas (z-index: 1) and aurora (z-index: 0) */
  margin-top: clamp(48px, 6vw, 80px);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124,131,255,0.12);
}

.dash-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.dash-dots { display: flex; gap: 6px; }
.dash-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dash-dot-r { background: #FF5F57; }
.dash-dot-y { background: #FFBD2E; }
.dash-dot-g { background: #28C840; }

.dash-url-bar {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-sm);
  padding: 5px 12px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-body {
  background: var(--bg-secondary);
  display: flex;
  flex-direction: row;
  min-height: 400px;
  max-height: 400px;
  overflow: hidden;
}

.dash-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 180px;
}

.dash-menu-item {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.dash-menu-item .icon { font-size: 0.95rem; flex-shrink: 0; }
.dash-menu-item.active { background: var(--accent-dim); color: var(--accent); }
.dash-menu-item { cursor: pointer; transition: background 0.2s, color 0.2s; }
.dash-menu-item:hover:not(.active) { background: rgba(255,255,255,0.04); color: var(--text-primary); }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 10px;
  min-width: 0;
}

.dash-stat-label  { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-stat-value  { font-size: clamp(0.95rem,2vw,1.2rem); font-weight: 700; }
.dash-stat-change { font-size: var(--fs-xs); color: var(--success); margin-top: 2px; }

.dash-asset-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dash-asset-thumb {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(120,180,255,0.1));
  border-radius: 5px;
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
}

.dash-asset-name { font-size: var(--fs-sm); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-asset-sub  { font-size: var(--fs-xs); color: var(--text-muted); }

/* ============================================================
   17b. DASHBOARD — ANIMATED SCREENS
   ============================================================ */

/* ── Screen wrap & transitions ── */
.dash-screens-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Single screen panel — opacity/transform handled by JS inline styles */
.dash-screen {
  padding: 14px 16px;
  overflow: hidden;
  will-change: opacity, transform;
}

/* ── Screen header ── */
.dash-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-screen-title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
}
.dash-screen-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.dash-screen-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Pill button (inline CTA) ── */
.dash-pill-btn {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.dash-pill-btn:hover { background: rgba(124,131,255,0.2); }

/* ── Search bar (fake) ── */
.dash-search-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 140px;
}

/* ── stat-change colour variants ── */
.dash-stat-change.positive { color: var(--success); }
.dash-stat-change.neutral  { color: var(--text-muted); }

/* ── Mini bar chart ── */
.dash-mini-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.dash-mini-chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 10px;
}
.dash-mini-chart-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.dash-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}
.dash-bar-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
}
.dash-bar-fill {
  width: 100%;
  background: rgba(124,131,255,0.28);
  border-radius: 3px 3px 0 0;
  transition: height 0.4s ease;
}
.dash-bar-fill.accent { background: var(--accent); }

/* ── Donut chart ── */
.dash-donut-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-donut {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.dash-donut-legend { font-size: var(--fs-xs); }
.dash-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.dash-legend-row .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Activity label ── */
.dash-activity-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

/* ── Asset grid (tile view) ── */
.dash-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.dash-asset-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.dash-asset-tile:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}
.dash-tile-img {
  height: 44px;
  background: linear-gradient(135deg, var(--c1, rgba(124,131,255,0.3)), var(--c2, rgba(74,80,200,0.1)));
}
.dash-tile-meta { padding: 5px 7px; }
.dash-tile-name {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-tile-tag {
  font-size: 0.6rem;
  color: var(--accent);
  margin-top: 2px;
}

/* ── Filter chips ── */
.dash-filter-row {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.dash-filter-chip {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.dash-filter-chip.active,
.dash-filter-chip:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Workflow cards ── */
.dash-workflow-list { display: flex; flex-direction: column; gap: 6px; }
.dash-workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-wf-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.dash-wf-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.dash-wf-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.dash-wf-meta { font-size: var(--fs-xs); color: var(--text-muted); }
.dash-wf-progress-wrap { display: flex; flex-direction: column; gap: 4px; }
.dash-wf-stages {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.dash-wf-stage {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.6rem;
  font-weight: 500;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.dash-wf-stage.done    { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: #22C55E; }
.dash-wf-stage.wf-active { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }
.dash-wf-arrow { color: var(--text-muted); font-size: 0.7rem; flex-shrink: 0; }

/* ── Progress bars ── */
.dash-progress-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}
.dash-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}
.dash-progress-fill.cyan  { background: #22D3EE; }
.dash-progress-fill.green { background: #22C55E; }
.dash-wf-pct { font-size: var(--fs-xs); color: var(--text-muted); }

/* ── Collaborate layout ── */
.dash-collab-layout {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 8px;
  align-items: start;
}
.dash-collab-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}
.dash-collab-event {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 5px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 4px;
}
.dash-event-text { font-size: var(--fs-xs); color: var(--text-primary); line-height: 1.4; }
.dash-event-text strong { color: var(--text-primary); }
.dash-event-text em { color: var(--accent); font-style: normal; }
.dash-event-time { font-size: 0.62rem; color: var(--text-muted); margin-top: 2px; }

/* ── Avatar ── */
.dash-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.dash-avatar.sm { width: 22px; height: 22px; font-size: 0.52rem; }

/* ── Team list ── */
.dash-team-list { display: flex; flex-direction: column; gap: 4px; }
.dash-team-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.dash-team-name { font-size: var(--fs-xs); color: var(--text-primary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  flex-shrink: 0;
}

/* ── Billing KPI ── */
.dash-billing-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.dash-billing-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 10px;
}

/* ── Invoice rows ── */
.dash-invoice-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 10px;
  display: grid;
  grid-template-columns: 20px 1fr auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.dash-inv-icon { font-size: 1rem; }
.dash-inv-amount {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* ── Progress indicator dots (top bar) ── */
.dash-progress-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 4px;
  flex-shrink: 0;
}
.dash-prog-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.dash-prog-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ── URL bar transition ── */
.dash-url-bar {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ============================================================
   18. PROBLEM SECTION
   ============================================================ */
/* Legacy — kept for any fallback references */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
}

/* ── Problem section: 2 cols × 3 rows
   Row 1: intro text       |  badge
   Row 2: pain cards       |  metric cards   ← both start here — aligned
   Row 3: testimonial (spans both columns full-width)
   ────────────────────────────────────────────────────────────── */
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  column-gap: clamp(32px, 5vw, 48px);
  row-gap: 0;
}

.problem-intro {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: var(--sp-6);
}

.problem-points {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.problem-badge {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: var(--sp-6);
  display: flex;
  align-items: flex-end;
}

.problem-metrics {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.problem-testimonial {
  grid-column: 1 / -1;   /* spans full width — both columns */
  grid-row: 3;
  padding-top: clamp(20px, 3vw, 32px);
}

/* Legacy alias */
.problem-visual {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: start;
}

/* Mobile: single column, natural reading order */
@media (max-width: 768px) {
  .problem-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: var(--sp-6);
  }
  .problem-intro       { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .problem-badge       { grid-column: 1; grid-row: auto; padding-bottom: 0; align-items: flex-start; }
  .problem-points      { grid-column: 1; grid-row: auto; }
  .problem-metrics     { grid-column: 1; grid-row: auto; }
  .problem-testimonial { grid-column: 1; grid-row: auto; padding-top: 0; }
  .problem-visual      { grid-column: 1; grid-row: auto; }
}

.problem-point {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--transition);
}
.problem-point:hover { border-color: rgba(255,80,80,0.2); background: rgba(255,80,80,0.03); }

.problem-point .icon-wrap {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,80,80,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.problem-point-text h4 { font-size: var(--fs-sm); font-weight: 600; margin-bottom: 3px; }
.problem-point-text p  { font-size: var(--fs-xs); color: var(--text-secondary); }

.chaos-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chaos-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
}
.chaos-label  { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.07em; }
.chaos-value  { font-size: 1.3rem; font-weight: 700; }
.chaos-bar    { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.chaos-fill   { height: 100%; border-radius: 2px; }
.chaos-fill-red  { background: #FF5F57; width: 75%; }
.chaos-fill-yel  { background: #FFBD2E; width: 60%; }
.chaos-fill-blue { background: var(--accent); width: 45%; }

/* ============================================================
   19. SOLUTION SECTION
   ============================================================ */

/* Legacy fallback */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}

/* ── Solution layout: 2 cols × 2 rows  (mirrors problem section)
   Row 1: badge           |  intro text
   Row 2: workflow diagram |  feature cards  ← both aligned at same row
   ────────────────────────────────────────────────────────────── */
.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(32px, 5vw, 48px);
  row-gap: 0;
}

.solution-badge {
  grid-column: 1;
  grid-row: 1;
  padding-bottom: var(--sp-6);
  display: flex;
  align-items: flex-end;   /* badge sits flush at bottom of row 1 */
}

.solution-intro {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: var(--sp-6);
}

.solution-diagram {
  grid-column: 1;
  grid-row: 2;             /* aligns with feature cards */
  align-self: start;
}

.solution-features-col {
  grid-column: 2;
  grid-row: 2;
}

/* Mobile: single column, natural reading order */
@media (max-width: 768px) {
  .solution-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: var(--sp-6);
  }
  .solution-badge        { grid-column: 1; grid-row: auto; padding-bottom: 0; align-items: flex-start; }
  .solution-intro        { grid-column: 1; grid-row: auto; padding-bottom: 0; }
  .solution-diagram      { grid-column: 1; grid-row: auto; }
  .solution-features-col { grid-column: 1; grid-row: auto; }
}

.solution-features { display: flex; flex-direction: column; gap: 10px; }

.solution-feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--transition);
}
.solution-feature:hover { border-color: var(--accent-border); background: var(--accent-dim); }

.solution-feature .check-icon {
  width: 26px; height: 26px;
  background: rgba(124,131,255,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: var(--accent);
  flex-shrink: 0; margin-top: 2px;
}

.flow-connector {
  display: flex; align-items: center; justify-content: center;
  height: 36px; color: var(--accent); font-size: 1.1rem; opacity: 0.5;
}

/* ============================================================
   20. PILLARS / CAPABILITIES
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.pillar-card::after {
  content: '';
  position: absolute;
  inset-block-end: 0; inset-inline: 0;
  height: 3px; opacity: 0;
  transition: opacity var(--transition);
}
.pillar-card:hover { transform: translateY(-5px); border-color: var(--accent-border); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.pillar-card:hover::after { opacity: 1; }

.pillar-card-1::after { background: linear-gradient(90deg,#7C83FF,#B8A4FF); }
.pillar-card-2::after { background: linear-gradient(90deg,#8B5CF6,#C084FC); }
.pillar-card-3::after { background: linear-gradient(90deg,#22C55E,#4ADE80); }
.pillar-card-4::after { background: linear-gradient(90deg,#F59E0B,#FCD34D); }

.pillar-number {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 900;
  opacity: 0.06; position: absolute; top: 12px; right: 16px; line-height: 1;
}

.pillar-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: var(--sp-5);
}
.pillar-icon-1 { background: rgba(124,131,255,0.12); border: 1px solid rgba(124,131,255,0.22); }
.pillar-icon-2 { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.2); }
.pillar-icon-3 { background: rgba(34,197,94,0.12);  border: 1px solid rgba(34,197,94,0.2); }
.pillar-icon-4 { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.2); }

.pillar-card h3 { font-size: var(--fs-xl); margin-bottom: 10px; }
.pillar-card p  { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.7; }

/* ============================================================
   21. HOW IT WORKS — STEPS
   ============================================================ */
.steps-container {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}
.steps-line {
  position: absolute;
  inset-inline-start: 27px;
  inset-block: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(124,131,255,0.06));
}
.step-item {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  margin-bottom: var(--sp-8);
  position: relative;
}
.step-item:last-child { margin-bottom: 0; }

.step-num {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--accent); flex-shrink: 0; z-index: 2;
  box-shadow: 0 0 18px rgba(124,131,255,0.18);
  transition: var(--transition);
  isolation: isolate;
}

/* Step 1 — Violet (brand accent) */
.step-item:nth-child(2) .step-num {
  color: #7C83FF;
  border-color: rgba(124,131,255,0.45);
  background: var(--bg-secondary);
  box-shadow: 0 0 22px rgba(124,131,255,0.28);
}

/* Step 2 — Cyan */
.step-item:nth-child(3) .step-num {
  color: #22D3EE;
  border-color: rgba(34,211,238,0.40);
  background: var(--bg-secondary);
  box-shadow: 0 0 22px rgba(34,211,238,0.22);
}

/* Step 3 — Emerald */
.step-item:nth-child(4) .step-num {
  color: #22C55E;
  border-color: rgba(34,197,94,0.40);
  background: var(--bg-secondary);
  box-shadow: 0 0 22px rgba(34,197,94,0.22);
}

/* Step 4 — Amber */
.step-item:nth-child(5) .step-num {
  color: #EAB308;
  border-color: rgba(234,179,8,0.40);
  background: var(--bg-secondary);
  box-shadow: 0 0 22px rgba(234,179,8,0.22);
}

/* Step 5 — Rose */
.step-item:nth-child(6) .step-num {
  color: #F472B6;
  border-color: rgba(244,114,182,0.40);
  background: var(--bg-secondary);
  box-shadow: 0 0 22px rgba(244,114,182,0.22);
}
.step-content {
  flex: 1;
  padding: clamp(18px,2.5vw,24px) clamp(20px,3vw,28px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--transition);
}
.step-content:hover { border-color: var(--accent-border); background: var(--bg-card-hover); }
.step-content h3 { font-size: var(--fs-lg); margin-bottom: 6px; }
.step-content p  { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ============================================================
   22. COMPARISON TABLE
   ============================================================ */
.diff-table {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.diff-inner { min-width: 520px; }
.diff-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 18px 22px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.col-head {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.col-head:first-child { text-align: left; }
.col-head.highlight-col { color: var(--accent); }

.diff-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.diff-row:last-child { border-bottom: none; }
.diff-row:hover { background: rgba(255,255,255,0.02); }
.feature-name { font-size: var(--fs-sm); font-weight: 500; color: var(--text-secondary); }
.diff-cell { display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.check-yes { color: var(--success); }
.check-no  { color: var(--text-muted); }

/* ============================================================
   23. MODULES GRID
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px,2.5vw,28px);
  transition: var(--transition-re);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  will-change: transform, border-color, box-shadow;
}
.module-card::before {
  content: '';
  position: absolute;
  inset-block-start: 0; inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.module-card:hover        { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-card:hover::before { opacity: 1; }
.module-card.selected     { border-color: var(--accent) !important; background: var(--bg-card-hover) !important; box-shadow: var(--shadow-glow) !important; }

.module-icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: var(--sp-4);
}
.module-card h3 { font-size: var(--fs-md); margin-bottom: 7px; }
.module-card p  { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   24. SOLUTIONS TABS
   ============================================================ */
.solutions-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: clamp(28px,5vw,48px);
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.tab-btn.active,
.tab-btn:hover { color: var(--text-primary); background: var(--accent-dim); border-color: var(--accent-border); }

.solutions-tab-panel { display: none; }
.solutions-tab-panel.active { display: block; }

.solution-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px,5vw,48px);
  align-items: center;
}
.solution-panel-content h2 { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.solution-panel-content p  { color: var(--text-secondary); line-height: 1.75; margin-bottom: var(--sp-6); }
.solution-panel-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: var(--sp-8); }
.solution-panel-item { display: flex; align-items: center; gap: 11px; font-size: var(--fs-sm); }
.solution-panel-item::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.solution-ui-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.ui-mock-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex; align-items: center; gap: 7px;
}
.ui-mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.ui-mock-title { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); margin-left: 6px; }
.ui-mock-body { padding: 18px; }
.ui-kpi-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ui-kpi { flex: 1; background: var(--bg-secondary); border-radius: var(--r-sm); padding: 10px; min-width: 0; }
.ui-kpi-val { font-size: clamp(1rem,2.5vw,1.3rem); font-weight: 700; }
.ui-kpi-lbl { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.ui-progress-row { margin-top: 10px; }
.ui-progress-label { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 5px; }
.ui-progress-bar   { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.ui-progress-fill  { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #B8A4FF); }

/* ============================================================
   25. CTA SECTION
   ============================================================ */
#cta-section {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  position: relative; overflow: hidden;
}
.cta-inner {
  text-align: center; max-width: 660px; margin-inline: auto;
  position: relative; z-index: 2;
}
.cta-inner h2 { font-size: var(--fs-4xl); margin-bottom: var(--sp-5); }
.cta-inner p  { color: var(--text-secondary); font-size: var(--fs-lg); margin-bottom: var(--sp-8); line-height: 1.75; }
.cta-buttons  { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   26. ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: var(--sp-8);
}
.value-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.value-card .val-icon { font-size: 1.3rem; margin-bottom: 8px; }
.value-card h4 { font-size: var(--fs-sm); margin-bottom: 5px; }
.value-card p  { font-size: var(--fs-xs); color: var(--text-secondary); }

.team-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.team-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px,3vw,28px);
  text-align: center;
}
.team-stat .t-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,4vw,2.5rem);
  font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px;
}
.team-stat .t-lbl { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ============================================================
   27. TIMELINE
   ============================================================ */
.timeline { position: relative; max-width: 700px; margin-inline: auto; }
.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 19px;
  inset-block: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(124,131,255,0.06));
}
.timeline-item { display: flex; gap: var(--sp-6); margin-bottom: var(--sp-8); position: relative; }
.timeline-item:last-child { margin-bottom: 0; }

/* "Now" badge — indicates currently active stage(s) on the roadmap */
.now-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86EFAC;                                       /* mint-green text */
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 100px;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.now-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;                                   /* solid green blob */
  box-shadow:
    0 0 6px rgba(34, 197, 94, 0.85),
    0 0 14px rgba(34, 197, 94, 0.55),
    0 0 24px rgba(34, 197, 94, 0.30);                    /* glowing aura */
  animation: nowBlobPulse 2s ease-in-out infinite;
}
@keyframes nowBlobPulse {
  0%, 100% {
    box-shadow:
      0 0 6px rgba(34, 197, 94, 0.85),
      0 0 14px rgba(34, 197, 94, 0.55),
      0 0 24px rgba(34, 197, 94, 0.30);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 10px rgba(34, 197, 94, 1),
      0 0 22px rgba(34, 197, 94, 0.75),
      0 0 36px rgba(34, 197, 94, 0.45);
    transform: scale(1.15);
  }
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .now-badge::before { animation: none; }
}
/* Light-theme readability tweak */
[data-theme="light"] .now-badge {
  color: #15803D;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(22, 163, 74, 0.45);
}
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0; z-index: 1;
  box-shadow: 0 0 14px rgba(124,131,255,0.20);
}
.timeline-content {
  flex: 1;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--transition);
}
.timeline-content:hover { border-color: var(--accent-border); }
.timeline-year { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 5px; }
.timeline-content h3 { font-size: var(--fs-md); margin-bottom: 5px; }
.timeline-content p  { font-size: var(--fs-sm); color: var(--text-secondary); }

/* ============================================================
   28. CONTACT / FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }

.form-group { margin-bottom: var(--sp-5); }

.form-label {
  display: block;
  font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-secondary); margin-bottom: 7px; letter-spacing: 0.02em;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  transition: var(--transition);
  outline: none;
  /* iOS: prevent zoom on focus (font-size ≥ 16px) */
  font-size: max(16px, var(--fs-md));
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,131,255,0.15);
  background: var(--bg-card-hover);
}

.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B9CC8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success .success-icon { font-size: 3rem; margin-bottom: 14px; }
.form-success h3 { margin-bottom: 7px; }
.form-success p  { color: var(--text-secondary); }

.contact-feature {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 0; border-bottom: 1px solid var(--border);
}
.contact-feature:last-child { border-bottom: none; }
.contact-feature .cf-icon {
  width: 36px; height: 36px;
  background: var(--accent-dim); border: 1px solid var(--accent-border); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}
.contact-feature h4 { font-size: var(--fs-sm); margin-bottom: 3px; }
.contact-feature p  { font-size: var(--fs-xs); color: var(--text-secondary); }

/* ============================================================
   29. FOOTER
   ============================================================ */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: clamp(40px,6vw,64px) 0 calc(clamp(24px,4vw,32px) + var(--safe-b));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px,4vw,48px);
  margin-bottom: clamp(32px,4vw,48px);
  align-items: start;
}
.footer-brand p {
  color: var(--text-secondary); font-size: var(--fs-sm);
  line-height: 1.7; margin-top: var(--sp-4); max-width: 280px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-4) 0;
  padding: 0;
  line-height: 1;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}
.footer-col ul li a {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  transition: color 0.2s;
  display: block;
  line-height: 1.4;
  padding: 0;
}
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
}
.footer-bottom p { font-size: var(--fs-xs); color: var(--text-muted); }
.footer-social { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; color: var(--text-muted); transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.social-link:hover { background: var(--accent-dim); border-color: var(--accent-border); color: var(--accent); }

/* ============================================================
   30. AI FEATURES GRID (Platform page)
   ============================================================ */
.ai-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ai-feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(20px,2.5vw,28px);
  transition: var(--transition);
}
.ai-feature-card:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.ai-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: var(--r-pill); padding: 3px 10px; margin-bottom: 10px;
}
.ai-feature-card h3 { font-size: var(--fs-md); margin-bottom: 7px; }
.ai-feature-card p  { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.65; }

/* ============================================================
   31. TILT (desktop only — via JS)
   ============================================================ */
@media (hover: hover) {
  .pillar-card, .module-card { will-change: transform; }
}

/* ============================================================
   32. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── 1200px ── */
@media (max-width: 1200px) {
  .pillars-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .section-pad { padding-block: clamp(48px, 7vw, 80px); }
  .grid-3      { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid  { gap: 40px; }
  .hero-stats  { gap: 24px; }
}

/* ── 768px ── */
@media (max-width: 768px) {
  :root { --navbar-h: 60px; }

  /* Specificity-proof hide on mobile (desktop rules use .nav-inner .nav-links) */
  .nav-inner .nav-links,
  .nav-inner .nav-cta,
  .navbar-inner .nav-links,
  .navbar-inner .nav-cta,
  .nav-links,
  .nav-cta              { display: none !important; }
  .nav-inner .nav-hamburger,
  .navbar-inner .nav-hamburger,
  .nav-hamburger        { display: flex !important; }

  /* ── MOBILE NAVBAR FIX ──
     Override the desktop 3-column grid. On mobile, only logo + hamburger
     are visible, so we collapse to a simple flex layout with space-between
     alignment so the logo sits flush-left and the hamburger flush-right. */
  .nav-inner,
  .navbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0 !important;
    width: 100% !important;
    grid-template-columns: none !important;
  }
  .nav-inner .nav-logo,
  .navbar-inner .nav-logo {
    justify-self: auto !important;
    margin: 0 !important;
  }
  .nav-inner .nav-hamburger,
  .navbar-inner .nav-hamburger {
    justify-self: auto !important;
    margin: 0 !important;
  }

  /* All two-col grids → single column */
  .grid-2, .grid-3, .grid-4,
  .problem-grid, .solution-grid,
  .about-grid, .contact-grid,
  .solution-panel-grid { grid-template-columns: 1fr; }

  .pillars-grid        { grid-template-columns: 1fr 1fr; }
  .modules-grid        { grid-template-columns: 1fr 1fr; }
  .ai-features-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

  /* Dashboard — hide sidebar */
  .dash-body    { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-grid    { grid-template-columns: repeat(2, 1fr); }

  /* Steps — remove side line */
  .steps-line  { display: none; }
  .step-item   { gap: var(--sp-3); }

  /* Diff table — show scroll hint */
  .diff-table  { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* About */
  .about-values { grid-template-columns: 1fr 1fr; }

  /* Timeline */
  .timeline::before { display: none; }
  .timeline-item { flex-direction: column; gap: var(--sp-3); }
  .timeline-dot  { width: 36px; height: 36px; font-size: 0.8rem; }

  /* ── MOBILE FOOTER FIX ──
     Center everything on mobile for clean, balanced alignment. */
  .footer-grid {
    text-align: center;
  }
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
    max-width: 320px;
  }
  .footer-social {
    justify-content: center;
    margin-top: var(--sp-4);
  }
  .footer-col {
    align-items: center;
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: var(--sp-3);
  }
  .footer-bottom p {
    margin: 0;
    line-height: 1.6;
  }

  /* Solution panel — reorder visual below content on mobile */
  .solution-panel-grid { grid-template-areas: "content" "visual"; }
  .solution-panel-content { grid-area: content; }
  .solution-visual { grid-area: visual; }
}

/* ── 600px ── */
@media (max-width: 600px) {
  .pillars-grid     { grid-template-columns: 1fr; }
  .modules-grid     { grid-template-columns: 1fr; }
  .ai-features-grid { grid-template-columns: 1fr; }
  .about-values     { grid-template-columns: 1fr 1fr; }
  .team-stat-grid   { grid-template-columns: 1fr 1fr; }
  .chaos-cards      { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .hero-cta     { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats   { flex-direction: column; align-items: center; gap: var(--sp-5); }
  .dash-grid    { grid-template-columns: 1fr; }
  .cta-buttons  { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .solutions-tabs { gap: 6px; }
  .tab-btn { padding: 9px 14px; font-size: var(--fs-xs); }
  .about-values { grid-template-columns: 1fr; }
  .team-stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-asset-row { grid-template-columns: 34px 1fr; }
  .dash-asset-row .status-pill { display: none; }
  .footer-bottom { align-items: center; }
}

/* ── 360px (very small phones) ── */
@media (max-width: 360px) {
  :root { --navbar-h: 56px; }
  .team-stat-grid { grid-template-columns: 1fr; }
  .chaos-cards { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   33. HIGH-DPI / RETINA — crisper borders
   ============================================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  :root { --border: rgba(255,255,255,0.08); }
}

/* ============================================================
   34. LANDSCAPE MOBILE — prevent hero overflow
   ============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
  #hero { min-height: auto; padding-block: 90px 48px; }
  .hero-orb-1, .hero-orb-2, .hero-orb-3, .hero-orb-4 { opacity: 0.4; }
}

/* ============================================================
   35. MISC UTILITIES
   ============================================================ */
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-12{ margin-top: var(--sp-12); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }

/* Backward-compat aliases */
.mt-16 { margin-top: var(--sp-4); }
.mt-24 { margin-top: var(--sp-6); }
.mt-32 { margin-top: var(--sp-8); }
.mb-16 { margin-bottom: var(--sp-4); }
.mb-24 { margin-bottom: var(--sp-6); }

/* Smooth scroll restore for anchor links */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Print — clean layout */
@media print {
  .navbar, .nav-mobile, .hero-aurora, .hero-orb, #hero-canvas, .noise-overlay, .page-loader { display: none !important; }
  body { background: #fff; color: #000; }
  .gradient-text { -webkit-text-fill-color: #7C83FF; }
}

/* ============================================================
   36. MOBILE PERFORMANCE — canvas, heavy animations
   ============================================================ */

/* Disable canvas particle rendering on mobile (saves battery/CPU) */
@media (max-width: 768px) {
  #hero-canvas { display: none; }
}

/* Reduce aurora animation cost on mid-range devices */
@media (max-width: 900px) {
  .hero-aurora  { opacity: 0.55; }
  .aurora-band  { filter: blur(48px); }
  .hero-orb     { filter: blur(40px); }
}

/* ── GPU-constrained fallback ──
   Some PCs (older Intel integrated graphics, virtualised desktops, systems
   with hardware acceleration disabled) cannot render 72px CSS blur smoothly.
   When CSS backdrop-filter support is missing, also reduce blur radius —
   this is a strong correlate for weak GPU-accelerated compositing. */
@supports not (backdrop-filter: blur(1px)) {
  .aurora-band { filter: blur(36px); }
  .hero-orb    { filter: blur(30px); }
}

/* ============================================================
   37. INNER-HERO — shared responsive class
   (used by platform, modules, solutions, about, contact)
   ============================================================ */
.inner-hero {
  padding-top:    calc(var(--navbar-h) + clamp(48px, 7vw, 100px));
  padding-bottom: clamp(48px, 6vw, 80px);
  position:  relative;
  overflow:  hidden;
}
.inner-hero-content {
  position:   relative;
  z-index:    2;
  text-align: center;
  max-width:  820px;
  margin-inline: auto;
}
.inner-hero-cta {
  display:         flex;
  gap:             14px;
  justify-content: center;
  flex-wrap:       wrap;
  margin-top:      clamp(24px, 4vw, 36px);
}

/* ── Landscape phone ── */
@media (max-height: 500px) and (orientation: landscape) {
  .inner-hero {
    padding-top:    calc(var(--navbar-h) + 28px);
    padding-bottom: 28px;
  }
}

/* ============================================================
   38. FOCUS-WITHIN — accessible interactive card
   ============================================================ */
.card:focus-within,
.module-card:focus-within,
.pillar-card:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(124,131,255,0.18);
  outline: none;
}

/* ============================================================
   39. IMAGE LAZY-LOADING PLACEHOLDER
   ============================================================ */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
img[loading="lazy"].loaded,
img[loading="lazy"][src] { opacity: 1; }

/* ============================================================
   40. OVERFLOW SAFETY — prevent horizontal scroll on all pages
   ============================================================ */
.inner-hero,
section,
footer { max-width: 100vw; }

/* ============================================================
   41. TOUCH DEVICE — remove hover-only effects
   ============================================================ */
@media (hover: none) {
  .card:hover,
  .pillar-card:hover,
  .module-card:hover,
  .ai-feature-card:hover,
  .solution-feature:hover,
  .step-content:hover,
  .timeline-content:hover {
    transform: none;
    box-shadow: none;
  }
  .card:hover::before,
  .module-card:hover::before { opacity: 0; }
}

/* ============================================================
   42. FORM — improved touch targets on mobile
   ============================================================ */
@media (max-width: 768px) {
  .form-input,
  .form-select,
  .form-textarea {
    padding: 14px 15px;
  }
  .btn-lg { padding: 16px 24px; }
}

/* ============================================================
   43. DETAILS / SUMMARY — accessible FAQ
   ============================================================ */
details summary { -webkit-tap-highlight-color: transparent; }
details summary::-webkit-details-marker { display: none; }
details[open] summary .fa-chevron-down { transform: rotate(180deg); }

/* ============================================================
   44. BOOTSTRAP 5 COMPATIBILITY OVERRIDES
   Bootstrap is loaded before css/style.css so custom styles
   win by default. These rules patch any Bootstrap resets that
   would break the Axion11 design system.
   ============================================================ */

/* Restore custom font stack — Bootstrap sets its own system font */
body {
  font-family: var(--font-body) !important;
  background-color: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* Restore heading font */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display) !important;
  color: var(--text-primary) !important;
}

/* Bootstrap resets link color — restore ours */
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }

/* Bootstrap overrides button styles — keep ours */
.btn {
  font-family: var(--font-body) !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
}

/* Prevent Bootstrap .btn-primary from overriding our primary button */
.btn-primary {
  background: linear-gradient(135deg, #7C83FF, #5B5FE8) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 3px 16px rgba(124,131,255,0.38) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(135deg, #8B92FF, #6A6EF0) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 28px rgba(124,131,255,0.55) !important;
}

/* Prevent Bootstrap .btn-outline-* from breaking our outline button */
.btn-outline {
  background: var(--accent-dim) !important;
  border: 1px solid var(--accent-border) !important;
  color: var(--accent) !important;
}
.btn-outline:hover {
  background: rgba(124,131,255,0.18) !important;
  border-color: var(--accent) !important;
}

/* Bootstrap normalises box-sizing but keep our reset */
*, *::before, *::after { box-sizing: border-box; }

/* Bootstrap sets .container max-width differently — keep ours */
.container {
  max-width: var(--container-max) !important;
  padding-inline: clamp(16px, 4vw, 32px) !important;
}

/* Restore custom card styles — Bootstrap has its own .card */
.card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r-lg) !important;
  color: var(--text-primary) !important;
}

/* Bootstrap badge conflicts with our .badge */
.badge {
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: var(--r-pill) !important;
  vertical-align: baseline !important;
}

/* Restore form styles — Bootstrap overrides inputs */
.form-input,
.form-select,
.form-textarea {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(124,131,255,0.15) !important;
  background: var(--bg-card-hover) !important;
  outline: none !important;
}

/* Bootstrap resets <ul>/<ol> list-style — keep ours */
ul, ol { list-style: none; }

/* Prevent Bootstrap navbar styles from conflicting.
   NOTE: .navbar .container stays flex (single child wrapper), but .nav-inner
   must NOT be forced to flex/center here — that would break both the
   desktop 3-column grid (1fr auto 1fr) and the mobile 2-column flex
   (space-between). The rules for .nav-inner live in their proper sections
   above (desktop default + @media max-width: 768px override). */
.navbar {
  padding-inline: 0 !important;
  padding-top: var(--safe-t) !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.navbar .container {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

.nav-logo,
.nav-links,
.nav-cta,
.nav-hamburger {
  align-self: center !important;
}

.nav-links li {
  display: flex !important;
  align-items: center !important;
}

.nav-links a,
.nav-cta .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================================
   45. CUSTOM CURSOR
   ============================================================ */
.cursor-inner,
.cursor-outer {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001; /* above modal overlay (100000) */
  visibility: hidden;
  transform: translate(-50%, -50%);
  will-change: transform; /* own compositing layer — stays above backdrop-filter */
  transition: width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring),
              border-color 0.3s var(--ease),
              background-color 0.3s var(--ease),
              opacity 0.3s var(--ease);
}

.cursor-inner {
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #FF6B2C, #FF9F1C);
  box-shadow: 0 0 12px rgba(255, 107, 44, 0.55);
}

.cursor-outer {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 140, 50, 0.45);
  background: transparent;
  transition: width 0.35s var(--ease-spring),
              height 0.35s var(--ease-spring),
              border-color 0.35s var(--ease),
              transform 0.12s linear;
}

/* Hover state — expand outer, shrink inner */
.cursor-inner.cursor-hover {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-outer.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: #FF6B2C;
  background: rgba(255, 107, 44, 0.10);
  box-shadow: 0 0 24px rgba(255, 140, 50, 0.22);
}

/* Hide custom cursor on touch / mobile — native cursor is better */
@media (hover: none), (max-width: 768px) {
  .cursor-inner,
  .cursor-outer {
    display: none !important;
  }
  body { cursor: auto !important; }
}

/* Desktop: hide default cursor when custom one is active.
   The `custom-cursor-active` class is added to <html> by main.js
   only on desktop (hover:hover + width > 768). Touch users get the
   native cursor unmodified.

   !important is required to override element-specific `cursor: pointer`
   rules on .theme-toggle, .btn, .nav-hamburger, etc. — class selectors
   would otherwise win over element selectors on specificity. */
.custom-cursor-active,
.custom-cursor-active body { cursor: none !important; }

.custom-cursor-active a,
.custom-cursor-active button,
.custom-cursor-active input,
.custom-cursor-active select,
.custom-cursor-active textarea,
.custom-cursor-active .cursor-pointer,
.custom-cursor-active .btn,
.custom-cursor-active .btn-primary,
.custom-cursor-active .btn-outline,
.custom-cursor-active .btn-ghost,
.custom-cursor-active .btn-sm,
.custom-cursor-active .btn-lg,
.custom-cursor-active .theme-toggle,
.custom-cursor-active .nav-hamburger,
.custom-cursor-active .nav-links a,
.custom-cursor-active .tab-btn,
.custom-cursor-active .module-card,
.custom-cursor-active .pillar-card,
.custom-cursor-active details summary,
.custom-cursor-active [role="button"],
.custom-cursor-active [onclick] {
  cursor: none !important;
}

/* Restore scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ============================================================
   PRIVACY POLICY MODAL
   ============================================================ */
.pp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.pp-overlay.pp-open {
  opacity: 1;
  visibility: visible;
}
.pp-overlay.pp-open .pp-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pp-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(124,131,255,0.12);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.28s ease;
}

/* ── Header ── */
.pp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pp-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.pp-meta {
  font-size: var(--fs-xs);
  color: var(--accent);
  margin: 4px 0 0;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.pp-close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.pp-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

/* ── Scrollable body ── */
.pp-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.75;
  scroll-behavior: smooth;
}
.pp-body::-webkit-scrollbar { width: 4px; }
.pp-body::-webkit-scrollbar-track { background: transparent; }
.pp-body::-webkit-scrollbar-thumb { background: var(--accent-border); border-radius: 2px; }

/* ── Typography inside modal ── */
.pp-h2 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.01em;
}
.pp-h2:first-of-type { margin-top: 0; }
.pp-h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pp-p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.pp-meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0 0 20px;
  display: block;
}
.pp-ul {
  margin: 0 0 12px 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pp-ul li {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  list-style: none;
  padding-left: 14px;
  position: relative;
}
.pp-ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

/* ── Footer bar ── */
.pp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-secondary);
  gap: 12px;
}
.pp-footer span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.pp-footer kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.pp-close-btn {
  flex-shrink: 0;
}

/* ── Body scroll lock ── */
body.pp-body-lock {
  overflow: hidden;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .pp-overlay { padding: 0; align-items: flex-end; }
  .pp-dialog {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
}

/* ============================================================
   DIFFERENTIATION / COMPARISON TABLE
   ============================================================ */
.diff-table {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* Header row — 4 equal columns */
.diff-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.col-head {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
}
.col-head:first-child {
  text-align: left;
}

/* Highlighted Axion11 column header */
.col-head.highlight-col {
  color: var(--accent);
  background: rgba(124,131,255,0.08);
  border-left:  1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
}

/* Data rows */
.diff-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}
.diff-row:last-child {
  border-bottom: none;
}
.diff-row:hover {
  background: rgba(255,255,255,0.025);
}

/* Feature name cell */
.feature-name {
  padding: 15px 20px;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* Icon cells */
.diff-cell {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Axion11 column highlight stripe */
.diff-row .diff-cell:nth-child(2) {
  background: rgba(124,131,255,0.06);
  border-left:  1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
}

/* Check / cross icon colours */
.check-yes { color: var(--success); }
.check-no  { color: var(--danger);  opacity: 0.7; }

/* Mobile — collapse to scrollable table */
@media (max-width: 640px) {
  .diff-header,
  .diff-row {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
  .col-head,
  .diff-cell,
  .feature-name {
    padding: 12px 10px;
    font-size: var(--fs-xs);
  }
  .diff-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   PAGE-SPECIFIC STYLES (moved here from inline <style> blocks
   in each HTML page's <head> — CRITICAL FIX for Swup page
   transitions. When Swup swaps #swup content between pages,
   it does NOT update the <head> styles. Previously, navigating
   from index → platform left platform.html's inline CSS (like
   .arch-grid grid-template-columns) unapplied, causing a
   broken layout until the user refreshed.
   ============================================================ */

/* ── Inner hero (shared by platform, modules, solutions, about, contact) ── */
.inner-hero {
  padding-top: calc(var(--navbar-h) + clamp(48px,7vw,100px));
  padding-bottom: clamp(48px,6vw,80px);
  position: relative;
  overflow: hidden;
}
.inner-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.inner-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(24px,4vw,36px);
}

/* ── Platform page: Three-panel architecture grid ── */
.arch-grid {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 420px;
}
.arch-panel { padding: 22px 16px; background: var(--bg-secondary); }
.arch-panel-left  { border-right: 1px solid var(--border); }
.arch-panel-right { border-left:  1px solid var(--border); }
.arch-panel-label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.arch-center { padding: 22px; background: var(--bg-primary); }
.arch-thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg,rgba(124,131,255,0.15),rgba(160,80,255,0.08));
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; cursor: pointer; overflow: hidden;
}
.arch-thumb-label {
  position: absolute; bottom: 5px; left: 5px; right: 5px;
  background: rgba(0,0,0,0.65); border-radius: 4px;
  padding: 2px 5px; font-size: 0.58rem; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.arch-thumb-badge {
  position: absolute; top: 5px; right: 5px;
  border-radius: 4px; padding: 1px 5px; font-size: 0.58rem; font-weight: 600;
}
.arch-badge-ok  { background: rgba(34,197,94,0.2);  border: 1px solid rgba(34,197,94,0.4);  color: #22C55E; }
.arch-badge-rev { background: rgba(234,179,8,0.2);  border: 1px solid rgba(234,179,8,0.4);  color: #EAB308; }
.arch-toolbar {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.arch-toolbar-label { font-size: 0.73rem; color: var(--text-muted); }
.arch-btn {
  padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; cursor: pointer;
}
.arch-btn-primary { background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); }
.arch-btn-ghost   { background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-muted); }

/* Cube wrap (platform page) */
.cube-wrap { width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; position: relative; }
#cube-canvas { width: 100%; height: 100%; }

/* ── Platform page: AI section layout ── */
.ai-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,64px);
  align-items: center;
}

/* ── Platform page: Collab + Billing grid ── */
.collab-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px,3vw,28px);
}

/* ── Responsive: platform page ── */
@media (max-width: 900px) {
  .arch-grid { grid-template-columns: 1fr; }
  .arch-panel-left  { border-right: none; border-bottom: 1px solid var(--border); }
  .arch-panel-right { border-left: none;  border-top:    1px solid var(--border); }
  .ai-section-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .collab-billing-grid { grid-template-columns: 1fr; }
  .cube-wrap { height: 200px; }
}

/* ── About page ── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.float-el { animation: float 5s ease-in-out infinite; }

/* ── Modules page ── */
.module-detail { display: none; }
.module-detail.active {
  display: block;
  animation: fadeInUp 0.35s var(--ease);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px,4vw,48px);
  align-items: center;
}
.detail-visual {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(18px,2.5vw,24px);
}
.asset-thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.asset-thumb {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 6px;
}
@media (max-width: 768px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-visual { order: -1; }
}
@media (max-width: 480px) {
  .asset-thumb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Contact page ── */
.form-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 480px) {
  .form-name-row { grid-template-columns: 1fr; }
}
.contact-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-feature:last-child { border-bottom: none; }
.contact-feature .cf-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.contact-feature h4 { font-size: 0.9rem; margin-bottom: 4px; }
.contact-feature p  { font-size: 0.8rem; color: var(--text-secondary); }
.social-proof {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-top: 32px;
}
.social-proof-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4A3FCC);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.author-name  { font-size: 0.82rem; font-weight: 600; }
.author-title { font-size: 0.75rem; color: var(--text-muted); }


/* ============================================================
   BLOG — LISTING PAGE + POST PAGE
   ============================================================ */

/* ── Controls: search + category filters ─────────────────── */
.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}
.blog-search {
  position: relative;
  max-width: 520px;
  width: 100%;
}
.blog-search i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
}
.blog-search input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
}
.blog-search input::placeholder { color: var(--text-muted); }

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.blog-filter-btn {
  padding: 8px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.blog-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-border);
}
.blog-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Loading ─────────────────────────────────────────────── */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 20px;
  color: var(--text-secondary);
}
.blog-loading .loader-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--accent-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: blogSpin 0.9s linear infinite;
}
@keyframes blogSpin { to { transform: rotate(360deg); } }

/* ── Empty / Error states ────────────────────────────────── */
.blog-empty,
.blog-error-content {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.blog-empty i,
.blog-error-content i {
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.6;
  margin-bottom: 16px;
  display: block;
}
.blog-empty h3,
.blog-error-content h1 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 8px;
  font-family: var(--font-display);
}
.blog-empty p,
.blog-error-content p {
  margin: 0 0 24px;
}
.blog-error {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--navbar-h) + 60px);
}

/* ── Featured card ───────────────────────────────────────── */
.blog-featured {
  margin-bottom: 48px;
}
.blog-card-featured {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  max-width: 100%;
}
.blog-card-featured .blog-card-cover {
  aspect-ratio: auto !important;
  min-height: 360px;
  border-radius: var(--r-xl) 0 0 var(--r-xl) !important;
}
.blog-card-featured .blog-card-body {
  padding: 36px !important;
}
.blog-card-featured .blog-card-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  line-height: 1.25 !important;
}
.blog-card-featured .blog-card-excerpt {
  font-size: 1.0625rem !important;
  -webkit-line-clamp: 4 !important;
}

.blog-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Grid + cards ────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
  transform: translateY(14px);
}
.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.blog-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 131, 255, 0.12);
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}
.blog-card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-card-category {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}
.blog-card-dot { opacity: 0.5; }

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  /* 3-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 20px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: auto;
}
.blog-card-author { color: var(--text-secondary); font-weight: 500; }

/* ── Newsletter CTA (blog listing) ───────────────────────── */
.blog-newsletter {
  margin-top: 72px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(124, 131, 255, 0.08), rgba(160, 60, 255, 0.05));
  border: 1px solid var(--accent-border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.blog-newsletter-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.blog-newsletter-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ============================================================
   BLOG POST (article) PAGE
   ============================================================ */

.blog-article {
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.blog-article.visible { opacity: 1; }

.post-header {
  --post-cover-gradient: linear-gradient(135deg, #7C83FF, #5B5FE8);
  position: relative;
  padding: calc(var(--navbar-h) + 60px) 0 60px;
  background: var(--post-cover-gradient);
  overflow: hidden;
}
.post-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.25), transparent 50%);
  pointer-events: none;
}
.post-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,15,0) 40%, rgba(6,8,15,0.85));
  pointer-events: none;
}
.post-header .container { position: relative; z-index: 2; }

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  margin-bottom: 28px;
  text-decoration: none;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.post-back-link:hover {
  color: #fff;
  transform: translateX(-3px);
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}
.post-meta-row .post-category {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff !important;
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 820px;
}
.post-excerpt {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 720px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9375rem;
}
.post-author-name  { color: #fff; font-weight: 600; font-size: 0.9375rem; }
.post-author-title { color: rgba(255, 255, 255, 0.75); font-size: 0.8125rem; }

/* ── Post body (typography) ──────────────────────────────── */
.post-body {
  max-width: 720px;
  margin: 60px auto 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.post-body .lede {
  font-size: 1.1875rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 400;
}
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  line-height: 1.3;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
  line-height: 1.35;
}
.post-body p { margin: 0 0 20px; }
.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.post-body a:hover { color: var(--text-primary); }
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body em { color: var(--text-primary); }
.post-body ul, .post-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.post-body ul li, .post-body ol li {
  margin-bottom: 10px;
  padding-left: 6px;
}
.post-body ul li::marker { color: var(--accent); }
.post-body ol li::marker { color: var(--accent); font-weight: 600; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-primary);
  background: var(--bg-card);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.post-body code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'SF Mono', Consolas, Monaco, monospace;
  color: var(--accent);
}
.post-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 24px 0;
}
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-md);
  margin: 24px 0;
}

/* ── Post tags ───────────────────────────────────────────── */
.post-tags {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.post-tags-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-right: 8px;
  font-weight: 500;
}
.post-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.post-tag:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

/* ── Share ───────────────────────────────────────────────── */
.post-share {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.post-share-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}
.post-share-buttons {
  display: flex;
  gap: 8px;
}
.post-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-size: 0.875rem;
}
.post-share-btn:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ── Post CTA banner ─────────────────────────────────────── */
.post-cta {
  max-width: 720px;
  margin: 60px auto 0;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(124, 131, 255, 0.10), rgba(160, 60, 255, 0.06));
  border: 1px solid var(--accent-border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.post-cta-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.post-cta-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.post-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Related posts ───────────────────────────────────────── */
.post-related {
  margin: 72px auto 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.post-related h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  margin: 0 0 28px;
  color: var(--text-primary);
}

/* ── Light-theme adjustments ─────────────────────────────── */
[data-theme="light"] .blog-search input {
  background: #fff;
}
[data-theme="light"] .blog-filter-btn.active {
  background: #0056D2;
  border-color: #0056D2;
}
[data-theme="light"] .blog-card-category {
  color: #0056D2;
}
[data-theme="light"] .post-body a {
  color: #0056D2;
}
[data-theme="light"] .post-body code {
  color: #0056D2;
}
[data-theme="light"] .post-header::after {
  background: linear-gradient(180deg, rgba(249,250,251,0) 40%, rgba(249,250,251,0.85));
}
[data-theme="light"] .post-tag:hover,
[data-theme="light"] .post-share-btn:hover {
  color: #0056D2;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-card-featured {
    grid-template-columns: 1fr !important;
  }
  .blog-card-featured .blog-card-cover {
    border-radius: var(--r-xl) var(--r-xl) 0 0 !important;
    min-height: 220px;
  }
  .blog-card-featured .blog-card-body {
    padding: 24px !important;
  }
  .blog-newsletter {
    padding: 28px;
    flex-direction: column;
    text-align: center;
  }
  .blog-newsletter-content h2 {
    font-size: 1.25rem;
  }
  .post-header {
    padding: calc(var(--navbar-h) + 40px) 0 48px;
  }
  .post-body {
    margin-top: 40px;
    font-size: 1rem;
  }
  .post-body h2 { font-size: 1.375rem; margin: 36px 0 14px; }
  .post-body h3 { font-size: 1.125rem; margin: 24px 0 10px; }
  .post-cta {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
  .post-cta-actions { justify-content: center; width: 100%; }
  .post-cta-actions .btn { flex: 1; }
  .post-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .blog-filters {
    gap: 6px;
  }
  .blog-filter-btn {
    padding: 7px 12px;
    font-size: 0.75rem;
  }
}
