/* ============================================================
   ALRO ANALYTICS – Marketing Design System
   CI-conform: Indigo accent (#6366f1), Space Grotesk font
   Breakpoints: Audi Responsive UI (6-tier)
   ============================================================ */

/* ── Local Fonts (Space Grotesk) ── */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── 1. Design Tokens ─────────────────────────────────── */
:root {
  /* Brand – Indigo (CI) */
  --accent:        #6366f1;
  --accent-hover:  #818cf8;
  --accent-dim:    #4f46e5;
  --accent-subtle: rgba(99, 102, 241, 0.12);
  --accent-glow:   rgba(99, 102, 241, 0.35);

  /* Semantic */
  --success:       #10b981;
  --success-dim:   #059669;
  --danger:        #f43f5e;
  --warning:       #f59e0b;

  /* Surfaces */
  --bg:            #09090b;
  --bg-alt:        #0d0d10;
  --bg-card:       #111113;
  --bg-elevated:   #18181b;
  --bg-input:      #1c1c1f;

  /* Text */
  --text:          #fafafa;
  --text-muted:    #a1a1aa;
  --text-subtle:   #71717a;

  /* Borders & Glass */
  --stroke:        rgba(255, 255, 255, 0.08);
  --stroke-hover:  rgba(255, 255, 255, 0.14);
  --glass-bg:      rgba(255, 255, 255, 0.03);
  --glass-border:  rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.08);

  /* Mesh Gradients (CI) */
  --mesh-1: #4f46e5;  /* Indigo 600 */
  --mesh-2: #ec4899;  /* Pink 500 */
  --mesh-3: #06b6d4;  /* Cyan 500 */

  /* Typography */
  --font:          'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --leading:       1.6;
  --leading-tight: 1.15;
  --tracking:      -0.02em;
  --tracking-tight:-0.03em;

  /* Sizing Scale (rem) */
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  --text-2xl:  1.5rem;    /* 24px */
  --text-3xl:  1.875rem;  /* 30px */
  --text-4xl:  2.25rem;   /* 36px */
  --text-5xl:  3rem;      /* 48px */
  --text-6xl:  3.75rem;   /* 60px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg:  0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow:0 0 40px var(--accent-glow);

  /* Transitions */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --duration:  0.3s;
  --duration-slow: 0.6s;

  /* Audi Breakpoints – Page Margins (applied via container) */
  --margin-xs:  16px;   /* 320 – 374 */
  --margin-s:   28px;   /* 375 – 767 */
  --margin-m:   40px;   /* 768 – 1023 */
  --margin-l:   60px;   /* 1024 – 1439 */
  --margin-xl:  96px;   /* 1440 – 1919 */
  --margin-xxl: 96px;   /* 1920+ */

  /* Layout */
  --container-max: 1920px;
  --header-h: 80px;
}


/* ── 2. Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

::selection {
  background: var(--accent);
  color: var(--text);
}


/* ── 3. Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking);
  color: var(--text);
}

.display {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
}

h1, .h1 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

h3, .h3 {
  font-size: clamp(var(--text-xl), 2vw, var(--text-2xl));
}

h4, .h4 {
  font-size: var(--text-lg);
}

p {
  color: var(--text-muted);
  max-width: 65ch;
}

.lead {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 56ch;
}

.overline {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-subtle  { color: var(--text-subtle); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-center  { text-align: center; }


/* ── 4. Layout ────────────────────────────────────────── */

/* Container: Audi-responsive page margins */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-xs); /* XS default: 16px */
}

/* Section vertical rhythm */
section,
.section {
  padding-block: clamp(var(--space-24), 10vw, 10rem);
}

/* Grids */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between{ align-items: center; justify-content: space-between; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }


/* ── 5. Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke-hover);
}
.btn-secondary:hover {
  background: var(--glass-highlight);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover {
  background: var(--accent-subtle);
}

.btn-lg {
  font-size: var(--text-base);
  padding: 1rem 2.25rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1.25rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}


/* ── 6. Cards ─────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.card-glow:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.08);
}


/* ── 7. Badge / Tag ───────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent-hover);
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text-muted);
}


/* ── 8. Forms ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--duration) var(--ease);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-subtle);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}


/* ── 9. Header / Navigation ──────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.92);
  border-bottom-color: var(--stroke);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  position: relative;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img,
.logo svg {
  height: 46px;
  width: auto;
}

/* Desktop nav – centered (hidden on mobile, shown ≥1024px) */
.primary-nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-subtle);
  border-radius: var(--radius-md);
  transition: color var(--duration) var(--ease),
              background var(--duration) var(--ease);
  letter-spacing: 0.01em;
  position: relative;
}

.primary-nav a:hover {
  color: var(--text);
}

.primary-nav a.active {
  color: var(--text);
}

/* Header actions (lang + CTA) – hidden on mobile, shown ≥1024px */
.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-4);
  z-index: 1001;
}

/* Language toggle – ultra minimal */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switch button {
  padding: 7px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.02em;
}

.lang-switch button.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch button:hover:not(.active) {
  color: var(--text-muted);
}

/* Header CTA button – refined */
.header-cta {
  border-radius: var(--radius-full);
  padding: 0.6rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Hamburger Toggle – visible by default, hidden ≥1024px */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  z-index: 1201;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

/* Hamburger → X animation */
body.menu-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
body.menu-open .nav-toggle span:nth-child(2) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  z-index: 1200;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}


/* ── 10. Footer ───────────────────────────────────────── */
.site-footer {
  padding-block: var(--space-16) var(--space-8);
  border-top: 1px solid var(--stroke);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  max-width: 32ch;
}

.footer-col h5 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--stroke);
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom-links a {
  color: var(--text-subtle);
  transition: color var(--duration) var(--ease);
}

.footer-bottom-links a:hover {
  color: var(--text);
}


/* ── 11. Section Styles ───────────────────────────────── */

/* Hero sections */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Mesh background effect */
.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
}

.mesh-bg::before {
  width: 350px;
  height: 350px;
  background: var(--mesh-1);
  top: -200px;
  right: -100px;
}

.mesh-bg::after {
  width: 300px;
  height: 300px;
  background: var(--mesh-2);
  bottom: -150px;
  left: -150px;
}

/* ── Ambient Gradient Orbs ────────────────────────────── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.hero-orb-1 {
  width: 250px;
  height: 250px;
  background: var(--mesh-1);
  opacity: 0.06;
  top: 15%;
  left: 8%;
  animation: orb-drift-1 18s ease-in-out infinite;
}

.hero-orb-2 {
  width: 200px;
  height: 200px;
  background: var(--mesh-3);
  opacity: 0.04;
  top: 55%;
  right: 5%;
  animation: orb-drift-2 22s ease-in-out infinite;
}

.hero-orb-3 {
  width: 180px;
  height: 180px;
  background: var(--mesh-2);
  opacity: 0.03;
  bottom: 10%;
  left: 30%;
  animation: orb-drift-3 15s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, -40px) scale(1.1); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-50px, 30px) scale(1.08); }
  66%      { transform: translate(40px, -20px) scale(0.92); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -50px) scale(1.15); }
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--stroke);
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header .overline {
  margin-bottom: var(--space-3);
}

.section-header p {
  margin-inline: auto;
  margin-top: var(--space-4);
}

/* ── Statement Divider ────────────────────────────────── */
.statement-divider {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  text-align: center;
  position: relative;
}

.statement-divider .container {
  max-width: 800px;
}

.statement-text {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.statement-text em {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
}

.statement-text .text-accent {
  font-weight: 600;
}


/* ── 12. Scroll Animations ────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease),
              transform var(--duration-slow) var(--ease);
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease),
              transform 0.5s var(--ease);
}

.stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.15s; }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.2s; }
.stagger.in-view > *:nth-child(5) { transition-delay: 0.25s; }
.stagger.in-view > *:nth-child(6) { transition-delay: 0.3s; }
.stagger.in-view > *:nth-child(7) { transition-delay: 0.35s; }
.stagger.in-view > *:nth-child(8) { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate],
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}


/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */

/* ── Hero Layout ──────────────────────────────────────── */
.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  text-align: center;
}

.hero-text .display {
  max-width: none;
  font-size: clamp(var(--text-5xl), 7vw, 7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-text .display .text-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .lead {
  max-width: 56ch;
  margin-inline: auto;
  text-align: center;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.hero-compat {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-subtle);
  max-width: none;
}

/* ── Hero Visual: Animated Dashboard Mockup ───────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 860px;
  animation: float 6s ease-in-out infinite;
}

.mockup-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 65%);
  opacity: 0.4;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}

.mockup-window {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99, 102, 241, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.mockup-window::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  animation: shine-sweep 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--stroke);
}

.mockup-titlebar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mockup-titlebar .dot.red    { background: #f43f5e; }
.mockup-titlebar .dot.yellow { background: #f59e0b; }
.mockup-titlebar .dot.green  { background: #10b981; }

.mockup-body {
  display: flex;
  min-height: 280px;
}

.mockup-sidebar {
  width: 44px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--stroke);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-sidebar-item {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  transition: background 0.6s var(--ease);
  animation: sidebar-pulse 8s ease-in-out infinite;
}

.mockup-sidebar-item:nth-child(1) { animation-delay: 0s; }
.mockup-sidebar-item:nth-child(2) { animation-delay: 1.6s; }
.mockup-sidebar-item:nth-child(3) { animation-delay: 3.2s; }
.mockup-sidebar-item:nth-child(4) { animation-delay: 4.8s; }
.mockup-sidebar-item:nth-child(5) { animation-delay: 6.4s; }

.mockup-sidebar-item.active {
  background: var(--accent);
  opacity: 0.7;
}

.mockup-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mockup-kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-label {
  display: block;
  width: 60%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.kpi-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  animation: kpi-tick 5s ease-in-out infinite;
}

.mockup-kpi:nth-child(1) .kpi-value { animation-delay: 0s; }
.mockup-kpi:nth-child(2) .kpi-value { animation-delay: 1.2s; }
.mockup-kpi:nth-child(3) .kpi-value { animation-delay: 2.4s; }
.mockup-kpi:nth-child(4) .kpi-value { animation-delay: 3.6s; }

.kpi-value.green,
span.green { color: var(--success); }

.kpi-value.red,
span.red   { color: var(--danger); }

.mockup-chart {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 12px;
  flex: 1;
  min-height: 100px;
}

.mockup-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-line 2.5s ease-out forwards, chart-glow 3s ease-in-out 3s infinite;
}

.chart-fill {
  opacity: 0;
  animation: fade-in 1s ease forwards 2.5s, chart-fill-breathe 4s ease-in-out 3.5s infinite;
}

.mockup-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 3px 0;
}

.mockup-row.header {
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 5px;
  margin-bottom: 2px;
}

.mockup-row span {
  display: block;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
}

.mockup-row span.green { background: var(--success); opacity: 0.5; }
.mockup-row span.red   { background: var(--danger);  opacity: 0.5; }

/* Table row scan animation */
.mockup-row {
  animation: row-scan 6s ease-in-out infinite;
}
.mockup-row:nth-child(2) { animation-delay: 0s; }
.mockup-row:nth-child(3) { animation-delay: 2s; }
.mockup-row:nth-child(4) { animation-delay: 4s; }


/* ── Floating Glass Cards ─────────────────────────────── */
.float-card {
  position: absolute;
  z-index: 2;
  display: none;                       /* hidden on mobile */
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  white-space: nowrap;
}

.float-card svg {
  flex-shrink: 0;
}

.float-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-card-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.float-card-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.float-card-value.green { color: var(--success); }

.float-card-bar {
  width: 64px;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.float-card-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: bar-grow 1.5s ease-out forwards;
}

.float-card-spark {
  width: 60px;
  height: 24px;
  flex-shrink: 0;
}

/* Card 1 — top-left: notification toast */
.float-card-1 {
  top: 8%;
  left: -16%;
  animation: float-card-drift-1 7s ease-in-out infinite;
}

/* Card 2 — top-right: win rate */
.float-card-2 {
  top: 6%;
  right: -14%;
  flex-direction: column;
  align-items: flex-start;
  animation: float-card-drift-2 8s ease-in-out infinite;
}

/* Card 3 — bottom-left: monthly PnL */
.float-card-3 {
  bottom: 14%;
  left: -18%;
  animation: float-card-drift-3 6s ease-in-out infinite;
}

@keyframes float-card-drift-1 {
  0%, 100% { transform: translateY(0) rotate(-1deg);  }
  50%      { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes float-card-drift-2 {
  0%, 100% { transform: translateY(0) rotate(0.5deg);  }
  50%      { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes float-card-drift-3 {
  0%, 100% { transform: translateY(0) rotate(0.5deg);  }
  50%      { transform: translateY(-14px) rotate(-1deg); }
}

@keyframes bar-grow {
  from { width: 0; }
}

/* Dot-grid background for hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
}


/* ── Broker Marquee ───────────────────────────────────── */
.section-marquee {
  padding-block: var(--space-12);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  overflow: hidden;
}

.section-marquee .section-header {
  margin-bottom: var(--space-6);
}

.marquee {
  overflow: hidden;
  display: flex;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: var(--space-4);
  flex-shrink: 0;
  padding-right: var(--space-4);
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-subtle);
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  transition: color var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.marquee-track span:hover {
  color: var(--text);
  border-color: var(--stroke-hover);
}


/* ── Glass Card (shared) ──────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--duration) var(--ease);
}

.glass-card:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


/* ── Why Alro ─────────────────────────────────────────── */
.section-why {
  position: relative;
  overflow: hidden;
}

.section-why .section-header p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-top: 2px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.why-card[data-accent="indigo"]  { border-top-color: var(--accent); }
.why-card[data-accent="emerald"] { border-top-color: var(--success); }
.why-card[data-accent="cyan"]    { border-top-color: #06b6d4; }

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-hover);
}

/* Per-card accent glow on hover */
.why-card-glow {
  position: absolute;
  top: -60%;
  left: 50%;
  translate: -50% 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0;
  filter: blur(80px);
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.why-card:hover .why-card-glow {
  opacity: 1;
}

.why-card[data-accent="indigo"] .why-card-glow  { background: var(--accent); opacity: 0; }
.why-card[data-accent="indigo"]:hover .why-card-glow { opacity: 0.08; }
.why-card[data-accent="emerald"] .why-card-glow { background: var(--success); }
.why-card[data-accent="emerald"]:hover .why-card-glow { opacity: 0.08; }
.why-card[data-accent="cyan"] .why-card-glow    { background: #06b6d4; }
.why-card[data-accent="cyan"]:hover .why-card-glow { opacity: 0.08; }

/* Hover shadow per accent */
.why-card[data-accent="indigo"]:hover  { box-shadow: 0 8px 40px rgba(99, 102, 241, 0.1); }
.why-card[data-accent="emerald"]:hover { box-shadow: 0 8px 40px rgba(16, 185, 129, 0.1); }
.why-card[data-accent="cyan"]:hover    { box-shadow: 0 8px 40px rgba(6, 182, 212, 0.1); }

/* Icon wrapper with gradient background */
.why-icon-wrap {
  width: 64px;
  height: 64px;
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card[data-accent="indigo"] .why-icon-wrap  { background: rgba(99, 102, 241, 0.12); color: var(--accent); }
.why-card[data-accent="emerald"] .why-icon-wrap { background: rgba(16, 185, 129, 0.12); color: var(--success); }
.why-card[data-accent="cyan"] .why-icon-wrap    { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }

.why-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.why-card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Tag / label at bottom */
.why-card-tag {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.why-card[data-accent="indigo"] .why-card-tag  { color: var(--accent); }
.why-card[data-accent="emerald"] .why-card-tag { color: var(--success); }
.why-card[data-accent="cyan"] .why-card-tag    { color: #06b6d4; }

/* SVG icon draw-in animation */
.why-card.in-view .icon-circle,
.why-card.in-view .icon-check,
.why-card.in-view .icon-shield,
.why-card.in-view .icon-lock-dot,
.why-card.in-view .icon-chart {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw-line 1.2s ease-out forwards;
}

.why-card.in-view .icon-chart-dot {
  opacity: 0;
  animation: fade-in 0.4s ease forwards 1s;
}


/* ── Feature Steps Layout ─────────────────────────────── */
.feature-steps-section {
  position: relative;
  background: var(--bg-alt);
}

.feature-steps-wrapper {
  position: relative;
  padding-left: 0;
}

.scroll-track {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

.scroll-impulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 120px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6),
              0 0 40px rgba(107, 163, 255, 0.4);
  border-radius: 2px;
  will-change: transform;
}

.feature-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  margin-bottom: clamp(var(--space-20), 8vw, 160px);
  position: relative;
}

.feature-step:last-child {
  margin-bottom: 0;
}

.step-content h3 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.step-content p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 480px;
}

.btn-link-styled {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease);
}

.btn-link-styled:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.step-visual {
  position: relative;
}

.visual-inner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.visual-inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-card);
  position: relative;
  z-index: 2;
}

.glow-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
  opacity: 0.6;
}

.glow-back.blue {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
}

.glow-back.purple {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
}


/* ── Three Steps (Timeline) ───────────────────────────── */
.section-steps {
  position: relative;
}

.steps-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  margin-inline: auto;
}

/* Vertical connector line – left on mobile */
.steps-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--stroke) 10%,
    var(--accent) 50%,
    var(--stroke) 90%,
    transparent 100%
  );
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-10);
  position: relative;
}

.timeline-step:first-child {
  padding-top: 0;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Circle node on the timeline */
.timeline-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--accent-glow),
              0 0 60px rgba(99, 102, 241, 0.1);
  transition: all var(--duration) var(--ease);
}

/* Pulse ring animation */
.node-pulse {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  opacity: 0;
  animation: node-pulse-ring 3s ease-out infinite;
}

.timeline-step:nth-child(2) .node-pulse { animation-delay: 1s; }
.timeline-step:nth-child(3) .node-pulse { animation-delay: 2s; }

@keyframes node-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.timeline-step:hover .timeline-node {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px var(--accent-glow),
              0 0 80px rgba(99, 102, 241, 0.15);
}

.timeline-body {
  padding-top: var(--space-2);
}

.timeline-body .overline {
  font-size: 10px;
  margin-bottom: var(--space-2);
}

.timeline-body h3 {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.timeline-body p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* Timeline Visual (CSS Mockup cards) */
.timeline-visual {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  margin-left: calc(48px + var(--space-6));
  max-width: 320px;
}

/* ── Mockup shared ── */
.mockup-sync,
.mockup-strategy,
.mockup-equity {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.timeline-step:hover .mockup-sync,
.timeline-step:hover .mockup-strategy,
.timeline-step:hover .mockup-equity {
  transform: translateY(-4px);
  border-color: var(--stroke-hover);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
}

/* ── Step 1: Sync Mockup ── */
.mockup-sync {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 140px;
}

.sync-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  min-width: 80px;
}

.sync-logo {
  width: 36px;
  height: 36px;
}

.sync-card-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sync-card-lines span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.sync-card-lines span:nth-child(1) { width: 100%; }
.sync-card-lines span:nth-child(2) { width: 75%; }
.sync-card-lines span:nth-child(3) { width: 50%; }

.sync-dest .sync-card-lines span {
  animation: sync-line-fill 3s ease-in-out infinite;
}
.sync-dest .sync-card-lines span:nth-child(2) { animation-delay: 0.3s; }
.sync-dest .sync-card-lines span:nth-child(3) { animation-delay: 0.6s; }

@keyframes sync-line-fill {
  0%, 30%  { background: rgba(255, 255, 255, 0.06); }
  50%, 80% { background: var(--accent-subtle); }
  100%     { background: rgba(255, 255, 255, 0.06); }
}

.sync-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.sync-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--accent);
  opacity: 0;
  animation: sync-dot-move 2s ease-in-out infinite;
}

.sync-dot-2 { animation-delay: 0.25s; }
.sync-dot-3 { animation-delay: 0.5s; }

@keyframes sync-dot-move {
  0%   { opacity: 0; transform: translateX(-8px); }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(8px); }
}

.sync-arrow {
  width: 20px;
  height: 12px;
  flex-shrink: 0;
}

.sync-check {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 24px;
  height: 24px;
  animation: check-pop 3s ease-in-out infinite;
}

@keyframes check-pop {
  0%, 60%  { opacity: 0; transform: scale(0.5); }
  70%      { opacity: 1; transform: scale(1.15); }
  80%, 100%{ opacity: 1; transform: scale(1); }
}

/* ── Step 2: Strategy Breakdown Mockup ── */
.strategy-header {
  margin-bottom: var(--space-4);
}

.strategy-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.strategy-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.strategy-row {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: var(--space-3);
}

.strategy-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.strategy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.strategy-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.strategy-bar {
  height: 100%;
  width: 0;
  border-radius: var(--radius-full);
  background: var(--bar-color);
  animation: strategy-fill 2s ease-out forwards;
  animation-delay: 0.5s;
}

.strategy-row:nth-child(2) .strategy-bar { animation-delay: 0.8s; }
.strategy-row:nth-child(3) .strategy-bar { animation-delay: 1.1s; }

@keyframes strategy-fill {
  to { width: var(--bar-width); }
}

.strategy-pct {
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.strategy-positive { color: var(--success); }
.strategy-negative { color: var(--danger); }

.strategy-insight {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-md);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  animation: insight-fade 0.8s ease-out forwards;
  animation-delay: 2s;
  opacity: 0;
}

.strategy-insight-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes insight-fade {
  to { opacity: 1; }
}

/* ── Step 3: Equity Curve Mockup ── */
.equity-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
}

.equity-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.equity-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--success);
}

.equity-chart {
  position: relative;
  height: 100px;
}

.equity-svg {
  width: 100%;
  height: 100%;
}

.equity-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: equity-draw 3s ease-out forwards;
}

.equity-area {
  opacity: 0;
  animation: equity-fill-in 1s ease-out 2.5s forwards;
}

.equity-dot {
  opacity: 0;
  animation: equity-dot-pop 0.5s ease-out 2.8s forwards;
}

@keyframes equity-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes equity-fill-in {
  to { opacity: 1; }
}

@keyframes equity-dot-pop {
  0%   { opacity: 0; r: 0; }
  60%  { r: 6; }
  100% { opacity: 1; r: 4; }
}

.equity-glow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 60px;
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  animation: equity-glow-in 1s ease-out 2.5s forwards;
}

@keyframes equity-glow-in {
  to { opacity: 1; }
}


/* ── Stats ────────────────────────────────────────────── */
.section-stats {
  padding-block: var(--space-16);
  background: var(--bg-alt);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-suffix {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  margin-top: var(--space-2);
}


/* ── Testimonials ─────────────────────────────────────── */
.section-testimonials {
  position: relative;
  background: var(--bg-alt);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.review-stars {
  color: #f59e0b;
  font-size: var(--text-lg);
  letter-spacing: 2px;
}

.review-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  max-width: none;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--text);
}

.review-author span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-subtle);
}


/* ── Final CTA ────────────────────────────────────────── */
.section-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, #050508 100%);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, var(--accent-glow) 0%, transparent 55%);
  opacity: 0.25;
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  max-width: 600px;
  margin-inline: auto;
}

.cta-content h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

.cta-content p {
  margin-inline: auto;
}

/* ── CTA Network Graphic ── */
.cta-network {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: var(--space-8) auto 0;
}

.network-base {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(99,102,241,0.5));
  opacity: 0.35;
}

/* Violet radial tint over the network */
.cta-network::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 65% at 50.5% 54%,
    rgba(99,102,241,0.18) 0%,
    rgba(99,102,241,0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.network-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Mobile: smaller network */
@media (max-width: 767px) {
  .cta-network {
    max-width: 100%;
    margin-top: var(--space-4);
  }
}


/* ============================================================
   INTEGRATIONS PAGE
   ============================================================ */

/* ── Compact Hero ── */
.hero--compact {
  min-height: auto;
  min-height: auto;
  padding-block: calc(var(--header-h) + var(--space-20)) var(--space-20);
}

/* ── bg-alt section ── */
.bg-alt {
  background: var(--bg-alt);
}

/* ── Platform Cards Grid (1×4) ── */
.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.int-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.int-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}

.int-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.int-card__icon {
  width: 40px;
  height: 40px;
}

.int-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  transition: color var(--duration) var(--ease);
}

.int-card__link:hover {
  color: var(--accent-hover);
}

/* Available card — prominent */
.int-card--available {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.06);
}

.int-card--available:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.1);
}

/* Coming Soon card — dimmed */
.int-card--soon {
  border-style: dashed;
  opacity: 0.65;
}

.int-card--soon h3 {
  color: var(--text-muted);
}

/* Badges */
.int-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-full);
  width: fit-content;
}

.int-badge--available {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.int-badge--soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-subtle);
}


/* ── How It Works Steps — Card Style ── */
/* ── Timeline Layout ── */
.int-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--space-10);
  max-width: 1320px;
  margin-inline: auto;
  padding-top: 3rem;          /* space for the dot row */
}

/* horizontal rail behind the dots */
.int-timeline__rail {
  position: absolute;
  top: calc(3rem + 8px);      /* vertically centred on dots */
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(99, 102, 241, 0.10);
  border-radius: 1px;
}

.int-timeline__progress {
  width: 100%;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(99, 102, 241, 0.15) 100%);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.25);
}

/* each step column */
.int-timeline__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* glowing dot on the rail */
.int-timeline__dot {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
}

.int-timeline__dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
  animation: dotPulse 2.4s ease-in-out infinite;
}

/* stagger the pulse per step */
.int-timeline__step:nth-child(2) .int-timeline__dot span { animation-delay: 0.4s; }
.int-timeline__step:nth-child(3) .int-timeline__dot span { animation-delay: 0.8s; }

@keyframes dotPulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 10px rgba(99,102,241,0.6); }
  50%      { transform: scale(1.35); box-shadow: 0 0 18px rgba(99,102,241,0.9); }
}

/* card below dot */
.int-timeline__card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-inline: var(--space-3);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}

.int-timeline__card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 32px rgba(99, 102, 241, 0.08);
  transform: translateY(-4px);
}

.int-step-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.int-step-card__num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.int-step-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}

.int-step-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* (connectors removed — replaced by timeline) */

/* ── Marquee Reverse Direction ── */
.marquee--reverse .marquee-track {
  animation-direction: reverse;
}

/* ── Broker Search Bar ── */
.broker-search {
  position: relative;
  max-width: 480px;
  margin: 0 auto var(--space-10);
}

.broker-search__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.broker-search__input {
  width: 100%;
  padding: 0.85rem var(--space-4) 0.85rem calc(var(--space-4) + 26px);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.broker-search__input::placeholder {
  color: var(--text-subtle);
}

.broker-search__input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ── No Results ── */
.broker-no-results {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.broker-no-results.is-visible {
  display: flex;
}

.broker-no-results p {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-muted);
}

.broker-no-results__sub {
  font-size: var(--text-sm) !important;
  font-weight: 400 !important;
  color: var(--text-subtle) !important;
  max-width: 360px;
}

/* ── Broker Group Cards ── */
.broker-group-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-6);
}

.broker-group-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.broker-group-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.broker-group-card__header h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* ── Broker Tile Grid ── */
.broker-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}

.broker-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  text-align: center;
}

.broker-tile:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
}

.broker-tile__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.broker-tile__name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.broker-tile:hover .broker-tile__name {
  color: var(--text);
}

/* Hidden by search filter */
.broker-tile--hidden {
  display: none;
}

.broker-group-card--empty {
  display: none;
}


/* ── Broker Note ── */
.broker-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-subtle);
}


/* ── Integrations Responsive ── */

/* Tablet: 2 cols for platform cards, steps stay horizontal */
@media (max-width: 1023px) {
  .int-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: stack everything */
@media (max-width: 767px) {
  .int-grid {
    grid-template-columns: 1fr;
  }

  .int-timeline {
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding-top: 0;
  }

  .int-timeline__rail {
    display: none;        /* hide horizontal rail on mobile */
  }

  .int-timeline__dot {
    display: none;        /* dots don't make sense vertically */
  }

  .int-timeline__card {
    max-width: 360px;
    width: 100%;
    margin-inline: 0;
  }
}


/* ═══════════════════════════════════════════════════════════
   PRICING PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── Billing Toggle — Segmented Control ───────────────── */
.pricing-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto var(--space-8);
}

/* Pricing-specific hero — taller, more presence */
#pricing.hero--compact {
  padding-block: calc(var(--header-h) + var(--space-32)) var(--space-32);
}
#pricing .hero-text .display {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
}

.billing-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.billing-toggle__track {
  position: relative;
  display: inline-flex;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
}

.billing-toggle__indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: var(--radius-full);
  background: var(--accent);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* When yearly is active (default), indicator slides right */
.billing-toggle__track:has(.toggle-btn:last-of-type.active) .billing-toggle__indicator {
  transform: translateX(100%);
}

/* When monthly is active, indicator stays left */
.billing-toggle__track:has(.toggle-btn:first-of-type.active) .billing-toggle__indicator {
  transform: translateX(0);
}

/* JS fallback for browsers without :has() support */
.billing-toggle__track[data-active="yearly"] .billing-toggle__indicator {
  transform: translateX(100%);
}
.billing-toggle__track[data-active="monthly"] .billing-toggle__indicator {
  transform: translateX(0);
}

.toggle-btn {
  position: relative;
  z-index: 1;
  padding: 0.65rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  min-width: 120px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.toggle-btn.active {
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  color: var(--text);
}

.toggle-save-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ── Pricing Grid ──────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}

/* ── Panel (Pricing Card) ──────────────────────────────── */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: var(--space-10) var(--space-10) var(--space-12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ── Premium emphasis — gradient border glow ── */
.panel.pro-emphasis {
  border-color: transparent;
  background-clip: padding-box;
}

.panel__glow {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, var(--accent), #818cf8, var(--accent), #4f46e5);
  background-size: 300% 300%;
  animation: gradient-shift 6s ease infinite;
  z-index: -2;
}

.panel.pro-emphasis::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: linear-gradient(180deg, #13131a 0%, #0e0e14 100%);
  z-index: -1;
}

.panel.pro-emphasis::before {
  z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}

.panel.pro-emphasis:hover {
  box-shadow: 0 20px 80px rgba(99, 102, 241, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.3);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Panel Inner Sections ──────────────────────────────── */
.panel__head {
  margin-bottom: var(--space-6);
}

.popular-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.panel .subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Price Display ──────────────────────────────────────── */
.panel__price {
  margin-bottom: var(--space-6);
}

.big-price {
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-bottom: 0.35rem;
}

.big-price .currency {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  align-self: flex-start;
  margin-top: 0.5rem;
  margin-right: 0.15rem;
}

.price-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pro-emphasis .price-number {
  background: linear-gradient(135deg, #fff 30%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.25rem;
}

.annual-total {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.save-ribbon {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: var(--space-2);
}

/* ── Panel CTA ──────────────────────────────────────────── */
.panel__cta {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: var(--space-8);
}

.panel__cta--secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.panel__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.panel__cta--primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border: none;
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.panel__cta--primary:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

/* ── Panel Divider ──────────────────────────────────────── */
.panel__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin-bottom: var(--space-6);
}

.pro-emphasis .panel__divider {
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

/* ── Feature Checklist ──────────────────────────────────── */
.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.feature-checklist li svg {
  flex-shrink: 0;
}

.feature-checklist li.excluded {
  color: rgba(255, 255, 255, 0.25);
}

.feature-checklist li.highlight span {
  color: var(--accent);
  font-weight: 600;
}

/* ── Pricing Footer (VAT + Payments) ───────────────────── */
.pricing-footer {
  max-width: 920px;
  margin: var(--space-12) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.vat-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.payment-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.payment-strip__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.payment-strip__icons {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.payment-strip__icons img {
  height: 28px;
  width: 44px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.payment-strip__icons:hover img {
  opacity: 0.8;
}

/* ── Feature Comparison — Grouped Cards Layout ─────────── */
#compare .section-header .display-sm {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.compare-wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ── Sticky Header Bar ── */
.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.compare-header__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.compare-header__plan {
  display: flex;
  justify-content: center;
}

.compare-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.01em;
}

.compare-pill--premium {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  border: none;
  color: #fff;
}

/* ── Category Group Card ── */
.compare-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.compare-group__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compare-group__bar {
  display: inline-block;
  width: 4px;
  height: 1.3rem;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #818cf8);
  flex-shrink: 0;
}

/* ── Feature Rows ── */
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.compare-row__feature {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.compare-row__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.compare-row__cell--premium {
  background: rgba(99, 102, 241, 0.04);
}

/* ── Checkmarks & Dashes ── */
.compare-check {
  color: #10b981;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.compare-no {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
}

/* ── Value Badges ── */
.compare-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 3rem;
}

.compare-badge--accent {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  font-weight: 700;
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.35rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  padding-bottom: 1.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Pricing Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .billing-toggle__track {
    width: 100%;
    max-width: 300px;
  }

  .toggle-btn {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 1rem;
  }

  .price-number {
    font-size: 2.8rem;
  }

  .big-price .currency {
    font-size: 1.3rem;
  }

  .compare-header {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.85rem 1.2rem;
  }

  .compare-header__label {
    font-size: 0.88rem;
  }

  .compare-pill {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }

  .compare-group__title {
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
  }

  .compare-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .compare-row__feature {
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
  }

  .compare-row__cell {
    padding: 0.85rem 0.6rem;
  }

  .compare-badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    min-width: 2.5rem;
  }

  .payment-strip__icons {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: var(--radius-lg);
    gap: var(--space-4);
  }

  .payment-strip__icons img {
    height: 24px;
    width: 38px;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: var(--space-8) var(--space-6);
  }

  .price-number {
    font-size: 2.4rem;
  }

  .compare-header {
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .compare-pill {
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
  }

  .compare-row {
    grid-template-columns: 1fr auto auto;
  }

  .compare-row__feature {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }

  .compare-row__cell {
    padding: 0.75rem 0.5rem;
    min-width: 60px;
  }

  .compare-group__title {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }

  .compare-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    min-width: 2rem;
  }
}


/* ═══════════════════════════════════════════════════════════
   FAQ PAGE
   ═══════════════════════════════════════════════════════════ */

/* ── FAQ Search ── */
.faq-search {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: var(--space-8) auto 0;
}

.faq-search__icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.faq-search__input {
  width: 100%;
  padding: 0.9rem 1.25rem 0.9rem 3.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-search__input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.faq-search__input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

/* ── FAQ Categories ── */
.faq-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  max-width: 960px;
  margin: 0 auto;
}

.faq-cat {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-cat__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 1.6rem 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.faq-cat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.faq-cat__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

.faq-cat__items {
  padding: 0;
}

/* Override global faq-item inside category cards */
.faq-cat .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
}

.faq-cat .faq-item:last-child {
  border-bottom: none;
}

.faq-cat .faq-item:first-child {
  border-top: none;
}

.faq-cat .faq-q {
  padding: 1.25rem 2.25rem;
  font-size: 1.02rem;
}

.faq-cat .faq-a {
  padding: 0 2.25rem 1.35rem;
}

/* ── FAQ item hidden by search ── */
.faq-item--hidden {
  display: none !important;
}

.faq-cat--hidden {
  display: none !important;
}

/* ── FAQ no results message ── */
.faq-no-results {
  text-align: center;
  padding: var(--space-12) 0;
  color: var(--muted);
  font-size: 1.05rem;
  display: none;
}

.faq-no-results.visible {
  display: block;
}

/* ── Contact CTA Card ── */
.faq-contact {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.faq-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.faq-contact h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.faq-contact p {
  color: var(--muted);
  line-height: 1.6;
}

/* ── FAQ Responsive ── */
@media (max-width: 768px) {
  .faq-cat__header {
    padding: 1.2rem 1.5rem;
  }

  .faq-cat .faq-q {
    padding: 1rem 1.5rem;
  }

  .faq-cat .faq-a {
    padding: 0 1.5rem 1rem;
  }

  .faq-search {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .faq-cat__header {
    padding: 1rem 1.2rem;
    gap: var(--space-3);
  }

  .faq-cat__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .faq-cat__title {
    font-size: 1.1rem;
  }

  .faq-cat .faq-q {
    padding: 0.9rem 1.2rem;
    font-size: 0.92rem;
  }

  .faq-cat .faq-a {
    padding: 0 1.2rem 0.9rem;
    font-size: 0.88rem;
  }
}


/* ── Homepage Keyframe Animations ─────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.5; }
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% - var(--space-4))); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes sidebar-pulse {
  0%, 85%, 100% { background: rgba(255, 255, 255, 0.06); }
  15%, 30%      { background: var(--accent); opacity: 0.6; }
}

@keyframes kpi-tick {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); color: var(--accent-hover); }
}

@keyframes chart-glow {
  0%, 100% { filter: drop-shadow(0 0 0px transparent); }
  50%      { filter: drop-shadow(0 0 6px var(--accent-glow)); }
}

@keyframes chart-fill-breathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes row-scan {
  0%, 100% { background: transparent; }
  15%, 25% { background: rgba(99, 102, 241, 0.04); }
}

@keyframes shine-sweep {
  0%   { transform: translateX(-100%) rotate(0deg); }
  40%  { transform: translateX(100%) rotate(0deg); }
  100% { transform: translateX(100%) rotate(0deg); }
}

/* ── Chart Scanline ───────────────────────────────────── */
.chart-scanline,
.chart-scanline-dot {
  animation: scanline-sweep 4s ease-in-out 3.5s infinite;
}

@keyframes scanline-sweep {
  0%   { transform: translateX(0); opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.7; }
  100% { transform: translateX(400px); opacity: 0; }
}

/* ── Parallax Tilt ────────────────────────────────────── */
[data-parallax-tilt] {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  perspective: 1000px;
}


/* ── Homepage Responsive ──────────────────────────────── */

/* M: ≥ 768px (Tablet) */
@media (min-width: 768px) {
  .float-card {
    display: flex;
  }

  /* Scale up orbs on tablet+ */
  .hero-orb-1 {
    width: 400px;
    height: 400px;
    opacity: 0.12;
  }
  .hero-orb-2 {
    width: 300px;
    height: 300px;
    opacity: 0.08;
  }
  .hero-orb-3 {
    width: 250px;
    height: 250px;
    opacity: 0.06;
  }

  /* Scale up mesh-bg on tablet+ */
  .mesh-bg::before,
  .mesh-bg::after {
    opacity: 0.15;
  }
  .mesh-bg::before {
    width: 600px;
    height: 600px;
  }
  .mesh-bg::after {
    width: 500px;
    height: 500px;
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .why-card {
    padding: var(--space-8);
  }

  .feature-step {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
  }

  .feature-steps-wrapper {
    padding-left: 40px;
  }

  .scroll-track {
    display: block;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-number {
    font-size: var(--text-5xl);
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* L: ≥ 1024px (Desktop) */
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero-mockup {
    max-width: 860px;
  }

  .steps-timeline {
    max-width: 100%;
  }

  /* Center the timeline line on the node column */
  .steps-timeline::before {
    left: 50%;
    transform: translateX(calc(-240px - 24px));
  }

  /* 4-col: [left-mockup] [node] [text] [right-mockup] */
  .timeline-step {
    grid-template-columns: 1fr 48px minmax(0, 480px) 1fr;
    gap: 0 var(--space-16);
    align-items: center;
    justify-items: center;
  }

  /* Node always in col 2 */
  .timeline-node {
    grid-column: 2;
    grid-row: 1;
  }

  /* Text always in col 3 */
  .timeline-body {
    grid-column: 3;
    grid-row: 1;
    padding-top: 0;
    text-align: left;
    justify-self: start;
  }

  /* Odd steps (1, 3): mockup on the RIGHT */
  .timeline-step:nth-child(odd) .timeline-visual {
    grid-column: 4;
    grid-row: 1;
    margin: 0;
    max-width: 320px;
    justify-self: start;
    margin-left: var(--space-10);
  }

  /* Even steps (2): mockup on the LEFT */
  .timeline-step:nth-child(even) .timeline-visual {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    max-width: 320px;
    justify-self: end;
    margin-right: var(--space-10);
  }

  .feature-steps-wrapper {
    padding-left: 48px;
  }
}


/* ── 13. Utility ──────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mx-auto { margin-inline: auto; }
.mt-4    { margin-top: var(--space-4); }
.mt-6    { margin-top: var(--space-6); }
.mt-8    { margin-top: var(--space-8); }
.mt-12   { margin-top: var(--space-12); }
.mb-4    { margin-bottom: var(--space-4); }
.mb-6    { margin-bottom: var(--space-6); }
.mb-8    { margin-bottom: var(--space-8); }

.w-full  { width: 100%; }
.relative{ position: relative; }
.overflow-hidden { overflow: hidden; }


/* ============================================================
   14. RESPONSIVE – Audi Breakpoint System
   ============================================================

   XS:  320 – 374   → 16px   (default)
   S:   375 – 767   → 28px
   M:   768 – 1023  → 40px   (hamburger → desktop at L)
   L:   1024 – 1439 → 60px
   XL:  1440 – 1919 → 96px
   XXL: 1920+       → 96px
   ============================================================ */

/* ── S: ≥ 375px ── */
@media (min-width: 375px) {
  .container {
    padding-inline: var(--margin-s); /* 28px */
  }
}

/* ── M: ≥ 768px (Tablet) ── */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--margin-m); /* 40px */
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* ── L: ≥ 1024px (Desktop) ── */
@media (min-width: 1024px) {
  .container {
    padding-inline: var(--margin-l); /* 60px */
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 0;
  }

  /* Show desktop nav, hide hamburger */
  .nav-toggle {
    display: none !important;
  }

  .primary-nav {
    display: flex !important;
  }

  .header-actions {
    display: flex !important;
  }

  .mobile-nav-overlay {
    display: none !important;
  }
}

/* ── XL: ≥ 1440px ── */
@media (min-width: 1440px) {
  .container {
    padding-inline: var(--margin-xl); /* 96px */
  }
}

/* ── XXL: ≥ 1920px ── */
@media (min-width: 1920px) {
  .container {
    padding-inline: var(--margin-xxl); /* 96px */
  }
}

/* ── Mobile: ≤ 1023px (Hamburger active) ── */
@media (max-width: 1023px) {

  /* Mobile overlay nav */
  .mobile-nav-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: var(--bg);
    padding: calc(var(--header-h) + var(--space-8)) var(--space-8) var(--space-8);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease),
                visibility var(--duration) var(--ease);
  }

  body.menu-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav-overlay nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .mobile-nav-overlay ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    width: 100%;
  }

  .mobile-nav-overlay a {
    display: block;
    padding: 0.75rem var(--space-4);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    transition: color var(--duration) var(--ease),
                background var(--duration) var(--ease);
  }

  .mobile-nav-overlay a:hover,
  .mobile-nav-overlay a.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }

  /* Staggered entrance animation */
  body.menu-open .mobile-nav-overlay li {
    animation: slideIn var(--duration) var(--ease) both;
  }
  body.menu-open .mobile-nav-overlay li:nth-child(1) { animation-delay: 0.03s; }
  body.menu-open .mobile-nav-overlay li:nth-child(2) { animation-delay: 0.06s; }
  body.menu-open .mobile-nav-overlay li:nth-child(3) { animation-delay: 0.09s; }
  body.menu-open .mobile-nav-overlay li:nth-child(4) { animation-delay: 0.12s; }
  body.menu-open .mobile-nav-overlay li:nth-child(5) { animation-delay: 0.15s; }
  body.menu-open .mobile-nav-overlay li:nth-child(6) { animation-delay: 0.18s; }
  body.menu-open .mobile-nav-overlay li:nth-child(7) { animation-delay: 0.21s; }
  body.menu-open .mobile-nav-overlay li:nth-child(8) { animation-delay: 0.24s; }
  body.menu-open .mobile-nav-overlay li:nth-child(9) { animation-delay: 0.27s; }
  body.menu-open .mobile-nav-overlay li:nth-child(10){ animation-delay: 0.30s; }

  .mobile-lang-switch {
    display: flex;
    gap: 4px;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: var(--space-2);
  }

  .mobile-lang-switch button {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--text-subtle);
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.02em;
  }

  .mobile-lang-switch button.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-nav-ctas {
    width: 100%;
  }

  .mobile-nav-ctas .btn {
    display: block;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
    color: #fff !important;
  }

  /* Grids stack on mobile */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ── XS: ≤ 374px ── */
@media (max-width: 374px) {
  .container {
    padding-inline: var(--margin-xs); /* 16px */
  }

  .btn-lg {
    width: 100%;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─────────────────────────────────────────────
   Legal Pages  (AGB, Impressum, Datenschutz …)
   ───────────────────────────────────────────── */
[data-lang-content] {
  display: none;
}
/* No-JS / pre-JS fallback */
html[lang="de"] [data-lang-content="de"],
html[lang="en"] [data-lang-content="en"] {
  display: block;
}
html:not([lang]) [data-lang-content="en"] {
  display: block;
}

.legal-content {
  max-width: 1400px;
  margin: 120px auto 60px;
  padding: 0 var(--space-8);
  color: var(--text);
}

.legal-content h1 {
  font-size: 2.25rem;
  color: var(--text);
  margin-bottom: var(--space-10);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-4);
  max-width: none;
}

.legal-content ul {
  margin-left: 20px;
  color: var(--muted);
  list-style: disc;
}

.legal-content ul li {
  padding-left: 8px;
  margin-bottom: 12px;
}

.legal-content ol {
  margin-left: 20px;
  color: var(--muted);
}

.legal-content ol li {
  padding-left: 8px;
  margin-bottom: 12px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--accent-light, #818cf8);
}


/* ═══════════════════════════════════════════════════════
   FEATURES PAGE (v5)
   ═══════════════════════════════════════════════════════ */

/* ── 1. Hero ── */
.f-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: calc(var(--header-h) + clamp(var(--space-16), 8vw, 8rem));
  padding-bottom: 0;
}

.f-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.15;
}
.f-hero__orb--1 {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -250px; left: -150px;
}
.f-hero__orb--2 {
  width: 550px; height: 550px;
  background: #a855f7;
  bottom: -100px; right: -100px;
}

.f-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.f-hero__inner .display {
  max-width: 18ch;
  margin-inline: auto;
}

.f-hero__inner .lead {
  max-width: 56ch;
  margin-inline: auto;
}

.f-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Floating 3D Hero Cards */
.f-hero__scene {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  height: clamp(260px, 28vw, 380px);
  margin-inline: auto;
  perspective: 1200px;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.f-hero__float {
  position: absolute;
  background: rgba(17, 17, 19, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  will-change: transform;
}

.f-hero__float:hover {
  box-shadow:
    0 16px 48px rgba(99, 102, 241, 0.15),
    0 0 0 1px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Float positions (scattered, organic layout) ── */
.f-hero__float--1 {
  top: 10%;
  left: 4%;
  transform: rotateY(8deg) rotateX(-3deg);
  animation: heroFloat1 6s ease-in-out infinite;
  min-width: 180px;
}

.f-hero__float--2 {
  top: 5%;
  right: 6%;
  transform: rotateY(-6deg) rotateX(4deg);
  animation: heroFloat2 7s ease-in-out 0.5s infinite;
  min-width: 190px;
}

.f-hero__float--3 {
  bottom: 18%;
  left: 15%;
  transform: rotateY(5deg) rotateX(3deg);
  animation: heroFloat3 5.5s ease-in-out 1s infinite;
  min-width: 160px;
}

.f-hero__float--4 {
  bottom: 8%;
  right: 12%;
  transform: rotateY(-4deg) rotateX(-2deg);
  animation: heroFloat4 6.5s ease-in-out 1.5s infinite;
  min-width: 170px;
}

.f-hero__float--5 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotateY(2deg) rotateX(-1deg);
  animation: heroFloat5 7.5s ease-in-out 0.8s infinite;
  min-width: 175px;
  border-color: rgba(99, 102, 241, 0.15);
  background: rgba(17, 17, 19, 0.85);
}

/* ── Float card inner elements ── */
.f-hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-hero__float-icon--green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.f-hero__float-icon--purple {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.f-hero__float-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.f-hero__float-label {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.f-hero__float-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.f-hero__float-value--green {
  color: #22c55e;
}

/* Mini progress bar */
.f-hero__float-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: var(--space-1);
  overflow: hidden;
}

.f-hero__float-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
}

/* Mini sparkline chart */
.f-hero__float-chart {
  width: 100%;
  height: 28px;
  margin-top: var(--space-1);
}

/* Tag row */
.f-hero__float-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.f-hero__float-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.f-hero__float-tag--win {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.f-hero__float-tag--loss {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* ── Float animations ── */
@keyframes heroFloat1 {
  0%, 100% { transform: rotateY(8deg) rotateX(-3deg) translateY(0); }
  50% { transform: rotateY(6deg) rotateX(-1deg) translateY(-12px); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-10px); }
}
@keyframes heroFloat3 {
  0%, 100% { transform: rotateY(5deg) rotateX(3deg) translateY(0); }
  50% { transform: rotateY(3deg) rotateX(1deg) translateY(-14px); }
}
@keyframes heroFloat4 {
  0%, 100% { transform: rotateY(-4deg) rotateX(-2deg) translateY(0); }
  50% { transform: rotateY(-2deg) rotateX(0deg) translateY(-8px); }
}
@keyframes heroFloat5 {
  0%, 100% { transform: translate(-50%, -50%) rotateY(2deg) rotateX(-1deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateY(0deg) rotateX(1deg) translateY(-10px); }
}


/* ── 2. Feature Nav (sticky) ── */
.f-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
  padding: var(--space-3) 0;
}

.f-nav__track {
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--margin-xs);
  max-width: var(--container-max);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}
.f-nav__track::-webkit-scrollbar { display: none; }

.f-nav__pill {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.f-nav__pill:hover,
.f-nav__pill.active {
  color: var(--text);
  background: var(--accent-subtle);
}


/* ── 3. Section Shared ── */
.f-section--alt {
  background: rgba(255, 255, 255, 0.015);
}


/* ── 4. Screenshot Frame (reusable) ── */
.f-shot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--bg-card);
}

.f-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.f-shot--hero {
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.5);
}


/* ── 5. Journey Timeline & Chapter System ── */
.journey {
  position: relative;
}

/* Vertical connecting rail */
.journey__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(99, 102, 241, 0.25) 5%,
    rgba(99, 102, 241, 0.25) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* Chapter section */
.chapter {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
  z-index: 1;
}

.chapter:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

/* Chapter number marker on the rail */
.chapter__marker {
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  margin-bottom: var(--space-6);
}

.chapter__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 0 8px rgba(9, 9, 11, 0.9);
}

/* Chapter intro (centered header) */
.chapter__intro {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.chapter__intro .overline {
  margin-bottom: var(--space-3);
}

.chapter__intro p {
  margin-inline: auto;
  margin-top: var(--space-4);
}

/* Bridge transitions between chapters */
.chapter__bridge {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: var(--space-8);
}

.chapter__bridge p {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--text-subtle);
  background: var(--bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  max-width: none;
  margin-inline: auto;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}


/* ── Chapter Card Grid ── */
.chapter__grid {
  display: grid;
  gap: var(--space-8);
  max-width: 1200px;
  margin-inline: auto;
}

.chapter__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.chapter__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.chapter__card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-6px);
}

.chapter__card-step {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.chapter__card-img {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.2);
}

.chapter__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.chapter__card:hover .chapter__card-img img {
  transform: scale(1.04);
}

.chapter__card-body {
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.chapter__card-body h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.chapter__card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: none;
}


/* ── Chapter Split (text + visual) ── */
.chapter__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
}

.chapter__split + .chapter__split {
  margin-top: var(--space-16);
}

.chapter__split--reverse {
  direction: rtl;
}

.chapter__split--reverse > * {
  direction: ltr;
}

.chapter__split-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.chapter__split-text h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  max-width: 16ch;
}

.chapter__split-text > p {
  color: var(--text-muted);
  max-width: none;
}

.chapter__split-visuals {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Visual wide container */
.chapter__visual {
  max-width: 900px;
  margin-inline: auto;
  margin-top: var(--space-10);
}

.chapter__visual--wide {
  max-width: 1100px;
}

/* Detail items with captions */
.chapter__detail-item {
  text-align: center;
}

.chapter__detail-item .f-shot {
  margin-bottom: var(--space-3);
}

.chapter__caption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}


/* ── Chapter 2: Account Options ── */
.chapter__option {
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.chapter__option:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}

.chapter__option--highlight {
  border-color: rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.03));
}

.chapter__option--highlight:hover {
  border-color: var(--accent);
}

.chapter__option-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.chapter__option-img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
}

.chapter__option-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.chapter__option:hover .chapter__option-img img {
  transform: scale(1.03);
}

.chapter__option h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.chapter__option p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 36ch;
  margin-inline: auto;
}

/* ── Chapter 2: Options Row (side-by-side with OR divider) ── */
.chapter__options-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-6);
  max-width: 1000px;
  margin-inline: auto;
}

.chapter__options-row > .chapter__option {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chapter__option-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
}

.chapter__option-divider span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--bg);
  color: var(--text-subtle);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-chips--compact {
  justify-content: center;
}

.f-chips--compact .f-chip {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
}

.f-shot--glow {
  box-shadow: 0 12px 48px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
}

.f-shot__glow {
  position: absolute;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(100px);
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

.f-shot__glow--purple {
  background: #a855f7;
}


/* ── 6. Feature Chips ── */
.f-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  max-width: 900px;
  margin-inline: auto;
}

.f-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.f-chip svg {
  color: var(--success);
  flex-shrink: 0;
}


/* ── 7. Analytics Bento Grid ── */
.f-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin-inline: auto;
}

.f-bento__card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.f-bento__card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.f-bento__card--lg {
  grid-column: span 2;
}

.f-bento__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.f-bento__card--lg .f-bento__img {
  aspect-ratio: 21 / 10;
}

.f-bento__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.f-bento__card:hover .f-bento__img img {
  transform: scale(1.04);
}

.f-bento__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.f-bento__body h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.f-bento__body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: none;
  line-height: 1.5;
}

.f-bento__card--accent {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.06));
  border-color: rgba(99, 102, 241, 0.2);
}

.f-bento__card--accent:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
}

.f-bento__stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8);
  text-align: center;
}

.f-bento__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.f-bento__stat-num {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.f-bento__stat span:not(.f-bento__stat-num) {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ── 8. Feature Highlights ── */
.f-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  max-width: 1000px;
  margin-inline: auto;
  margin-top: var(--space-10);
}

.f-hl {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  white-space: nowrap;
}

.f-hl svg {
  color: var(--accent);
  flex-shrink: 0;
}


/* ── 9. Checklist (reusable) ── */
.f-checklist {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.f-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.5;
}

.f-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-subtle);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.f-checklist--sm li {
  font-size: var(--text-sm);
  gap: var(--space-2);
}

.f-checklist--sm li::before {
  width: 18px;
  height: 18px;
  background-size: 10px;
}


/* ── 10. Trust row (CTA) ── */
.f-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.f-trust__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.f-trust__item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.f-trust__sep {
  width: 1px;
  height: 16px;
  background: var(--stroke);
}


/* ── Features Page Responsive ─────────────────────── */

/* Large Tablet (≤ 1024px) */
@media (max-width: 1024px) {

  /* Journey rail: hide on tablet, visual stays clean */
  .chapter__grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .chapter__split {
    gap: var(--space-8);
  }

  .chapter__split--reverse {
    direction: ltr;
  }

  .chapter__options-row {
    flex-direction: column;
    max-width: 480px;
    margin-inline: auto;
  }

  .f-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .f-bento__card--lg {
    grid-column: span 2;
  }

  .f-bento__card--lg .f-bento__img {
    aspect-ratio: 18 / 9;
  }
}

/* Mobile (≤ 767px) */
@media (max-width: 767px) {
  .f-hero__inner .display {
    max-width: none;
  }

  .f-hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .f-hero__actions .btn {
    width: 100%;
  }

  .f-hero__scene {
    height: 320px;
  }

  .f-hero__float {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
  }

  .f-hero__float--1 {
    top: 0;
    left: 5%;
    min-width: 140px;
  }

  .f-hero__float--2 {
    top: 0;
    right: 5%;
    min-width: 150px;
  }

  .f-hero__float--3 {
    bottom: 32%;
    left: 2%;
    min-width: 130px;
  }

  .f-hero__float--4 {
    bottom: 5%;
    right: 5%;
    min-width: 140px;
  }

  .f-hero__float--5 {
    top: 55%;
    left: 50%;
    min-width: 145px;
  }

  .f-hero__float-value {
    font-size: var(--text-base);
  }

  /* Journey rail: hide on mobile */
  .journey__rail {
    display: none;
  }

  .chapter__grid--3 {
    grid-template-columns: 1fr;
  }

  .chapter__split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .chapter__split--reverse {
    direction: ltr;
  }

  .chapter__split-visuals {
    order: -1;
  }

  .chapter__options-row {
    flex-direction: column;
    max-width: 400px;
    margin-inline: auto;
  }

  .chapter__bridge p {
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-5);
  }

  .f-bento {
    grid-template-columns: 1fr;
  }

  .f-bento__card--lg {
    grid-column: span 1;
  }

  .f-bento__card--lg .f-bento__img {
    aspect-ratio: 16 / 10;
  }

  .f-highlights {
    flex-direction: column;
    align-items: center;
  }

  .f-trust__sep {
    display: none;
  }

  .f-trust {
    flex-direction: column;
    gap: var(--space-3);
  }
}


/* ============================================================
   AFFILIATE PAGE
   ============================================================ */

/* ── Hero ────────────────────────────────────────────────── */
.aff-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(var(--space-16), 8vw, 8rem));
  padding-bottom: clamp(var(--space-16), 6vw, var(--space-24));
}

.aff-hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 25% 0%, rgba(99,102,241,0.2) 0%, transparent 100%),
    radial-gradient(35% 45% at 80% 20%, rgba(236,72,153,0.1) 0%, transparent 100%);
  pointer-events: none;
}

.aff-hero__glow2 {
  position: absolute;
  width: 500px;
  height: 500px;
  right: -100px;
  top: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.aff-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-16);
}

.aff-hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.aff-hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

/* Micro-trust avatars row */
.aff-hero__micro {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--stroke);
}

.aff-hero__avatars {
  display: flex;
}

.aff-hero__avt {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 2px solid var(--bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}

.aff-hero__avt:first-child {
  margin-left: 0;
}

.aff-hero__micro-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ── Hero Dashboard Mockup ─────────────────────────────── */
.aff-hero__visual {
  position: relative;
  perspective: 1200px;
}

.aff-hero__dash {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.3),
    0 0 80px rgba(99,102,241,0.06);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.aff-hero__dash:hover {
  transform: rotateY(0) rotateX(0);
}

.aff-dash__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--stroke);
}

.aff-dash__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.aff-dash__dot--green {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16,185,129,0.5);
}

.aff-dash__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.aff-dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.aff-dash__kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.aff-dash__kpi-label {
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.aff-dash__kpi-val {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}

.aff-dash__kpi-val--accent {
  color: var(--accent);
}

.aff-dash__chart {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.aff-dash__chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.aff-dash__chart-total {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--success);
}

.aff-dash__sparkline {
  width: 100%;
  height: 60px;
}

/* Floating notification cards */
.aff-hero__notif {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 2;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.aff-hero__notif--1 {
  bottom: 20%;
  left: -40px;
  animation: affNotifFloat1 4s ease-in-out infinite;
}

.aff-hero__notif--2 {
  top: 10%;
  right: -30px;
  animation: affNotifFloat2 5s ease-in-out 1s infinite;
}

@keyframes affNotifFloat1 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes affNotifFloat2 {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

.aff-notif__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(34,197,94,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-notif__icon--accent {
  background: var(--accent-subtle);
}

.aff-notif__body {
  display: flex;
  flex-direction: column;
}

.aff-notif__title {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 500;
}

.aff-notif__val {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--success);
}

/* ── Trust Bar ───────────────────────────────────────────── */
.aff-trust {
  padding-block: var(--space-12);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-alt);
}

.aff-trust__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.aff-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.aff-trust__num {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}

.aff-trust__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.aff-trust__sep {
  width: 1px;
  height: 48px;
  background: var(--stroke);
}

/* ── Social Proof / Testimonial ──────────────────────────── */
.aff-proof__card {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-10);
  overflow: hidden;
}

.aff-proof__glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.aff-proof__quote {
  position: absolute;
  top: var(--space-6);
  right: var(--space-8);
  color: var(--accent);
}

.aff-proof__text {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}

.aff-proof__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.aff-proof__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aff-proof__meta {
  display: flex;
  flex-direction: column;
}

.aff-proof__meta strong {
  color: var(--text);
  font-size: var(--text-base);
}

.aff-proof__meta span {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ── Why Join ────────────────────────────────────────────── */
.aff-why {
  position: relative;
}

.aff-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.aff-why__card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.aff-why__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.aff-why__card:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.aff-why__card:hover::before {
  opacity: 1;
}

.aff-why__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  color: var(--accent);
}

.aff-why__card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
}

.aff-why__card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Earnings Example ────────────────────────────────────── */
.aff-calc {
  position: relative;
}

.aff-calc__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: center;
}

.aff-calc__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.aff-calc__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.aff-calc__card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.aff-calc__card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(99,102,241,0.1);
}

.aff-calc__card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.aff-calc__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.aff-calc__card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.aff-calc__card-users {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

.aff-calc__card-users svg {
  color: var(--text-subtle);
}

.aff-calc__card-earn {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
}

.aff-calc__card-amount {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--success);
  letter-spacing: var(--tracking-tight);
}

.aff-calc__card-period {
  font-size: var(--text-sm);
  color: var(--text-subtle);
}

/* ── How it Works (Timeline Steps) ───────────────────────── */
.aff-steps {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aff-step {
  display: flex;
  gap: var(--space-6);
}

.aff-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.aff-step__num {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

.aff-step__line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(99,102,241,0.15) 100%);
  min-height: 40px;
}

.aff-step__card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-6);
  flex: 1;
  transition: all var(--duration) var(--ease);
}

.aff-step__card:hover {
  border-color: var(--stroke-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.aff-step__card h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.aff-step__card p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.aff-step__detail {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  background: var(--accent-subtle);
  border-radius: var(--radius-md);
}

.aff-step__detail--green {
  color: var(--success);
  background: rgba(16,185,129,0.1);
}

/* ── Commission Tiers ────────────────────────────────────── */
.aff-tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  align-items: start;
}

.aff-tier {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8) var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  transition: all var(--duration) var(--ease);
}

.aff-tier:hover {
  border-color: var(--stroke-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.aff-tier--featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(99,102,241,0.12);
  padding-top: calc(var(--space-10) + var(--space-6));
}

.aff-tier__popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.aff-tier__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
}

.aff-tier__badge--bronze {
  background: rgba(205,127,50,0.15);
  color: #cd7f32;
}

.aff-tier__badge--silver {
  background: rgba(192,192,192,0.15);
  color: #c0c0c0;
}

.aff-tier__badge--gold {
  background: rgba(255,215,0,0.15);
  color: #ffd700;
}

.aff-tier__rate {
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}

.aff-tier__rate span {
  font-size: var(--text-2xl);
  color: var(--text-muted);
}

.aff-tier__range {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.aff-tier__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--stroke);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
}

.aff-tier__perks li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-left: var(--space-6);
  position: relative;
}

.aff-tier__perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236366f1'%3E%3Cpath fill-rule='evenodd' d='M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── Form ─────────────────────────────────────────────────── */
.aff-apply {
  position: relative;
  overflow: hidden;
}

.aff-apply__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.aff-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  position: relative;
  z-index: 1;
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    0 8px 40px rgba(0,0,0,0.3),
    0 0 80px rgba(99,102,241,0.06);
}

.aff-form-card__glow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(99,102,241,0.25) 0%, transparent 40%, transparent 60%, rgba(99,102,241,0.15) 100%);
  z-index: -1;
  pointer-events: none;
}

.aff-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.aff-form-card .form-group {
  margin-bottom: var(--space-6);
}

.aff-form-card .form-group:last-of-type {
  margin-bottom: var(--space-8);
}

/* Icon-prefixed field wrapper */
.aff-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.aff-field__wrap--area {
  align-items: flex-start;
}

.aff-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
  transition: color var(--duration) var(--ease);
  z-index: 1;
}

.aff-field__icon--area {
  top: 16px;
  transform: none;
}

.aff-field__input {
  padding-left: 44px !important;
}

.aff-field__textarea {
  padding-left: 44px !important;
}

/* Focus: icon color changes */
.aff-field__wrap:focus-within .aff-field__icon {
  color: var(--accent);
}

/* Enhanced input styling inside affiliate form */
.aff-form-card .form-input,
.aff-form-card .form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}

.aff-form-card .form-input:hover,
.aff-form-card .form-textarea:hover {
  border-color: var(--stroke-hover);
}

.aff-form-card .form-input:focus,
.aff-form-card .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle), 0 0 20px rgba(99,102,241,0.08);
  background: var(--bg-card);
}

.aff-form-card .form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Submit button with icon */
.aff-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Trust signals below form button */
.aff-form__trust {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--stroke);
}

.aff-form__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.aff-form__trust-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ── Status Messages ──────────────────────────────────────── */
.aff-status {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
}

.aff-status--success {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
}

.aff-status--error {
  background: rgba(244,63,94,0.12);
  border: 1px solid rgba(244,63,94,0.3);
  color: var(--danger);
}

.aff-status--info {
  background: var(--accent-subtle);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent-hover);
}

/* ── Affiliate Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .aff-hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }

  .aff-hero__text {
    align-items: center;
  }

  .aff-hero__actions {
    justify-content: center;
  }

  .aff-hero__micro {
    justify-content: center;
  }

  .aff-hero__visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .aff-hero__dash {
    transform: none;
  }

  .aff-hero__notif--1 {
    left: -20px;
  }

  .aff-hero__notif--2 {
    right: -15px;
  }

  .aff-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aff-calc__layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
  }

  .aff-calc__text {
    align-items: center;
  }

  .aff-tiers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .aff-tiers__grid .aff-tier:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .aff-hero__notif {
    display: none;
  }

  .aff-hero__micro {
    flex-direction: column;
    gap: var(--space-2);
  }

  .aff-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    justify-items: center;
  }

  .aff-trust__sep {
    display: none;
  }

  .aff-proof__card {
    padding: var(--space-8) var(--space-6);
  }

  .aff-proof__text {
    font-size: var(--text-lg);
  }

  .aff-why__grid {
    grid-template-columns: 1fr;
  }

  .aff-calc__cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .aff-tiers__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .aff-tiers__grid .aff-tier:last-child {
    max-width: none;
  }

  .aff-form-row {
    grid-template-columns: 1fr;
  }

  .aff-form-card {
    padding: var(--space-8) var(--space-6);
  }

  .aff-form__trust {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .aff-field__icon {
    left: 12px;
  }

  .aff-field__input,
  .aff-field__textarea {
    padding-left: 40px !important;
  }

  .aff-step {
    gap: var(--space-4);
  }

  .aff-step__num {
    width: 40px;
    height: 40px;
    font-size: var(--text-base);
  }

  .aff-step__card {
    padding: var(--space-5) var(--space-6);
  }

  .aff-dash__kpis {
    grid-template-columns: 1fr;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SUPPORT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Hero --- */
.sup-hero {
  position: relative;
  padding: calc(var(--space-20) + 80px) 0 var(--space-16);
  text-align: center;
  overflow: hidden;
}
.sup-hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.sup-hero__glow2 {
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.sup-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.sup-hero__inner .overline {
  margin-bottom: var(--space-3);
}
.sup-hero__inner .display-md {
  margin-bottom: var(--space-4);
}

/* --- Contact Channel Cards --- */
.sup-channels {
  padding: 0 0 var(--space-16);
}
.sup-channels__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.sup-channel-card {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.sup-channel-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99,102,241,.12);
}
.sup-channel-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.10));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--accent);
}
.sup-channel-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.sup-channel-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.sup-channel-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .2s;
}
.sup-channel-card__link:hover {
  opacity: .8;
}

/* --- Form Section --- */
.sup-form-section {
  padding: 0 0 var(--space-20);
}
.sup-form-header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto var(--space-10);
}
.sup-form-header .heading-lg {
  margin-bottom: var(--space-3);
}

/* Form Card */
.sup-form-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.sup-form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,.35), rgba(139,92,246,.20), rgba(99,102,241,.10));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sup-form-card__glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(99,102,241,.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Row layout */
.sup-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* Field styles */
.sup-field {
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}
.sup-field .form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  display: block;
}

.sup-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.sup-field__wrap--area {
  align-items: flex-start;
}

.sup-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
  transition: color .2s;
  z-index: 2;
}
.sup-field__icon--area {
  top: 16px;
  transform: none;
}

.sup-field__input,
.sup-field__textarea,
.sup-field__select {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.sup-field__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.sup-field__select option {
  background: var(--bg);
  color: var(--text);
}
.sup-field__textarea {
  padding-left: 44px;
  resize: vertical;
  min-height: 120px;
}

.sup-field__input:focus,
.sup-field__textarea:focus,
.sup-field__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}
.sup-field__wrap:focus-within .sup-field__icon {
  color: var(--accent);
}

/* Submit button */
.sup-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  position: relative;
  z-index: 1;
}

/* Trust signals */
.sup-form__trust {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-5);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.sup-form__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--text-subtle);
}
.sup-form__trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Status messages */
.sup-status {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
  position: relative;
  z-index: 1;
}
.sup-status--success {
  background: rgba(34,197,94,.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.25);
}
.sup-status--error {
  background: rgba(239,68,68,.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.25);
}
.sup-status--info {
  background: rgba(99,102,241,.12);
  color: var(--accent);
  border: 1px solid rgba(99,102,241,.25);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .sup-channels__grid {
    grid-template-columns: 1fr;
  }
  .sup-form-row {
    grid-template-columns: 1fr;
  }
  .sup-form-card {
    padding: var(--space-6);
  }
  .sup-form__trust {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .sup-hero {
    padding-top: calc(var(--space-16) + 60px);
    padding-bottom: var(--space-10);
  }
  .sup-field__input,
  .sup-field__textarea,
  .sup-field__select {
    padding-left: 40px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Hero --- */
.abt-hero {
  position: relative;
  padding: calc(var(--space-20) + 80px) 0 var(--space-20);
  text-align: center;
  overflow: hidden;
}
.abt-hero__glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.abt-hero__glow2 {
  position: absolute;
  bottom: -250px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.abt-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.abt-hero__inner .overline {
  margin-bottom: var(--space-3);
}
.abt-hero__inner .display-md {
  margin-bottom: var(--space-5);
  line-height: 1.15;
}
.abt-hero__inner .body-lg {
  max-width: 560px;
  margin: 0 auto;
}

/* --- Story Timeline --- */
.abt-story {
  padding: var(--space-8) 0 var(--space-20);
}
.abt-story__timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.abt-chapter {
  display: flex;
  gap: var(--space-8);
  padding-bottom: var(--space-14);
  position: relative;
}
.abt-chapter--last {
  padding-bottom: 0;
}

/* Timeline marker */
.abt-chapter__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
  padding-top: 6px;
}
.abt-chapter__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glass-border);
  border: 2px solid rgba(99,102,241,.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.abt-chapter__dot--accent {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(99,102,241,.4);
}
.abt-chapter__line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, rgba(99,102,241,.25), rgba(99,102,241,.05));
  margin-top: var(--space-2);
}

/* Chapter content */
.abt-chapter__content {
  flex: 1;
}
.abt-chapter__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.abt-chapter__content .heading-lg {
  margin-bottom: var(--space-4);
  line-height: 1.25;
}
.abt-chapter__content .body-md {
  margin-bottom: var(--space-3);
  line-height: 1.75;
}
.abt-chapter__content .body-md:last-of-type {
  margin-bottom: 0;
}

/* Quote block */
.abt-quote {
  margin: var(--space-8) 0 0;
  padding: var(--space-6) var(--space-8);
  border-left: 3px solid var(--accent);
  background: rgba(99,102,241,.04);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.abt-quote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  font-weight: 400;
}

/* --- Values --- */
.abt-values {
  padding: var(--space-20) 0;
  background: rgba(99,102,241,.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.abt-values__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-12);
}
.abt-values__header .overline {
  margin-bottom: var(--space-3);
}
.abt-values__header .heading-xl {
  margin-bottom: var(--space-4);
}
.abt-values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 840px;
  margin: 0 auto;
}
.abt-value-card {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.abt-value-card:hover {
  border-color: rgba(99,102,241,.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99,102,241,.08);
}
.abt-value-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--accent);
}
.abt-value-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.abt-value-card__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Numbers / Trust --- */
.abt-numbers {
  padding: var(--space-16) 0;
}
.abt-numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.abt-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.abt-number__val {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.abt-number__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 140px;
}

/* --- CTA (reuses .section-cta / .cta-glow / .cta-content from index) --- */
.abt-cta-section {
  padding: var(--space-20) 0 var(--space-24);
}
.abt-cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .abt-values__grid {
    grid-template-columns: 1fr;
  }
  .abt-numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-10);
  }
  .abt-chapter {
    gap: var(--space-5);
  }
  .abt-quote {
    padding: var(--space-5) var(--space-6);
  }
}

@media (max-width: 480px) {
  .abt-hero {
    padding-top: calc(var(--space-16) + 60px);
    padding-bottom: var(--space-14);
  }
  .abt-numbers__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .abt-chapter__marker {
    width: 18px;
  }
  .abt-chapter__dot {
    width: 10px;
    height: 10px;
  }
  .abt-quote p {
    font-size: var(--text-base);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TUTORIALS PAGE  –  Full Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* --- Layout --- */
.tut-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* --- Override global section padding --- */
.tut-content,
#tutorials-overview section,
#tutorials-detail section {
  padding-block: 0;
}

/* ── SIDEBAR ───────────────────────────────────────────── */
.tut-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(17,17,21,.98) 0%, rgba(9,9,11,.99) 100%);
  border-right: 1px solid var(--glass-border);
  padding: var(--space-8) 0 var(--space-6);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  z-index: 10;
  scrollbar-width: thin;
  scrollbar-color: rgba(99,102,241,.2) transparent;
}

.tut-sidebar__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0 var(--space-6) var(--space-6);
  margin-bottom: var(--space-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  border-bottom: 1px solid var(--glass-border);
  transition: color .2s;
}
.tut-sidebar__title:hover {
  color: var(--accent);
}
.tut-sidebar__title svg {
  opacity: .6;
  transition: opacity .2s;
}
.tut-sidebar__title:hover svg {
  opacity: 1;
}

.tut-nav {
  list-style: none;
  margin: 0;
  padding: var(--space-4) var(--space-4) 0;
}
.tut-nav__item {
  margin-bottom: var(--space-1);
}

.tut-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.tut-accordion-toggle:hover,
.tut-accordion-toggle:focus-visible {
  background: rgba(99,102,241,.08);
  color: var(--text);
}
.tut-accordion-toggle.active,
.tut-accordion-toggle[aria-current="page"] {
  background: rgba(99,102,241,.12);
  color: var(--accent);
}
.tut-accordion-toggle::after {
  content: '';
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .4;
  transition: transform .25s, opacity .25s;
  flex-shrink: 0;
}
.tut-accordion-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  opacity: .7;
}

.tut-nav__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: rgba(99,102,241,.08);
  border-radius: var(--radius-md);
}
.tut-accordion-toggle.active .tut-nav__icon,
.tut-accordion-toggle[aria-current="page"] .tut-nav__icon {
  background: rgba(99,102,241,.18);
}
.tut-nav__label {
  text-align: left;
}

.tut-subnav {
  list-style: none;
  margin: var(--space-1) 0 var(--space-3) 0;
  padding: 0 0 0 calc(28px + var(--space-3) + var(--space-4));
  position: relative;
}
.tut-subnav::before {
  content: '';
  position: absolute;
  left: calc(var(--space-4) + 14px);
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--glass-border) 100%);
  opacity: .3;
}
.tut-subnav li {
  margin-bottom: 1px;
}
.tut-subnav a {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background .15s, color .15s, padding-left .15s;
}
.tut-subnav a:hover {
  background: rgba(99,102,241,.06);
  color: var(--text);
  padding-left: var(--space-4);
}
.tut-subnav a.active,
.tut-subnav a[aria-current="page"] {
  background: rgba(99,102,241,.12);
  color: var(--accent);
}

/* ── CONTENT AREA ──────────────────────────────────────── */
.tut-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-8) var(--space-12) var(--space-20);
}

/* Hero area - breadcrumbs + title */
.tut-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}
.tut-breadcrumbs a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color .15s;
}
.tut-breadcrumbs a:hover {
  color: var(--accent);
}
.tut-breadcrumbs__sep {
  opacity: .35;
  font-size: .7em;
}

.tut-page-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-3);
  letter-spacing: -.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle under the title */
.tut-page-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-10);
  max-width: 50ch;
  line-height: 1.6;
}

.tut-backlink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap .2s, color .15s;
}
.tut-backlink:hover {
  gap: var(--space-3);
  color: var(--text);
}

/* ── OVERVIEW CARDS ────────────────────────────────────── */
#tutorials-overview section {
  margin-bottom: var(--space-12);
}

#tutorials-overview h2 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
#tutorials-overview h2::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

.tut-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.tut-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-5);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tut-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.tut-card:hover::before {
  opacity: 1;
}
.tut-card:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(99,102,241,.10), 0 0 0 1px rgba(99,102,241,.08);
}

.tut-card__icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(99,102,241,.12), rgba(139,92,246,.08));
  border: 1px solid rgba(99,102,241,.12);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}

.tut-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
  position: relative;
  z-index: 1;
}
.tut-card__desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ── DETAIL CONTENT ────────────────────────────────────── */
#tutorials-detail section > h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--glass-border);
  letter-spacing: -.01em;
}
#tutorials-detail section > h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-top: var(--space-14, 3.5rem);
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--accent);
}
#tutorials-detail p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  max-width: 72ch;
}
#tutorials-detail code {
  background: rgba(99,102,241,.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: var(--radius-sm, 4px);
  font-size: 0.9em;
}

/* Intro text */
.tut-intro {
  font-size: var(--text-lg) !important;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding-left: var(--space-5);
  margin-bottom: var(--space-8) !important;
  line-height: 1.65 !important;
  background: linear-gradient(90deg, rgba(99,102,241,.04) 0%, transparent 100%);
  padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5) !important;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Step lists */
.tut-steps {
  counter-reset: tut-step;
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-8);
}
.tut-steps li {
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: var(--space-5);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-muted);
}
.tut-steps li::before {
  counter-increment: tut-step;
  content: counter(tut-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 2.2rem;
  height: 2.2rem;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.08));
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: var(--text-sm);
}
.tut-steps li strong {
  color: var(--text);
}

/* Tip box */
.tut-tip {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.04) 100%);
  border: 1px solid rgba(99,102,241,.15);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  position: relative;
  overflow: hidden;
}
.tut-tip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.tut-tip__icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99,102,241,.1);
  border-radius: var(--radius-md);
}
.tut-tip__body strong {
  display: block;
  color: var(--accent);
  margin-bottom: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tut-tip__body p {
  margin: 0 !important;
  font-size: var(--text-sm) !important;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Image blocks */
.tut-img-block {
  margin: var(--space-8) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.tut-img-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(9,9,11,.25) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.tut-img-block:hover::after {
  opacity: 1;
}
.tut-img-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.3), 0 0 0 1px rgba(99,102,241,.1);
}
.tut-img-block img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.tut-img-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin: var(--space-8) 0;
}
.tut-img-stack img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tut-img-stack img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
}

/* Status grid */
.tut-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.tut-status-item {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tut-status-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--status-color);
  opacity: .5;
  transition: opacity .25s;
}
.tut-status-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  border-color: color-mix(in srgb, var(--status-color) 35%, var(--glass-border));
}
.tut-status-item:hover::after {
  opacity: 1;
}
.tut-status-item svg {
  width: 32px;
  height: 32px;
  stroke: var(--status-color);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--status-color) 25%, transparent));
}
.tut-status-item p {
  margin: 0 !important;
  font-size: var(--text-xs) !important;
  font-weight: 600;
  color: var(--text) !important;
}

@keyframes tut-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.tut-spin {
  animation: tut-spin 2s linear infinite;
}

/* ── LIGHTBOX ──────────────────────────────────────────── */
.tut-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(9,9,11,.94);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
.tut-lightbox__img {
  max-width: 92%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 0 80px rgba(0,0,0,.6);
  animation: tut-lb-in .3s cubic-bezier(.16,1,.3,1);
}
.tut-lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--text-muted);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color .2s, transform .2s;
  z-index: 10000;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.tut-lightbox__close:hover {
  color: var(--text);
  background: rgba(255,255,255,.1);
  transform: scale(1.05);
}
@keyframes tut-lb-in {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tut-sidebar {
    display: none;
  }
  .tut-layout {
    display: block;
  }
  .tut-content {
    max-width: 100%;
    padding: var(--space-8) var(--space-6) var(--space-16);
  }
  .tut-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .tut-content {
    padding: var(--space-6) var(--space-4) var(--space-12);
  }
  .tut-page-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-2);
  }
  .tut-card-row {
    grid-template-columns: 1fr;
  }
  .tut-card {
    padding: var(--space-4);
  }
  .tut-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
  }
  .tut-card__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 1.1rem;
  }
  .tut-img-block {
    margin: var(--space-5) 0;
  }
  .tut-img-stack {
    gap: var(--space-4);
  }
  .tut-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  #tutorials-detail section > h3 {
    margin-top: var(--space-8);
  }
}

/* ── iOS / Mobile: prevent auto-zoom on input focus ── */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}
