/*
 * FroggShop Website — CSS Variables & Theme
 * ==========================================
 * Généré depuis brand.md — NE PAS ÉDITER MANUELLEMENT
 */

/* ── Google Fonts ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600&family=Inter:wght@300;400;500;600&display=swap');

/* ── Root tokens — Light Mode ─────────────────────────────────────────── */
:root {
  /* Brand colors */
  --color-primary:          #1D2333;
  --color-primary-hover:    #161c28;
  --color-secondary:        #1CA37A;
  --color-secondary-hover:  #179166;
  --color-accent:           #5DBA9A;
  --color-accent-light:     #a8dac9;

  /* Light mode surfaces */
  --bg:           #F7F9FC;
  --bg-surface:   #FFFFFF;
  --bg-subtle:    #EEF2F7;
  --bg-hero:      #1D2333;
  --text:         #1D2333;
  --text-muted:   #6B7280;
  --text-on-dark: #F7F9FC;
  --border:       #E5E7EB;
  --border-subtle:#F3F4F6;

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-py:   6rem;
  --container:    1280px;
  --radius:       0.75rem;
  --radius-sm:    0.375rem;
  --radius-lg:    1.25rem;
  --radius-full:  9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-card: 0 2px 8px -1px rgb(0 0 0 / 0.08), 0 1px 3px -1px rgb(0 0 0 / 0.05);

  /* Transitions */
  --transition:      200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ────────────────────────────────────────────────────────── */
.dark {
  --bg:           #0F1219;
  --bg-surface:   #1D2333;
  --bg-subtle:    #252D3D;
  --bg-hero:      #0a0d14;
  --text:         #F7F9FC;
  --text-muted:   #9CA3AF;
  --text-on-dark: #F7F9FC;
  --border:       #2D3748;
  --border-subtle:#1e2535;
  --shadow-card: 0 2px 8px -1px rgb(0 0 0 / 0.3), 0 1px 3px -1px rgb(0 0 0 / 0.2);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  line-height: 1.6;
}

/* ── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgb(247 249 252 / 0.9);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition);
}

.dark .site-header {
  background-color: rgb(15 18 25 / 0.92);
  border-bottom-color: var(--border);
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  align-self: stretch;
  line-height: 0;
}

.nav-logo img {
  height: 2rem;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo .logo-dark  { display: none; }
.dark .nav-logo .logo-light { display: none; }
.dark .nav-logo .logo-dark  { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  height: 100%;
}

.nav-links > li {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: -1.25rem;
  top: 100%;
  height: 0.75rem;
  display: none;
}

.nav-dropdown:hover::before,
.nav-dropdown:focus-within::before {
  display: block;
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 20;
  min-width: 240px;
  display: none;
  padding: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  display: grid;
  gap: 0.15rem;
}

.nav-submenu a {
  display: block;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background-color: var(--bg-subtle);
}

.dark .nav-links a:hover,
.dark .nav-links a.active {
  background-color: var(--bg-subtle);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--color-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(28 163 122 / 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.btn-ghost:hover {
  color: var(--text);
  background-color: var(--bg-subtle);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-large {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-full);
}

/* ── Lang toggle ─────────────────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-toggle button {
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
}

.lang-toggle button.active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.dark .lang-toggle button.active {
  background: var(--bg-surface);
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(28, 163, 122, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(93, 186, 154, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(28, 163, 122, 0.15);
  border: 1px solid rgba(28, 163, 122, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero h1 .highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(247,249,252,0.7);
  max-width: 54ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.section {
  padding: var(--section-py) 1.5rem;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.dark .section-alt {
  background-color: var(--bg-surface);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(28, 163, 122, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  color: var(--text);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.editorial-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(28, 163, 122, 0.08), transparent 42%),
    var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.risk-item {
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.risk-item span {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--color-secondary);
}

.risk-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
}

.risk-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.architecture-visual {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(29, 35, 51, 0.96), rgba(20, 29, 45, 0.98)),
    var(--color-primary);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-xl);
}

.architecture-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent);
}

.layer-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 420px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.24);
}

.layer-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.layer-node small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(247,249,252,0.72);
}

.layer-node.core { bottom: 2rem; }
.layer-node.froggshop { bottom: 9rem; background: rgba(28, 163, 122, 0.22); }
.layer-node.project { bottom: 16rem; }

.floating-node {
  position: absolute;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  color: rgba(247,249,252,0.82);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 0.78rem;
  animation: node-float 7s ease-in-out infinite;
}

.floating-node:nth-child(4) { top: 2rem; left: 2rem; }
.floating-node:nth-child(5) { top: 5.5rem; right: 2.25rem; animation-delay: -1.8s; }
.floating-node:nth-child(6) { top: 12rem; left: 1.5rem; animation-delay: -3s; }
.floating-node:nth-child(7) { top: 15rem; right: 1.5rem; animation-delay: -4.2s; }

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

/* ── Stats ────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Feature grid ─────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(28, 163, 122, 0.08), var(--shadow-md);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-card.featured {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(28, 163, 122, 0.15), var(--shadow-xl);
  position: relative;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(28,163,122,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.pricing-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
}
.dark .pricing-price {
  color: var(--text);
}

.pricing-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--color-secondary);
  margin-top: 2px;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  gap: 1rem;
  user-select: none;
}

.faq-answer {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
}

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

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-secondary);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── CTA section ─────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #162035 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(28, 163, 122, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(247,249,252,0.7);
  padding: 4rem 1.5rem 2rem;
}

.dark .site-footer {
  background: #090d14;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo img {
  height: 2rem;
  filter: brightness(0) invert(1) opacity(0.9);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 26ch;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(247,249,252,0.6);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

/* ── Alfred images section ────────────────────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Mobile menu ──────────────────────────────────────────────────────── */
#mobile-menu {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

#mobile-menu.hidden,
.hidden {
  display: none !important;
}

#mobile-menu nav a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.mobile-menu-label {
  display: block;
  padding: 0.75rem 0 0.35rem;
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#mobile-menu nav a.mobile-sub-link {
  padding-left: 1rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ── Animations ───────────────────────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: none;
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }
.animate-delay-5 { transition-delay: 0.5s; }

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.text-green { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* Trust carousel */
.trust-carousel {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.trust-carousel-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.trust-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trust-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.trust-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: trust-scroll 22s linear infinite;
}

.trust-track:hover {
  animation-play-state: paused;
}

.trust-logo-link {
  width: 210px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.trust-logo-link:hover {
  transform: translateY(-2px);
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-md);
}

.trust-logo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes trust-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legal-nav a {
  padding: 0.75rem 1rem;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.925rem;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.legal-nav a:hover {
  color: var(--text);
  border-left-color: var(--color-secondary);
  background: var(--bg-subtle);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}

.legal-section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.feature-detail-layout {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.feature-detail-nav {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feature-detail-nav a {
  padding: 0.65rem 0.85rem;
  border-left: 3px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.feature-detail-nav a:hover {
  color: var(--text);
  border-left-color: var(--color-secondary);
  background: var(--bg-subtle);
}

.feature-category {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.feature-category:last-child {
  border-bottom: 0;
}

.feature-category h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}

.feature-category-intro {
  max-width: 76ch;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.feature-detail-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.feature-detail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-detail-card p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-detail-card details {
  margin-top: 0.75rem;
}

.feature-detail-card summary {
  cursor: pointer;
  color: var(--color-secondary);
  font-size: 0.85rem;
  font-weight: 700;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.roadmap-card {
  padding: 1.25rem;
  border: 1px solid rgba(28, 163, 122, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(28, 163, 122, 0.12), var(--bg-surface));
}

.roadmap-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-family: var(--font-display);
}

.roadmap-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero background laboratory */
.hero-lab-page {
  background: #f7f9fc;
  color: var(--text);
}

.hero-lab-intro {
  padding: 4rem 1.5rem 2rem;
  background: var(--bg);
}

.hero-lab-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
}

.hero-lab-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.hero-lab-dark {
  color: #fff;
  background: #0f1235;
}

.hero-lab-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-lab-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  max-width: 10ch;
}

.hero-lab-content p {
  max-width: 44ch;
  margin: 0 0 1.5rem;
  color: rgba(29, 35, 51, 0.68);
  font-size: 1rem;
}

.hero-lab-dark .hero-lab-content p {
  color: rgba(247, 249, 252, 0.72);
}

.hero-lab-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(28, 163, 122, 0.12);
  color: var(--color-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-lab-dark .hero-lab-label {
  color: #9ff0d3;
  background: rgba(93, 186, 154, 0.14);
}

.lab-logo {
  width: min(280px, 42vw);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(28, 163, 122, 0.28));
}

.phosphor-glow {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(93, 186, 154, 0.75), transparent 62%);
  filter: blur(26px);
  opacity: 0.65;
  animation: phosphor-pulse 4s ease-in-out infinite;
}

.cube-stack {
  position: absolute;
  right: 10%;
  top: 12%;
  width: 340px;
  height: 360px;
  transform: rotateX(58deg) rotateZ(-38deg);
  transform-style: preserve-3d;
}

.stack-layer {
  position: absolute;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 24px;
  transform: translateX(-50%) translateZ(var(--z));
  background: var(--layer-bg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), inset -14px -16px 24px rgba(0, 0, 0, 0.16), inset 12px 12px 22px rgba(255, 255, 255, 0.22);
  animation: stack-float 5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.stack-layer::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  background: radial-gradient(circle at 65% 30%, rgba(255, 255, 255, 0.75), transparent 24%);
  opacity: 0.45;
}

.mini-cube {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, #dfe6f4, #8b94aa);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  animation: mini-drift 6s ease-in-out infinite;
}

.dot-wave {
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  opacity: 0.82;
  background-image: radial-gradient(circle, rgba(93, 186, 154, 0.9) 1.4px, transparent 1.6px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse at 70% 60%, #000 0%, transparent 68%);
  transform: perspective(780px) rotateX(58deg) translateY(5%);
  animation: wave-slide 9s linear infinite;
}

.orbit-field {
  position: absolute;
  inset: 0;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(28, 163, 122, 0.25);
  border-radius: 999px;
  animation: orbit-spin 16s linear infinite;
}

.orbit-ring::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5dba9a;
  box-shadow: 0 0 18px #5dba9a;
}

.logo-stage {
  position: absolute;
  right: 10%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(36vw, 420px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.logo-stage .lab-logo {
  animation: logo-breathe 4s ease-in-out infinite;
}

.container-rain {
  position: absolute;
  right: 4%;
  top: 10%;
  width: 54%;
  height: 78%;
}

.container-box {
  position: absolute;
  width: 150px;
  height: 88px;
  border: 1px solid rgba(28, 163, 122, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 50px rgba(29, 35, 51, 0.12);
  backdrop-filter: blur(12px);
  animation: box-hover 6s ease-in-out infinite;
}

.hero-lab-dark .container-box {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(93, 186, 154, 0.22);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.container-box strong {
  display: block;
  padding: 1rem 1rem 0.2rem;
  font-size: 0.75rem;
}

.container-box span {
  display: block;
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.hero-lab-dark .container-box span {
  color: rgba(247, 249, 252, 0.62);
}

.neon-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 186, 154, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 186, 154, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(720px) rotateX(62deg) translateY(10%);
  transform-origin: center bottom;
  animation: grid-rush 8s linear infinite;
}

.signal-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(93, 186, 154, 0.9), transparent);
  filter: drop-shadow(0 0 12px rgba(93, 186, 154, 0.85));
  animation: signal-pass 5s ease-in-out infinite;
}

.phosphor-logo {
  position: absolute;
  right: 8%;
  top: 12%;
  width: min(34vw, 360px);
  opacity: 0.96;
  animation: phosphor-logo 6s ease-in-out infinite;
}

.tile-cluster {
  position: absolute;
  right: 8%;
  top: 12%;
  width: 420px;
  height: 360px;
}

.tile {
  position: absolute;
  width: 98px;
  height: 98px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(215,238,231,0.9));
  border: 1px solid rgba(28, 163, 122, 0.22);
  box-shadow: 0 20px 48px rgba(29, 35, 51, 0.12);
  animation: tile-bob 5s ease-in-out infinite;
}

.hero-lab-dark .tile {
  background: linear-gradient(145deg, rgba(93, 186, 154, 0.22), rgba(97, 65, 214, 0.26));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.spline-path {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: 68%;
  height: 70%;
  border-radius: 45%;
  border-top: 2px solid rgba(93, 186, 154, 0.36);
  transform: rotate(-9deg);
  filter: drop-shadow(0 0 18px rgba(93, 186, 154, 0.38));
  animation: spline-breathe 5s ease-in-out infinite;
}

.iso-stack {
  position: absolute;
  right: 12%;
  top: 13%;
  width: 360px;
  height: 360px;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-style: preserve-3d;
}

.iso-stack-large {
  right: 8%;
  top: 8%;
  transform: scale(1.12) rotateX(58deg) rotateZ(45deg);
}

.iso-layer {
  position: absolute;
  left: 50%;
  top: var(--top);
  width: var(--size, 210px);
  height: var(--size, 210px);
  border-radius: 24px;
  transform: translateX(-50%) translateZ(var(--z, 0));
  background: var(--face);
  box-shadow:
    8px 10px 0 var(--side),
    0 26px 46px rgba(0, 0, 0, 0.24),
    inset -12px -14px 24px rgba(0, 0, 0, 0.18),
    inset 10px 10px 24px rgba(255, 255, 255, 0.26);
  animation: iso-float 5.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.iso-layer::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 18px;
  background: radial-gradient(circle at 72% 24%, rgba(255,255,255,0.85), transparent 18%);
  opacity: 0.4;
  pointer-events: none;
}

.iso-layer.hole::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  background: var(--hole, #0f1235);
  box-shadow: inset 8px 8px 18px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(255,255,255,0.08);
}

.iso-platform {
  position: absolute;
  left: 50%;
  top: 250px;
  width: 250px;
  height: 250px;
  border: 2px solid rgba(93, 186, 154, 0.5);
  transform: translateX(-50%) translateZ(-70px);
  animation: platform-pulse 5s ease-in-out infinite;
}

.floating-case-set {
  position: absolute;
  right: 8%;
  top: 16%;
  width: 430px;
  height: 330px;
}

.iso-stack-straight {
  transform: rotateX(58deg) rotateZ(45deg);
}

.iso-stack-straight .iso-layer {
  left: 50%;
}

.floating-case {
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 20px;
  transform: rotateX(58deg) rotateZ(45deg);
  background: var(--face);
  box-shadow:
    12px 14px 0 var(--side),
    0 22px 44px rgba(0,0,0,0.26),
    inset -10px -10px 18px rgba(0,0,0,0.17),
    inset 8px 8px 18px rgba(255,255,255,0.24);
  animation: case-float 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.floating-case::after {
  content: '';
  position: absolute;
  inset: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 6px 6px 12px rgba(0,0,0,0.16);
}

.icon-orbit {
  position: absolute;
  right: 7%;
  top: 8%;
  width: 430px;
  height: 360px;
}

.icon-cloud {
  position: absolute;
  right: 4%;
  top: 5%;
  width: min(54vw, 620px);
  height: 430px;
}

.icon-cloud-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(28, 163, 122, 0.26));
  animation: logo-breathe 4s ease-in-out infinite;
}

.cloud-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 163, 122, 0.18);
  color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(29, 35, 51, 0.11);
  animation: icon-drift 5.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.cloud-icon svg {
  color: var(--icon-color, var(--color-secondary));
}

.cloud-icon.text-icon {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.hero-lab-dark .cloud-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(93, 186, 154, 0.24);
  color: #fff;
  box-shadow: 0 20px 54px rgba(0,0,0,0.28);
}

.integration-panel {
  position: absolute;
  right: 5%;
  top: 8%;
  width: min(56vw, 690px);
  height: 420px;
  display: grid;
  grid-template-columns: 150px 1fr 165px;
  gap: 1rem;
  align-items: center;
}

.integration-list {
  display: grid;
  gap: 0.85rem;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  min-height: 58px;
  border: 1px solid rgba(28, 163, 122, 0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 14px 34px rgba(29, 35, 51, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.integration-core {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  border: 1px solid rgba(28, 163, 122, 0.14);
  border-radius: 22px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 20px 60px rgba(29, 35, 51, 0.12);
}

.integration-core .iso-stack {
  position: relative;
  right: auto;
  top: auto;
  width: 260px;
  height: 270px;
  transform: scale(0.58) rotateX(58deg) rotateZ(45deg);
}

.connector-line {
  position: absolute;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(28,163,122,0.75) 0 7px, transparent 7px 13px);
  opacity: 0.55;
  filter: drop-shadow(0 0 10px rgba(93,186,154,0.4));
}

.point-surge {
  position: absolute;
  inset: 0;
  opacity: 0.92;
  background-image: radial-gradient(circle, rgba(93, 186, 154, 0.95) 1.6px, transparent 1.9px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at 72% 48%, #000 0%, transparent 68%);
  transform: perspective(820px) rotateX(58deg) translateY(16%);
  animation: wave-slide 4.8s linear infinite;
}

.cube-wave {
  position: absolute;
  right: 1%;
  bottom: -3%;
  width: 62%;
  height: 72%;
  transform: perspective(780px) rotateX(58deg) rotateZ(-12deg);
  transform-style: preserve-3d;
}

.wave-cube {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--cube-face);
  box-shadow:
    6px 7px 0 var(--cube-side),
    0 14px 28px rgba(0,0,0,0.22),
    inset 6px 6px 12px rgba(255,255,255,0.18);
  animation: cube-wave-bob 3.8s ease-in-out infinite;
  animation-delay: var(--delay);
}

.feature-strip {
  position: absolute;
  right: 5%;
  bottom: 10%;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 0.85rem;
  width: min(58vw, 690px);
}

.feature-pill-card {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid rgba(28, 163, 122, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 42px rgba(29,35,51,0.1);
}

.feature-pill-card svg {
  color: var(--color-secondary);
  margin-bottom: 0.55rem;
}

.feature-pill-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.86rem;
}

.feature-pill-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.neon-ribbon {
  position: absolute;
  right: -6%;
  top: 16%;
  width: 64%;
  height: 58%;
  background:
    radial-gradient(circle at 30% 50%, rgba(93,186,154,0.42), transparent 22%),
    repeating-radial-gradient(ellipse at 30% 50%, rgba(93,186,154,0.55) 0 2px, transparent 2px 16px);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 82%, transparent);
  filter: blur(0.2px) drop-shadow(0 0 18px rgba(93,186,154,0.32));
  transform: rotate(-8deg);
  animation: ribbon-flow 5s ease-in-out infinite;
}

.icon-orbit-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 20px 40px rgba(28, 163, 122, 0.26));
  animation: logo-breathe 4s ease-in-out infinite;
}

.orbit-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(28, 163, 122, 0.2);
  color: var(--color-secondary);
  box-shadow: 0 18px 44px rgba(29, 35, 51, 0.13);
  animation: icon-drift 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-lab-dark .orbit-icon {
  background: rgba(255,255,255,0.08);
  border-color: rgba(93, 186, 154, 0.24);
  box-shadow: 0 20px 54px rgba(0,0,0,0.28);
}

.wire-planes {
  position: absolute;
  right: -3%;
  top: 9%;
  width: 520px;
  height: 380px;
  transform: rotateX(58deg) rotateZ(45deg);
  transform-style: preserve-3d;
}

.wire-plane {
  position: absolute;
  left: 50%;
  top: var(--top);
  width: 270px;
  height: 270px;
  transform: translateX(-50%) translateZ(var(--z));
  border: 2px solid var(--wire);
  box-shadow: 0 0 28px color-mix(in srgb, var(--wire), transparent 48%);
  animation: wire-rise 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.commerce-radar {
  position: absolute;
  right: 8%;
  top: 9%;
  width: 420px;
  height: 380px;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(28, 163, 122, 0.22);
  border-radius: 999px;
  animation: orbit-spin 20s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #5dba9a;
  box-shadow: 0 0 18px #5dba9a;
  animation: phosphor-pulse 3.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.iso-icon-map {
  position: absolute;
  right: 5%;
  top: 12%;
  width: 480px;
  height: 330px;
}

.map-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  color: var(--color-secondary);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(28, 163, 122, 0.22);
  box-shadow: 0 18px 40px rgba(29, 35, 51, 0.13);
  animation: icon-drift 5.5s ease-in-out infinite;
  animation-delay: var(--delay);
}

.map-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(93,186,154,0), rgba(93,186,154,0.76), rgba(93,186,154,0));
  transform-origin: left center;
  filter: drop-shadow(0 0 12px rgba(93,186,154,0.55));
}

@keyframes iso-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

@keyframes platform-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) translateZ(-70px) scale(0.96); }
  50% { opacity: 1; transform: translateX(-50%) translateZ(-70px) scale(1.02); }
}

@keyframes case-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

@keyframes icon-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes wire-rise {
  0%, 100% { margin-top: 0; opacity: 0.62; }
  50% { margin-top: -18px; opacity: 1; }
}

@keyframes cube-wave-bob {
  0%, 100% { transform: translateZ(0); }
  50% { transform: translateZ(34px); }
}

@keyframes ribbon-flow {
  0%, 100% { transform: rotate(-8deg) translateY(0); opacity: 0.7; }
  50% { transform: rotate(-5deg) translateY(-18px); opacity: 1; }
}

@keyframes phosphor-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.42; }
  50% { transform: scale(1.12); opacity: 0.72; }
}

@keyframes stack-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -16px; }
}

@keyframes mini-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(12px, -18px, 0) rotate(8deg); }
}

@keyframes wave-slide {
  from { background-position: 0 0; }
  to { background-position: 180px -90px; }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 18px 34px rgba(28, 163, 122, 0.28)); }
  50% { transform: translateY(-12px) scale(1.035); filter: drop-shadow(0 24px 54px rgba(93, 186, 154, 0.44)); }
}

@keyframes box-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes grid-rush {
  from { background-position: 0 0; }
  to { background-position: 0 96px; }
}

@keyframes signal-pass {
  0%, 100% { transform: translateX(-18%); opacity: 0.2; }
  50% { transform: translateX(18%); opacity: 0.9; }
}

@keyframes phosphor-logo {
  0%, 100% { transform: rotate(-3deg) translateY(0); filter: drop-shadow(0 0 18px rgba(93, 186, 154, 0.38)); }
  50% { transform: rotate(2deg) translateY(-14px); filter: drop-shadow(0 0 34px rgba(93, 186, 154, 0.72)); }
}

@keyframes tile-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes spline-breathe {
  0%, 100% { transform: rotate(-9deg) scale(1); opacity: 0.72; }
  50% { transform: rotate(-7deg) scale(1.04); opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-container {
    gap: 1rem;
  }

  .nav-links a {
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }

  .nav-actions .btn-primary {
    display: none;
  }

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }

  .hero { padding: 4rem 1.5rem; min-height: auto; }
  .hero h1 { font-size: 2rem; }

  .grid-3, .grid-2, .stats-grid {
    grid-template-columns: 1fr;
  }

  .editorial-band,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .editorial-band {
    padding: 2rem;
  }

  .architecture-visual {
    min-height: 500px;
  }

  .floating-node {
    position: relative;
    display: inline-flex;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-carousel-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .trust-copy {
    align-items: flex-start;
  }

  .trust-logo-link {
    width: 180px;
    height: 78px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-nav,
  .feature-detail-nav {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .feature-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .legal-nav,
  .feature-detail-nav {
    grid-template-columns: 1fr;
  }
}
