/* ==========================================================================
   WanLainjo — Design System
   Midnight & Gold. Mobile-first. Zero dependencies.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #050911;
  --bg-2: #0a1324;
  --bg-3: #0f1b33;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f1e8;
  --text-2: rgba(245, 241, 232, 0.72);
  --text-3: rgba(245, 241, 232, 0.5);

  --gold: #f4a623;
  --gold-2: #ffd27a;
  --ember: #e4572e;
  --ember-2: #c1440e;
  --accent: var(--gold);
  --accent-rgb: 244, 166, 35;
  --grad: linear-gradient(120deg, #ffd27a 0%, #f4a623 38%, #e4572e 100%);
  --grad-soft: linear-gradient(120deg, rgba(255, 210, 122, 0.16), rgba(228, 87, 46, 0.16));

  --ok: #22c55e;
  --err: #ef4444;
  --wa: #25d366;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 20px 60px -20px rgba(var(--accent-rgb), 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --nav-h: 72px;
  --bar-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

/* Money page palette — champagne gold, ink navy, warm cream */
.theme-money {
  --gold: #c9a84c;
  --gold-2: #f0c96a;
  --ember: #b8862f;
  --accent-rgb: 201, 168, 76;
  --grad: linear-gradient(120deg, #f6dc94 0%, #c9a84c 50%, #a8822b 100%);
  --grad-soft: linear-gradient(120deg, rgba(246, 220, 148, 0.15), rgba(168, 130, 43, 0.15));
  --bg: #070a14;
  --bg-2: #0a0e1a;
  --bg-3: #0d1b3e;
  --cream: #f7f4ef;
  --ink: #141a33;
}

/* USA page palette — technical blue-steel with gold */
.theme-usa {
  --bg: #060b14;
  --bg-2: #0b1220;
  --bg-3: #10203a;
  --tech: #4cc9f0;
  --tech-rgb: 76, 201, 240;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + var(--safe-b));
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 6px;
}
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

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

/* ---------- Ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(var(--accent-rgb), 0.10), transparent 60%),
              radial-gradient(900px 700px at -10% 30%, rgba(60, 90, 200, 0.10), transparent 60%),
              var(--bg);
}
.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  opacity: 0.32;
  will-change: transform;
}
.ambient::before {
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.55), transparent 65%);
  top: -20vmax; right: -15vmax;
  animation: drift-a 28s ease-in-out infinite alternate;
}
.ambient::after {
  background: radial-gradient(circle, rgba(80, 70, 220, 0.35), transparent 65%);
  bottom: -25vmax; left: -20vmax;
  animation: drift-b 34s ease-in-out infinite alternate;
}
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes drift-a { to { transform: translate(-12vmax, 14vmax) scale(1.15); } }
@keyframes drift-b { to { transform: translate(14vmax, -10vmax) scale(1.1); } }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 32px);
}
.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 140px);
}
.section-tight { padding-block: clamp(56px, 8vw, 96px); }
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}
.section-head.left { margin-inline: 0; text-align: left; }
.section-head .lead { margin-top: 18px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.center .eyebrow::after,
.section-head:not(.left) .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-variation-settings: "opsz" 144;
}
.h1 { font-size: clamp(2.6rem, 8.2vw, 6.2rem); }
.h2 { font-size: clamp(2rem, 5.4vw, 3.8rem); }
.h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2; }
.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: var(--text-2);
  line-height: 1.7;
}
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.italic { font-style: italic; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #160d02;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover { translate: 0 -2px; box-shadow: 0 18px 40px -12px rgba(var(--accent-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.08); translate: 0 -2px; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 60px; padding: 0 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--gold-2);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 9, 17, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.brand-word {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-word b { color: var(--gold); font-weight: 800; }
.brand-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  margin-top: 5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  color: #160d02;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.8);
}
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-links a, .nav-links button {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links button:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { display: none; }
.nav-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.nav-phone:hover { color: var(--gold-2); }
.nav-phone svg { width: 16px; height: 16px; }

.menu-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  z-index: 120;
}
.menu-btn span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.2s;
}
.menu-btn span:nth-child(1) { transform: translateY(-6px); }
.menu-btn span:nth-child(3) { transform: translateY(6px); }
.menu-open .menu-btn span:nth-child(1) { transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) 24px calc(32px + var(--safe-b));
  background: rgba(5, 9, 17, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-open .drawer { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a, .drawer nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.2s;
}
.drawer nav a::after, .drawer nav button::after {
  content: "→";
  font-family: var(--font);
  font-size: 20px;
  color: var(--gold);
}
.drawer nav a:hover, .drawer nav button:hover { color: var(--gold-2); }
.menu-open .drawer nav > * { opacity: 1; transform: none; }
.menu-open .drawer nav > *:nth-child(1) { transition-delay: 0.05s; }
.menu-open .drawer nav > *:nth-child(2) { transition-delay: 0.1s; }
.menu-open .drawer nav > *:nth-child(3) { transition-delay: 0.15s; }
.menu-open .drawer nav > *:nth-child(4) { transition-delay: 0.2s; }
.menu-open .drawer nav > *:nth-child(5) { transition-delay: 0.25s; }
.menu-open .drawer nav > *:nth-child(6) { transition-delay: 0.3s; }
.menu-open .drawer nav > *:nth-child(7) { transition-delay: 0.35s; }
.drawer-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.drawer-foot .meta { font-size: 14px; color: var(--text-3); text-align: center; margin-top: 6px; }
body.menu-open { overflow: hidden; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 36px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}
.card::before {
  /* pointer spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(var(--accent-rgb), 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover::before { opacity: 1; }
.card.lift:hover {
  translate: 0 -6px;
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: var(--shadow);
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  color: var(--gold-2);
  font-size: 26px;
  margin-bottom: 22px;
}
.icon-tile svg { width: 26px; height: 26px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
}
.tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.16) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd27a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 12px no-repeat;
}
.theme-money .checklist li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0c96a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>");
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.g-2, .g-3, .g-4 { grid-template-columns: 1fr; }

/* ---------- Stats ---------- */
.stat-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.input, .field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  padding-right: 46px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4a623' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.field select option { background: #0f1b33; color: #fff; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: rgba(245, 241, 232, 0.35); }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.field-error {
  font-size: 13px;
  color: #fca5a5;
  min-height: 0;
}
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-3); text-align: center; }

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}
.inline-form .input { flex: 1; border-radius: 999px; padding-inline: 24px; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal-scale.in { opacity: 1; transform: none; }

/* Hero entrance */
.js .rise { opacity: 0; transform: translateY(30px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .line-mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.js .line-mask > span { display: inline-block; transform: translateY(110%); animation: line-up 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes line-up { to { transform: none; } }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  z-index: 400;
  left: 50%;
  top: calc(var(--nav-h) + 12px);
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 12px;
  align-items: start;
  padding: 16px 16px 16px 18px;
  border-radius: 18px;
  background: rgba(14, 22, 40, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: toast-in 0.5s var(--ease);
}
.toast.out { animation: toast-out 0.35s var(--ease) forwards; }
.toast .t-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.toast.success .t-icon { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.toast.error .t-icon { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.toast .t-title { font-weight: 700; }
.toast .t-desc { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.toast .t-close { width: 28px; height: 28px; border-radius: 8px; color: var(--text-3); font-size: 18px; line-height: 1; }
.toast .t-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px) scale(0.97); } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed;
  z-index: 90;
  left: 10px;
  right: 10px;
  bottom: calc(10px + var(--safe-b));
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 22px;
  background: rgba(10, 16, 30, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.action-bar.show { transform: none; }
.action-bar a, .action-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-2);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}
.action-bar a:active, .action-bar button:active { background: rgba(255, 255, 255, 0.08); }
.action-bar svg { width: 21px; height: 21px; }
.action-bar .primary { background: var(--grad); color: #160d02; }
.action-bar .wa { color: #4ade80; }
body.has-bar { --bar-h: 84px; }

/* ---------- Floating buttons (chat / whatsapp) ---------- */
.fab-stack {
  position: fixed;
  z-index: 95;
  right: 14px;
  bottom: calc(var(--bar-h) + 14px + var(--safe-b));
  display: grid;
  gap: 12px;
  transition: bottom 0.4s var(--ease);
}
.fab-left { right: auto; left: 14px; }
.fab {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #160d02;
  background: var(--grad);
  box-shadow: 0 14px 34px -10px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.35s var(--ease);
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }
.fab.wa { background: var(--wa); color: #fff; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.7); }
.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: halo 3s var(--ease) infinite;
}
.fab.wa::after { border-color: var(--wa); }
.fab:not(.wa)::after { border-color: var(--gold); }
@keyframes halo { 0% { transform: scale(1); opacity: 0.6; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.fab-badge {
  position: absolute;
  top: -2px; right: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ember);
  border: 2px solid var(--bg);
}

/* ---------- Chat ---------- */
.chat {
  position: fixed;
  z-index: 300;
  inset: auto 0 0 0;
  height: min(86dvh, 680px);
  display: flex;
  flex-direction: column;
  background: #0b1222;
  border: 1px solid var(--line-strong);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.85);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow: hidden;
  padding-bottom: var(--safe-b);
}
.chat.open { transform: none; visibility: visible; transition: transform 0.5s var(--ease); }
.chat-scrim {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0s linear 0.4s;
}
.chat-scrim.open { opacity: 1; visibility: visible; transition: opacity 0.4s; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 16px 18px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0.02));
  border-bottom: 1px solid var(--line);
}
.chat-head .avatar {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad); color: #160d02; font-weight: 800;
}
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .name { font-weight: 700; line-height: 1.2; }
.chat-head .status { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.chat-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-close { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text-2); }
.chat-close:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.chat-close svg { width: 20px; height: 20px; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}
.msg {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-line;
  word-wrap: break-word;
  animation: msg-in 0.35s var(--ease);
}
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #160d02; font-weight: 550; border-bottom-right-radius: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.quick button {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-2);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  transition: background 0.2s, transform 0.2s;
}
.quick button:hover { background: rgba(var(--accent-rgb), 0.18); }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-6px); } }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.chat-input input {
  flex: 1;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 16px;
}
.chat-input input:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.7); }
.chat-input button {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad); color: #160d02;
}
.chat-input button svg { width: 20px; height: 20px; }
body.chat-lock { overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 0 calc(36px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer-grid { display: grid; gap: 40px; }
.footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-links { display: grid; gap: 4px; }
.footer-links a, .footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-2);
  text-align: left;
  transition: color 0.2s, transform 0.3s var(--ease);
}
.footer-links a:hover, .footer-links button:hover { color: var(--gold-2); transform: translateX(4px); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.socials a:hover { color: #160d02; background: var(--gold); border-color: var(--gold); translate: 0 -3px; }
.socials svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
}
.contact-line { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; color: var(--text-2); margin-bottom: 14px; }
.contact-line svg { width: 18px; height: 18px; color: var(--gold); margin-top: 3px; }
.contact-line a:hover { color: var(--gold-2); }

/* ---------- Marquee ---------- */
.marquee {
  --gap: 20px;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--gap);
  padding-right: var(--gap);
  flex: none;
  animation: marquee var(--dur, 60s) linear infinite;
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row.center { justify-content: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }
.only-mobile { display: initial; }
.only-desktop { display: none !important; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .inline-form { flex-direction: row; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .chat {
    inset: auto 20px calc(var(--bar-h) + 90px + var(--safe-b)) auto;
    width: 400px;
    height: min(640px, calc(100dvh - 140px));
    border-radius: 26px;
    transform: translateY(20px) scale(0.96);
    transform-origin: bottom right;
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0s linear 0.4s;
  }
  .chat.open { opacity: 1; transform: none; transition: transform 0.45s var(--ease), opacity 0.3s; }
  .chat-scrim { display: none; }
  body.chat-lock { overflow: auto; }
}
@media (min-width: 900px) {
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
}
@media (min-width: 1024px) {
  :root { --nav-h: 84px; }
  .nav-links { display: flex; }
  .nav-actions .btn { display: inline-flex; }
  .nav-phone { display: inline-flex; }
  .menu-btn { display: none; }
  .drawer { display: none; }
  .action-bar { display: none; }
  body.has-bar { --bar-h: 0px; }
  .only-mobile { display: none !important; }
  .only-desktop { display: initial !important; }
}

/* ---------- Motion & accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, .js .reveal-scale, .js .rise { opacity: 1; transform: none; }
  .js .line-mask > span { transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
@media (forced-colors: active) {
  .btn-primary, .fab, .brand-mark { border: 1px solid ButtonText; }
}
@media print {
  .nav, .drawer, .action-bar, .fab-stack, .chat, .chat-scrim, .ambient, .grain, .toasts { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

/* Stagger delays (CSP-safe, no inline styles) */
.d1 { --d: 0.1s; } .d2 { --d: 0.2s; } .d3 { --d: 0.3s; } .d4 { --d: 0.4s; } .d5 { --d: 0.5s; } .d6 { --d: 0.6s; } .d7 { --d: 0.7s; } .d8 { --d: 0.8s; }

/* ==========================================================================
   Cinematic motion layer
   ========================================================================== */
.progress-beam {
  position: fixed;
  z-index: 200;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Word-by-word heading reveal */
.split .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) rotate(2deg);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 1s var(--ease), filter 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.split.words-in .w { opacity: 1; transform: none; filter: none; }
.split br.w { display: initial; }

/* 3D tilt (stacks with hover lift via the independent `translate` property) */
.tilt {
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.45s var(--ease), translate 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), background 0.3s;
  will-change: transform;
}
.js .reveal.in.tilt, .js .reveal-scale.in.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.js .reveal.tilt:not(.in) { transform: translateY(28px); }

/* Magnetic buttons */
.btn-primary { translate: var(--tx, 0px) var(--ty, 0px); transition: transform 0.35s var(--ease), translate 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.btn-primary:hover { translate: var(--tx, 0px) calc(var(--ty, 0px) - 2px); }

/* Mobile: floating chat appears after the hero */
@media (max-width: 1023px) {
  .fab-stack { opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), bottom 0.4s var(--ease); }
  .past-hero .fab-stack { opacity: 1; transform: none; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .split .w { opacity: 1; transform: none; filter: none; }
  .tilt { transform: none !important; }
}

/* ==========================================================================
   Future layer — intro, transitions, cursor, scrub, finale, AI assistant
   ========================================================================== */

/* ---------- Cross-page cinematic transitions (native View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.45s cubic-bezier(0.7, 0, 0.84, 0) both; }
::view-transition-new(root) { animation: vt-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.015); filter: blur(8px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Intro / preloader ---------- */
html.is-loading { overflow: hidden; }
html.is-loading::after {
  /* instant cover before JS builds the preloader (prevents a flash) */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #03050d;
}
html.is-loading body * { animation-play-state: paused !important; }
html.is-loading .preloader, html.is-loading .preloader * { animation-play-state: running !important; }
.preloader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; pointer-events: none; }
.pl-panel {
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: radial-gradient(120% 120% at 50% 100%, #0b1030, #03050d 70%);
  transition: transform 1.1s cubic-bezier(0.77, 0, 0.18, 1);
}
.pl-top { top: 0; }
.pl-bottom { bottom: 0; background: radial-gradient(120% 120% at 50% 0%, #0b1030, #03050d 70%); }
.preloader.open .pl-top { transform: translateY(-101%); }
.preloader.open .pl-bottom { transform: translateY(101%); }
.pl-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  transition: opacity 0.4s, transform 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}
.preloader.open .pl-center { opacity: 0; transform: scale(0.92); }
.pl-mark { width: 92px; height: 92px; filter: drop-shadow(0 0 24px rgba(244, 166, 35, 0.45)); }
.pl-frame { stroke-dasharray: 460; stroke-dashoffset: 460; animation: pl-draw 1.3s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.pl-w { stroke-dasharray: 420; stroke-dashoffset: 420; animation: pl-draw 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
.pl-word {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: pl-fade 0.8s var(--ease) 0.5s forwards;
}
@keyframes pl-fade { to { opacity: 1; } }
.pl-bar { width: 160px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.pl-count { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- Scroll-scrubbed text ---------- */
.scrub .sw { color: rgba(245, 241, 232, 0.16); transition: color 0.35s var(--ease), text-shadow 0.35s; }
.scrub .sw.lit { color: inherit; }
.cream .scrub .sw { color: rgba(20, 26, 51, 0.16); }
.cream .scrub .sw.lit { color: inherit; }

/* ---------- Grand finale footer ---------- */
.finale {
  margin-top: 56px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 210, 122, 0.9), rgba(244, 166, 35, 0.35) 55%, rgba(244, 166, 35, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  user-select: none;
  pointer-events: none;
}
.theme-money .finale { background-image: linear-gradient(180deg, rgba(246, 220, 148, 0.9), rgba(201, 168, 76, 0.35) 55%, transparent); }
.theme-usa .finale { background-image: linear-gradient(180deg, rgba(125, 211, 252, 0.85), rgba(76, 201, 240, 0.25) 55%, transparent); }
.powered {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.powered a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.powered a:hover { color: var(--gold-2); border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.07); }
.powered strong { font-weight: 700; color: var(--text-2); }
.powered a:hover strong { color: var(--gold-2); }

/* ---------- Curtain reveals for visuals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .v-visual, .js .reveal-scale .coach-card, .js .reveal-scale .about-portrait, .js .reveal .model-panel-visual {
    clip-path: inset(100% 0 0 0 round 24px);
    transition: clip-path 1.3s cubic-bezier(0.77, 0, 0.18, 1) 0.15s;
  }
  .js .reveal.in .v-visual, .js .reveal-scale.in .coach-card, .js .reveal-scale.in .about-portrait {
    clip-path: inset(0 0 0 0 round 24px);
  }
}

/* ---------- AI assistant UI ---------- */
.orb {
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff4dc, #f4a623 40%, #e4572e 75%, #7c2d12);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.55), inset 0 -6px 14px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.orb i, .orb b {
  position: absolute;
  inset: -30%;
  border-radius: 45%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.5), transparent 40%);
  animation: orb-spin 4s linear infinite;
  mix-blend-mode: overlay;
}
.orb b { animation-duration: 6.5s; animation-direction: reverse; opacity: 0.6; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.chat-head .status::before { box-shadow: 0 0 8px var(--ok); }
.msg.streaming::after {
  content: "";
  display: inline-block;
  width: 7px; height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: caret 0.8s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 92%; }
.act {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  color: #160d02;
  background: var(--grad);
  box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), 0.9);
  transition: transform 0.25s var(--ease);
}
.act:hover { transform: translateY(-2px); }
.chat-foot { padding: 0 14px 10px; font-size: 11px; text-align: center; color: var(--text-3); background: rgba(0, 0, 0, 0.2); }
.chat-input { border-top: 1px solid var(--line); }
.chat { background: linear-gradient(180deg, #0c1428, #080d1b); }
.chat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.55), transparent 40%, transparent 70%, rgba(90, 110, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
