/* ============================================================
   ALOOPX · Design System  ·  "Luminous Edge"
   Deep-tech dark canvas + tri-color recursion identity
   ============================================================ */

:root {
  /* Canvas */
  --bg:        #070b16;
  --bg-2:      #0b1120;
  --surface:   rgba(17, 24, 42, 0.66);
  --surface-2: rgba(23, 31, 52, 0.78);
  --border:    rgba(140, 160, 200, 0.16);
  --border-hi: rgba(170, 190, 230, 0.34);

  /* Type */
  --fg:      #eef2fb;
  --fg-soft: #c3ccdf;
  --fg-mut:  #8a96b2;

  /* Brand (from the V2 infinity) */
  --magenta: #d946ef;
  --violet:  #a855f7;
  --cyan:    #22d3ee;
  --teal:    #2dd4bf;
  --gold:    #f59e0b;

  --grad: linear-gradient(100deg, #d946ef 0%, #a855f7 24%, #22d3ee 56%, #2dd4bf 70%, #f59e0b 100%);
  --grad-soft: linear-gradient(100deg, rgba(217,70,239,.18), rgba(34,211,238,.16) 55%, rgba(245,158,11,.18));

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Atmospheric background: gradient mesh + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(168,85,247,.18), transparent 60%),
    radial-gradient(55% 45% at 88% 8%, rgba(245,158,11,.12), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(34,211,238,.14), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(to bottom, rgba(7,11,22,.86), rgba(7,11,22,.55) 70%, transparent);
  border-bottom: 1px solid rgba(140,160,200,.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg, .brand img { height: 42px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .14em;
  color: var(--fg);
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--fg-mut);
  margin-top: 4px;
}

.header-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 999px;
  background: rgba(13,18,33,.9);
  border: 1px solid var(--border);
}
.lang-btn {
  padding: 5px 11px; border-radius: 999px; border: none;
  background: transparent; color: var(--fg-soft);
  cursor: pointer; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .08em; transition: .18s;
}
.lang-btn.active { background: var(--grad); color: #0a0d18; font-weight: 700; }

/* Burger + menu */
.nav-wrapper { position: relative; }
.burger {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(13,18,33,.9);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: .18s;
}
.burger:hover { border-color: var(--border-hi); transform: translateY(-1px); }
.burger-lines { display: flex; flex-direction: column; gap: 4px; }
.burger-line { width: 17px; height: 2px; border-radius: 9px; background: var(--fg-soft); transition: .2s; }
.burger.open .burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-menu {
  position: absolute; right: 0; top: 50px; min-width: 230px;
  padding: 8px; border-radius: 16px;
  background: rgba(11,17,32,.98);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow);
}
.nav-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; color: var(--fg-soft); text-decoration: none;
  transition: .14s;
}
.nav-menu a::before { content: "↳"; color: var(--cyan); opacity: .7; font-family: var(--font-mono); }
.nav-menu a:hover { background: var(--grad-soft); color: var(--fg); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-mut);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(168,85,247,.9);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.5; transform:scale(.85);} 50%{opacity:1; transform:scale(1.15);} }

/* ---------- Type scale ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn-primary {
  position: relative; color: #070b16; font-weight: 700;
  background: var(--grad);
  box-shadow: 0 16px 40px -12px rgba(168,85,247,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 52px -12px rgba(34,211,238,.55); }
.btn-ghost {
  color: var(--fg); border-color: var(--border-hi);
  background: rgba(17,24,42,.5);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--fg-soft); background: rgba(17,24,42,.85); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  margin: 22px 0 18px;
}
.hero .lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--fg-soft); max-width: 56ch; margin-bottom: 26px;
}
.hero-points { list-style: none; margin: 0 0 30px; display: grid; gap: 12px; }
.hero-points li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--fg-soft);
}
.hero-points li::before {
  content: "∞"; color: var(--cyan); font-weight: 700; flex: none;
  margin-top: -1px; text-shadow: 0 0 12px rgba(34,211,238,.6);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { display: grid; place-items: center; position: relative; }
.hero-visual .orb {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.25), transparent 65%);
  filter: blur(20px); z-index: -1;
}
.hero-logo { width: min(420px, 88%); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-16px);} }

/* draw-in animation for the infinity */
.hero-logo path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.6s ease-out forwards; }
.hero-logo g:nth-child(3) path:nth-child(2) { animation-delay: .1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
section.block { padding: 64px 0; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); margin: 16px 0 14px; }
.section-head p { color: var(--fg-soft); font-size: 17px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hi); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--grad-soft); border: 1px solid var(--border);
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--fg-soft); font-size: 15px; }
.card ul { list-style: none; margin-top: 12px; display: grid; gap: 9px; }
.card li { font-size: 14.5px; color: var(--fg-soft); padding-left: 20px; position: relative; }
.card li::before { content: "▸"; position: absolute; left: 0; color: var(--teal); }
.card.feature { grid-column: span 2; }

/* pills */
.pill {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border-radius: 999px; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--fg-soft);
  margin: 8px 6px 0 0; background: rgba(13,18,33,.6);
}

/* ---------- Comparison table ---------- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius); overflow: hidden; margin-top: 8px;
  border: 1px solid var(--border); font-size: 15px;
}
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-display); font-size: 15px; background: rgba(13,18,33,.8); }
.compare thead th:first-child { color: var(--cyan); }
.compare thead th:last-child { color: var(--fg-mut); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--fg); }
.compare td:last-child { color: var(--fg-mut); }
.compare tbody tr:hover td { background: rgba(34,211,238,.04); }

/* ---------- Steps / schema ---------- */
.schema {
  border-radius: var(--radius); padding: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(34,211,238,.06) 60%, rgba(245,158,11,.06)), var(--surface);
}
.schema-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 16px; }
.schema-step {
  padding: 16px; border-radius: var(--radius-sm);
  background: rgba(9,13,24,.7); border: 1px solid var(--border);
}
.schema-step .n {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  color: var(--cyan); display: block; margin-bottom: 6px;
}
.schema-step strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.schema-step span.d { font-size: 13.5px; color: var(--fg-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius); padding: 40px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(120deg, rgba(168,85,247,.14), rgba(34,211,238,.1) 55%, rgba(245,158,11,.12)), var(--surface);
  text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cta-banner p { color: var(--fg-soft); max-width: 60ch; margin: 0 auto 22px; }

/* ---------- Forms ---------- */
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px;
  padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.form textarea, .form .full { grid-column: 1 / -1; }
.form textarea { min-height: 120px; resize: vertical; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(9,13,24,.7);
  color: var(--fg); font-family: var(--font-body); font-size: 15px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--fg-mut); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15); background: rgba(9,13,24,.95);
}
.form select { color: var(--fg-soft); }
.form .btn-primary { grid-column: 1 / -1; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(140,160,200,.1);
  margin-top: 40px; padding: 40px 0 48px;
}
.site-footer .wrap { display: grid; gap: 22px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-nav a {
  color: var(--fg-mut); text-decoration: none; font-size: 14px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; transition: .15s;
}
.footer-nav a:hover { color: var(--fg); border-color: var(--border); background: rgba(17,24,42,.6); }
.footer-bottom {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-mut);
  letter-spacing: .04em; padding-top: 18px; border-top: 1px solid rgba(140,160,200,.08);
}

/* ---------- Ambient sound toggle ---------- */
#ambient-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(11,17,32,.92);
  color: var(--fg-soft); font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  backdrop-filter: blur(10px); transition: .18s; opacity: .8;
}
#ambient-toggle:hover { opacity: 1; transform: translateY(-2px); border-color: var(--border-hi); }
#ambient-toggle.is-playing { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(45,212,191,.25); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Language blocks ---------- */
/* Hide only the inactive language so grids/flex keep their display */
body.lang-fr .lang-block.en { display: none !important; }
body.lang-en .lang-block.fr { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { order: -1; }
  .hero-logo { width: min(320px, 70%); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .card.feature { grid-column: span 1; }
  .form { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}
@media (max-width: 540px) {
  .hero { padding: 40px 0; }
  section.block { padding: 44px 0; }
}

/* ============================================================
   INNER PAGES  ·  shared components
   ============================================================ */

.lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--fg-soft); max-width: 64ch; }

/* Rich text content blocks */
.rich > h2 { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 14px; }
.rich > h3 { font-family: var(--font-display); font-size: 19px; margin: 22px 0 10px; }
.rich > p  { color: var(--fg-soft); font-size: 16px; margin-bottom: 14px; max-width: 72ch; }
.rich > ul { list-style: none; display: grid; gap: 9px; margin: 10px 0 16px; }
.rich > ul li { position: relative; padding-left: 22px; color: var(--fg-soft); font-size: 15px; }
.rich > ul li::before { content: "▸"; position: absolute; left: 0; color: var(--teal); }
.rich a:not(.btn) { color: var(--cyan); text-decoration: none; }
.rich a:not(.btn):hover { text-decoration: underline; }
.rich strong { color: var(--fg); }

/* Page hero (orbit) */
.page-hero {
  position: relative; overflow: hidden;
  margin: 28px auto 8px; border-radius: 26px;
  padding: 52px 40px 56px;
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(60% 120% at 10% 0%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(34,211,238,.18), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.page-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px; align-items: center;
}
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 16px 0 14px; }
.page-hero .lead, .page-hero p { color: var(--fg-soft); max-width: 56ch; margin-bottom: 18px; }
.page-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.hero-pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; color: var(--fg-soft);
  border: 1px solid var(--border); background: rgba(13,18,33,.7);
}
.orbit-bg {
  position: absolute; inset: -40px; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: flex-end; opacity: .5;
}
.orbit-svg { width: 340px; height: 340px; margin-right: 30px; }

/* Orbit animation, recoloured to ALOOPX brand */
.core { fill: #fff; filter: drop-shadow(0 0 10px rgba(34,211,238,.85)); animation: corePulse 2.4s ease-in-out infinite; }
.ring { fill: none; stroke-width: 2; transform-origin: 120px 120px; }
.ring-1 { stroke: var(--violet); opacity: .7; animation: ringPulse 2.8s ease-in-out infinite; }
.ring-2 { stroke: var(--cyan);   opacity: .7; animation: ringPulse 2.8s ease-in-out infinite .18s; }
.ring-3 { stroke: var(--gold);   opacity: .7; animation: ringPulse 2.8s ease-in-out infinite .35s; }
.ring-echo { stroke: var(--cyan); opacity: 0; animation: ringEcho 3.2s ease-out infinite; }
.echo-1 { animation-delay: .5s; } .echo-2 { animation-delay: 1.4s; } .echo-3 { animation-delay: 2.3s; }
.node { fill: #0b1120; stroke: var(--gold); stroke-width: 1.4; transform-origin: 120px 120px; opacity: 0; }
.node-1 { animation: nodeTravel 3.3s ease-out infinite; transform: rotate(20deg); }
.node-2 { animation: nodeTravel 3.3s ease-out infinite .6s; transform: rotate(115deg); }
.node-3 { animation: nodeTravel 3.3s ease-out infinite 1.2s; transform: rotate(215deg); }
.node-4 { animation: nodeTravel 3.3s ease-out infinite 1.8s; transform: rotate(305deg); }
@keyframes corePulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.12);} }
@keyframes ringPulse { 0%{transform:scale(.96);opacity:.4;} 40%{transform:scale(1.03);opacity:.95;} 100%{transform:scale(.96);opacity:.4;} }
@keyframes ringEcho { 0%{transform:scale(.6);opacity:0;stroke-width:1.4;} 25%{opacity:.9;stroke-width:2;} 100%{transform:scale(1.9);opacity:0;stroke-width:1;} }
@keyframes nodeTravel { 0%{opacity:0;transform:translate(0,0) scale(.4);} 15%{opacity:1;} 70%{opacity:1;} 100%{opacity:0;transform:translate(70px,0) scale(1);} }

/* Schema / Refine Loop */
.schema ul { list-style: none; display: grid; gap: 9px; margin-top: 10px; }
.schema ul li { position: relative; padding-left: 20px; color: var(--fg-soft); font-size: 15px; }
.schema ul li::before { content: "→"; position: absolute; left: 0; color: var(--cyan); }
.schema > strong { font-family: var(--font-display); font-size: 16px; color: var(--fg); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 16px; }
.step-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }

/* Inline CTA */
.cta, .cta-inline {
  margin-top: 22px; padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  background: linear-gradient(120deg, rgba(168,85,247,.12), rgba(34,211,238,.08) 60%, rgba(245,158,11,.1)), var(--surface);
}
.cta h3 { font-size: 19px; margin-bottom: 8px; }
.cta p, .cta-inline p { color: var(--fg-soft); margin-bottom: 12px; }
.cta-inline { padding: 20px 22px; }

/* Timeline */
.timeline { position: relative; margin-top: 18px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); opacity: .5; border-radius: 2px; }
.timeline-step { position: relative; padding: 0 0 22px 8px; }
.timeline-step::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 12px rgba(34,211,238,.6);
}
.timeline-step h3 { font-size: 17px; margin-bottom: 6px; }
.timeline-step p { color: var(--fg-soft); font-size: 15px; }

/* Legal */
.hero-meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-mut); letter-spacing: .06em; margin-top: 14px; }
.legal-section { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; }
.legal-section h2 { font-size: 21px; margin-bottom: 12px; }
.legal-section h3 { font-family: var(--font-display); font-size: 16px; margin: 18px 0 8px; color: var(--fg); }
.legal-section p { color: var(--fg-soft); font-size: 15px; margin-bottom: 10px; }
.legal-section ul { list-style: none; display: grid; gap: 7px; margin: 8px 0 12px; }
.legal-section ul li { position: relative; padding-left: 20px; color: var(--fg-soft); font-size: 15px; }
.legal-section ul li::before { content: "▸"; position: absolute; left: 0; color: var(--teal); }
.legal-section a:not(.btn) { color: var(--cyan); text-decoration: none; }
.legal-section a:not(.btn):hover { text-decoration: underline; }
.legal-note { font-size: 13px !important; color: var(--fg-mut) !important; border-left: 2px solid var(--gold); padding-left: 12px; }

@media (max-width: 920px) {
  .page-hero { padding: 36px 22px 40px; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .orbit-bg { justify-content: center; opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-logo path { stroke-dashoffset: 0; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  border: 1px solid var(--border); background: rgba(13,18,33,.9);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg-soft); transition: .18s;
}
.theme-toggle:hover { border-color: var(--border-hi); transform: translateY(-1px); color: var(--fg); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   LIGHT ("DAY") THEME, sober & professional
   Toggled by adding class .theme-light on <html>
   ============================================================ */
.theme-light {
  --bg:        #f5f7fc;
  --bg-2:      #e9eef7;
  --surface:   #ffffff;
  --surface-2: #f3f6fd;
  --border:    rgba(20,32,64,.12);
  --border-hi: rgba(20,32,64,.24);
  --fg:        #0f1830;
  --fg-soft:   #41506b;
  --fg-mut:    #6a7790;
  --grad-soft: linear-gradient(100deg, rgba(217,70,239,.12), rgba(34,211,238,.12) 55%, rgba(245,158,11,.14));
  --shadow:    0 18px 44px -22px rgba(20,32,64,.28);
}

.theme-light body::before {
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(168,85,247,.10), transparent 60%),
    radial-gradient(55% 45% at 88% 8%, rgba(245,158,11,.07), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(34,211,238,.09), transparent 60%),
    var(--bg);
}
.theme-light body::after { opacity: .022; }

/* Stronger gradient for clipped text so it stays readable on white */
.theme-light .gradient-text {
  background-image: linear-gradient(100deg, #c026d3 0%, #7c3aed 28%, #0891b2 54%, #0d9488 70%, #d97706 100%);
}

/* Surfaces that used hard-coded dark values */
.theme-light .site-header {
  background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,.62) 70%, transparent);
  border-bottom: 1px solid rgba(20,32,64,.08);
}
.theme-light .lang-toggle,
.theme-light .burger,
.theme-light .theme-toggle,
.theme-light .pill,
.theme-light .hero-pill,
.theme-light #ambient-toggle { background: rgba(255,255,255,.9); }
.theme-light .nav-menu { background: #ffffff; }
.theme-light .btn-ghost { background: rgba(255,255,255,.7); }
.theme-light .lang-btn.active { color: #fff; }
.theme-light .compare thead th { background: #eef2fb; }
.theme-light .compare tbody tr:hover td { background: rgba(8,145,178,.05); }
.theme-light .schema-step { background: #f4f7fd; }
.theme-light .form input,
.theme-light .form textarea,
.theme-light .form select { background: #f7f9fd; }
.theme-light .form input:focus,
.theme-light .form textarea:focus,
.theme-light .form select:focus { background: #ffffff; }
.theme-light .footer-nav a:hover { background: rgba(20,32,64,.05); }
.theme-light .site-footer { border-top-color: rgba(20,32,64,.1); }
.theme-light .footer-bottom { border-top-color: rgba(20,32,64,.08); }
.theme-light .btn-primary { box-shadow: 0 12px 30px -14px rgba(124,58,237,.45); }

/* Page hero card + orbit on light */
.theme-light .page-hero {
  background:
    radial-gradient(60% 120% at 10% 0%, rgba(168,85,247,.10), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(34,211,238,.08), transparent 60%),
    #ffffff;
}
.theme-light .hero-visual .orb { background: radial-gradient(circle, rgba(168,85,247,.16), transparent 65%); }
.theme-light .core { fill: #7c3aed; }
.theme-light .node { fill: #ffffff; }
