/* Vdivo — site styles */
:root {
  --bg: #090A0E;
  --s1: #12141C;
  --s2: #1A1D28;
  --line: #2A2D3B;
  --line-soft: rgba(42, 45, 59, .6);
  --text: #F5F5FA;
  --muted: #A2A6B8;
  --violet: #A990FF;
  --blue: #6B8CFF;
  --mint: #BDF5DE;
  --grad: linear-gradient(135deg, var(--violet), var(--blue));
  --font-head: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1240px;
  --gutter: 24px;
  --section: 104px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-primary {
  background: var(--text); color: var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px -10px rgba(169, 144, 255, .6);
}
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 14px 36px -10px rgba(169, 144, 255, .8); }
.btn-ghost { background: rgba(26, 29, 40, .6); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #3d4156; background: var(--s2); }
.btn-icon { width: 18px; height: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet);
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 4px rgba(189, 245, 222, .14);
}

.grad-text {
  background: linear-gradient(100deg, #C9B8FF 0%, var(--violet) 35%, var(--blue) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chip-violet { background: rgba(169, 144, 255, .2); color: #DCD2FF; border: 1px solid rgba(169, 144, 255, .4); }
.chip-blue { background: rgba(107, 140, 255, .2); color: #D3DDFF; border: 1px solid rgba(107, 140, 255, .45); }
.chip-mint { background: rgba(189, 245, 222, .12); color: var(--mint); border: 1px solid rgba(189, 245, 222, .35); }
.chip-dark { background: rgba(9, 10, 14, .55); color: var(--text); border: 1px solid rgba(255, 255, 255, .14); }
.chip-solid { background: rgba(9, 10, 14, .9); color: var(--text); border: 1px solid rgba(255, 255, 255, .18); }
.chip-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }

.text-link {
  display: inline-flex; gap: 8px; align-items: center;
  margin-top: 28px;
  color: var(--text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(169, 144, 255, .5); padding-bottom: 2px;
}
.text-link:hover { border-color: var(--violet); color: #fff; }
.inline-link { color: var(--text); text-decoration-color: rgba(169, 144, 255, .6); text-underline-offset: 3px; }
.inline-link:hover { text-decoration-color: var(--violet); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 10, 14, .72);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: #D4D6E2; font-size: 15px; font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--text); background: var(--s2); }
.nav-list a[aria-current="page"] { color: var(--text); background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--s1);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-bars span:first-child { top: 1px; }
.nav-toggle-bars span:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 var(--section); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 40% at 72% 38%, rgba(107, 140, 255, .22), transparent 70%),
    radial-gradient(34% 36% at 58% 22%, rgba(169, 144, 255, .2), transparent 70%),
    radial-gradient(30% 30% at 12% 10%, rgba(169, 144, 255, .08), transparent 70%);
  animation: glow-drift 16s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.hero-title {
  font-size: clamp(44px, 6.4vw, 84px);
  font-weight: 700; line-height: .98; letter-spacing: -.045em;
}
.hero-title .grad-text { display: block; }
.hero-lede { margin-top: 28px; max-width: 540px; color: #C3C6D4; font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; color: var(--muted); font-size: 15px; font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 10px; }
.tick {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(189, 245, 222, .12); border: 1px solid rgba(189, 245, 222, .4);
  position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 5.5px; top: 3.5px; width: 4px; height: 7px;
  border: solid var(--mint); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}

/* Hero stage */
.hero-stage { position: relative; height: 580px; }
.stage-card {
  position: absolute; overflow: hidden;
  border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1);
  background: var(--s1);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
}
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.card-chrome { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; }

.stage-video { top: 40px; left: 0; width: 82%; aspect-ratio: 16 / 10.5; animation: float-a 9s ease-in-out infinite; }
.stage-video::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(9,10,14,.15) 0%, transparent 35%, rgba(9,10,14,.75) 100%);
}
.timeline {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(9, 10, 14, .6); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.play-dot {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--text); color: var(--bg);
}
.play-dot svg { width: 12px; height: 12px; margin-left: 2px; }
.timeline-track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.timeline-fill { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--grad); animation: progress 7s linear infinite; }

.stage-image { right: 0; bottom: 30px; width: 44%; aspect-ratio: 4 / 5; z-index: 2; animation: float-b 10s ease-in-out infinite; }
.stage-image img { object-position: 50% 60%; }

.stage-music {
  left: 6%; bottom: 0; width: 46%; z-index: 3;
  padding: 18px 18px 20px;
  background: linear-gradient(160deg, rgba(26, 29, 40, .96), rgba(18, 20, 28, .96));
  animation: float-c 11s ease-in-out infinite;
}
.music-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.music-meta { color: var(--muted); font-size: 13px; font-weight: 500; }

.wave { display: flex; align-items: center; gap: 4px; }
.wave span {
  flex: 1; min-width: 2px;
  height: calc(var(--h) * 100%);
  border-radius: 99px;
  background: linear-gradient(180deg, var(--mint), var(--blue));
  transform-origin: center;
  animation: wave 1.8s ease-in-out infinite;
}
.wave span:nth-child(3n) { animation-delay: -.4s; }
.wave span:nth-child(3n+1) { animation-delay: -.9s; }
.wave span:nth-child(4n) { animation-delay: -1.3s; }
.wave-sm { height: 56px; }

.stage-key {
  top: 0; right: 4%; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: rgba(26, 29, 40, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: float-b 8s ease-in-out infinite reverse;
}
.key-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: var(--bg); }
.key-icon svg { width: 22px; height: 22px; }
.key-text { display: grid; gap: 6px; }
.key-text strong { font-family: var(--font-head); font-size: 16px; font-weight: 600; line-height: 1; }
.key-routes { display: flex; gap: 6px; }
.key-routes i { display: block; width: 22px; height: 6px; border-radius: 6px; }
.r-video { background: var(--violet); }
.r-image { background: var(--blue); }
.r-music { background: var(--mint); }

.stage-caption {
  position: absolute; left: 0; bottom: -40px;
  color: var(--muted); font-size: 13px;
}
.motion-toggle {
  position: absolute; right: 0; bottom: -46px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--s1);
  color: #D4D6E2; font-size: 13px; font-weight: 500; cursor: pointer;
}
.motion-toggle:hover { border-color: #3d4156; color: var(--text); }
.motion-icon { position: relative; width: 10px; height: 10px; }
.motion-icon::before, .motion-icon::after { content: ""; position: absolute; top: 0; width: 3px; height: 10px; border-radius: 1px; background: currentColor; }
.motion-icon::before { left: 1px; }
.motion-icon::after { right: 1px; }
.motion-toggle[data-paused="true"] .motion-icon::before {
  left: 1px; width: 0; height: 0; border-radius: 0; background: none;
  border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor;
}
.motion-toggle[data-paused="true"] .motion-icon::after { display: none; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.section-title { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.035em; }
.section-lede { margin-top: 20px; color: #C3C6D4; font-size: 18px; max-width: 620px; }
.section-head-split .section-lede { margin-top: 0; }

/* Gallery */
.gallery-section { border-top: 1px solid var(--line-soft); }
.gallery {
  display: grid; gap: 20px;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 300px 300px;
}
.shot { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--s1); }
.shot-tall { grid-row: span 2; }
.shot-wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 10, 14, .85) 100%);
}
.shot figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1;
  display: grid; gap: 6px;
}
.shot-label {
  justify-self: start;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(9, 10, 14, .55); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.shot-prompt { color: #E6E7EF; font-size: 15px; line-height: 1.45; }
.gallery-note { margin-top: 18px; color: var(--muted); font-size: 14px; }

/* Tabs */
.tabs {
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, var(--s1), rgba(18, 20, 28, .6));
  padding: 12px;
}
.tablist {
  display: inline-flex; gap: 4px; padding: 6px; margin: 12px 0 0 12px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
}
.tab {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  background: transparent; color: var(--muted);
  font-family: var(--font-head); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--s2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.tab-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-violet { background: var(--violet); }
.dot-blue { background: var(--blue); }
.dot-mint { background: var(--mint); }

.tabpanel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px; align-items: center;
  padding: 40px 28px 28px 36px;
}
.tabpanel[hidden] { display: none; }
.tabpanel:focus-visible { outline-offset: -2px; border-radius: 20px; }
.panel-copy h3 { font-size: 32px; letter-spacing: -.025em; }
.panel-copy p { margin-top: 16px; color: #C3C6D4; }
.check-list { display: grid; gap: 12px; margin-top: 26px; }
.check-list li { position: relative; padding-left: 30px; color: #E1E3EC; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(169, 144, 255, .14); border: 1px solid rgba(169, 144, 255, .45);
}
.check-list li::after {
  content: ""; position: absolute; left: 6.5px; top: 7.5px; width: 4px; height: 8px;
  border: solid var(--violet); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}

.panel-visual { position: relative; border-radius: 22px; overflow: hidden; min-height: 400px; background: var(--bg); border: 1px solid var(--line); }
.panel-visual img { width: 100%; height: 100%; object-fit: cover; }

.visual-video { display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 10px; }
.vv-main { position: relative; overflow: hidden; border-radius: 14px; min-height: 280px; }
.vv-chip { position: absolute; top: 14px; left: 14px; }
.vv-scan {
  position: absolute; top: 0; bottom: 0; width: 30%; left: -30%;
  background: linear-gradient(90deg, transparent, rgba(169, 144, 255, .22), transparent);
  animation: scan 5s ease-in-out infinite;
}
.vv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vv-strip span { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); opacity: .75; }
.vv-strip span:first-child { opacity: 1; box-shadow: 0 0 0 2px var(--violet); }
.timeline-static { position: relative; left: auto; right: auto; bottom: auto; }

.visual-image {
  display: grid; gap: 10px; padding: 10px;
  grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr 1fr;
}
.vi-tile { overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.vi-a { grid-row: span 2; }
.vi-a img { object-position: 30% 50%; }
.vi-b img { object-position: 80% 40%; filter: hue-rotate(40deg) saturate(1.2); }
.vi-c { grid-row: span 2; }
.vi-d img { object-position: 60% 80%; filter: hue-rotate(-30deg) saturate(1.3) brightness(.9); }
.vi-chip { position: absolute; top: 22px; left: 22px; }

.visual-music {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(107, 140, 255, .2), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(189, 245, 222, .12), transparent 70%),
    var(--bg);
}
.vm-head { display: flex; align-items: center; justify-content: space-between; }
.vm-title { font-family: var(--font-head); color: var(--muted); font-size: 14px; font-weight: 500; }
.wave-lg { position: relative; z-index: 1; height: 180px; gap: 5px; }
.vm-rings { position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; pointer-events: none; }
.vm-rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(169, 144, 255, .25); }
.vm-rings span:nth-child(2) { inset: 30px; border-color: rgba(107, 140, 255, .3); }
.vm-rings span:nth-child(3) { inset: 60px; border-color: rgba(189, 245, 222, .3); }

/* Workflow */
.workflow-section { background: linear-gradient(180deg, transparent, rgba(18, 20, 28, .55) 30%, rgba(18, 20, 28, .55) 70%, transparent); }
.workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.steps { display: grid; gap: 4px; margin-top: 40px; counter-reset: step; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 27px; top: 70px; bottom: -14px; width: 1px;
  background: linear-gradient(180deg, var(--line), transparent);
}
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--s2); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 600; color: var(--violet);
}
.step h3 { font-size: 21px; padding-top: 4px; }
.step p { margin-top: 6px; color: var(--muted); }

.code-card {
  position: relative;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--s1);
  box-shadow: 0 40px 80px -40px rgba(107, 140, 255, .35);
  overflow: hidden;
}
.code-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line);
  background: var(--s2);
}
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e50; }
.code-title { flex: 1; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { border-color: #43475e; }
.copy-btn.is-copied { border-color: rgba(189, 245, 222, .5); color: var(--mint); }
.code-body {
  margin: 0; padding: 26px 24px;
  overflow-x: auto;
  font-family: var(--font-mono); font-size: 15px; line-height: 1.75; color: var(--text);
  tab-size: 2;
}
.t-k { color: #C7B8FF; }
.t-s { color: var(--mint); }
.t-p { color: #8A8EA3; }
.code-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 24px 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.note-badge {
  padding: 3px 10px; border-radius: 999px;
  background: rgba(189, 245, 222, .1); border: 1px solid rgba(189, 245, 222, .3);
  color: var(--mint); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.status-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Use cases */
.uses-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.use-card {
  position: relative; overflow: hidden;
  padding: 40px; border-radius: 24px;
  border: 1px solid var(--line); background: var(--s1);
}
.use-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 144, 255, .6), transparent);
}
.use-top { display: flex; align-items: center; gap: 16px; }
.use-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.use-icon svg { width: 26px; height: 26px; }
.icon-violet { background: rgba(169, 144, 255, .14); color: var(--violet); border: 1px solid rgba(169, 144, 255, .35); }
.icon-blue { background: rgba(107, 140, 255, .14); color: var(--blue); border: 1px solid rgba(107, 140, 255, .4); }
.use-card h3 { font-size: 28px; }
.use-card > p { margin-top: 20px; color: #C3C6D4; }
.dot-list { display: grid; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.dot-list li { position: relative; padding-left: 22px; color: #E1E3EC; font-weight: 500; }
.dot-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--s1); transition: border-color .2s, background-color .2s; }
.faq-item[open] { border-color: #3a3e52; background: var(--s2); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 64px 22px 24px;
  font-family: var(--font-head); font-size: 19px; font-weight: 600; line-height: 1.35;
  border-radius: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%;
  width: 14px; height: 2px; border-radius: 2px; background: var(--violet);
  transition: transform .25s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-body { padding: 0 24px 24px; color: #C3C6D4; }

/* CTA */
.cta-section { padding-top: 24px; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 88px 40px; border-radius: 32px; text-align: center;
  border: 1px solid var(--line);
  background: var(--s1);
}
.cta-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 50% 120%, rgba(169, 144, 255, .35), transparent 70%),
    radial-gradient(40% 60% at 85% 0%, rgba(107, 140, 255, .22), transparent 70%),
    radial-gradient(30% 50% at 10% 10%, rgba(189, 245, 222, .08), transparent 70%);
}
.cta-title { max-width: 820px; margin: 0 auto; font-size: clamp(34px, 4.6vw, 58px); letter-spacing: -.035em; }
.cta-lede { margin-top: 20px; color: #C3C6D4; font-size: 18px; }
.cta-actions { justify-content: center; }

/* ---------- Subpages ---------- */
.page-hero { position: relative; padding: 96px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.page-hero .hero-glow { height: 640px; }
.page-hero .container { position: relative; z-index: 1; }
.page-title { max-width: 900px; font-size: clamp(42px, 6vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.page-lede { margin-top: 24px; max-width: 680px; color: #C3C6D4; font-size: 19px; }
.page-hero .hero-actions { margin-top: 36px; }

.cap-block { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.cap-block + .cap-block { margin-top: var(--section); }
.cap-block-flip .panel-copy { order: 2; }
.cap-tag { display: inline-flex; margin-bottom: 18px; }
.cap-block .panel-copy h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.03em; }
.cap-block .panel-copy p { margin-top: 18px; color: #C3C6D4; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--s1); }
.info-card h3 { margin-top: 20px; font-size: 22px; }
.info-card p { margin-top: 12px; color: #C3C6D4; font-size: 16px; }
.info-num { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--violet); letter-spacing: .06em; }

.notice {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 24px; border-radius: 18px;
  border: 1px solid rgba(189, 245, 222, .28); background: rgba(189, 245, 222, .05);
  color: #D9DBE6;
}
.notice strong { color: var(--mint); }
.code-stack { display: grid; gap: 24px; }
.code-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.code-grid .code-body { font-size: 14px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 48px; font-size: 26px; letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; color: #C9CBD8; }
.prose ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.prose li::marker { color: var(--violet); }
.prose a { color: var(--text); text-decoration-color: rgba(169, 144, 255, .6); text-underline-offset: 3px; }
.legal-meta { margin-top: 20px; color: var(--muted); font-size: 15px; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-visual { position: relative; aspect-ratio: 4 / 3.4; }
.about-visual .stage-card { animation: none; }
.about-visual .av-a { top: 0; left: 0; width: 72%; aspect-ratio: 4 / 3; }
.about-visual .av-b { right: 0; bottom: 0; width: 52%; aspect-ratio: 1; }

.error-page { min-height: calc(100vh - var(--header-h)); display: grid; align-items: center; padding: 96px 0; position: relative; overflow: hidden; }
.error-page .container { position: relative; z-index: 1; text-align: center; }
.error-code {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(110px, 22vw, 220px); line-height: .9; letter-spacing: -.06em;
  background: linear-gradient(100deg, #C9B8FF, var(--violet) 40%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page .page-title { margin: 20px auto 0; font-size: clamp(32px, 4.6vw, 52px); }
.error-page .page-lede { margin-inline: auto; }
.error-page .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; padding: 72px 0 40px; border-top: 1px solid var(--line-soft); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-heading { font-family: var(--font-head); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.footer-nav ul { display: grid; gap: 10px; margin-top: 16px; }
.footer-nav a { color: #E1E3EC; font-size: 15px; text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 14px;
}

/* ---------- Motion ---------- */
@keyframes glow-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-3%, 4%, 0) scale(1.05); } }
@keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes float-c { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@keyframes scan { 0% { left: -30%; } 60%, 100% { left: 110%; } }

html[data-motion="paused"] *,
html[data-motion="paused"] *::before,
html[data-motion="paused"] *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .motion-toggle { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { max-width: 680px; width: 100%; margin-inline: auto; }
  .tabpanel { grid-template-columns: 1fr; gap: 36px; padding: 32px 20px 20px; }
  .workflow-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .cap-block, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cap-block-flip .panel-copy { order: 0; }
  .code-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  :root { --section: 88px; --header-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 28px;
    background: rgba(9, 10, 14, .98); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list a { padding: 14px 12px; border-radius: 12px; font-size: 18px; }
  .site-nav .btn { min-height: 52px; font-size: 16px; }

  .section-head-split { grid-template-columns: 1fr; gap: 0; }
  .section-head-split .section-lede { margin-top: 20px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 240px 240px; }
  .shot-tall { grid-row: auto; grid-column: span 2; }
  .shot-wide { grid-column: span 2; }
  .uses-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 72px; }
  body { font-size: 16px; }

  .hero { padding-top: 48px; }
  .hero-title { font-size: clamp(42px, 11.6vw, 48px); }
  .hero-lede { font-size: 17px; margin-top: 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .hero-points { flex-direction: column; gap: 10px; margin-top: 32px; }

  .hero-stage {
    height: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  }
  .hero-stage .stage-card { position: relative; inset: auto; width: auto; animation: none; }
  .stage-video { grid-column: span 2; aspect-ratio: 16 / 11; }
  .stage-image { aspect-ratio: auto; min-height: 160px; }
  .stage-music { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
  .music-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
  .music-meta { font-size: 12px; }
  .wave-sm { height: 48px; gap: 3px; }
  .stage-key { grid-column: span 2; order: -1; justify-self: start; }
  .stage-caption, .motion-toggle { position: static; }
  .stage-caption { grid-column: span 2; order: 10; }
  .motion-toggle { grid-column: span 2; order: 11; justify-self: start; }

  .section-head { margin-bottom: 40px; }
  .section-lede { font-size: 17px; }

  .gallery { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 260px; gap: 14px; }
  .shot-tall, .shot-wide { grid-column: auto; }

  .tabs { padding: 8px; border-radius: 22px; }
  .tablist { display: flex; margin: 8px; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; font-size: 15px; }
  .tabpanel { padding: 24px 8px 8px; }
  .panel-copy h3 { font-size: 26px; }
  .panel-visual { min-height: 300px; }
  .vv-main { min-height: 200px; }
  .visual-music { padding: 20px; }
  .wave-lg { height: 140px; gap: 3px; }

  .step { grid-template-columns: 48px 1fr; gap: 14px; }
  .step-num { width: 48px; height: 48px; border-radius: 14px; }
  .step:not(:last-child)::after { left: 23px; top: 62px; }
  .code-body { font-size: 13px; padding: 20px 18px; }
  .code-note { padding: 14px 18px 18px; }

  .use-card { padding: 28px 24px; }
  .use-card h3 { font-size: 24px; }
  .faq-item summary { font-size: 17px; padding: 20px 56px 20px 20px; }
  .faq-item summary::before, .faq-item summary::after { right: 22px; }
  .faq-body { padding: 0 20px 20px; }

  .cta-card { padding: 64px 22px; border-radius: 24px; }
  .cta-actions .btn { white-space: normal; text-align: center; }
  .footer-nav { grid-template-columns: 1fr 1fr; }

  .page-hero { padding: 56px 0 48px; }
  .page-title { font-size: clamp(38px, 10.6vw, 46px); }
  .page-lede { font-size: 17px; }
  .page-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .card-grid { grid-template-columns: 1fr; }
  .info-card { padding: 26px 22px; }
  .notice { padding: 18px; flex-direction: column; gap: 8px; }
  .prose h2 { font-size: 22px; margin-top: 40px; }
  .error-page .hero-actions { align-items: stretch; }
}
