/* MotionMetrix waitlist styles.
   Sections 2 and 3 are copied verbatim from the platform's globals.css
   (plateform.motionmetrix.ai home page + sign-in modal), so this page
   matches it exactly. Section 4 holds the few waitlist-only additions. */

/* ═══ 1. Base tokens (from the platform's :root) ═══ */
:root {
  --fs-2xs: 0.75rem;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3rem;

  --background: #080807;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-solid: #100f0d;
  --surface-border: rgba(255, 255, 255, 0.08);
  --primary: #0177fd;
  --primary-hover: #3f91fd;
  --secondary: #00d4ff;
  --text-primary: #f5f3ef;
  --text-secondary: rgba(245, 243, 239, 0.5);
  --danger: #ef4444;
  --success: #22c55e;
  --input-bg: rgba(255, 255, 255, 0.03);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow-primary: 0 4px 16px rgba(1, 119, 253, 0.35);

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }
img, video { display: block; }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.b { width: 1em; height: 1em; flex: none; fill: currentColor; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }

/* ═══ 2. Platform home page (copied from globals.css) ═══ */
.auth-login-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 4px 16px;
  border: 0;
  border-radius: 999px;
  background: #f5f3ef;
  color: #0b0b0a;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: color 0.35s ease, box-shadow 0.4s var(--ease-out), transform 0.3s var(--ease-out);
}
.auth-login-btn-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
}
.auth-login-btn-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-login-btn-arrow svg {
  position: relative;
  transition: transform 0.35s var(--ease-out);
}
.auth-login-btn:hover,
.auth-login-btn:focus-visible {
  color: #fff;
  box-shadow: 0 0 0 4px rgba(1, 119, 253, 0.14), 0 10px 30px rgba(1, 119, 253, 0.4);
}
.auth-login-btn:hover .auth-login-btn-arrow::before,
.auth-login-btn:focus-visible .auth-login-btn-arrow::before {
  transform: scale(10);
}
.auth-login-btn:hover .auth-login-btn-arrow svg,
.auth-login-btn:focus-visible .auth-login-btn-arrow svg {
  transform: translateX(2px);
}
.auth-login-btn:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}
.auth-login-btn:active {
  transform: scale(0.98);
}
.auth-login-btn--lg {
  gap: 14px;
  padding: 6px 6px 6px 24px;
  font-size: 16px;
}
.auth-login-btn--lg .auth-login-btn-arrow {
  width: 38px;
  height: 38px;
}
.sidebar-wordmark {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-primary);
}
.sidebar-wordmark-accent {
  color: var(--primary);
  font-style: italic;
}
.home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
  min-height: 100dvh;
  padding: 168px 40px 120px;
  background:
    radial-gradient(ellipse at 65% 25%, rgba(1, 119, 253, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 22% 78%, rgba(0, 212, 255, 0.11) 0%, transparent 55%),
    linear-gradient(160deg, var(--background) 0%, var(--surface-solid) 100%);
  border-bottom: 1px solid var(--surface-border);
}
.home-hero-aurora {
  position: absolute;
  inset: -35%;
  z-index: 1;
  pointer-events: none;
  background: conic-gradient(from 120deg at 50% 50%,
    rgba(1, 119, 253, 0) 0deg,
    rgba(1, 119, 253, 0.16) 90deg,
    rgba(0, 212, 255, 0.14) 180deg,
    rgba(1, 119, 253, 0) 300deg);
  filter: blur(90px);
  opacity: 0.5;
  animation: heroAurora 26s linear infinite;
}
.home-hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  animation: heroScan 8s ease-in-out infinite;
}
.home-hero-hud {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  pointer-events: none;
}
.home-hero-hud--tl { top: 94px; left: 40px; }
.home-hero-hud--br { bottom: 26px; right: 40px; text-align: right; }
.home-hero-hud-label {
  font-size: var(--fs-2xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(1, 119, 253, 0.5);
}
.home-hero-hud-value {
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.4);
}
.home-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}
.home-hero-orb-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  left: 6%;
  background: radial-gradient(circle, rgba(1, 119, 253, 0.24), transparent 70%);
  animation: orbFloat1 8s ease-in-out infinite;
}
.home-hero-orb-2 {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: 52%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent 70%);
  animation: orbFloat2 10s ease-in-out infinite;
}
.home-hero-orb-3 {
  width: 260px;
  height: 260px;
  top: -80px;
  right: 8%;
  background: radial-gradient(circle, rgba(0, 80, 212, 0.18), transparent 70%);
  animation: orbFloat3 12s ease-in-out infinite;
}
.home-hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}
.home-hero-art { width: 100%; justify-self: end; max-width: 720px; }
.home-hero-content {
  max-width: 780px;
}
.home-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
  color: var(--text-primary);
}
.home-hero-content h1 em {
  font-style: italic;
  color: var(--primary);
}
.home-hero-content p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(245, 243, 239, 0.58);
  max-width: 560px;
  margin-bottom: 40px;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.home-cta-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 34px;
  border-radius: 999px;
  border: 1px solid rgba(1, 119, 253, 0.5);
  background: linear-gradient(180deg, rgba(1, 119, 253, 0.24), rgba(1, 119, 253, 0.1));
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(1, 119, 253, 0.22);
  transition: transform 0.4s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.home-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: heroSheen 4.5s ease-in-out infinite;
}
.home-cta-primary:hover {
  border-color: rgba(1, 119, 253, 0.95);
  box-shadow: 0 0 0 6px rgba(1, 119, 253, 0.12), 0 16px 54px rgba(1, 119, 253, 0.4);
}
.home-cta-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.home-cta-primary > span {
  position: relative;
  z-index: 1;
}
.home-cta-primary-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  transition: transform 0.3s var(--ease-out);
}
.home-cta-primary:hover .home-cta-primary-arrow {
  transform: translateX(4px);
}
.home-hero-quick {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.38);
}
.home-hero-quick button {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 2px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: rgba(245, 243, 239, 0.72);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.home-hero-quick button:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}
.home-hero-quick button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.home-hero-scrollcue {
  position: absolute;
  
  left: 0;
  right: 0;
  width: fit-content;
  margin-inline: auto;
  bottom: 26px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(245, 243, 239, 0.4);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease-out);
}
.home-hero-scrollcue:hover {
  color: var(--text-primary);
}
.home-hero-scrollcue svg {
  animation: heroBob 1.8s ease-in-out infinite;
}
.home-latest {
  background:
    linear-gradient(180deg, rgba(1, 119, 253, 0.05), transparent),
    var(--background);
  border-bottom: 1px solid var(--surface-border);
}
.home-latest-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.home-latest-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}
.home-latest-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
  animation: latestPulse 2.4s ease-in-out infinite;
}
.home-latest-marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.home-latest-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: latestMarquee 38s linear infinite;
}
.home-latest-marquee:hover .home-latest-track {
  animation-play-state: paused;
}
.home-latest-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--surface-border);
}
.home-latest-item > svg {
  flex-shrink: 0;
  color: var(--primary);
}
.home-latest-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.home-latest-item strong {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.home-latest-item span {
  font-size: var(--fs-2xs);
  line-height: 1.4;
  color: rgba(245, 243, 239, 0.5);
  white-space: nowrap;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal--in {
  opacity: 1;
  transform: none;
}
.type-caret {
  display: inline-block;
  width: 2px;
  height: 0.92em;
  margin-left: 0.06em;
  vertical-align: -0.08em;
  background: var(--secondary);
  border-radius: 1px;
  animation: caretBlink 1s steps(1, end) infinite;
}
.home-hero-content > * {
  animation: heroEnter 0.75s var(--ease-out) both;
}
.home-hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.home-hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.home-hero-content > *:nth-child(3) { animation-delay: 0.28s; }
.home-hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.home-hero-hud,
.home-hero-scrollcue {
  animation: heroEnter 0.9s var(--ease-out) both;
  animation-delay: 0.7s;
}
.home-models-strip.reveal--in .home-model-mark { opacity: 1; transform: none; }
.home-models-strip.reveal--in .home-model-mark:nth-child(1) { transition-delay: 0.02s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(2) { transition-delay: 0.07s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(3) { transition-delay: 0.12s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(4) { transition-delay: 0.17s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(5) { transition-delay: 0.22s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(6) { transition-delay: 0.27s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(7) { transition-delay: 0.32s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(8) { transition-delay: 0.37s; }
.home-models-strip.reveal--in .home-model-mark:nth-child(9) { transition-delay: 0.42s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card { opacity: 1; transform: none; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(1) { transition-delay: 0.03s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(2) { transition-delay: 0.09s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(3) { transition-delay: 0.15s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(4) { transition-delay: 0.21s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(5) { transition-delay: 0.27s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(6) { transition-delay: 0.33s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(7) { transition-delay: 0.39s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(8) { transition-delay: 0.45s; }
.app-main--hero-bleed .tool-grid.reveal--in .tool-card:nth-child(n+9) { transition-delay: 0.5s; }
.home-showcase {
  max-width: 1500px;
  margin: 0 auto;
  padding: 76px 40px 20px;
  scroll-margin-top: 90px;
  
  overflow-x: hidden;
}
.home-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.home-showcase-head-text {
  flex: 1 1 auto;
  max-width: 620px;
}
.home-showcase-head-strip {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  perspective: 1100px;
  perspective-origin: 50% 40%;
}
.hs-tile {
  --hs-face: #1c2740;
  --hs-face-lo: #0e1526;
  --hs-edge: #05080f;
  --hs-glow: rgba(1, 119, 253, 0.5);
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  color: #f5f3ef;
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(158deg, var(--hs-face) 0%, var(--hs-face-lo) 100%);
  box-shadow:
    inset 0 3px 4px rgba(255, 255, 255, 0.3),
    inset 0 -14px 20px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 0 var(--hs-edge),
    0 26px 34px rgba(0, 0, 0, 0.5),
    0 30px 60px -8px var(--hs-glow);
  transform:
    rotateX(16deg)
    rotateY(var(--hs-ry, 0deg))
    rotateZ(var(--hs-rz, 0deg))
    translateY(var(--hs-ty, 0px));
  animation: hsFloat var(--hs-dur, 9s) ease-in-out infinite;
  animation-delay: var(--hs-delay, 0s);
}
.hs-tile svg {
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}
.hs-tile:not(:first-child) { margin-left: -20px; }
.hs-tile-1 { --hs-ry: 20deg;  --hs-rz: -8deg; --hs-dur: 9s;  --hs-delay: 0s;    z-index: 1;
  --hs-face: #1a3358; --hs-face-lo: #0c1c33; --hs-glow: rgba(1, 119, 253, 0.55); }
.hs-tile-2 { --hs-ry: 10deg;  --hs-rz: 5deg;  --hs-dur: 11s; --hs-delay: -3s;   z-index: 2;
  --hs-face: #14384a; --hs-face-lo: #082430; --hs-glow: rgba(0, 212, 255, 0.5); }
.hs-tile-3 { --hs-ry: 0deg;   --hs-rz: -3deg; --hs-dur: 8s;  --hs-delay: -1.5s; z-index: 5;
  --hs-face: #223a63; --hs-face-lo: #0e1d3c; --hs-glow: rgba(80, 130, 255, 0.55); }
.hs-tile-4 { --hs-ry: -10deg; --hs-rz: 7deg;  --hs-dur: 12s; --hs-delay: -5s;   z-index: 3;
  --hs-face: #163a44; --hs-face-lo: #08262c; --hs-glow: rgba(0, 212, 255, 0.5); }
.hs-tile-5 { --hs-ry: -20deg; --hs-rz: -6deg; --hs-dur: 10s; --hs-delay: -2s;   z-index: 2;
  --hs-face: #2a2f5c; --hs-face-lo: #131636; --hs-glow: rgba(120, 110, 255, 0.5); }
.home-showcase-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 12px 0 12px;
  color: var(--text-primary);
}
.home-showcase-head h2 em,
.showcase-row-copy h3 em {
  font-style: italic;
  color: rgba(245, 243, 239, 0.38);
}
.home-showcase-head p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
}
.showcase-row.reveal--in .showcase-row-media,
.showcase-row.reveal--in .showcase-row-copy {
  opacity: 1;
  transform: none;
}
.showcase-row.reveal--in .showcase-row-copy { transition-delay: 0.1s; }
.showcase-row-copy .projects-hero-eyebrow {
  margin-bottom: 8px;
}
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), gap 0.2s var(--ease-out);
}
.showcase-link svg { flex-shrink: 0; transition: transform 0.2s var(--ease-out); }
.showcase-link:hover { color: var(--primary); gap: 12px; }
.showcase-link:hover svg { transform: translateX(2px); }
.showcase-link:disabled { opacity: 0.5; pointer-events: none; }
.showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-solid);
}
.showcase-media-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease-out), transform 8s linear;
}
.showcase-media-el--loaded {
  opacity: 1;
  transform: scale(1);
}
.showcase-media-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(100deg, rgba(1, 119, 253, 0.06) 30%, rgba(1, 119, 253, 0.16) 50%, rgba(1, 119, 253, 0.06) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  transition: opacity 0.5s var(--ease-out);
}
.showcase-media--cyan .showcase-media-skeleton {
  background: linear-gradient(100deg, rgba(0, 212, 255, 0.05) 30%, rgba(0, 212, 255, 0.14) 50%, rgba(0, 212, 255, 0.05) 70%);
  background-size: 200% 100%;
}
.showcase-media--violet .showcase-media-skeleton {
  background: linear-gradient(100deg, rgba(0, 80, 212, 0.06) 30%, rgba(80, 120, 255, 0.16) 50%, rgba(0, 80, 212, 0.06) 70%);
  background-size: 200% 100%;
}
.showcase-media-skeleton--hidden {
  opacity: 0;
  pointer-events: none;
}
.showcase-media-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(245, 243, 239, 0.5);
  animation: none;
}
.showcase-media-fallback span {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.showcase-media-ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  pointer-events: none;
}
.showcase-frame {
  position: relative;
  z-index: 1;
  width: 100%;
}
.showcase-frame-inner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.showcase-frame-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(6, 8, 20, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.showcase-frame-chip--blue { color: #86b6ff; }
.showcase-frame-chip--cyan { color: var(--secondary); }
.showcase-frame-chip--violet { color: #9db4ff; }
.showcase-frame-eq {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 48px;
  padding: 0 16px 10px;
  background: linear-gradient(to top, rgba(4, 6, 16, 0.78), transparent);
}
.showcase-frame-eq i {
  flex: 1;
  max-width: 7px;
  min-height: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  animation: eqBar 1.1s ease-in-out infinite;
}
.showcase-frame-eq i:nth-child(1) { animation-duration: 0.9s;  animation-delay: 0s;    }
.showcase-frame-eq i:nth-child(2) { animation-duration: 1.3s;  animation-delay: 0.15s; }
.showcase-frame-eq i:nth-child(3) { animation-duration: 1.0s;  animation-delay: 0.3s;  }
.showcase-frame-eq i:nth-child(4) { animation-duration: 1.5s;  animation-delay: 0.1s;  }
.showcase-frame-eq i:nth-child(5) { animation-duration: 0.8s;  animation-delay: 0.25s; }
.showcase-frame-eq i:nth-child(6) { animation-duration: 1.2s;  animation-delay: 0.05s; }
.showcase-frame-eq i:nth-child(7) { animation-duration: 1.4s;  animation-delay: 0.35s; }
.showcase-frame-eq i:nth-child(8) { animation-duration: 0.95s; animation-delay: 0.2s;  }
.showcase-frame-eq i:nth-child(9) { animation-duration: 1.25s; animation-delay: 0.4s;  }
.showcase-frame-eq i:nth-child(10) { animation-duration: 1.05s; animation-delay: 0.1s;  }
.showcase-frame-eq i:nth-child(11) { animation-duration: 1.35s; animation-delay: 0.3s;  }
.projects-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}
.asset-skeleton--overlay {
  position: absolute;
  inset: 0;
  margin-bottom: 0;
  border-radius: 0;
  z-index: 1;
}
.asset-skeleton {
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(1, 119, 253, 0.06) 30%, rgba(1, 119, 253, 0.16) 50%, rgba(1, 119, 253, 0.06) 70%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}
.app-footer {
  margin-top: 64px;
  border-top: 1px solid var(--surface-border);
  padding: 48px 40px 24px;
}
.app-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--surface-border);
  max-width: 1500px;
  margin: 0 auto;
}
.app-footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text-primary);
}
.app-footer-brand-col p {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 240px;
}
.app-footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  font-weight: 500;
}
.app-footer-col a {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.app-footer-col a:hover {
  color: var(--text-primary);
}
.app-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  transition: color 0.2s, border-color 0.2s;
}
.app-footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}
.app-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  max-width: 1500px;
  margin: 0 auto;
}
.app-footer-bottom span {
  font-family: var(--font-sans);
  font-size: var(--fs-2xs);
  color: var(--text-secondary);
  opacity: 0.7;
}
.thl-rail-wrap { position: relative; }
.thl-rail {
  display: flex;
  gap: 16px;
  padding: 6px 2px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent 100%);
}
.thl-rail::-webkit-scrollbar { display: none; }
.thl-rail:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 14px;
}
.thl-rail > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.thl-rail-btn {
  position: absolute;
  top: calc(50% - 20px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(16, 15, 13, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.thl-rail-btn--prev { left: -16px; }
.thl-rail-btn--next { right: -16px; }
.thl-rail-btn:hover:not(:disabled) { background: var(--primary); transform: scale(1.06); }
.thl-rail-btn:disabled { opacity: 0; pointer-events: none; }
.thl-rail-wrap--scenes-v .thl-scene { width: 170px; }
.thl-rail-wrap--scenes-v .thl-scene-media { aspect-ratio: 9 / 16; }
.thl-rail-wrap--scenes-v .thl-scene-tag {
  white-space: normal;
  border-radius: 10px;
  line-height: 1.35;
  text-overflow: clip;
}
.thl-rail-wrap--steps .thl-rail { gap: 14px; }
.thl-rail-wrap--cards .caption-tool-gallery-card { width: 200px; }
.thl-rail-wrap--steps-wide .thl-step { width: 246px; }
.home-showcase-rail { margin-top: 8px; }
.hsc {
  display: flex;
  flex-direction: column;
  width: 360px;
  padding-bottom: 6px;
}
.hsc-media {
  position: relative;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease-out);
}
.hsc:hover .hsc-media { transform: translateY(-3px); }
.hsc-new,
.home-latest-new {
  font-family: var(--font-mono);
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #0a9bff);
}
.hsc-new {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
}
.home-latest-new {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  vertical-align: 1px;
}
.hsc-eyebrow {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.42);
}
.hsc h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}
.hsc p {
  margin: 0 0 14px;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}
.hsc .showcase-link { align-self: flex-start; margin-top: auto; }
.thl-rail-wrap--steps .thl-rail > :first-child { margin-left: auto; }
.thl-rail-wrap--steps .thl-rail > :last-child { margin-right: auto; }
.home-hero--gallery { background: var(--background); }
.home-hero--gallery .home-hero-inner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  max-width: 980px;
}
.home-hero--gallery .home-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
}
.home-hero--gallery .home-hero-content h1 { text-shadow: 0 10px 60px rgba(0, 0, 0, 0.7); }
.home-hero--gallery .home-hero-content > p { max-width: 560px; }
.home-hero--gallery .home-hero-actions { justify-content: center; }
.home-hero--gallery .home-hero-quick { justify-content: center; }
.home-hero-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  animation: heroEnter 0.75s var(--ease-out) 0.5s both;
}
.home-hero-tool {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  color: rgba(245, 243, 239, 0.8);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.home-hero-tool:hover {
  color: var(--text-primary);
  border-color: rgba(1, 119, 253, 0.55);
  background: rgba(1, 119, 253, 0.14);
}
.hhg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hhg-stage {
  position: absolute;
  inset: -20% -10%;
  perspective: 1400px;
  perspective-origin: 50% 35%;
}
.hhg-wall {
  --gap: 22px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2600px;
  height: 2600px;
  margin: -1300px 0 0 -1300px;
  display: flex;
  gap: var(--gap);
  justify-content: center;
  transform: rotateX(48deg) rotateZ(-22deg) translateZ(-120px);
  transform-style: preserve-3d;
}
.hhg-col {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding-bottom: var(--gap);
  width: 250px;
  animation: hhgUp 60s linear infinite;
  will-change: transform;
}
.hhg-col:nth-child(even) { animation-name: hhgDown; animation-duration: 70s; }
.hhg-col:nth-child(3n) { animation-duration: 54s; }
.hhg-tile {
  position: relative;
  flex: none;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.hhg-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hhg-tile--p { aspect-ratio: 9 / 16; }
.hhg-tile--l { aspect-ratio: 16 / 10; }
.hhg-tile--s { aspect-ratio: 1; }
.hhg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hhg-img--on { opacity: 1; }
.hhg-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(1, 119, 253, 0.26), transparent 65%);
  filter: blur(30px);
}
.hhg-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 64% 60% at 50% 50%, rgba(8, 8, 7, 0.95) 0%, rgba(8, 8, 7, 0.86) 45%, rgba(8, 8, 7, 0.42) 74%, rgba(8, 8, 7, 0.08) 94%),
    linear-gradient(180deg, rgba(8, 8, 7, 0.95) 0%, rgba(8, 8, 7, 0) 20%, rgba(8, 8, 7, 0) 72%, var(--background) 100%);
}
.hts {
  --hts-top: 74px;                 
  --hts-bottom: 0px;
  position: relative;
  height: calc(var(--n) * 90vh + 10vh);
}
.hts-pin {
  position: sticky;
  top: var(--hts-top);
  height: calc(100svh - var(--hts-top) - var(--hts-bottom));
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: 3vh 4vw;
}
.hts-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.hts-title em { font-style: italic; color: var(--primary); }
.hts-index { position: relative; list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; }
.hts-index-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  width: 100%;
  padding: 9px 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.35vw, 21px);
  color: rgba(245, 243, 239, 0.32);
  transition: color 0.35s ease, transform 0.35s var(--ease-out);
}
.hts-index-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 243, 239, 0.25);
  transition: color 0.35s ease;
}
.hts-index-item:hover { color: rgba(245, 243, 239, 0.6); }
.hts-index-item--on { color: var(--text-primary); font-style: italic; transform: translateX(6px); }
.hts-index-item--on span { color: var(--secondary); }
.hts-meter { margin-top: 18px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hts-meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.hts-deck { position: relative; height: min(100%, 800px); }
.hts-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: 26px 26px 22px;
  border-radius: 30px;
  overflow: hidden;
  transform-origin: 50% 0%;
  will-change: transform;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.45), 0 30px 80px rgba(0, 0, 0, 0.35);
}
.hts-card--blue { background: linear-gradient(160deg, #1a87ff, #0158c9); color: #fff; }
.hts-card--white { background: #f5f3ef; color: #111; }
.hts-card--gray { background: linear-gradient(160deg, #2d2f35, #1f2126); color: var(--text-primary); }
.hts-card-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.hts-card-num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; opacity: 0.7; }
.hts-card h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
}
.hts-card h3 em { font-style: italic; }
.hts-card p { max-width: 460px; margin: 10px 0 0; font-size: 16px; line-height: 1.55; opacity: 0.78; }
.hts-card-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 9px 9px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.hts-card-go:hover { transform: translateX(3px); }
.hts-card-go b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.hts-card--blue .hts-card-go { background: #fff; color: #0158c9; }
.hts-card--blue .hts-card-go b { background: #0158c9; color: #fff; }
.hts-card--white .hts-card-go { background: #111; color: #f5f3ef; }
.hts-card--white .hts-card-go b { background: var(--primary); color: #fff; }
.hts-card--gray .hts-card-go { background: var(--primary); color: #fff; }
.hts-card--gray .hts-card-go b { background: #fff; color: var(--primary); }
.hts-media { position: relative; min-height: 0; border-radius: 20px; overflow: hidden; background: #000; }
.hts-card--white .hts-media { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.hts-still,
.hts-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hts-still { opacity: 0; transition: opacity 0.5s ease; }
.hts-still--on { opacity: 1; }
.hts-video { opacity: 0; transition: opacity 0.5s ease; }
.hts-video--live { opacity: 1; }
.hts-card-shade { position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: 0; pointer-events: none; }
.home-sec-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.home-sec-title em { font-style: italic; color: var(--primary); }
.home-sec-lead { margin: 14px auto 0; max-width: 520px; font-size: 16px; line-height: 1.55; color: var(--text-secondary); }
.home-fade-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity 0.6s ease;
}
.home-fade-img--on { opacity: 1; }
.hmw { position: relative; padding: 120px 0 110px; overflow: hidden; }
.hmw-head { text-align: center; padding: 0 24px; position: relative; z-index: 2; }
.hmw-wall {
  --hmw-h: 230px;
  position: relative;
  margin-top: 64px;
  display: flex; flex-direction: column; gap: 16px;
  transform: rotate(-3deg) scale(1.06);
}
.hmw::before, .hmw::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 18vw; z-index: 3; pointer-events: none;
}
.hmw::before { left: 0; background: linear-gradient(90deg, #080807 10%, rgba(8, 8, 7, 0)); }
.hmw::after { right: 0; background: linear-gradient(270deg, #080807 10%, rgba(8, 8, 7, 0)); }
.hmw-row { display: flex; gap: 16px; width: max-content; will-change: transform; }
.hmw-row > .hmw-tile { flex: none; }
.hmw-row--a { animation: hmwLeft 70s linear infinite; }
.hmw-row--b { animation: hmwRight 80s linear infinite; }
.hmw-row { padding-right: 16px; }
.hmw-tile {
  position: relative; height: var(--hmw-h); border-radius: 16px; overflow: hidden;
  background: #121210; border: 1px solid rgba(245, 243, 239, 0.06);
}
.hmw-tile--p { aspect-ratio: 9 / 16; }
.hmw-tile--l { aspect-ratio: 16 / 10; }
.hmw-tile--s { aspect-ratio: 1; }
.hnum { position: relative; padding: 40px 0 110px; }
.hnum-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.hnum-head { text-align: center; }
.hnum-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hnum-card {
  position: relative; padding: 30px 26px 28px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 243, 239, 0.045), rgba(245, 243, 239, 0.015));
  border: 1px solid rgba(245, 243, 239, 0.08);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease;
}
.hnum-card:hover { border-color: rgba(1, 119, 253, 0.45); }
.hnum-inner.reveal--in .hnum-card { opacity: 1; transform: none; }
.hnum-inner.reveal--in .hnum-card:nth-child(2) { transition-delay: 0.08s; }
.hnum-inner.reveal--in .hnum-card:nth-child(3) { transition-delay: 0.16s; }
.hnum-inner.reveal--in .hnum-card:nth-child(4) { transition-delay: 0.24s; }
.hnum-n {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 5vw, 72px); line-height: 1;
  background: linear-gradient(135deg, #f5f3ef 20%, #00d4ff 70%, #0177fd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hnum-card span { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.hnum-models {
  margin-top: 56px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.hnum-track { display: flex; gap: 12px; width: max-content; padding-right: 12px; animation: hmwLeft 48s linear infinite; }
.hnum-models:hover .hnum-track { animation-play-state: paused; }
.hnum-pill {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  background: rgba(245, 243, 239, 0.04); border: 1px solid rgba(245, 243, 239, 0.08);
  font-size: 14px; white-space: nowrap;
}
.hnum-pill i {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245, 243, 239, 0.08); color: #f5f3ef;
}
.hnum-pill b { font-weight: 600; color: var(--text-primary); }
.hnum-pill > span { color: var(--text-secondary); }
.hhw { max-width: 1180px; margin: 0 auto; padding: 40px 32px 100px; }
.hhw-head { text-align: center; }
.hhw-steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hhw-step {
  border-radius: 22px; overflow: hidden;
  background: #0f0f0d; border: 1px solid rgba(245, 243, 239, 0.08);
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hhw-steps.reveal--in .hhw-step { opacity: 1; transform: none; }
.hhw-steps.reveal--in .hhw-step:nth-child(2) { transition-delay: 0.1s; }
.hhw-steps.reveal--in .hhw-step:nth-child(3) { transition-delay: 0.2s; }
.hhw-copy { padding: 22px 24px 26px; }
.hhw-kicker { font-family: var(--font-mono, 'DM Mono', monospace); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--secondary); }
.hhw-kicker b { color: var(--text-secondary); font-weight: 500; margin-right: 6px; }
.hhw-copy h3 { margin: 10px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-primary); }
.hhw-copy p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
.hhw-vis {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, rgba(1, 119, 253, 0.16), transparent 60%), #0b0b0a;
  border-bottom: 1px solid rgba(245, 243, 239, 0.06);
}
.hhw-vis--type { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px; }
.hhw-prompt {
  border-radius: 14px; padding: 14px 16px; min-height: 96px;
  background: rgba(245, 243, 239, 0.05); border: 1px solid rgba(245, 243, 239, 0.1);
}
.hhw-prompt-label { font-family: var(--font-mono, 'DM Mono', monospace); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--secondary); }
.hhw-prompt p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-primary); }
.hhw-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--secondary); animation: hhwBlink 1s steps(1) infinite; }
.hhw-prompt-foot { display: flex; gap: 8px; align-items: center; }
.hhw-prompt-foot span { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(245, 243, 239, 0.06); color: var(--text-secondary); }
.hhw-prompt-foot b { margin-left: auto; font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--primary); color: #fff; }
.hhw-shot { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 0.8s ease, transform 2.4s ease; }
.hhw-shot--on { opacity: 1; transform: scale(1); }
.hhw-model {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 8, 7, 0.6); border: 1px solid rgba(245, 243, 239, 0.14); color: #f5f3ef;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hhw-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 3px; border-radius: 3px; background: rgba(245, 243, 239, 0.18); overflow: hidden; z-index: 2; }
.hhw-bar-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.hhw-bar-fill--run { animation: hhwFill linear forwards; }
.hhw-vis--edit { display: flex; align-items: center; padding: 20px 18px; }
.hhw-tl { position: relative; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.hhw-track { display: flex; gap: 4px; height: 26px; }
.hhw-track--video { height: 58px; }
.hhw-clip { position: relative; flex: 1; border-radius: 8px; overflow: hidden; background: #161614; border: 1px solid rgba(1, 119, 253, 0.5); }
.hhw-track--caption span {
  display: flex; align-items: center; padding: 0 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
  background: rgba(1, 119, 253, 0.22); color: #cfe3ff; border: 1px solid rgba(1, 119, 253, 0.4);
}
.hhw-track--audio { align-items: center; gap: 2px; padding: 0 4px; border-radius: 6px; background: rgba(0, 212, 255, 0.07); }
.hhw-track--audio i { flex: 1; border-radius: 2px; background: rgba(0, 212, 255, 0.55); }
.hhw-playhead {
  position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; background: var(--secondary);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
}
.hhw-playhead::before { content: ''; position: absolute; top: -5px; left: -5px; width: 12px; height: 12px; border-radius: 3px; background: var(--secondary); }
.hhw-vis--live .hhw-playhead { animation: hhwPlay 6s linear infinite; }
.hcta { padding: 0 32px 110px; }
.hcta-band {
  position: relative; max-width: 1180px; margin: 0 auto; min-height: 440px;
  border-radius: 32px; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; text-align: center;
  border: 1px solid rgba(245, 243, 239, 0.08);
  opacity: 0; transform: translateY(24px) scale(0.985);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hcta-band.reveal--in { opacity: 1; transform: none; }
.hcta-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hcta-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(8, 8, 7, 0.72), rgba(8, 8, 7, 0.35) 70%, rgba(8, 8, 7, 0.55)),
    linear-gradient(135deg, rgba(1, 119, 253, 0.35), rgba(0, 212, 255, 0.08) 60%, rgba(8, 8, 7, 0.2));
}
.hcta-grid {
  position: absolute; left: 50%; top: 50%; width: 150%;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px;
  transform: translate(-50%, -50%) rotate(-12deg);
  filter: blur(3px) saturate(1.1);
  animation: hctaDrift 40s ease-in-out infinite alternate;
}
.hcta-tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #141412; }
.hcta-content { position: relative; padding: 60px 28px; }
.hcta-btn {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: #080807; background: #f5f3ef;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hcta-btn b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; transition: transform 0.25s ease; }
.hcta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(1, 119, 253, 0.35); }
.hcta-btn:hover b { transform: translateX(3px); }
.hcta-btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.home-latest { background: var(--background); border-bottom: 0; padding: 72px 0 40px; }
.home-latest-inner {
  max-width: none; padding: 0 0 0 max(32px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; gap: 40px;
}
.home-latest-tag {
  flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  font: inherit; letter-spacing: normal; text-transform: none; color: inherit;
}
.home-latest-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary);
}
.home-latest-tag h2 {
  margin: 0; font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 50px); font-weight: 700; line-height: 1;
  letter-spacing: -0.015em; color: var(--text-primary);
}
.home-latest-tag h2 em { font-style: italic; color: var(--primary); }
.home-latest-marquee {
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 92%, transparent);
}
.home-latest-track { align-items: stretch; gap: 14px; padding-right: 14px; animation-duration: 60s; }
.home-latest-item {
  width: 270px; padding: 18px 20px 20px; margin: 0; border: 0; border-radius: 22px;
  flex-direction: column; align-items: flex-start; gap: 6px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-latest-item:hover { transform: translateY(-4px) rotate(-1deg); }
.home-latest-item--blue { background: linear-gradient(160deg, #1a87ff, #0158c9); color: #fff; }
.home-latest-item--white { background: #f5f3ef; color: #111; }
.home-latest-item--gray { background: linear-gradient(160deg, #2d2f35, #1f2126); color: var(--text-primary); }
.home-latest-item .home-latest-item-top { width: 100%; display: flex; flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.home-latest-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.home-latest-item > .home-latest-item-top svg { color: inherit; }
.home-latest-item--blue .home-latest-icon { background: rgba(255, 255, 255, 0.18); }
.home-latest-item--white .home-latest-icon { background: #111; color: #f5f3ef; }
.home-latest-item--gray .home-latest-icon { background: var(--primary); color: #fff; }
.home-latest-item strong {
  font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.1; color: inherit; white-space: normal;
}
.home-latest-item span:not(.home-latest-icon) {
  font-size: 13.5px; line-height: 1.45; color: inherit; opacity: 0.75; white-space: normal;
}
.home-latest-new { margin: 0; font-size: 10px; padding: 4px 10px; }
.home-latest-item--blue .home-latest-new { background: #fff; color: #0158c9; }
.home-hero--gallery { border-bottom: 0; clip-path: inset(0); }
.hhg { clip-path: inset(0); isolation: isolate; }
.hhg-fog { inset: -2px; }
.hhg-fog::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: var(--background);
}
.hts-index-item,
.hts-card h3,
.hsc h3,
.showcase-row-copy h3,
.hnum-n,
.hhw-copy h3,
.home-latest-item strong,
.tl-text h3 {
  font-family: var(--font-sans);
  font-style: normal;
}
.hts-card h3 em,
.tl-text h3 em { font-style: normal; }
.hts-index-item { font-size: clamp(15px, 1.1vw, 17px); font-weight: 500; }
.hts-index-item--on { font-style: normal; font-weight: 600; }
.hts-card h3 { font-weight: 700; letter-spacing: -0.03em; font-size: clamp(30px, 3vw, 48px); }
.hts-card h3 em { font-weight: 400; opacity: 0.85; }
.hsc h3, .showcase-row-copy h3 { font-weight: 600; letter-spacing: -0.01em; }
.hnum-n { font-weight: 700; letter-spacing: -0.04em; }
.hhw-copy h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.home-latest-item strong { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.home-cta-primary--solid {
  gap: 16px;
  padding: 7px 7px 7px 28px;
  border: 0;
  background: #f5f3ef;
  color: #0b0b0a;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  isolation: isolate;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: color 0.35s ease, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.home-cta-primary--solid::before { display: none; }
.home-cta-primary--solid .home-cta-primary-arrow {
  z-index: auto;               
  width: 40px;
  height: 40px;
}
.home-cta-primary--solid .home-cta-primary-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--primary);
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.home-cta-primary--solid .home-cta-primary-arrow svg {
  position: relative;
  z-index: 1;
  transition: transform 0.35s var(--ease-out);
}
.home-cta-primary--solid:hover,
.home-cta-primary--solid:focus-visible {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 6px rgba(1, 119, 253, 0.14), 0 18px 54px rgba(1, 119, 253, 0.45);
}
.home-cta-primary--solid:hover .home-cta-primary-arrow,
.home-cta-primary--solid:focus-visible .home-cta-primary-arrow { transform: none; }
.home-cta-primary--solid:hover .home-cta-primary-arrow::before,
.home-cta-primary--solid:focus-visible .home-cta-primary-arrow::before { transform: scale(14); }
.home-cta-primary--solid:hover .home-cta-primary-arrow svg,
.home-cta-primary--solid:focus-visible .home-cta-primary-arrow svg { transform: translateX(3px); }
.home-cta-primary--solid:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }
.tk-section > .thl-rail-wrap, .tk-section > .tk-toggle { max-width: 1240px; margin-left: auto; margin-right: auto; }
.tk-head .home-sec-lead { max-width: 600px; }
.tk-features.reveal--in .tk-feature { opacity: 1; transform: none; }
.tk-features.reveal--in .tk-feature:nth-child(2) { transition-delay: 0.06s; }
.tk-features.reveal--in .tk-feature:nth-child(3) { transition-delay: 0.12s; }
.tk-features.reveal--in .tk-feature:nth-child(4) { transition-delay: 0.18s; }
.tk-features.reveal--in .tk-feature:nth-child(5) { transition-delay: 0.24s; }
.tk-features.reveal--in .tk-feature:nth-child(6) { transition-delay: 0.3s; }
.tk-steps.reveal--in .tk-step { opacity: 1; transform: none; }
.tk-steps.reveal--in .tk-step:nth-child(2) { transition-delay: 0.06s; }
.tk-steps.reveal--in .tk-step:nth-child(3) { transition-delay: 0.12s; }
.tk-steps.reveal--in .tk-step:nth-child(4) { transition-delay: 0.18s; }
.tk-steps.reveal--in .tk-step:nth-child(5) { transition-delay: 0.24s; }
.tk-steps.reveal--in .tk-step:nth-child(6) { transition-delay: 0.3s; }
.tk .thl-rail { padding-top: 12px; padding-bottom: 18px; }
.arena-card-cover .home-fade-img { transition: opacity 0.5s ease, transform 0.5s ease; }
.arena-card:hover .arena-card-cover .home-fade-img--on { transform: scale(1.03); }
.arena-hero-slide video, .arena-hero-slide .home-fade-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arena-hero-slide--on video, .arena-hero-slide--on .home-fade-img { animation: arenaPush 7s ease-out forwards; }
@media (prefers-reduced-motion: reduce) {
  .auth-login-btn,
  .auth-login-btn-arrow::before,
  .auth-login-btn-arrow svg { transition: none; }
  .home-hero-aurora,
  .home-hero-scan,
  .home-hero-content h1 em,
  .home-cta-primary::before,
  .home-hero-scrollcue svg,
  .home-latest-dot,
  .showcase-frame-eq i,
  .hs-tile {
    animation: none !important;
  }
  .home-hero-scan { opacity: 0; }
  .reveal,
  .home-hero-content > *,
  .home-hero-hud,
  .home-hero-scrollcue,
  .home-models-strip .home-model-mark,
  .app-main--hero-bleed .tool-grid .tool-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .type-caret { animation: none; }
  .home-latest-track { animation: none !important; }
  .home-latest-marquee { overflow-x: auto; }
  .home-latest-item[aria-hidden="true"] { display: none; }
  .hhg-col { animation: none; }
  .hmw-row, .hnum-track, .hcta-grid, .hhw-caret { animation: none !important; }
  .hmw-row--b { transform: translateX(-25%); }
  .hnum-models { overflow-x: auto; }
  .tl-card, .tl-media img, .tl-media video, .home-latest-item { transition: none; }
  .home-cta-primary--solid,
  .home-cta-primary--solid .home-cta-primary-arrow::before,
  .home-cta-primary--solid .home-cta-primary-arrow svg { transition: none; }
  .arena-hero-slide, .arena-hero-slide--on video, .arena-hero-slide--on .home-fade-img { transition: none; animation: none; }
}
@media (max-width: 1000px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .home-hero-art { justify-self: center; max-width: 560px; }
  .home-showcase-head { display: block; }
  .home-showcase-head-strip { display: none; }
}
@media (max-width: 1024px) {
  .home-hero {
    min-height: calc(100dvh - 56px);
  }
  .app-footer {
    padding: 32px 20px 20px;
  }
  .app-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .app-footer-brand-col {
    grid-column: 1 / -1;
  }
  .app-footer-brand-col p {
    max-width: none;
  }
  .app-footer-bottom {
    justify-content: center;
    padding-top: 16px;
  }
  .app-footer--hide-mobile {
    display: none;
  }
  .hts { --hts-top: 56px; --hts-bottom: 64px; }
}
@media (max-width: 768px) {
  .home-hero {
    min-height: calc(100dvh - 56px - 64px);
    padding: 28px 20px 58px;
    justify-content: flex-start;
  }
  .home-hero-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 4px;
  }
  .home-hero-content h1 { margin: 12px 0 16px; }
  .home-hero-art {
    flex: 1 1 0;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .home-hero--video .home-hero-art {
    height: auto;
    max-width: none;
    width: 100%;
  }
  .home-hero-scrollcue { bottom: 12px; }
  .home-hero-content {
    max-width: 100%;
  }
  .home-hero-hud--tl { top: 16px; left: 20px; }
  .home-hero-hud--br { bottom: 78px; right: 20px; }
  .home-hero-actions {
    gap: 18px;
  }
  .home-hero--gallery { justify-content: center; }
  .home-hero--gallery .home-hero-inner { flex: 0 0 auto; }
  .hhg-wall { --gap: 14px; transform: rotateX(48deg) rotateZ(-22deg) translateZ(-460px); }
  .hhg-col { width: 150px; }
  .hhg-tile { border-radius: 12px; }
  .hhg-stage { perspective: 900px; }
  .hhg-fog {
    background:
      radial-gradient(ellipse 88% 50% at 50% 50%, rgba(8, 8, 7, 0.95) 0%, rgba(8, 8, 7, 0.86) 52%, rgba(8, 8, 7, 0.4) 82%, rgba(8, 8, 7, 0.1) 100%),
      linear-gradient(180deg, rgba(8, 8, 7, 0.9) 0%, rgba(8, 8, 7, 0) 16%, rgba(8, 8, 7, 0) 80%, var(--background) 100%);
  }
  .home-hero-tools { margin-top: 20px; gap: 6px; }
  .home-hero-tool { padding: 6px 11px; font-size: var(--fs-2xs); }
}
@media (max-width: 768px) and (max-height: 720px) {
  .home-hero-art { display: none; }
}
@media (max-width: 640px) {
  .home-latest-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
  }
  .home-latest-marquee { width: 100%; }
  .hsc { width: 290px; }
  .home-cta-primary--solid { font-size: 15.5px; padding: 6px 6px 6px 24px; }
  .home-cta-primary--solid .home-cta-primary-arrow { width: 38px; height: 38px; }
}
@media (max-width: 1240px) {
  .home-showcase-head { gap: 32px; }
  .hs-tile { width: 90px; height: 90px; border-radius: 24px; }
  .hs-tile svg { width: 34px; height: 34px; }
  .hs-tile:not(:first-child) { margin-left: -18px; }
}
@media (max-width: 860px) {
  .home-showcase { padding: 52px 20px 12px; }
  .showcase-row.reveal--in .showcase-row-media,
  .showcase-row.reveal--in .showcase-row-copy {
    transform: none;
  }
  .hts-pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px 16px; }
  .hts-title { font-size: 26px; margin-top: 6px; }
  .hts-index { flex-direction: row; overflow-x: auto; gap: 14px; margin-top: 10px; scrollbar-width: none; }
  .hts-index::-webkit-scrollbar { display: none; }
  .hts-index-item { grid-template-columns: auto auto; gap: 6px; padding: 4px 0; white-space: nowrap; font-size: 16px; }
  .hts-index-item--on { transform: none; }
  .hts-meter { display: none; }
  .hts-deck { height: calc(100% - 26px); margin-top: 26px; }
  .hts-card { padding: 16px; gap: 14px; border-radius: 22px; }
  .hts-card-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hts-card h3 { font-size: 30px; }
  .hts-card p { font-size: 14px; }
  .hts-card-go { padding: 7px 7px 7px 16px; font-size: 11px; }
  .hts-card-go b { width: 28px; height: 28px; }
}
@media (max-width: 900px) {
  .app-footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .app-footer-brand-col {
    grid-column: 1 / -1;
  }
  .hnum-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .app-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .app-footer-bottom {
    justify-content: center;
    text-align: center;
  }
}
@media (hover: none), (max-width: 640px) {
  .thl-rail-btn { display: none; }
}
@media (max-width: 760px) {
  .hmw { padding: 84px 0 76px; }
  .hmw-wall { --hmw-h: 150px; margin-top: 44px; gap: 10px; }
  .hmw-row { gap: 10px; padding-right: 10px; }
  .hmw-tile { border-radius: 12px; }
  .hmw::before, .hmw::after { width: 12vw; }
  .hnum { padding: 24px 0 80px; }
  .hnum-inner { padding: 0 16px; }
  .hnum-grid { margin-top: 32px; }
  .hnum-card { padding: 22px 18px; border-radius: 16px; }
  .hnum-card span { font-size: 13px; }
  .hnum-models { margin-top: 36px; }
  .hnum-pill { font-size: 13px; padding: 8px 14px 8px 8px; }
  .hnum-pill i { width: 28px; height: 28px; }
  .hhw { padding: 24px 16px 72px; }
  .hhw-steps { margin-top: 36px; gap: 14px; }
  .hhw-copy { padding: 18px 18px 22px; }
  .hhw-copy h3 { font-size: 21px; }
  .hcta { padding: 0 16px 72px; }
  .hcta-band { min-height: 400px; border-radius: 24px; }
  .hcta-grid { width: 190%; grid-template-columns: repeat(8, 1fr); gap: 8px; }
  .hcta-content { padding: 48px 20px; }
  .home-latest { padding: 52px 0 24px; }
  .home-latest-inner { flex-direction: column; align-items: stretch; gap: 20px; padding: 0; }
  .home-latest-tag { padding: 0 16px; }
  .home-latest-item { width: 232px; padding: 16px 16px 18px; border-radius: 18px; }
  .home-latest-item strong { font-size: 19px; }
  .home-latest-item strong { font-size: 16px; }
  .hhw-copy h3 { font-size: 18px; }
}
@media (max-width: 960px) {
  .hhw-steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}
@keyframes orbFloat1 {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes orbFloat2 {
  0%, 100% { opacity: 0.5; }
  33% { opacity: 0.9; }
  66% { opacity: 0.6; }
}
@keyframes orbFloat3 {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes heroAurora {
  to { transform: rotate(360deg); }
}
@keyframes heroScan {
  0%   { transform: translateY(0); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateY(min(80vh, 920px)); opacity: 0; }
}
@keyframes heroSheen {
  0%   { left: -60%; }
  55%  { left: 140%; }
  100% { left: 140%; }
}
@keyframes heroBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@keyframes latestPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(0, 212, 255, 0); }
}
@keyframes latestMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes caretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes heroEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hsFloat {
  0%, 100% { transform: rotateX(16deg) rotateY(var(--hs-ry, 0deg)) rotateZ(var(--hs-rz, 0deg)) translateY(0); }
  50%      { transform: rotateX(16deg) rotateY(var(--hs-ry, 0deg)) rotateZ(var(--hs-rz, 0deg)) translateY(-12px); }
}
@keyframes eqBar {
  0%, 100% { height: 16%; }
  50%      { height: 78%; }
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes hhgUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes hhgDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes hmwLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hmwRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes hhwBlink { 50% { opacity: 0; } }
@keyframes hhwFill { from { width: 0; } to { width: 100%; } }
@keyframes hhwPlay { from { left: 0; } to { left: calc(100% - 2px); } }
@keyframes hctaDrift { from { transform: translate(-50%, -50%) rotate(-12deg); } to { transform: translate(-46%, -54%) rotate(-12deg); } }
@keyframes arenaPush { from { transform: scale(1.08); } to { transform: scale(1); } }
/* ═══ 3. Platform sign-in modal (copied from globals.css) ═══ */
.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-base);
  transition: all 0.3s var(--ease-out);
  outline: none;
}
.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(1, 119, 253, 0.2);
}
.input-field::placeholder {
  color: var(--text-secondary);
}
.input-field:-webkit-autofill,
.input-field:-webkit-autofill:hover,
.input-field:-webkit-autofill:focus,
.input-field:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0px 1000px var(--input-bg) inset;
  box-shadow: 0 0 0px 1000px var(--input-bg) inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--text-primary);
}
.btn-primary {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #f5f3ef;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.btn-primary:has(.generate-btn-cost) {
  font-style: italic;
}
.share-modal .btn-primary,
.credits-modal-actions .btn-primary,
.settings-modal .btn-primary {
  font-size: var(--fs-sm);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-primary);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.char-mobile-foot .btn-primary {
  width: 100%;
}
.profile-social-row .input-field {
  flex: 1;
}
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(1, 119, 253, 0.16), transparent 62%),
    rgba(4, 6, 15, 0.84);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s var(--ease-out);
}
.auth-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  
  width: 100%;
  max-width: 1080px;
  height: min(720px, calc(100dvh - 48px));
  border: 1px solid rgba(1, 119, 253, 0.28);
  border-radius: 20px;
  background: #0b0a09;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(1, 119, 253, 0.14);
  animation: authModalRise 0.5s var(--ease-out);
}
.auth-modal-form {
  position: relative;
  display: flex;
  
  
  padding: 64px 52px 44px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(1, 119, 253, 0.11), transparent 55%),
    rgba(13, 12, 10, 0.94);
}
.auth-modal-form::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 15% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 15% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.auth-modal-form > * {
  position: relative;
}
.auth-modal-form .auth-form-header {
  margin-bottom: 26px;
}
.auth-modal-brand {
  position: relative;
  min-height: 0;
  border-left: 1px solid rgba(1, 119, 253, 0.2);
  overflow: hidden;
}
.auth-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
}
.auth-modal-close:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}
.auth-modal-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}
.auth-modal-link:hover {
  color: #fff;
}
.auth-modal .auth-eyebrow {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}
.auth-modal .auth-form-header h1 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.01em;
  
  background: none;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
}
.auth-modal .auth-form-header h1 em {
  font-style: italic;
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.auth-modal .auth-form-header p {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-secondary);
}
.auth-modal .form-group label,
.auth-modal .form-label-row label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.62);
}
.auth-modal .form-inline-link {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-modal .input-field {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  font-size: var(--fs-sm);
}
.auth-modal .input-field:focus {
  border-color: rgba(1, 119, 253, 0.85);
  background: rgba(1, 119, 253, 0.05);
  box-shadow: 0 0 0 3px rgba(1, 119, 253, 0.16), 0 0 24px rgba(1, 119, 253, 0.12);
}
.auth-modal .btn-primary {
  position: relative;
  overflow: hidden;
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(100deg, #0177fd 0%, #00b4ff 60%, #00d4ff 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 8px 28px rgba(1, 119, 253, 0.32);
}
.auth-modal .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.auth-modal .btn-primary:hover:not(:disabled) {
  box-shadow: 0 0 0 4px rgba(1, 119, 253, 0.14), 0 12px 36px rgba(1, 119, 253, 0.45);
}
.auth-modal .btn-primary:hover:not(:disabled)::before {
  animation: heroSheen 0.9s var(--ease-out) 1;
}
.auth-modal .btn-primary > * {
  position: relative;
  z-index: 1;
}
.auth-modal .auth-divider {
  margin: 18px 0;
  font-size: var(--fs-2xs);
  letter-spacing: 0.22em;
}
.auth-modal .btn-google {
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  
  white-space: nowrap;
}
.auth-modal .btn-google:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.auth-modal .auth-footer {
  margin-top: 22px;
  font-size: var(--fs-xs);
}
.auth-modal .auth-form-inner {
  margin: auto;
  max-width: 420px;
}
.auth-modal .auth-form-header h1 {
  font-size: var(--fs-4xl);
}
.auth-modal .auth-form-header p {
  font-size: var(--fs-sm);
}
.auth-modal .input-field {
  padding-block: 15px;
}
.auth-modal .btn-primary {
  padding: 17px 24px;
}
.auth-modal .btn-google {
  padding: 16px 24px;
}
.auth-modal .auth-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
}
.auth-modal .auth-steps span {
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.auth-modal .auth-steps .auth-steps-done {
  background: rgba(1, 119, 253, 0.55);
}
.auth-modal .auth-steps .auth-steps-active {
  width: 46px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px rgba(1, 119, 253, 0.5);
}
.auth-modal .auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
}
.auth-modal .auth-back:hover {
  color: var(--text-primary);
  transform: translateX(-2px);
}
.auth-modal .auth-email-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border: 1px solid rgba(1, 119, 253, 0.28);
  border-radius: 12px;
  background: rgba(1, 119, 253, 0.06);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}
.auth-modal .auth-email-chip svg {
  flex-shrink: 0;
  color: var(--secondary);
}
.auth-modal .auth-email-chip span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-modal .auth-email-chip button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.2s ease;
}
.auth-modal .auth-email-chip button:hover {
  color: #fff;
}
.auth-modal .auth-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
}
.auth-modal .auth-check input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}
.auth-modal .auth-check-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-modal .auth-check:hover .auth-check-box {
  border-color: rgba(1, 119, 253, 0.8);
}
.auth-modal .auth-check input:focus-visible + .auth-check-box {
  box-shadow: 0 0 0 3px rgba(1, 119, 253, 0.3);
}
.auth-modal .auth-check input:checked + .auth-check-box {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 14px rgba(1, 119, 253, 0.45);
}
.auth-modal .auth-check input:checked + .auth-check-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px 0 0 6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-modal .auth-check-text {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: rgba(245, 243, 239, 0.72);
}
.auth-modal .auth-check-text a,
.auth-modal .auth-legal a {
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}
.auth-modal .auth-check-text a:hover,
.auth-modal .auth-legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.auth-modal .auth-legal {
  margin-top: 26px;
  text-align: center;
  font-size: var(--fs-2xs);
  line-height: 1.65;
  color: var(--text-secondary);
}
.auth-modal .auth-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed rgba(1, 119, 253, 0.32);
  border-radius: 12px;
  background: rgba(1, 119, 253, 0.05);
}
.auth-modal .auth-note > p {
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: rgba(245, 243, 239, 0.78);
}
.auth-modal .auth-note .error-message {
  margin: 10px 0 0;
}
.auth-modal .auth-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-modal-brand .brand-logo-wrap img {
  max-width: 82%;
  height: auto;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: rgba(16, 15, 13, 0.7);
  border-right: 1px solid var(--surface-border);
}
.auth-form-inner {
  width: 100%;
  max-width: 400px;
}
.auth-form-header {
  margin-bottom: 36px;
}
.auth-form-header h1 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(120deg, #fff 40%, var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-form-header p {
  color: var(--text-secondary);
  font-size: var(--fs-base);
}
.input-wrap {
  position: relative;
}
.input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.input-field--icon {
  padding-left: 40px;
}
.input-field--password {
  padding-right: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.error-message {
  color: var(--danger);
  font-size: var(--fs-xs);
  margin-top: 6px;
}
.success-message {
  color: #4ade80;
  font-size: var(--fs-xs);
  margin-top: 6px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.btn-google {
  width: 100%;
  padding: 12px 24px;
  background: #fff;
  color: #1f1f1f;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15);
}
.btn-google:active {
  transform: translateY(1px);
}
.btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.brand-panel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 60% 35%, rgba(1, 119, 253, 0.07) 0%, transparent 55%),
              radial-gradient(ellipse at 30% 70%, rgba(0, 212, 255, 0.09) 0%, transparent 55%),
              linear-gradient(160deg, var(--background) 0%, var(--surface-solid) 100%);
  overflow: hidden;
}
.brand-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.brand-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.brand-cursor-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 119, 253, 0.12), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.brand-hud {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 10;
  padding: 14px;
}
.brand-hud-tl { top: 0;    left: 0;  }
.brand-hud-tr { top: 0;    right: 0; text-align: right; }
.brand-hud-bl { bottom: 0; left: 0;  }
.brand-hud-br { bottom: 0; right: 0; text-align: right; }
.brand-hud-label {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.15em;
  color: rgba(1, 119, 253, 0.45);
  text-transform: uppercase;
}
.brand-hud-value {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
}
.brand-hud-status {
  color: rgba(1, 119, 253, 0.5);
  font-size: var(--fs-2xs);
  letter-spacing: 0.1em;
}
.brand-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  transition: transform 0.15s ease-out;
  will-change: transform;
  pointer-events: none;
}
.brand-orb-1 {
  width: 420px;
  height: 420px;
  top: 25%;
  left: 30%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(1, 119, 253, 0.2), transparent 70%);
  animation: orbFloat1 8s ease-in-out infinite;
}
.brand-orb-2 {
  width: 320px;
  height: 320px;
  top: 68%;
  left: 65%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
  animation: orbFloat2 10s ease-in-out infinite;
}
.brand-orb-3 {
  width: 220px;
  height: 220px;
  top: 20%;
  left: 72%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 80, 212, 0.16), transparent 70%);
  animation: orbFloat3 12s ease-in-out infinite;
}
.brand-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.12);
  animation: ringPulse 4s ease-out infinite;
}
.brand-ring-1 { width: 280px; height: 280px; animation-delay: 0s;   border-color: rgba(1, 119, 253, 0.15); }
.brand-ring-2 { width: 420px; height: 420px; animation-delay: 1.3s; border-color: rgba(0, 212, 255, 0.10); }
.brand-ring-3 { width: 560px; height: 560px; animation-delay: 2.6s; border-color: rgba(1, 119, 253, 0.05); }
.brand-logo-wrap {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.brand-logo-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(1, 119, 253, 0.18), transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  animation: logoGlow 3s ease-in-out infinite alternate;
}
.brand-wordmark {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: 4px;
}
.brand-wordmark-serif {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-primary);
}
.brand-wordmark-serif-accent {
  color: var(--primary);
  font-style: italic;
}
.brand-logo-wrap--mobile .brand-wordmark-serif {
  font-size: var(--fs-2xl);
}
.brand-tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
  margin-top: 6px;
}
.credits-modal-actions .btn-primary {
  flex: 1;
}
.crop-modal-actions .btn-primary {
  flex: 1;
}
.sign-in-gate .btn-primary {
  text-decoration: none;
}
.share-modal-link-row .btn-primary {
  
  width: 96px;
  flex-shrink: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  
  font-size: var(--fs-xs);
}
.select-voice-modal-actions .btn-primary {
  width: auto;
  padding: 8px 16px;
  font-size: var(--fs-xs);
}
.edit-tools-panel-footer .credits-modal-cancel,
.edit-tools-panel-footer .btn-primary {
  flex: 1;
  width: auto;
  padding: 11px 16px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
}
@media (max-width: 860px) {
  .auth-modal-backdrop {
    padding: 16px;
  }
  .auth-modal {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    height: min(700px, calc(100dvh - 32px));
  }
  .auth-modal-form {
    padding: 60px 24px 32px;
  }
  .auth-modal .auth-form-header h1 {
    font-size: var(--fs-3xl);
  }
  .auth-modal {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .auth-modal-close {
    left: auto;
    right: 12px;
  }
  .auth-modal-form {
    padding: 40px 24px 28px;
  }
}
@media (max-width: 768px) {
  .brand-panel--mobile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    overflow: hidden;
    background:
      radial-gradient(ellipse at 60% 30%, rgba(1, 119, 253, 0.14) 0%, transparent 55%),
      radial-gradient(ellipse at 30% 80%, rgba(0, 212, 255, 0.16) 0%, transparent 55%),
      linear-gradient(160deg, var(--background) 0%, var(--surface-solid) 100%);
    border-radius: 0 0 28px 28px;
  }
  .brand-panel--mobile .brand-orb-1 {
    width: 170px;
    height: 170px;
    top: 25%;
    left: 22%;
  }
  .brand-panel--mobile .brand-orb-2 {
    width: 140px;
    height: 140px;
    top: 75%;
    left: 75%;
  }
  .brand-panel--mobile .brand-orb-3 {
    display: none;
  }
  .brand-logo-wrap--mobile {
    gap: 8px;
  }
  .brand-logo-wrap--mobile .brand-logo-glow {
    width: 140px;
    height: 140px;
    filter: blur(18px);
  }
  .brand-logo-wrap--mobile .brand-tagline {
    font-size: var(--fs-2xs);
    margin-top: 2px;
  }
  .auth-form-side {
    padding: 28px 20px;
    border-right: none;
  }
  .auth-form-inner {
    max-width: 420px;
  }
  .auth-form-header {
    margin-bottom: 24px;
  }
  .auth-form-header h1 {
    font-size: var(--fs-2xl);
  }
  .form-group {
    margin-bottom: 16px;
  }
}
@keyframes authModalRise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes orbFloat1 {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes orbFloat2 {
  0%, 100% { opacity: 0.5; }
  33% { opacity: 0.9; }
  66% { opacity: 0.6; }
}
@keyframes orbFloat3 {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes ringPulse {
  0%   { transform: scale(0.9); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}
@keyframes logoGlow {
  from { opacity: 0.5; transform: scaleX(0.9); }
  to   { opacity: 1;   transform: scaleX(1.1); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSheen {
  0%   { left: -60%; }
  55%  { left: 140%; }
  100% { left: 140%; }
}
/* ═══ 4. Waitlist additions ═══ */

/* Top nav: same measurements as the platform's desktop top bar
   (.app-sidebar: 74px, blurred near-black, mono-uppercase links with a
   cyan→blue underline on the active one). */
.wl-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 32px 0;
  background: rgba(8, 8, 7, 0.65);
  backdrop-filter: blur(64px) saturate(1.8);
  -webkit-backdrop-filter: blur(64px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wl-brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.wl-brand img { width: 32px; height: 32px; }
.wl-nav .sidebar-wordmark { font-size: 18px; }
.wl-nav-links { display: flex; gap: 36px; }
.wl-nav-link {
  position: relative;
  color: rgba(245, 243, 239, 0.55);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.wl-nav-link:hover,
.wl-nav-link--on { color: var(--text-primary); }
.wl-nav-link--on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  box-shadow: 0 0 8px rgba(1, 119, 253, 0.6);
}
.wl-nav .auth-login-btn { justify-self: end; }

/* "Join the waitlist" pill used in the nav (auth-login-btn) gets a
   non-arrow icon slot. */
.auth-login-btn-arrow svg.i { width: 15px; height: 15px; stroke-width: 2.25; }

/* Hero: no "Welcome back" state here, the eyebrow carries the invite-only note. */
.wl-eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--secondary);
  vertical-align: 1px;
  animation: wlPing 2s var(--ease-out) infinite;
}
@keyframes wlPing {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
}
.home-hero-tool { cursor: pointer; }
.home-cta-primary-arrow svg.i,
.hcta-btn b svg.i,
.hts-card-go b svg.i { width: 17px; height: 17px; }
.showcase-link svg.i { width: 15px; height: 15px; }

/* The tool-story / showcase cards end in a "Join to try" link instead of Open. */
.hts-card-go,
.showcase-link { cursor: pointer; border: 0; font: inherit; }
.showcase-link { background: none; padding: 0; }

/* Brand-mark images (Kling, Grok) inside the model pills. */
.hnum-pill i img { width: 18px; height: 18px; }
.hnum-pill i .mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 10.8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Footer: company line + contact instead of the app's own page links. */
.app-footer-col a[href^='mailto'] { word-break: break-all; }

/* ── Waitlist pop-up (built on the platform's .auth-modal) ── */
.auth-modal-backdrop[hidden] { display: none; }
.wl-modal-form .form-group { margin-bottom: 14px; }
.wl-modal-form .form-group label {
  display: block;
  margin-bottom: 8px;
}
.input-wrap .input-icon svg.i,
.input-icon.i { width: 16px; height: 16px; }
/* Custom "What do you create?" dropdown: the trigger reuses .input-field so
   it is identical to the inputs above it; the menu is a solid dark card. */
.wl-dd { position: relative; }
.wl-dd-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding-right: 40px !important;
  text-align: left;
  cursor: pointer;
}
.wl-dd-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-dd-value.is-placeholder { color: rgba(245, 243, 239, 0.35); }
.wl-dd .input-icon { transition: color 0.2s ease; }
.wl-dd--chosen .input-icon { color: var(--primary); }
.wl-select-chevron {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
  transition: transform 0.25s var(--ease-out), color 0.2s ease;
}
.wl-dd--open .wl-select-chevron { transform: translateY(-50%) rotate(180deg); color: var(--text-primary); }
.wl-dd--open .wl-dd-btn { border-color: rgba(1, 119, 253, 0.7); }

.wl-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #141416;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(1, 119, 253, 0.08);
  outline: none;
  animation: wlDdIn 0.18s var(--ease-out);
  transform-origin: top center;
}
.wl-dd--up .wl-dd-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; }
@keyframes wlDdIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.wl-dd--up .wl-dd-menu { animation-name: wlDdInUp; }
@keyframes wlDdInUp { from { opacity: 0; transform: translateY(4px) scale(0.98); } }

.wl-dd-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wl-dd-menu li.is-active { background: rgba(1, 119, 253, 0.12); }
.wl-dd-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.wl-dd-ico svg.i { width: 16px; height: 16px; }
.wl-dd-menu li.is-active .wl-dd-ico,
.wl-dd-menu li[aria-selected='true'] .wl-dd-ico { background: rgba(1, 119, 253, 0.18); color: var(--primary); }
.wl-dd-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.wl-dd-text b { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.wl-dd-text small { font-size: 12px; color: var(--text-secondary); }
.wl-dd-check { flex: none; width: 16px; height: 16px; color: var(--primary); opacity: 0; }
.wl-dd-check svg.i { width: 16px; height: 16px; stroke-width: 2.5; }
.wl-dd-menu li[aria-selected='true'] .wl-dd-check { opacity: 1; }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-modal-form .btn-primary { margin-top: 6px; }
.wl-modal-form .btn-primary svg.i { width: 16px; height: 16px; }
.wl-modal-form .btn-primary .wl-spin { animation: wlSpin 0.9s linear infinite; }
@keyframes wlSpin { to { transform: rotate(360deg); } }
.wl-form-error { margin: 12px 0 0; }

/* Success view */
.wl-success { display: flex; flex-direction: column; align-items: flex-start; }
.wl-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: rgba(1, 119, 253, 0.14);
  border: 1px solid rgba(1, 119, 253, 0.45);
  color: var(--primary);
  box-shadow: 0 0 30px rgba(1, 119, 253, 0.35);
}
.wl-success-icon svg.i { width: 24px; height: 24px; stroke-width: 2.5; }
.wl-success .btn-google { margin-top: 26px; }
.wl-another { align-self: center; margin-top: 16px; background: none; border: 0; padding: 4px; cursor: pointer; font-size: var(--fs-sm); }

/* The platform's mobile sign-in modal drops the brand panel; ours keeps a
   short brand strip on top instead, so it isn't just a bare form. */
@media (max-width: 768px) {
  .wl-nav { height: 60px; padding: 0 16px; grid-template-columns: 1fr auto; }
  .wl-nav-links { display: none; }
  .wl-brand img { width: 28px; height: 28px; }
  .wl-nav .sidebar-wordmark { font-size: 17px; }
  .hts { --hts-top: 60px; --hts-bottom: 0px; }
  .auth-modal-brand { display: none; }
}

/* Phones: the pop-up never depends on the browser telling us about the keyboard
   (Instagram's and other in-app browsers often don't). The backdrop itself
   scrolls, the card is as tall as its content, and while a field is focused
   (.wl-kb, set by main.js keyboardFit on focus) the header shrinks and the
   backdrop gets half a screen of extra room at the bottom, so the Join button
   can always be scrolled above the keyboard. Where the browser does report
   the visible area (--vvh / --vv-top), the backdrop also fits it exactly. */
@media (max-width: 860px) {
  .auth-modal-backdrop { inset: auto 0 auto 0; top: var(--vv-top, 0px); height: var(--vvh, 100dvh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; align-items: flex-start; }
  .auth-modal { height: auto; max-height: none; margin: auto 0; flex-shrink: 0; }
  .auth-modal-form { overflow: visible; }
  /* Nothing expensive to draw while the keyboard resizes the screen: Android's WebView (Instagram, Facebook) stops painting the form and smears a
     blurred ghost of it when a backdrop blur or a masked layer has to be redrawn on every keystroke. So on phones: a solid backdrop instead of the
     blur, no masked dot pattern, no rise animation, and the page behind the pop-up isn't drawn at all. */
  .auth-modal-backdrop { background: #05060c; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none; }
  .auth-modal { animation: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
  .auth-modal-form::before { display: none; }
  body.modal-open > .wl-nav, body.modal-open > main { visibility: hidden; }
  .auth-modal-backdrop.wl-kb { padding: 8px 8px 50vh; }
  .auth-modal-backdrop.wl-kb .auth-modal { margin: 0; }
  .auth-modal-backdrop.wl-kb .auth-modal-form { padding-top: 16px; padding-bottom: 12px; }
  .auth-modal-backdrop.wl-kb .auth-eyebrow,
  .auth-modal-backdrop.wl-kb .auth-form-header p,
  .auth-modal-backdrop.wl-kb .auth-legal { display: none; }
  .auth-modal-backdrop.wl-kb .auth-form-header { margin-bottom: 10px; }
  .auth-modal-backdrop.wl-kb .auth-form-header h1 { font-size: 24px; margin: 0; }
  .auth-modal-backdrop.wl-kb .form-group { margin-bottom: 10px; }
  .auth-modal-backdrop.wl-kb .wl-modal-form .btn-primary { margin-top: 2px; }
  .auth-modal-backdrop.wl-kb .form-group label { margin-bottom: 4px; }
  .auth-modal-backdrop.wl-kb .auth-modal-close { top: 10px; }
}

/* ── Light mode for in-app browsers (html.wl-lite, set by config.js) ──────
   Those browsers often draw without the graphics chip: every blur and every
   never-ending animation means repainting big areas tile by tile. Here the
   page is drawn once and then stays still: the blurred glow shapes go, glass
   blurs go (the top bar gets a solid background instead), and animations and
   transitions jump to their final frame. Layout and content are unchanged. */
html.wl-lite .home-hero-aurora,
html.wl-lite .home-hero-orb,
html.wl-lite .hhg-glow,
html.wl-lite .brand-orb,
html.wl-lite .brand-logo-glow { display: none !important; }
html.wl-lite *,
html.wl-lite *::before,
html.wl-lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  animation-duration: 0.001ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  transition-delay: 0s !important;
  will-change: auto !important;
}
html.wl-lite .wl-nav { background: #080807; }
