/* ============================================================
   VILDA — Main Stylesheet
   Supabase-inspired, dark-first, no framework dependencies
   ============================================================ */

/* ── Fonts ──────────────────────────────────────────────────── */
@font-face {
  font-family: 'CaslonIonic';
  src: url('../fonts/CaslonIonic-Thin-Web.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CaslonIonic';
  src: url('../fonts/CaslonIonic-Light-Web.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PPNeueMontreal';
  src: url('../fonts/PPNeueMontreal-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PPNeueMontreal';
  src: url('../fonts/PPNeueMontreal-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PPNeueMontreal';
  src: url('../fonts/PPNeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PPNeueMontreal';
  src: url('../fonts/PPNeueMontreal-MediumItalic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'AeonikFono';
  src: url('../fonts/AeonikFono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'AeonikMono';
  src: url('../fonts/AeonikMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-y: scroll; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* ── CSS Variables — Dark (default) ────────────────────────── */
:root {
  --font: 'PPNeueMontreal', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'CaslonIonic', Georgia, serif;
  --font-ui: 'AeonikFono', 'PPNeueMontreal', sans-serif;

  --bg:           #0d1117;
  --bg-raised:    #111827;
  --bg-card:      #0f1923;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.15);

  --blue:              #ffc19d;
  --blue-dim:          rgba(255, 193, 157, 0.15);
  --blue-glow:         rgba(255, 193, 157, 0.25);
  --btn-bg:            #ffc19d;
  --btn-color:         #1a1a1a;
  --btn-glow:          rgba(255, 193, 157, 0);
  --btn-glow-hover:    rgba(255, 193, 157, 0.15);
  --card-hover-border: rgba(255, 193, 157, 0.4);
  --card-hover-glow:   rgba(255, 193, 157, 0);
  --pill-bg:           rgba(255, 193, 157, 0.10);
  --pill-border:       rgba(255, 193, 157, 0.25);
  --pill-color:        #e9a983;
  --icon-bg:           rgba(255, 193, 157, 0.15);
  --green:        #22c55e;
  --green-dim:    rgba(34, 197, 94, 0.12);
  --lavender:     #c9b8f0;
  --lavender-dim: rgba(201, 184, 240, 0.12);
  --lavender-glow:rgba(201, 184, 240, 0.18);

  --text:         #e2e8f0;
  --text-muted:   #a3b1c6;
  --text-dim:     #334155;
  --white:        #ffffff;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;

  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 8px 48px rgba(0, 0, 0, 0.5);

  --nav-height:   64px;
  --container:    1200px;
  --section-gap:  7rem;
}

/* ── Light mode ─────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:           #fdf9f0;
  --bg-raised:    #f7f2e7;
  --bg-card:      #ffffff;
  --border:       rgba(0, 0, 0, 0.09);
  --border-hover: rgba(0, 0, 0, 0.18);

  --text:         #1a1a1a;
  --text-muted:   #5a6478;
  --text-dim:     #94a3b8;
  --white:        #1a1a1a;

  --shadow:       0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg:    0 8px 48px rgba(0, 0, 0, 0.10);

  --blue:              #ffc19d;
  --blue-dim:          rgba(255, 193, 157, 0.15);
  --blue-glow:         rgba(255, 193, 157, 0.25);
  --btn-bg:            #ffc19d;
  --btn-color:         #1a1a1a;
  --btn-glow:          rgba(255, 193, 157, 0);
  --btn-glow-hover:    rgba(255, 193, 157, 0.15);
  --card-hover-border: rgba(255, 193, 157, 0.4);
  --card-hover-glow:   rgba(255, 193, 157, 0);
  --pill-bg:           rgba(255, 193, 157, 0.10);
  --pill-border:       rgba(255, 193, 157, 0.25);
  --pill-color:        #e9a983;
  --icon-bg:           rgba(255, 193, 157, 0.15);
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 { color: #0f172a; }

p { color: var(--text-muted); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-gap) 0; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg, var(--blue));
  color: var(--btn-color, #fff);
}
.btn-primary:hover {
  background: var(--btn-bg-hover, var(--btn-bg, #3d52e0));
  color: var(--btn-color, #fff);
  transform: translateY(-1px);
}

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

.btn-outline {
  background: #0d1117;
  color: var(--text);
  border: 1px solid var(--border);
}
[data-theme="light"] .btn-outline {
  background: #fdf9f0;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--white);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

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

/* ── Label badge ─────────────────────────────────────────────── */
.label {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  background: var(--pill-bg, var(--blue-dim));
  border: 1px solid var(--pill-border, rgba(77, 101, 255, 0.25));
  color: var(--pill-color, var(--blue));
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Divider ─────────────────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); }


/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  font-family: var(--font);
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--nav-bg, rgba(13, 17, 23, 0.8));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, box-shadow 0.2s;
}

[data-theme="light"] .nav {
  background: var(--nav-bg, rgba(253, 249, 240, 0.85));
}

.nav.is-scrolled {
  background: var(--nav-bg-scrolled, var(--nav-bg, rgba(13, 17, 23, 0.95)));
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] .nav.is-scrolled {
  background: var(--nav-bg-scrolled, var(--nav-bg, rgba(253, 249, 240, 0.97)));
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-height);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo */
.nav-logo { flex-shrink: 0; }
.nav-logo img, .nav-logo-img { height: 32px; width: auto; filter: invert(1); }
[data-theme="light"] .nav-logo img, [data-theme="light"] .nav-logo-img { filter: none; }

/* Links group */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

/* CTA group */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dropdown trigger */
/* Backdrop */
.nav-backdrop {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(0, 0, 0, 0.80);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
[data-theme="light"] .nav-backdrop { display: none; }

.nav-dropdown {
  position: relative;
  z-index: 200;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  position: relative;
  top: 2px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  user-select: none;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
[data-theme="light"] .nav-dropdown-trigger:hover,
[data-theme="light"] .nav-dropdown:focus-within .nav-dropdown-trigger {
  color: #0f172a;
  background: rgba(0,0,0,0.05);
}

.nav-dropdown-trigger svg {
  width: 12.6px;
  height: 12.6px;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding-top: 10px; /* bridges the gap so hover doesn't break */
  min-width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 300;
}
.nav-dropdown-panel-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
[data-theme="light"] .nav-dropdown-panel-inner {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
[data-theme="light"] .nav-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  background: var(--blue-dim);
  border-color: var(--pill-border);
  color: var(--blue);
}
[data-theme="light"] .nav-dropdown-icon {
  background: var(--bg-raised);
  border-color: var(--border);
}
[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-icon {
  background: var(--bg-card);
  border-color: var(--border-hover);
  color: var(--blue);
}

.nav-dropdown-icon svg { width: 14px; height: 14px; }

.nav-dropdown-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nav-dropdown-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.12s;
}
.nav-dropdown-item:hover .nav-dropdown-title { color: var(--white); }
[data-theme="light"] .nav-dropdown-item:hover .nav-dropdown-title { color: #0f172a; }

.nav-dropdown-desc {
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}
.theme-toggle svg { width: 16px; height: 16px; }

/* Show/hide icons */
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }
.icon-sun  { display: block; }
.icon-moon { display: none; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.2s;
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 250;
  flex-direction: column;
}
.nav-mobile.is-open { display: flex; }

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-mobile-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s, border-color 0.15s;
}
.nav-mobile-close:hover { color: var(--white); border-color: var(--border-hover); }
.nav-mobile-close svg { width: 16px; height: 16px; }

.nav-mobile-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem 0;
}

/* Accordion sections */
.mob-section { border-bottom: 1px solid var(--border); }

.mob-section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--white);
  transition: color 0.15s;
}
.mob-section-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.mob-section.is-open .mob-section-trigger svg { transform: rotate(180deg); }

.mob-section-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  padding: 0 0.75rem;
}
.mob-section.is-open .mob-section-panel { max-height: 600px; }

.mob-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s;
  margin-bottom: 0.15rem;
}
.mob-item:hover { background: rgba(255,255,255,0.04); }

.mob-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
}
.mob-item:hover .mob-item-icon { background: var(--blue-dim); border-color: var(--pill-border); color: var(--blue); }
[data-theme="light"] .mob-item-icon { background: var(--bg-raised); border-color: var(--border); }
[data-theme="light"] .mob-item:hover .mob-item-icon { background: var(--bg-card); border-color: var(--border-hover); color: var(--blue); }
.mob-item-icon svg { width: 16px; height: 16px; }

.mob-item-text { display: flex; flex-direction: column; gap: 0.15rem; }
.mob-item-text strong { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.mob-item-text span  { font-size: 0.8rem; color: var(--text-muted); }

/* Bottom CTA */
.nav-mobile-cta {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-mobile-cta .btn { flex: 1; justify-content: center; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 6rem 0 3.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
html.hero-bg .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center 150px;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
html.hero-bg[data-theme="dark"] .hero::before {
  background-image: url('../images/wavy-lines-warm.png');
  opacity: 0.20;
}
html.hero-bg[data-theme="light"] .hero::before {
  background-image: url('../images/wavy-lines-transparent.png');
  opacity: 0.12;
}
.hero > * { position: relative; }


.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.5rem;
  border-radius: 20px;
  background: var(--pill-bg, var(--blue-dim));
  border: 1px solid var(--pill-border, rgba(77, 101, 255, 0.2));
  color: var(--pill-color, var(--blue));
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  max-width: fit-content;
  white-space: nowrap;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pill-color, var(--blue));
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  max-width: 18ch;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ============================================================
   MARQUEE — Trusted by
   ============================================================ */
.marquee-section {
  padding: 2rem 0;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.75rem;
}

.marquee-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  flex-shrink: 0;
}

.marquee-item img {
  height: 26px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.25s;
}
.marquee-item:hover img { opacity: 1; }
.marquee-item img[src*="logo-egd"] { height: 30px; }
.marquee-item img[src*="logo-dnb"] { height: 32px; }
.marquee-item img[src*="Fremtind"] { height: 22px; }
[data-theme="light"] .marquee-item img {
  filter: brightness(0);
  opacity: 0.6;
}


/* ============================================================
   FEATURE SECTIONS — alternating image + text
   ============================================================ */
.feature-section {
  padding: var(--section-gap) 0;

}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.feature-grid.reverse { direction: rtl; }
.feature-grid.reverse > * { direction: ltr; }

.feature-text { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-text .label { align-self: flex-start; }

.feature-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  aspect-ratio: 4 / 3;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.feature-image:hover {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 8px 48px var(--card-hover-glow, transparent);
  transform: translateY(-3px);
}
.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.feature-image:hover img {
  transform: scale(1.03);
}
.feature-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon-svg {
  width: 35%;
  height: 35%;
  color: var(--blue);
  opacity: 0.9;
  transition: transform 0.35s ease, opacity 0.2s;
}
.feature-image:hover .feature-icon-svg {
  transform: scale(1.04);
  opacity: 1;
}


/* ============================================================
   AI PIPELINE VISUALIZATION
   ============================================================ */
.ai-pipeline-viz {
  padding: 1.75rem 1.5rem !important;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg) !important;
}

.aipv-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.aipv-card-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

/* Input: unstructured lines */
.aipv-doc-lines {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}


.aipv-line {
  height: 7px;
  width: var(--w, 75%);
  border-radius: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.aipv-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
}

.ai-pipeline-viz:hover .aipv-line::after {
  animation: aipv-scan 0.6s ease forwards;
  animation-delay: calc(var(--idx, 0) * 0.1s);
}

@keyframes aipv-scan {
  from { transform: translateX(-100%); }
  to   { transform: translateX(250%); }
}

/* Middle: node + connectors */
.aipv-middle {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.aipv-connector {
  width: 1.25rem;
  height: 1px;
  background: var(--border);
  transition: background 0.3s;
}

.ai-pipeline-viz:hover .aipv-connector,
.bm-viz:hover .aipv-connector {
  background: var(--blue);
  opacity: 0.5;
}

.aipv-node {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.aipv-node svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--blue);
}

.ai-pipeline-viz:hover .aipv-node,
.bm-viz:hover .aipv-node {
  border-color: var(--blue);
}


/* Output: structured rows */
.aipv-rows {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aipv-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--border);
  opacity: 0.5;
  transform: translateX(6px);
  transition: opacity 0.3s calc(0.1s + var(--i, 0) * 0.07s),
              transform 0.3s calc(0.1s + var(--i, 0) * 0.07s),
              border-color 0.3s;
}

.ai-pipeline-viz:hover .aipv-row,
.bm-viz:hover .aipv-row {
  opacity: 1;
  transform: translateX(0);
}


.aipv-key {
  color: var(--text-dim);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}

.aipv-val {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}


/* ============================================================
   BUILDING MODEL VISUALIZATION
   ============================================================ */
.bm-viz {
  padding: 2rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg) !important;
}

.bm-svg {
  width: 75%;
  height: 75%;
  overflow: visible;
  transition: filter 0.4s ease;
}


/* Edges */
.bm-edge {
  stroke: var(--border-hover);
  stroke-width: 0.8;
  stroke-linecap: round;
  fill: none;
  opacity: 0.4;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

.bm-viz:hover .bm-edge {
  stroke: var(--blue);
  opacity: 1;
}

/* Faces */
.bm-face {
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}

.bm-top   { fill: rgba(255,255,255,0.04); }
.bm-left  { fill: rgba(255,255,255,0.02); }
.bm-right { fill: rgba(255,255,255,0.01); }

.bm-viz:hover .bm-face { opacity: 1; }

/* Dots */
.bm-dot {
  fill: var(--border-hover);
  opacity: 0.5;
  transition: opacity 0.3s ease, fill 0.3s ease;
}

.bm-acc { fill: var(--border-hover); }

.bm-viz:hover .bm-dot { opacity: 1; }
.bm-viz:hover .bm-acc { fill: var(--blue); }

/* Dotted connector lines */
.bm-dotline {
  stroke: var(--border-hover);
  stroke-width: 0.3;
  stroke-dasharray: 1.5 1;
  opacity: 0;
  transition: opacity 0.4s ease var(--delay, 0s), stroke 0.3s ease;
}

.bm-viz:hover .bm-dotline {
  stroke: var(--blue);
  opacity: 0.5;
}


/* ============================================================
   ENERGY SIMULATOR VISUALIZATION
   ============================================================ */
.esv-viz {
  padding: 2rem 1.75rem !important;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg) !important;
}

.esv-bolt {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-hover);
  transition: color 0.3s;
}

.esv-viz:hover .esv-bolt {
  color: var(--blue);
}

.esv-bolt svg {
  width: 100%;
  height: 100%;
}

.esv-lanes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.esv-lane {
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.esv-particle {
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), rgba(77,101,255,0.3));
  opacity: 0;
}

.esv-viz:hover .esv-particle {
  opacity: 1;
  animation: esv-shoot var(--dur, 0.5s) ease-in var(--delay, 0s) 2;
}

@keyframes esv-shoot {
  0%   { left: -20%; }
  100% { left: 110%; }
}

.esv-counter {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.esv-count {
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--border-hover);
  line-height: 1;
  transition: color 0.3s;
}

.esv-viz:hover .esv-count {
  color: var(--blue);
}

.esv-unit {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}


/* ============================================================
   RECOMMENDATION ENGINE VISUALIZATION
   ============================================================ */
.rev-viz {
  padding: 1.75rem 1.5rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg) !important;
}

.rev-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.rev-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  opacity: 0.55;
  transform: translateX(8px);
  transition:
    opacity 0.35s calc(var(--i, 0) * 0.08s),
    transform 0.35s calc(var(--i, 0) * 0.08s),
    border-color 0.3s;
}

.rev-viz:hover .rev-item {
  opacity: 1;
  transform: translateX(0);
}

.rev-rank {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.rev-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.rev-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.rev-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.rev-bar {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(0.1s + var(--i, 0) * 0.07s);
}

.rev-viz:hover .rev-bar {
  width: var(--w, 50%);
}



/* ============================================================
   DATA SECURITY VISUALIZATION
   ============================================================ */
.sec-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg) !important;
}

.sec-svg {
  width: 42%;
  height: 42%;
  overflow: visible;
}

.sec-shield {
  stroke: var(--border-hover);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 80;
  stroke-dashoffset: 0;
  transition: stroke 0.4s ease;
}

.sec-viz:hover .sec-shield {
  stroke: var(--blue);
  animation: sec-draw 1.9s ease forwards;
}

@keyframes sec-draw {
  from { stroke-dashoffset: 80; }
  to   { stroke-dashoffset: 0; }
}


/* ============================================================
   API SECTION
   ============================================================ */
.api-section {
  padding: var(--section-gap) 0;
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.api-text { display: flex; flex-direction: column; gap: 1.25rem; }
.api-text .label { align-self: flex-start; }
.api-text h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.api-text p { font-size: 1rem; line-height: 1.8; color: var(--text-muted); }

.api-text .btn { align-self: flex-start; }

.api-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.api-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.api-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.api-feature-icon svg { width: 18px; height: 18px; }

.api-feature-text strong {
  display: block;
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 2px;
}
[data-theme="light"] .api-feature-text strong { color: #0f172a; }
.api-feature-text p { font-size: 0.85rem; margin: 0; line-height: 1.5; }

/* Code card */
.code-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.code-dots { display: flex; gap: 5px; }
.code-dots span {
  width: 10px; height: 10px; border-radius: 50%; display: block;
  background: var(--border);
}

.code-lang {
  margin-left: auto;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.code-body {
  background: var(--bg);
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
  font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  tab-size: 2;
}

.code-body code { font-family: inherit; }

/* Syntax */
.t-comment { color: #4a5568; font-style: italic; }
.t-keyword  { color: #7c8cf8; }
.t-string   { color: #22c55e; }
.t-var      { color: #a5b4fc; }
.t-fn       { color: #a5b4fc; }
.t-prop     { color: #94a3b8; }
.t-op       { color: #64748b; }
.t-num      { color: #34d399; }

.code-response {
  padding: 1rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-family: monospace;
  font-size: 0.8rem;
}
.code-response-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.response-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block;
}
.code-response pre { color: var(--text-muted); line-height: 1.7; white-space: pre-wrap; }

.api-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ============================================================
   VALUE PROPS
   ============================================================ */
.value-section {
  padding: var(--section-gap) 0 0;
}

.value-steps {
  display: flex;
  gap: 1.5rem;
  position: relative;
  justify-content: center;
}

.value-step {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.value-step:hover {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 4px 32px var(--card-hover-glow, transparent);
  transform: translateY(-2px);
}
[data-theme="light"] .value-step {
  background: transparent;
  border-color: var(--border);
}
[data-theme="light"] .value-step:hover {
  border-color: var(--card-hover-border, var(--blue));
}

.value-step-num {
  font-family: var(--font-ui);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
  opacity: 0.5;
  font-variant-numeric: tabular-nums;
}

.value-step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
}
[data-theme="light"] .value-step h3 { color: #0f172a; }

.value-step p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .value-steps {
    flex-direction: column;
    gap: 1.25rem;
  }
  .value-step {
    flex: none;
  }
}

/* ============================================================
   USE CASES — card grid
   ============================================================ */
.usecases-section {
  padding: var(--section-gap) 0;

}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.section-header p   { font-size: 1rem; line-height: 1.75; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 4px 32px var(--card-hover-glow, transparent);
  transform: translateY(-2px);
}
[data-theme="light"] .card { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .card:hover { border-color: var(--card-hover-border, var(--blue)); }

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--icon-bg, var(--blue-dim));
  border: 1px solid var(--pill-border, rgba(77,101,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.card-icon svg { width: 18px; height: 18px; }
[data-theme="light"] .card-icon { background: var(--icon-bg, var(--bg-raised)); border-color: var(--pill-border, var(--border)); color: var(--blue); }

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
[data-theme="light"] .card h3 { color: #0f172a; }

.card p { font-size: 0.9rem; line-height: 1.65; color: var(--text-muted); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: auto;
  transition: gap 0.15s;
}
.card:hover .card-link { gap: 0.7rem; }
.card-link svg { width: 14px; height: 14px; }


/* ============================================================
   PLATFORM OVERVIEW — browser placeholder
   ============================================================ */
.platform-overview-section {
  padding: var(--section-gap) 0;
}

.platform-browser {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: default;
}
.platform-browser:hover {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 8px 48px var(--card-hover-glow, transparent);
  transform: translateY(-3px);
}

.platform-browser-bar {
  background: #131c27;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.platform-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.platform-browser-body {
  background: #0a0f16;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .platform-browser { border-color: var(--border); }
[data-theme="light"] .platform-browser:hover { border-color: var(--blue); }
[data-theme="light"] .platform-browser-bar { background: var(--bg-raised); border-color: var(--border); }
[data-theme="light"] .platform-browser-dot { background: #cbd5e1; }
[data-theme="light"] .platform-browser-body { background: var(--bg); }


/* ============================================================
   HEXGRID VISUALIZATION
   ============================================================ */
.hxg-viz {
  padding: 0 !important;
  overflow: hidden;
  min-height: 0 !important;
  height: 240px;
  display: block !important;
  cursor: default;
  position: relative;
}

@media (min-width: 768px) {
  .hxg-viz { height: 580px; }
}

.hxg-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hxg-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hxg-cell {
  fill: var(--border-hover);
  stroke: #0a0f16;
  stroke-width: 2;
  opacity: 0.18;
  transition: opacity 0.5s ease, fill 0.5s ease;
}

.hxg-cell.hxg-active {
  fill: var(--blue);
}

[data-theme="light"] .hxg-cell { stroke: var(--bg); }

/* hex interaction states */
.hxg-cell.hxg-selected {
  stroke: var(--blue);
  stroke-width: 3;
  opacity: 1 !important;
  cursor: pointer;
}
.hxg-cell.hxg-dimmed {
  opacity: 0.06 !important;
  transition: opacity 0.3s;
}
.hxg-cell.hxg-active { cursor: pointer; }

/* tooltip */
.hxg-tooltip {
  position: absolute;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  min-width: 190px;
  max-width: 230px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.hxg-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hxg-tooltip-addr {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
[data-theme="light"] .hxg-tooltip-addr { color: #0f172a; }

.hxg-tooltip-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
}
.hxg-tooltip-grid dt {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.hxg-tooltip-grid dd {
  text-align: right;
  color: var(--text);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.hxg-energy-pill {
  display: inline-block;
  padding: 0 0.35rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.65rem;
  line-height: 1.5;
}
.hxg-energy-pill[data-grade="A"] { background: rgba(34,197,94,0.2); color: #4ade80; }
.hxg-energy-pill[data-grade="B"] { background: rgba(34,197,94,0.15); color: #86efac; }
.hxg-energy-pill[data-grade="C"] { background: rgba(250,204,21,0.15); color: #fde047; }
.hxg-energy-pill[data-grade="D"] { background: rgba(251,146,60,0.15); color: #fb923c; }
.hxg-energy-pill[data-grade="E"] { background: rgba(248,113,113,0.15); color: #f87171; }
.hxg-energy-pill[data-grade="F"] { background: rgba(248,113,113,0.2); color: #fca5a5; }
.hxg-energy-pill[data-grade="G"] { background: rgba(248,113,113,0.25); color: #fca5a5; }
[data-theme="light"] .hxg-energy-pill[data-grade="A"] { background: rgba(34,197,94,0.15); color: #16a34a; }
[data-theme="light"] .hxg-energy-pill[data-grade="B"] { background: rgba(34,197,94,0.12); color: #22c55e; }
[data-theme="light"] .hxg-energy-pill[data-grade="C"] { background: rgba(202,138,4,0.12); color: #a16207; }
[data-theme="light"] .hxg-energy-pill[data-grade="D"] { background: rgba(234,88,12,0.12); color: #c2410c; }
[data-theme="light"] .hxg-energy-pill[data-grade="E"] { background: rgba(220,38,38,0.12); color: #dc2626; }
[data-theme="light"] .hxg-energy-pill[data-grade="F"] { background: rgba(220,38,38,0.15); color: #b91c1c; }
[data-theme="light"] .hxg-energy-pill[data-grade="G"] { background: rgba(220,38,38,0.18); color: #991b1b; }

@media (max-width: 768px) {
  .hxg-tooltip {
    left: 50% !important;
    top: auto !important;
    bottom: 3rem !important;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
  }
  .hxg-tooltip.is-visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================================
   PLATFORM PIPELINE
   ============================================================ */
.pipeline-wrap {
  padding: 5rem 2.5rem 4rem;
  overflow-x: auto;
}

.pipeline-track {
  display: grid;
  grid-template-columns: 3fr 1fr 3fr 1fr 3fr 1fr 3fr 1fr 3fr 1fr 3fr 1fr 3fr;
  align-items: center;
  position: relative;
  min-width: 1100px;
}

.pipeline-node {
  display: flex;
  justify-content: center;
  align-self: stretch;
  position: relative;
  z-index: 1;
  padding: 0 4px;
  box-sizing: border-box;
  min-width: 0;
}

.pipeline-node-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.875rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

.pipeline-node-icon { color: var(--text-muted); }
.pipeline-node-icon svg { width: 16px; height: 16px; display: block; }

.pipeline-node-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.pipeline-node-sublabel {
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.pipeline-connector {
  height: 1px;
  background: var(--border);
  position: relative;
  z-index: 0;
}

.pipeline-connector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
}

/* Node glow — same keyframe, staggered delays */
@keyframes pipelineNodeGlow {
  0%    { border-color: var(--border); box-shadow: none; }
  8%    { border-color: var(--blue);   box-shadow: 0 0 20px rgba(77,101,255,0.15); }
  30%   { border-color: var(--border); box-shadow: none; }
  100%  { border-color: var(--border); box-shadow: none; }
}

@keyframes pipelineIconGlow {
  0%   { color: var(--text-muted); }
  8%   { color: var(--blue); }
  30%  { color: var(--text-muted); }
  100% { color: var(--text-muted); }
}

@keyframes connectorFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* Triggered by JS when browser scrolls into view */
/* Step = 12s / 7 = 1.714s. Connectors fill in exactly one step. */
.pipeline-active .pipeline-node-box  { animation: pipelineNodeGlow 12s ease-in-out 1 forwards; }
.pipeline-active .pipeline-node-icon { animation: pipelineIconGlow 12s ease-in-out 1 forwards; }
.pipeline-active .pipeline-connector::before { animation: connectorFill 1.714s ease-in-out 1 forwards; }

/* Node delays: 0, 1.714, 3.428, 5.142, 6.856, 8.57, 10.284s */
.pipeline-active .pipeline-node:nth-child(1)  .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(1)  .pipeline-node-icon { animation-delay: 0s; }
.pipeline-active .pipeline-node:nth-child(3)  .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(3)  .pipeline-node-icon { animation-delay: 1.714s; }
.pipeline-active .pipeline-node:nth-child(5)  .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(5)  .pipeline-node-icon { animation-delay: 3.428s; }
.pipeline-active .pipeline-node:nth-child(7)  .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(7)  .pipeline-node-icon { animation-delay: 5.142s; }
.pipeline-active .pipeline-node:nth-child(9)  .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(9)  .pipeline-node-icon { animation-delay: 6.856s; }
.pipeline-active .pipeline-node:nth-child(11) .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(11) .pipeline-node-icon { animation-delay: 8.57s; }
.pipeline-active .pipeline-node:nth-child(13) .pipeline-node-box,
.pipeline-active .pipeline-node:nth-child(13) .pipeline-node-icon { animation-delay: 10.284s; }

/* Connector delays: node delay + glow overlap (connector starts when node lights up) */
.pipeline-active .pipeline-connector:nth-child(2)::before  { animation-delay: 0s; }
.pipeline-active .pipeline-connector:nth-child(4)::before  { animation-delay: 1.714s; }
.pipeline-active .pipeline-connector:nth-child(6)::before  { animation-delay: 3.428s; }
.pipeline-active .pipeline-connector:nth-child(8)::before  { animation-delay: 5.142s; }
.pipeline-active .pipeline-connector:nth-child(10)::before { animation-delay: 6.856s; }
.pipeline-active .pipeline-connector:nth-child(12)::before { animation-delay: 8.57s; }

[data-theme="light"] .pipeline-node-box { background: var(--bg-card); }



/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: var(--section-gap) 0;

}

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.faq-aside h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: 1rem; }
.faq-aside p  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.5rem; }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--white); }

.faq-chevron {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, border-color 0.2s;
  color: var(--text-muted);
}
.faq-chevron svg { width: 10px; height: 10px; }

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  border-color: var(--blue);
  color: var(--blue);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}
.faq-answer a { color: var(--blue); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color 0.15s; }
.faq-answer a:hover { text-decoration-color: var(--blue); }


/* ============================================================
   WHY VILDA — 3-column
   ============================================================ */
.why-section {
  padding: var(--section-gap) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 4px 24px var(--card-hover-glow, transparent);
}
[data-theme="light"] .why-card { background: var(--bg-card); border-color: var(--border); }

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--icon-bg, var(--blue-dim));
  border: 1px solid var(--pill-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.why-card-icon svg { width: 22px; height: 22px; color: var(--blue); }
[data-theme="light"] .why-card-icon { background: var(--icon-bg, var(--bg-raised)); border-color: var(--pill-border, var(--border)); }
[data-theme="light"] .why-card-icon svg { color: var(--blue); }

.why-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 0.6rem; }
[data-theme="light"] .why-card h3 { color: #0f172a; }
.why-card p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }


/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--section-gap) 0;

  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p  { font-size: 1rem; color: var(--text-muted); max-width: 48ch; margin: 0 auto 2rem; line-height: 1.75; }

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060c14;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
[data-theme="light"] .footer { background: #f7f2e7; border-top: 1px solid rgba(0,0,0,0.08); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {}
.footer-brand img { height: 32px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
[data-theme="light"] .footer-brand img { filter: brightness(0); }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 24ch;
}

.footer-address {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-address a { color: var(--text-dim); transition: color 0.15s; }
.footer-address a:hover { color: var(--text-muted); }

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.footer-social a:hover { border-color: var(--border-hover); color: var(--white); }
.footer-social svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a svg { width: 12px; height: 12px; opacity: 0.5; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.15s;
}
.footer-bottom-links a:hover { color: var(--text-muted); }

.footer-badge img {
  height: 100px;
  width: auto;
  opacity: 0.65;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}
.footer-badge:hover img { opacity: 0.9; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-grid,
  .api-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .feature-grid.reverse { direction: ltr; }
  .faq-layout  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4.5rem; }

  .nav-links,
  .nav-cta .btn:not(.nav-cta-mobile) { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { margin-left: auto; }

  .card-grid  { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero { padding-top: 4.1rem; }
}

@media (max-width: 520px) {
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SCROLL-TRIGGERED ANIMATIONS (mirrors :hover)
   ============================================================ */
.platform-browser.is-lit {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 8px 48px var(--card-hover-glow, transparent);
  transform: translateY(-3px);
}
.feature-image.in-view {
  border-color: var(--card-hover-border, rgba(77,101,255,0.4));
  box-shadow: 0 8px 48px var(--card-hover-glow, transparent);
  transform: translateY(-3px);
}
.ai-pipeline-viz.in-view .aipv-line::after {
  animation: aipv-scan 0.6s ease forwards;
  animation-delay: calc(var(--idx, 0) * 0.1s);
}
.ai-pipeline-viz.in-view .aipv-connector,
.bm-viz.in-view .aipv-connector { background: var(--blue); opacity: 0.5; }
.ai-pipeline-viz.in-view .aipv-node,
.bm-viz.in-view .aipv-node { border-color: var(--blue); }
.ai-pipeline-viz.in-view .aipv-row,
.bm-viz.in-view .aipv-row { opacity: 1; transform: translateX(0); }
.bm-viz.in-view .bm-edge { stroke: var(--blue); opacity: 1; }
.bm-viz.in-view .bm-face { opacity: 1; }
.bm-viz.in-view .bm-dot { opacity: 1; }
.bm-viz.in-view .bm-acc { fill: var(--blue); }
.bm-viz.in-view .bm-dotline { stroke: var(--blue); opacity: 0.5; }
.esv-viz.in-view .esv-bolt { color: var(--blue); }
.esv-viz.in-view .esv-particle {
  opacity: 1;
  animation: esv-shoot var(--dur, 0.5s) ease-in var(--delay, 0s) 2;
}
.esv-viz.in-view .esv-count { color: var(--blue); }
.rev-viz.in-view .rev-item { opacity: 1; transform: translateX(0); }
.rev-viz.in-view .rev-bar { width: var(--w, 50%); }
.sec-viz.in-view .sec-shield {
  stroke: var(--blue);
  animation: sec-draw 1.9s ease forwards;
}
