/* ==========================================================================
   DeepWhite AI · Redesign v2
   Art Direction: Noir Obsidian × Warm Alabaster × Champagne Gold × Ice Cyan
   High-craft tactile motion, cursor specular lighting & architectural trust
   ========================================================================== */

@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Core Palette — Warm Cinema Obsidian (Harmonized with api.deepwhiteai.com) */
  --bg: #070709;
  --bg-elevated: #0c0c10;
  --surface: #101116;
  --surface-2: #16171e;
  --surface-glass: rgba(10, 10, 14, 0.86);
  --surface-hover: #191a22;

  /* Warm Alabaster Typography */
  --text: #f5f2eb;
  --text-secondary: #bab7b0;
  --muted: #8b8882;
  --subtle: #5c5a56;

  /* Architectural Hairlines & Specular Rim */
  --line: rgba(245, 242, 235, 0.085);
  --line-strong: rgba(245, 242, 235, 0.17);
  --specular: inset 0 1px 0 rgba(255, 250, 240, 0.075);

  /* Dual Brand Signature Accents: Champagne Gold (Primary Luxury) + Optical Ice Cyan (Logo Spark) */
  --gold: #dfa963;
  --gold-bright: #f2c88d;
  --gold-soft: rgba(223, 169, 99, 0.11);
  --gold-glow: rgba(223, 169, 99, 0.28);

  --cyan: #3ee8f6;
  --cyan-soft: rgba(62, 232, 246, 0.10);
  --cyan-glow: rgba(62, 232, 246, 0.28);

  /* Primary Action — Warm Paper Alabaster */
  --cta-bg: #f5f2eb;
  --cta-bg-hover: #ffffff;
  --cta-fg: #09090c;

  /* Code Terminal Colors */
  --code-bg: #0a0b0f;
  --tok-kw: #dfa963;
  --tok-str: #7be3d7;
  --tok-fn: #f5f2eb;
  --tok-cm: #69686e;

  /* Geometry & Layout */
  --shell: min(1320px, calc(100vw - 80px));
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Precision Physics */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1.28, 0.36, 1);

  /* Typography */
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Lora", "Georgia", "Noto Serif SC", "Songti SC", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-card: 0 18px 44px -18px rgba(0, 0, 0, 0.72);
  --shadow-float: 0 28px 72px -22px rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] {
  /* Gallery Travertine & Ink */
  --bg: #f5f2ec;
  --bg-elevated: #ece8df;
  --surface: #ffffff;
  --surface-2: #f2efe8;
  --surface-glass: rgba(245, 242, 236, 0.88);
  --surface-hover: #fcfbf8;

  --text: #111114;
  --text-secondary: #3f3d39;
  --muted: #68645e;
  --subtle: #96918a;

  --line: rgba(17, 17, 20, 0.09);
  --line-strong: rgba(17, 17, 20, 0.19);
  --specular: inset 0 1px 0 rgba(255, 255, 255, 0.92);

  --gold: #a67026;
  --gold-bright: #c58835;
  --gold-soft: rgba(166, 112, 38, 0.10);
  --gold-glow: rgba(166, 112, 38, 0.22);

  --cyan: #008b9d;
  --cyan-soft: rgba(0, 139, 157, 0.09);
  --cyan-glow: rgba(0, 139, 157, 0.22);

  --cta-bg: #111114;
  --cta-bg-hover: #25252b;
  --cta-fg: #f8f6f2;

  --code-bg: #14151a;
  --tok-kw: #e5b26c;
  --tok-str: #7de4d7;
  --tok-fn: #f5f2eb;
  --tok-cm: #77767c;

  --shadow-card: 0 16px 36px -20px rgba(17, 17, 20, 0.14);
  --shadow-float: 0 26px 64px -26px rgba(17, 17, 20, 0.19);
}

/* ==========================================================================
   Base Reset, Atmospheric Film Grain & Optical Scroll Progress
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
  background: var(--bg);
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

/* Ultra-subtle optical reading progress line across the top */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 58%, var(--cyan) 100%);
  transform-origin: 0 50%;
  transform: scaleX(var(--scroll-progress, 0));
  opacity: 0.9;
  will-change: transform;
}

/* Tactile darkroom micro-grain (subtle film texture, never noisy) */
.cinema-grain {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

html[data-theme="light"] .cinema-grain {
  opacity: 0.018;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

img,
video {
  display: block;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon.tiny {
  width: 12px;
  height: 12px;
  opacity: 0.72;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

/* Signature Champagne Gold Period Accent */
.cyan-dot {
  color: var(--gold);
}

.mobile-break {
  display: none;
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

.skip:focus {
  top: 16px;
}

/* Keyboard-reachable motion pause controls (hidden visually until focused) */
.motion-a11y-control {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.motion-a11y-control:focus-visible {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 900;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 500;
  box-shadow: var(--shadow-float);
}

/* Choreographed Scroll Reveal */
.b-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.99);
  transition:
    opacity 0.85s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.85s var(--ease-out) var(--reveal-delay, 0ms);
}

.b-reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Cursor-Tracking Specular Spotlight Surface */
[data-spotlight] {
  --mx: 50%;
  --my: 50%;
  --spot-o: 0;
}

[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: var(--spot-o);
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    rgba(223, 169, 99, 0.13),
    rgba(62, 232, 246, 0.04) 42%,
    transparent 72%
  );
  transition: opacity 0.4s var(--ease-out);
}

html[data-theme="light"] [data-spotlight]::before {
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(166, 112, 38, 0.09),
    rgba(0, 139, 157, 0.03) 45%,
    transparent 72%
  );
}

/* ==========================================================================
   Interactive Primitives — Tactile Magnetic Buttons & Sheen Sweep
   ========================================================================== */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition:
    background-color 0.28s var(--ease-out),
    border-color 0.28s var(--ease-out),
    color 0.28s var(--ease-out),
    transform 0.32s var(--ease-out),
    box-shadow 0.32s var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 20%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 76%
  );
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.72s var(--ease-out);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(130%) skewX(-18deg);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.28s var(--ease-spring);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn-small {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
  gap: 7px;
}

.btn-small .icon {
  width: 14px;
  height: 14px;
}

/* Primary Action — Luminous Alabaster (Dark) / Deep Ink (Light) */
.btn-cyan {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 10px 26px -12px rgba(0, 0, 0, 0.6);
}

.btn-cyan:hover {
  background: var(--cta-bg-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 14px 32px -12px var(--gold-glow);
}

/* Secondary Frosted Glass Button */
.btn-glass {
  background: rgba(245, 242, 235, 0.06);
  color: #f5f2eb;
  border: 1px solid rgba(245, 242, 235, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover {
  background: rgba(245, 242, 235, 0.12);
  border-color: rgba(223, 169, 99, 0.45);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.22s var(--ease-out);
}

.text-link .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.28s var(--ease-spring);
}

.text-link:hover {
  color: var(--text);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.collection-cta {
  position: relative;
  overflow: hidden;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--specular);
  transform: translate3d(var(--mag-x, 0px), var(--mag-y, 0px), 0);
  transition: border-color 0.28s var(--ease-out), background-color 0.28s var(--ease-out), transform 0.3s var(--ease-out);
}

.collection-cta:hover {
  border-color: var(--gold);
  background: var(--surface-2);
}

.round-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-secondary);
  box-shadow: var(--specular);
  transition:
    border-color 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-spring);
}

.round-btn .icon {
  width: 16px;
  height: 16px;
}

.round-btn.prev .icon,
.round-btn.gallery-prev .icon {
  transform: rotate(180deg);
}

.round-btn:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
  color: var(--text);
  transform: scale(1.06);
}

.round-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Floating Header / Navigation
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: center;
  gap: 18px;
  color: #f5f2eb;
  background: linear-gradient(180deg, rgba(7, 7, 9, 0.72) 0%, rgba(7, 7, 9, 0) 100%);
  border-bottom: 1px solid transparent;
  transition:
    top 0.36s var(--ease-out),
    height 0.36s var(--ease-out),
    padding 0.36s var(--ease-out),
    background-color 0.36s var(--ease-out),
    border-color 0.36s var(--ease-out),
    box-shadow 0.36s var(--ease-out),
    border-radius 0.36s var(--ease-out),
    width 0.36s var(--ease-out);
}

.header.is-scrolled {
  top: 14px;
  width: min(1320px, calc(100vw - 40px));
  height: 60px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--specular), 0 22px 54px -20px rgba(0, 0, 0, 0.72);
}

/* Approved DeepWhiteAI Wordmark Crop — Unaltered Pixels */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 10px;
  transition: opacity 0.22s var(--ease-out), background-color 0.28s var(--ease-out), padding 0.28s var(--ease-out);
}

.brand:hover {
  opacity: 0.9;
}

.brand .logo-crop {
  width: 154px;
  height: auto;
  aspect-ratio: 1140 / 198;
  position: relative;
  overflow: hidden;
  display: block;
  background: #000000;
  mix-blend-mode: lighten;
}

.brand .logo-crop img {
  position: absolute;
  width: 110%;
  height: auto;
  max-width: none;
  left: -5.614035%;
  top: -191.919192%;
}

html[data-theme="light"] .header.is-scrolled .brand {
  background: #0d0d11;
  padding: 6px 12px;
  border-radius: 999px;
}

html[data-theme="light"] .header.is-scrolled .brand .logo-crop {
  width: 132px;
  mix-blend-mode: normal;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 242, 235, 0.72);
  white-space: nowrap;
  transition: color 0.22s var(--ease-out), background-color 0.22s var(--ease-out);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(223, 169, 99, 0.16);
  box-shadow: inset 0 0 0 1px rgba(223, 169, 99, 0.26);
}

html[data-theme="light"] .header.is-scrolled .nav-link {
  color: var(--muted);
}

html[data-theme="light"] .header.is-scrolled .nav-link:hover {
  color: var(--text);
  background: rgba(17, 17, 20, 0.05);
}

html[data-theme="light"] .header.is-scrolled .nav-link.active {
  color: var(--text);
  background: rgba(166, 112, 38, 0.12);
  box-shadow: inset 0 0 0 1px rgba(166, 112, 38, 0.24);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 242, 235, 0.72);
  transition: color 0.22s var(--ease-out), background-color 0.22s var(--ease-out), transform 0.25s var(--ease-spring);
}

.icon-btn:hover:not(:disabled) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.icon-btn:active:not(:disabled) {
  transform: scale(0.92);
}

.icon-btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.45s var(--ease-spring);
}

#theme[aria-pressed="true"] .icon {
  transform: rotate(-28deg);
}

html[data-theme="light"] .header.is-scrolled .icon-btn {
  color: var(--muted);
}

html[data-theme="light"] .header.is-scrolled .icon-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(17, 17, 20, 0.06);
}

.language-btn {
  width: auto;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.actions-divider {
  width: 1px;
  height: 16px;
  background: rgba(245, 242, 235, 0.18);
  margin: 0 6px;
}

html[data-theme="light"] .header.is-scrolled .actions-divider {
  background: var(--line-strong);
}

.login {
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: rgba(245, 242, 235, 0.85);
  transition: color 0.22s var(--ease-out), background-color 0.22s var(--ease-out);
}

.login:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .header.is-scrolled .login {
  color: var(--text-secondary);
}

html[data-theme="light"] .header.is-scrolled .login:hover {
  color: var(--text);
  background: rgba(17, 17, 20, 0.06);
}

.header:not(.is-scrolled) .register {
  background: #f5f2eb;
  color: #09090c;
}

.header:not(.is-scrolled) .register:hover {
  background: #ffffff;
}

.mobile-toggle {
  display: none;
}

/* ==========================================================================
   Hero — Cinema Studio Full-Bleed Stage with Opening Choreography & Parallax
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  background: #070709;
  color: #f5f2eb;
}

/* Warm amber-noir directional scrim + ambient light breath */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(52% 62% at 14% 46%, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.56) 54%, transparent 84%),
    radial-gradient(38% 42% at 80% 18%, rgba(223, 169, 99, 0.12) 0%, transparent 72%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.92) 0%, rgba(7, 7, 9, 0.72) 34%, rgba(7, 7, 9, 0.16) 66%, rgba(7, 7, 9, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.52) 0%, transparent 24%, transparent 72%, #070709 100%);
}

html[data-theme="light"] .hero-art {
  background:
    radial-gradient(52% 62% at 14% 46%, rgba(7, 7, 9, 0.90) 0%, rgba(7, 7, 9, 0.54) 54%, transparent 84%),
    radial-gradient(38% 42% at 80% 18%, rgba(223, 169, 99, 0.14) 0%, transparent 72%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.88) 0%, rgba(7, 7, 9, 0.68) 34%, rgba(7, 7, 9, 0.16) 66%, rgba(7, 7, 9, 0.06) 100%),
    linear-gradient(180deg, rgba(7, 7, 9, 0.48) 0%, transparent 24%, transparent 78%, rgba(7, 7, 9, 0.90) 100%);
}

.hero-scene {
  position: absolute;
  inset: -5% -2%;
  z-index: 0;
  overflow: hidden;
  transform: translate3d(var(--hero-bg-x, 0px), calc(var(--hero-parallax, 0px) + var(--hero-bg-y, 0px)), 0);
  will-change: transform;
  transition: transform 0.35s var(--ease-out);
}

.hero-scene-picture {
  display: block;
  width: 100%;
  height: 100%;
  animation: heroFocusPull 1.45s var(--ease-out) both;
}

@keyframes heroFocusPull {
  0% {
    transform: scale(1.09);
    filter: blur(7px) brightness(0.76);
  }
  100% {
    transform: scale(1);
    filter: blur(0) brightness(1);
  }
}

/* Interactive Volumetric Studio Light Beam */
.hero-volumetric {
  position: absolute;
  inset: -12%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(36% 48% at calc(68% + var(--hero-beam-x, 0%)) calc(26% + var(--hero-beam-y, 0%)), rgba(223, 169, 99, 0.16) 0%, rgba(223, 169, 99, 0.04) 44%, transparent 72%),
    radial-gradient(28% 36% at calc(44% - var(--hero-beam-x, 0%)) calc(58% - var(--hero-beam-y, 0%)), rgba(62, 232, 246, 0.08) 0%, transparent 70%);
  mix-blend-mode: screen;
  animation: volumetricBreath 10s ease-in-out infinite alternate;
  transition: background-position 0.35s var(--ease-out);
}

@keyframes volumetricBreath {
  0% { opacity: 0.68; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.04); }
}

/* Cinema Camera Viewfinder Corner Registration Marks */
.hero-viewfinder {
  position: absolute;
  inset: 92px max(28px, calc((100vw - 1348px) / 2)) 78px;
  z-index: 2;
  pointer-events: none;
}

.hero-viewfinder span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(245, 242, 235, 0.24);
  border-style: solid;
  border-width: 0;
  animation: viewfinderIn 1.1s var(--ease-out) 0.45s both;
}

.hero-viewfinder span:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.hero-viewfinder span:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.hero-viewfinder span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.hero-viewfinder span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

@keyframes viewfinderIn {
  from { opacity: 0; transform: scale(1.35); }
  to { opacity: 1; transform: scale(1); }
}

.hero-scene-picture,
.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 48%;
  transform-origin: 70% 50%;
  will-change: transform;
}

.hero[data-motion="running"] .hero-scene img {
  animation: heroCinemaDrift 26s ease-in-out infinite alternate;
}

.hero[data-motion="paused"] .hero-scene img {
  animation: none;
  transform: scale(1.02);
}

@keyframes heroCinemaDrift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.085) translate3d(-1.5%, -0.9%, 0);
  }
}

.hero-layout {
  position: relative;
  z-index: 3;
  width: var(--shell);
  margin: auto;
  padding: 132px 0 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  transform: translate3d(var(--hero-fg-x, 0px), calc(var(--hero-text-shift, 0px) + var(--hero-fg-y, 0px)), 0);
  opacity: var(--hero-text-opacity, 1);
  will-change: transform, opacity;
  transition: transform 0.28s var(--ease-out);
}

/* Floating Studio Cinema Preview Pill in Hero */
.hero-cinema-pill {
  flex: none;
  margin-right: clamp(230px, 22vw, 320px);
  margin-bottom: -18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: rgba(11, 11, 16, 0.72);
  border: 1px solid rgba(245, 242, 235, 0.16);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.1), 0 22px 48px -18px rgba(0, 0, 0, 0.8);
  color: #f5f2eb;
  animation: heroRiseIn 1.05s var(--ease-out) 0.54s both;
  transition: border-color 0.3s var(--ease-out), transform 0.35s var(--ease-spring), background-color 0.3s var(--ease-out);
}

.hero-cinema-pill:hover {
  border-color: rgba(223, 169, 99, 0.55);
  background: rgba(16, 16, 22, 0.86);
  transform: translateY(-4px);
}

.cinema-pill-thumb {
  position: relative;
  width: 68px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 235, 0.14);
  flex: none;
}

.cinema-pill-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero-cinema-pill:hover .cinema-pill-thumb img {
  transform: scale(1.08);
}

.cinema-pill-bars {
  position: absolute;
  left: 6px;
  bottom: 5px;
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.cinema-pill-bars i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--cyan);
  animation: eqPulse 1.3s ease-in-out infinite alternate;
}

.cinema-pill-bars i:nth-child(1) { height: 5px; animation-delay: 0s; }
.cinema-pill-bars i:nth-child(2) { height: 10px; animation-delay: 0.25s; }
.cinema-pill-bars i:nth-child(3) { height: 7px; animation-delay: 0.5s; }

@keyframes eqPulse {
  0% { transform: scaleY(0.4); opacity: 0.65; }
  100% { transform: scaleY(1); opacity: 1; }
}

.cinema-pill-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cinema-pill-meta small {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
}

.cinema-pill-meta strong {
  font-size: 13px;
  font-weight: 500;
  color: #f5f2eb;
  white-space: nowrap;
}

.cinema-pill-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 242, 235, 0.09);
  color: #f5f2eb;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.28s var(--ease-spring);
}

.cinema-pill-arrow .icon {
  width: 13px;
  height: 13px;
}

.hero-cinema-pill:hover .cinema-pill-arrow {
  background: #f5f2eb;
  color: #09090c;
  transform: translateX(3px);
}

.hero-content {
  max-width: 600px;
}

/* Staggered Opening Animation for Hero Elements */
@keyframes heroRiseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes lineDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(245, 242, 235, 0.76);
  margin-bottom: 24px;
  animation: heroRiseIn 0.85s var(--ease-out) 0.06s both;
}

.eyebrow .line {
  width: 28px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cyan) 100%);
  transform-origin: left center;
  animation: lineDraw 0.9s var(--ease-out) 0.12s both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -0.04em;
  color: #ffffff;
  animation: heroRiseIn 0.95s var(--ease-out) 0.16s both;
}

.hero h1 span {
  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #f6dec0 26%,
    #dfa963 48%,
    #fff6e6 60%,
    #dfa963 78%,
    #f6dec0 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldShimmer 7.5s ease-in-out infinite;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-copy {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(245, 242, 235, 0.74);
  font-weight: 400;
  animation: heroRiseIn 0.95s var(--ease-out) 0.28s both;
}

.hero-ctas {
  margin-top: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  animation: heroRiseIn 0.95s var(--ease-out) 0.38s both;
}

.hero .btn-cyan {
  background: #f5f2eb;
  color: #09090c;
  min-height: 50px;
  padding: 0 28px;
}

.hero .btn-cyan:hover {
  background: #ffffff;
}

.hero .btn-glass {
  min-height: 50px;
  padding: 0 24px;
}

.hero-tags {
  margin-top: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(245, 242, 235, 0.64);
  animation: heroRiseIn 0.95s var(--ease-out) 0.48s both;
}

.hero-tags > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-tags .icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
  opacity: 0.85;
}

.hero-tag-api {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(223, 169, 99, 0.32);
  background: rgba(223, 169, 99, 0.08);
  color: var(--gold-bright);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(245, 242, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(245, 242, 235, 0.52);
  animation: heroRiseIn 0.95s var(--ease-out) 0.56s both;
}

.hero-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(245, 242, 235, 0.76);
  transition: color 0.22s var(--ease-out), transform 0.25s var(--ease-out);
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.hero-bottom a span:last-child {
  display: inline-block;
  animation: gentleBob 2.4s ease-in-out infinite;
}

.hero-bottom a:hover {
  color: var(--gold-bright);
}

/* ==========================================================================
   Architectural Trust Strip — Verifiable Platform Capabilities
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  position: relative;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  transition: background-color 0.3s var(--ease-out);
}

.trust-item:not(:last-child) {
  border-right: 1px solid var(--line);
}

.trust-item:hover {
  background: var(--surface);
}

.trust-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 4px;
}

.trust-index::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

.trust-item strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

.trust-item span:last-child {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ==========================================================================
   Section Headers & Architectural Rhythm
   ========================================================================== */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.section-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.035em;
  color: var(--text);
}

.section-description {
  margin: 0;
  max-width: 390px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--muted);
  text-align: right;
}

/* ==========================================================================
   Section 01 — Creator Workspace & Model Spotlight
   ========================================================================== */

.creator-section {
  padding: 108px 0 96px;
}

.creator-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.model-spotlight {
  position: relative;
}

.spotlight-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.spotlight-heading > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.spotlight-heading h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.spotlight-heading > div:first-child > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--subtle);
}

.spotlight-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

#feature-position {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.feature-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 14px;
  margin: -4px 0 -14px;
}

.feature-track::-webkit-scrollbar {
  display: none;
}

.feature-model-card {
  position: relative;
  flex: 0 0 calc((100% - 54px) / 4);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0c0c10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  isolation: isolate;
  transition:
    border-color 0.35s var(--ease-out),
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.feature-model-card:hover {
  border-color: rgba(223, 169, 99, 0.42);
  transform: translateY(-6px);
  box-shadow: 0 26px 56px -20px rgba(0, 0, 0, 0.82), 0 0 0 1px rgba(223, 169, 99, 0.16);
}

.feature-model-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 9, 0.48) 0%, transparent 26%, transparent 56%, rgba(7, 7, 9, 0.88) 92%, rgba(7, 7, 9, 0.97) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.06);
  border-radius: inherit;
}

.feature-output-art,
.feature-inline-card .inline-media-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: block;
}

.feature-output-art img,
.feature-inline-card .inline-media-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transition: transform 0.8s var(--ease-out);
}

.feature-model-card:hover .feature-output-art img,
.feature-model-card:hover .inline-media-shell video {
  transform: scale(1.055);
}

.feature-inline-card .inline-media-shell {
  cursor: pointer;
}

/* Signature optical cyan tally-rim ONLY when live video is actively playing */
.feature-inline-card:has([data-playing="true"]) {
  border-color: rgba(62, 232, 246, 0.44);
  box-shadow: 0 20px 44px -18px rgba(62, 232, 246, 0.16);
}

.inline-media-error {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  text-align: center;
  font-size: 12px;
  color: #f5f2eb;
  background: rgba(7, 7, 9, 0.8);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.inline-media-error:empty {
  display: none;
}

.feature-card-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.feature-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 242, 235, 0.15);
  color: var(--gold-bright);
}

.feature-category-icon .icon {
  width: 12px;
  height: 12px;
}

.feature-kind {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 235, 0.92);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 14, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 242, 235, 0.15);
}

.feature-card-index {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 242, 235, 0.65);
}

.feature-primary {
  position: relative;
  z-index: 3;
  margin-top: auto;
  text-align: left;
  padding: 8px 0 4px;
  color: #ffffff;
  width: 100%;
}

.feature-model-card:not(.feature-inline-card) .feature-primary::before {
  content: "";
  position: absolute;
  inset: -420px -16px -64px -16px;
}

.feature-card-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-card-copy strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #ffffff;
}

.feature-case-origin {
  font-size: 11.5px;
  color: rgba(245, 242, 235, 0.62);
  font-weight: 400;
  line-height: 1.4;
}

.feature-case-link {
  position: relative;
  z-index: 4;
  margin-top: 10px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(245, 242, 235, 0.11);
  border: 1px solid rgba(245, 242, 235, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  color: #f5f2eb;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-spring);
}

.feature-case-link .icon {
  width: 12px;
  height: 12px;
}

.feature-case-link:hover {
  background: #f5f2eb;
  border-color: #f5f2eb;
  color: #09090c;
  transform: translateY(-1px);
}

/* ==========================================================================
   Creator Entry Bento Row — Infinite Canvas + Quick Create
   ========================================================================== */

.creator-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.canvas-entry {
  position: relative;
  min-height: 452px;
  padding: 36px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #0a0a0e;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  isolation: isolate;
  color: #f5f2eb;
  transition: border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.canvas-entry:hover {
  border-color: rgba(223, 169, 99, 0.36);
  transform: translateY(-3px);
}

.canvas-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 9, 0.42) 0%, rgba(7, 7, 9, 0.16) 38%, rgba(7, 7, 9, 0.85) 76%, rgba(7, 7, 9, 0.97) 100%),
    linear-gradient(90deg, rgba(7, 7, 9, 0.66) 0%, transparent 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.06);
  border-radius: inherit;
}

.canvas-function-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.canvas-function-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.9s var(--ease-out);
}

.canvas-entry:hover .canvas-function-art img {
  transform: scale(1.055);
}

.entry-kicker {
  position: absolute;
  top: 32px;
  left: 36px;
  z-index: 3;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(245, 242, 235, 0.8);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 14, 0.56);
  border: 1px solid rgba(245, 242, 235, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.entry-icon {
  position: absolute;
  top: 30px;
  right: 32px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 14, 0.58);
  border: 1px solid rgba(223, 169, 99, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--gold-bright);
  transition: transform 0.45s var(--ease-spring), border-color 0.3s var(--ease-out);
}

.canvas-entry:hover .entry-icon {
  transform: rotate(90deg) scale(1.06);
  border-color: var(--cyan);
  color: var(--cyan);
}

.canvas-entry h3 {
  position: relative;
  z-index: 3;
  margin: 0 0 8px;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}

.canvas-entry > p:not(.entry-kicker) {
  position: relative;
  z-index: 3;
  margin: 0 0 24px;
  font-size: 15px;
  color: rgba(245, 242, 235, 0.74);
}

.canvas-entry .btn-cyan {
  position: relative;
  z-index: 3;
  background: #f5f2eb;
  color: #09090c;
}

.canvas-entry .btn-cyan:hover {
  background: #ffffff;
}

/* Quick Create Panel */
.quick-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quick-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 4px 0;
}

.quick-heading h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.quick-heading span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--subtle);
}

.quick-tools {
  flex: 1;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.tool-card {
  position: relative;
  min-height: 196px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0a0e;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f5f2eb;
  isolation: isolate;
  transition: border-color 0.35s var(--ease-out), transform 0.42s var(--ease-out);
}

.tool-card:hover {
  border-color: rgba(223, 169, 99, 0.42);
  transform: translateY(-3px);
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 7, 9, 0.88) 0%, rgba(7, 7, 9, 0.56) 48%, rgba(7, 7, 9, 0.12) 100%),
    linear-gradient(180deg, transparent 42%, rgba(7, 7, 9, 0.72) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.06);
  border-radius: inherit;
}

.function-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.function-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 50%;
  transition: transform 0.85s var(--ease-out);
}

.tool-card:hover .function-card-art img {
  transform: scale(1.06);
}

.tool-icon {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 14, 0.58);
  border: 1px solid rgba(245, 242, 235, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold-bright);
  transition: transform 0.35s var(--ease-spring);
}

.tool-card:hover .tool-icon {
  transform: scale(1.08);
}

.tool-icon .icon {
  width: 16px;
  height: 16px;
}

.tool-label {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(245, 242, 235, 0.58);
}

.tool-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 72%;
}

.tool-copy strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #ffffff;
}

.tool-copy > span {
  font-size: 13.5px;
  color: rgba(245, 242, 235, 0.72);
  line-height: 1.5;
}

.card-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 242, 235, 0.1);
  border: 1px solid rgba(245, 242, 235, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.3s var(--ease-spring);
}

.tool-card:hover .card-arrow {
  background: #f5f2eb;
  border-color: #f5f2eb;
  color: #09090c;
  transform: translateX(4px);
}

/* ==========================================================================
   MCP Connector Strip — Living Optical Border Beam & Pulse Indicator
   ========================================================================== */

@keyframes rotateBeam {
  to {
    --beam-angle: 360deg;
  }
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(62, 232, 246, 0.55);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(62, 232, 246, 0);
  }
}

.mcp-connector {
  position: relative;
  margin-top: 24px;
  padding: 28px 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(42% 135% at 0% 50%, var(--gold-soft) 0%, transparent 72%),
    radial-gradient(32% 120% at 100% 50%, var(--cyan-soft) 0%, transparent 70%),
    var(--surface);
  border: 1px solid transparent;
  box-shadow: var(--specular), var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  isolation: isolate;
}

/* Animated 1px champagne-to-cyan border beam around MCP strip */
.mcp-connector::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--beam-angle),
    var(--line) 0deg,
    var(--line) 245deg,
    var(--gold) 295deg,
    var(--cyan) 325deg,
    var(--line) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: rotateBeam 9s linear infinite;
}

.mcp-main {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.mcp-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  box-shadow: var(--specular);
}

.mcp-mark .icon {
  width: 22px;
  height: 22px;
}

.mcp-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mcp-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.mcp-heading-row h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mcp-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-secondary);
}

.mcp-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.mcp-tagline {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.mcp-clients {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mcp-clients span {
  color: var(--gold);
}

.mcp-action {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}

#mcp-connect-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

/* ==========================================================================
   Section 02 — Inspiration Gallery (24 Distinct Landscape Videos)
   ========================================================================== */

.gallery-section {
  padding: 104px 0 112px;
  border-top: 1px solid var(--line);
}

.gallery-section .section-heading {
  margin-bottom: 24px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.gallery-browse-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-swipe-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-right: 6px;
}

.gallery-stream {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 14px;
  margin: -4px 0 -14px;
  cursor: grab;
  user-select: none;
}

.gallery-stream::-webkit-scrollbar {
  display: none;
}

.gallery-stream.dragging {
  cursor: grabbing;
}

.masonry-column {
  flex: 0 0 calc((100% - 48px) / 3.28);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-card {
  position: relative;
  width: 100%;
  aspect-ratio: var(--case-aspect, 16 / 9);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0c0c10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: border-color 0.32s var(--ease-out), transform 0.42s var(--ease-out), box-shadow 0.42s var(--ease-out);
}

.gallery-card:hover {
  border-color: rgba(223, 169, 99, 0.42);
  transform: translateY(-3px);
}

.gallery-card:has([data-playing="true"]) {
  border-color: rgba(62, 232, 246, 0.5);
  box-shadow: 0 20px 44px -18px rgba(62, 232, 246, 0.2);
}

.gallery-card .inline-media-shell {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.gallery-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.72s var(--ease-out);
}

.gallery-card:hover video {
  transform: scale(1.035);
}

/* Quiet top-right corner source button — clear of bottom-right video watermarks */
.gallery-details-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 12, 0.62);
  border: 1px solid rgba(245, 242, 235, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(245, 242, 235, 0.85);
  opacity: 0.72;
  transition: opacity 0.22s var(--ease-out), background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), transform 0.25s var(--ease-spring);
}

.gallery-details-button .icon {
  width: 14px;
  height: 14px;
}

.gallery-card:hover .gallery-details-button,
.gallery-details-button:focus-visible {
  opacity: 1;
}

.gallery-details-button:hover {
  background: #f5f2eb;
  border-color: #f5f2eb;
  color: #09090c;
  transform: scale(1.08);
}

.gallery-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-bottom > p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ==========================================================================
   Section 03 — For Developers (API Model Library, Quickstart & Base URL)
   ========================================================================== */

.api-section {
  position: relative;
  padding: 112px 0 112px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(52% 45% at 88% 8%, var(--gold-soft) 0%, transparent 72%),
    radial-gradient(42% 45% at 10% 92%, var(--cyan-soft) 0%, transparent 72%),
    var(--bg-elevated);
  overflow: hidden;
}

.api-topography {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.api-section .section-shell {
  position: relative;
  z-index: 1;
}

.api-heading h2 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.api-symbol {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  box-shadow: var(--specular);
}

.api-symbol .icon {
  width: 20px;
  height: 20px;
}

.api-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--specular);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.tab:hover {
  color: var(--text);
}

.tab.selected {
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-weight: 600;
}

/* 4-Category Overview Bento */
.category-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 288px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--specular), var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: hidden;
  transition:
    border-color 0.32s var(--ease-out),
    transform 0.38s var(--ease-out),
    background-color 0.32s var(--ease-out);
}

.category-card:hover {
  border-color: rgba(223, 169, 99, 0.42);
  background: var(--surface-hover);
  transform: translateY(-5px);
}

.model-card-top {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.model-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.28s var(--ease-out), color 0.28s var(--ease-out), transform 0.32s var(--ease-spring);
}

.category-card:hover .model-icon {
  border-color: var(--gold);
  color: var(--gold);
  transform: scale(1.06);
}

.model-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--subtle);
  letter-spacing: 0.08em;
}

.model-english {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 6px;
}

.category-card h3 {
  position: relative;
  z-index: 3;
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

.category-brands {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-brands > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1;
}

.category-brands > span:not(.brand-chip) {
  padding-left: 10px;
}

.brand-chip img {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 6px;
  background: #f6f5f2;
  object-fit: contain;
  flex: none;
}

.model-bottom {
  position: relative;
  z-index: 3;
  margin-top: auto;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease-out);
}

.model-bottom .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.28s var(--ease-spring);
}

.category-card:hover .model-bottom {
  color: var(--text);
}

.category-card:hover .model-bottom .icon {
  transform: translateX(4px);
}

/* Subtle Architectural Concentric Rings */
.language-orbit,
.image-orbit,
.video-orbit {
  position: absolute;
  right: -36px;
  top: -36px;
  width: 148px;
  height: 148px;
  pointer-events: none;
  opacity: 0.14;
  transition: opacity 0.4s var(--ease-out), transform 0.65s var(--ease-out);
}

.language-orbit span,
.image-orbit span,
.video-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.language-orbit span:nth-child(2),
.image-orbit span:nth-child(2),
.video-orbit span:nth-child(2) {
  inset: 24px;
}

.language-orbit span:nth-child(3),
.image-orbit span:nth-child(3),
.video-orbit span:nth-child(3) {
  inset: 48px;
}

.category-card:hover .language-orbit,
.category-card:hover .image-orbit,
.category-card:hover .video-orbit {
  opacity: 0.34;
  transform: scale(1.12) rotate(16deg);
}

/* Expanded 9-Model Directory View with Staggered Ripple */
@keyframes cardCascade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.catalog-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-detail-heading .section-kicker {
  margin-bottom: 6px;
}

#catalog-detail-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

#catalog-collapse {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
}

#catalog-collapse:hover {
  border-color: var(--gold);
  color: var(--text);
}

#models-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.representative-model {
  position: relative;
  overflow: hidden;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--specular), var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: cardCascade 0.48s var(--ease-out) calc(var(--i, 0) * 42ms) both;
  transition: border-color 0.28s var(--ease-out), transform 0.34s var(--ease-out), background-color 0.28s var(--ease-out);
}

.representative-model:hover {
  border-color: rgba(223, 169, 99, 0.42);
  background: var(--surface-hover);
  transform: translateY(-4px);
}

.representative-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.provider-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f6f5f2;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.provider-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.provider-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.model-type {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.representative-model h3 {
  position: relative;
  z-index: 3;
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.model-variant-label {
  position: relative;
  z-index: 3;
  font-size: 12px;
  color: var(--gold);
  margin-top: -6px;
}

.representative-model code {
  position: relative;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.representative-bottom {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.22s var(--ease-out);
}

.representative-bottom .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-spring);
}

.representative-model:hover .representative-bottom {
  color: var(--text);
}

.representative-model:hover .representative-bottom .icon {
  transform: translateX(4px);
}

.model-library-link {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.model-library-link > span {
  font-size: 13.5px;
  color: var(--muted);
}

/* Base URL + Interactive Developer Quickstart Terminal */
.base-connection {
  position: relative;
  overflow: hidden;
  margin-top: 32px;
  padding: 26px 30px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--specular), var(--shadow-card);
}

.base-uri {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.base-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.terminal-dot {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--gold);
  flex: none;
}

.terminal-dot .icon {
  width: 17px;
  height: 17px;
}

.base-label > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#base-connection-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text);
}

.base-label > div > span {
  font-size: 13px;
  color: var(--muted);
}

.base-input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  max-width: 100%;
}

#base-url-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}

#copy-base-url {
  border-radius: 8px;
  color: var(--muted);
}

#copy-base-url:hover {
  color: var(--text);
  background: var(--surface);
}

.base-usage-note {
  position: relative;
  z-index: 3;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.base-usage-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text-secondary);
}

.base-usage-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Interactive OpenAI-Compatible Code Quickstart Window */
.code-quickstart {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  border: 1px solid rgba(245, 242, 235, 0.1);
  overflow: hidden;
  color: #e8e6e0;
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(245, 242, 235, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.code-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.code-tab {
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8b8882;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.code-tab:hover {
  color: #f5f2eb;
}

.code-tab.active {
  background: rgba(223, 169, 99, 0.16);
  color: #f2c88d;
}

.code-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #9e9b95;
  border: 1px solid rgba(245, 242, 235, 0.1);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.code-copy-btn .icon {
  width: 13px;
  height: 13px;
}

.code-copy-btn:hover {
  color: #ffffff;
  border-color: rgba(223, 169, 99, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.code-pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #e4e1da;
}

.tok-kw { color: var(--tok-kw); }
.tok-str { color: var(--tok-str); }
.tok-fn { color: var(--tok-fn); font-weight: 500; }
.tok-cm { color: var(--tok-cm); }

/* ==========================================================================
   Section 04 — Keep Exploring & Footer
   ========================================================================== */

.explore-section {
  padding: 96px 0 76px;
  border-top: 1px solid var(--line);
}

.explore-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
}

/* Approved DW Monogram Crop — Unaltered Pixels */
.explore-heading .about-mark {
  width: 64px;
  height: auto;
  aspect-ratio: 346 / 166;
  position: relative;
  overflow: hidden;
  flex: none;
  border-radius: 8px;
  background: #000000;
  mix-blend-mode: lighten;
}

.explore-heading .about-mark img {
  position: absolute;
  width: 362.427745%;
  height: auto;
  max-width: none;
  left: -38.150289%;
  top: -492.168675%;
}

html[data-theme="light"] .explore-heading .about-mark {
  mix-blend-mode: normal;
  background: #0d0d11;
  box-shadow: 0 0 0 6px #0d0d11;
  border-radius: 6px;
  margin: 6px;
}

.explore-heading .section-kicker {
  margin-bottom: 6px;
}

.explore-heading h2 {
  margin: 0;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.explore-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.explore-card {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--specular);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  transition: border-color 0.28s var(--ease-out), transform 0.34s var(--ease-out), background-color 0.28s var(--ease-out);
}

.explore-card:not(:disabled):hover {
  border-color: rgba(223, 169, 99, 0.42);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.explore-card > span {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.explore-card strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.explore-card small {
  font-size: 12.5px;
  color: var(--muted);
}

.explore-card .icon {
  position: relative;
  z-index: 3;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transition: color 0.25s var(--ease-out), transform 0.28s var(--ease-spring);
}

.explore-card:not(:disabled):hover .icon {
  color: var(--gold);
  transform: translate(3px, -3px);
}

.footer {
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.footer-sep {
  margin: 0 8px;
  color: var(--subtle);
}

.footer-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.22s var(--ease-out);
}

.footer-right a:hover {
  color: var(--gold);
}

.footer-right .icon {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   Dialogs (Lightbox & Preview Notice) + Toast
   ========================================================================== */

dialog {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--specular), 0 36px 96px -20px rgba(0, 0, 0, 0.88);
  max-width: min(92vw, 480px);
  width: 100%;
  overflow: hidden;
}

dialog[open] {
  animation: dialogPop 0.34s var(--ease-out);
}

@keyframes dialogPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

dialog::backdrop {
  background: rgba(4, 4, 7, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#preview-dialog {
  padding: 36px 32px 32px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.68);
  border: 1px solid rgba(245, 242, 235, 0.16);
  color: #f5f2eb;
}

.dialog-close:hover {
  background: #f5f2eb;
  color: #09090c;
}

.dialog-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 18px;
}

#dialog-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

#dialog-copy {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-dialog {
  max-width: min(94vw, 1040px);
  background: #0a0a0e;
  color: #f5f2eb;
  border-color: rgba(245, 242, 235, 0.14);
}

.gallery-lightbox-art {
  position: relative;
  width: 100%;
  min-height: 340px;
  max-height: 70vh;
  background: #050507;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.gallery-lightbox-art img,
.gallery-lightbox-art video {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-lightbox-art img.native-resolution {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 62vh;
  border-radius: 12px;
}

.gallery-lightbox-art p {
  padding: 40px 24px;
  margin: 0;
  color: #9e9b95;
  font-size: 14px;
}

.gallery-lightbox-info {
  padding: 22px 28px;
  border-top: 1px solid rgba(245, 242, 235, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-lightbox-info .section-kicker {
  margin-bottom: 4px;
  color: var(--gold);
}

#gallery-dialog-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

#gallery-source-credit {
  margin: 0;
  font-size: 12.5px;
  color: #8b8882;
}

#gallery-source-credit a {
  color: #dad6ce;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-dialog .btn-cyan {
  background: #f5f2eb;
  color: #09090c;
}

.gallery-dialog .btn-cyan:hover {
  background: #ffffff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 950;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.65);
  transition: opacity 0.25s var(--ease-out), transform 0.28s var(--ease-spring);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1160px) {
  :root {
    --shell: min(1320px, calc(100vw - 56px));
  }

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

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .feature-model-card {
    flex-basis: calc((100% - 36px) / 3);
  }

  .category-overview,
  #models-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry-column {
    flex-basis: calc((100% - 32px) / 2.4);
  }
}

@media (max-width: 1200px) {
  .hero-cinema-pill {
    margin-right: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 1120px) {
  .header {
    padding: 0 24px;
    gap: 14px;
  }

  .brand .logo-crop {
    width: 138px;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-float);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  }

  .nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav .nav-link {
    color: var(--text-secondary);
    padding: 11px 14px;
  }

  .nav .nav-link.active,
  .nav .nav-link:hover {
    color: var(--text);
    background: var(--surface-2);
  }

  .header-actions {
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1120px) {
  .featured-drop-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drop-tab {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-description {
    text-align: left;
  }

  .creator-entry-row {
    grid-template-columns: 1fr;
  }

  .canvas-entry {
    min-height: 380px;
  }

  .mcp-connector {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .mcp-action {
    align-items: flex-start;
    width: 100%;
  }

  #mcp-connect-note {
    text-align: left;
  }

  .explore-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  :root {
    --shell: calc(100vw - 32px);
  }

  .mobile-break {
    display: inline;
  }

  .header {
    height: 64px;
    padding: 0 16px;
  }

  .header.is-scrolled {
    top: 10px;
    width: calc(100vw - 24px);
    height: 54px;
    padding: 0 14px;
  }

  .brand .logo-crop {
    width: 122px;
  }

  .notification-btn,
  .actions-divider,
  .login {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-scene img {
    object-position: 78% 45%;
  }

  .hero-art {
    background:
      linear-gradient(180deg, rgba(7, 7, 9, 0.56) 0%, rgba(7, 7, 9, 0.42) 32%, rgba(7, 7, 9, 0.88) 70%, #070709 100%);
  }

  .hero-layout {
    padding: 108px 0 32px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 15px;
    margin-top: 18px;
  }

  .hero-ctas {
    margin-top: 28px;
    gap: 10px;
  }

  .hero .btn-cyan,
  .hero .btn-glass {
    min-height: 44px;
    padding: 0 20px;
    font-size: 13.5px;
  }

  .hero-tags {
    margin-top: 28px;
    gap: 14px;
  }

  .hero-bottom {
    padding: 16px 0 22px;
    font-size: 10px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 20px 16px;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .creator-section {
    padding: 72px 0 64px;
  }

  .creator-grid {
    gap: 40px;
  }

  .feature-model-card {
    flex-basis: 76%;
    aspect-ratio: 4 / 5;
  }

  .canvas-entry {
    min-height: 340px;
    padding: 24px;
  }

  .entry-kicker {
    top: 22px;
    left: 24px;
  }

  .entry-icon {
    top: 20px;
    right: 22px;
  }

  .quick-tools {
    grid-template-rows: auto auto;
  }

  .tool-card {
    min-height: 176px;
    padding: 22px;
  }

  .tool-copy {
    max-width: 82%;
  }

  .mcp-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .gallery-section {
    padding: 72px 0 76px;
  }

  .masonry-column {
    flex-basis: 80%;
  }

  .api-section {
    padding: 76px 0 76px;
  }

  .category-overview,
  #models-panel {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 230px;
    padding: 22px;
  }

  .base-connection {
    padding: 20px;
  }

  .base-input {
    width: 100%;
    justify-content: space-between;
  }

  .explore-section {
    padding: 68px 0 56px;
  }

  .gallery-lightbox-info {
    padding: 18px 20px;
  }
}

/* ==========================================================================
   v3 Flagship Motion Upgrades: 3D Tilt, Liquid Sliding Pills, Logo Marquee & Scroll Scale
   ========================================================================== */

/* Prompt Gallery Subtitle */
.gallery-subtitle {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 520px;
}

/* Micro 3D Tilt + Diagonal Glare on Poster & Creation Cards */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-model-card[data-tilt],
.canvas-entry[data-tilt],
.tool-card[data-tilt] {
  transform: perspective(1100px) rotateX(var(--tilt-rx, 0deg)) rotateY(var(--tilt-ry, 0deg)) translateY(var(--tilt-lift, 0px)) scale(var(--scroll-scale, 1));
}

.feature-model-card[data-tilt]:hover {
  --tilt-lift: -6px;
}

.canvas-entry[data-tilt]:hover,
.tool-card[data-tilt]:hover {
  --tilt-lift: -3px;
}

/* Scroll-Driven Scale Expansion */
.scroll-scale-target {
  transform: scale(var(--scroll-scale, 1));
  will-change: transform;
}

/* Verified Provider Logo Infinite Marquee */
.brand-marquee {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}

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

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  box-shadow: var(--specular);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.marquee-item:hover {
  border-color: rgba(223, 169, 99, 0.42);
  color: var(--text);
}

.marquee-item img {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: #f6f5f2;
  object-fit: contain;
  flex: none;
}

/* Liquid Sliding Pill Indicator for API Tabs & Code Quickstart Tabs */
.tabs,
.code-tabs {
  position: relative;
}

.sliding-pill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  border-radius: var(--radius-pill);
  background: var(--cta-bg);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(var(--pill-x, 0px), 0, 0);
  width: var(--pill-w, 0px);
  opacity: var(--pill-o, 0);
  transition:
    transform 0.42s cubic-bezier(0.22, 1.14, 0.36, 1),
    width 0.38s cubic-bezier(0.22, 1.14, 0.36, 1),
    opacity 0.2s var(--ease-out);
}

.code-tabs .sliding-pill {
  top: 0;
  bottom: 0;
  border-radius: 8px;
  background: rgba(223, 169, 99, 0.18);
  border: 1px solid rgba(223, 169, 99, 0.28);
}

.tabs.has-sliding-pill .tab,
.code-tabs.has-sliding-pill .code-tab {
  position: relative;
  z-index: 1;
}

.tabs.has-sliding-pill .tab.selected,
.code-tabs.has-sliding-pill .code-tab.active {
  background: transparent;
}

@media (max-width: 1200px) {
  .hero-cinema-pill {
    margin-right: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 1120px) {
  .featured-drop-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drop-tab {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-viewfinder {
    display: none;
  }
}

@media (max-width: 650px) {
  .hero-cinema-pill {
    width: 100%;
    justify-content: space-between;
  }

  .cinema-pill-meta strong {
    white-space: normal;
  }
}

/* ==========================================================================
   v1.1 Featured Drop Linkage: Hero Announcement Pill & Multi-Slot Drop Stage
   ========================================================================== */

.hero-promo-pill {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  margin-bottom: 24px;
  border-radius: var(--radius-pill);
  background: rgba(14, 14, 20, 0.72);
  border: 1px solid rgba(223, 169, 99, 0.34);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 250, 240, 0.1), 0 12px 30px -14px rgba(0, 0, 0, 0.72);
  color: #f5f2eb;
  font-size: 13px;
  animation: heroRiseIn 0.85s var(--ease-out) 0.05s both;
  transition: border-color 0.28s var(--ease-out), background-color 0.28s var(--ease-out), transform 0.28s var(--ease-spring);
}

.hero-promo-pill:hover {
  border-color: rgba(223, 169, 99, 0.72);
  background: rgba(22, 20, 28, 0.86);
  transform: translateY(-2px);
}

.promo-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(223, 169, 99, 0.18);
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.promo-pill-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: statusPulse 2.6s ease-in-out infinite;
}

.promo-pill-text {
  color: rgba(245, 242, 235, 0.92);
  font-weight: 500;
}

.promo-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-bright);
  padding-left: 4px;
}

.promo-pill-action .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease-spring);
}

.hero-promo-pill:hover .promo-pill-action .icon {
  transform: translateX(3px);
}

/* Featured Drop Flagship Stage (1 ~ 3+ Switchable Promo Models) */
.featured-drop-stage {
  position: relative;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(48% 120% at 4% 12%, var(--gold-soft) 0%, transparent 72%),
    radial-gradient(36% 90% at 96% 88%, var(--cyan-soft) 0%, transparent 72%),
    var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--specular), var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.featured-drop-stage.is-pulsed {
  border-color: var(--gold);
  box-shadow: var(--specular), 0 0 0 1px rgba(223, 169, 99, 0.45), 0 24px 64px -20px var(--gold-glow);
}

.featured-drop-main {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 36px;
  padding: 38px 38px 34px;
  align-items: center;
}

.featured-drop-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.featured-drop-eyebrow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.drop-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  border: 1px solid rgba(223, 169, 99, 0.3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.drop-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.drop-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.drop-title {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text);
}

/* Monumental Price Advantage Callout */
.drop-price-hero {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.drop-price-value {
  font-family: var(--font-mono);
  font-size: clamp(38px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(112deg, #fff8ec 0%, var(--gold-bright) 52%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html[data-theme="light"] .drop-price-value {
  background: linear-gradient(112deg, #7c4d0f 0%, #a67026 55%, #c58835 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.drop-price-unit {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.drop-price-tier {
  align-self: center;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  border: 1px solid rgba(223, 169, 99, 0.34);
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
}

/* Bespoke Obsidian Pricing & Spec Instrument Board (for LLM drops like DeepSeek) */
.featured-drop-media.is-spec-panel {
  background:
    radial-gradient(56% 72% at 100% 0%, rgba(223, 169, 99, 0.14) 0%, transparent 72%),
    radial-gradient(50% 60% at 0% 100%, rgba(62, 232, 246, 0.10) 0%, transparent 72%),
    #090a0e;
  padding: 24px;
  display: flex;
  align-items: stretch;
}

.drop-spec-board {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  color: #f5f2eb;
}

.drop-spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.drop-spec-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.drop-spec-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #f6f5f2;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.drop-spec-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: default;
}

.drop-spec-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drop-spec-brand strong {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.drop-spec-brand code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #9e9b95;
}

.drop-spec-tag {
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(223, 169, 99, 0.14);
  border: 1px solid rgba(223, 169, 99, 0.34);
  font-size: 11.5px;
  font-weight: 500;
  color: #f2c88d;
}

.drop-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.drop-spec-cell {
  padding: 15px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(245, 242, 235, 0.09);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drop-spec-cell small {
  font-size: 11.5px;
  color: #8b8882;
}

.drop-spec-cell strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f5f2eb;
  font-variant-numeric: tabular-nums;
}

.drop-spec-cell:first-child strong,
.drop-spec-cell:nth-child(3) strong {
  color: #f2c88d;
}

.drop-spec-foot {
  padding-top: 12px;
  border-top: 1px solid rgba(245, 242, 235, 0.09);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #8b8882;
}

.drop-spec-foot code {
  color: #7be3d7;
}

.drop-desc {
  margin: 14px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}

.drop-highlights {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drop-chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.drop-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.drop-secondary-btn {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.drop-secondary-btn:hover {
  border-color: var(--gold);
  background: var(--surface-hover);
}

.drop-footnote {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--subtle);
}

/* Right Cinema Media Frame */
.featured-drop-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #070709;
  border: 1px solid var(--line-strong);
  box-shadow: 0 22px 48px -20px rgba(0, 0, 0, 0.72);
}

.featured-drop-media.is-entering {
  animation: dropMediaIn 0.52s var(--ease-out) both;
}

@keyframes dropMediaIn {
  from { opacity: 0.35; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.featured-drop-media video,
.featured-drop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  cursor: pointer;
}

/* Bottom Multi-Slot Switcher (Auto-hidden when only 1 drop is configured) */
.featured-drop-switcher {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(var(--drop-count, 3), minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .featured-drop-switcher {
  background: rgba(17, 17, 20, 0.025);
}

.drop-tab {
  position: relative;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  color: var(--muted);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.drop-tab:not(:last-child) {
  border-right: 1px solid var(--line);
}

.drop-tab:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

html[data-theme="light"] .drop-tab:hover {
  background: rgba(17, 17, 20, 0.03);
}

.drop-tab.is-active {
  color: var(--text);
  background: rgba(223, 169, 99, 0.06);
}

.drop-tab-bar {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--cyan) 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
}

.drop-tab.is-active .drop-tab-bar {
  opacity: 1;
  transform: scaleX(1);
}

.featured-drop-stage.is-cycling .drop-tab.is-active .drop-tab-bar {
  animation: dropProgress var(--drop-duration, 6800ms) linear forwards;
}

@keyframes dropProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.drop-tab-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--subtle);
  flex: none;
}

.drop-tab.is-active .drop-tab-num {
  color: var(--gold);
}

.drop-tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.drop-tab-info strong {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drop-tab-info small {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1120px) {
  .featured-drop-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drop-tab {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 960px) {
  .featured-drop-main {
    grid-template-columns: 1fr;
    padding: 28px 24px 26px;
    gap: 24px;
  }

  .featured-drop-switcher {
    grid-template-columns: 1fr;
  }

  .drop-tab:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 650px) {
  .hero-promo-pill {
    font-size: 12px;
    padding: 5px 12px 5px 5px;
    gap: 8px;
    margin-bottom: 18px;
  }

  .featured-drop-main {
    padding: 22px 18px 20px;
  }

  .drop-tab {
    padding: 14px 18px;
  }
}

/* Respect Reduced Motion Strictly */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero[data-motion="running"] .hero-scene img,
  .hero-scene-picture,
  .hero-volumetric,
  .hero h1 span,
  .cinema-pill-bars i,
  .marquee-track,
  .mcp-connector::after,
  .mcp-status::before,
  .hero-bottom a span:last-child {
    animation: none;
  }

  .b-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
