/* ==========================================================================
   木盒官网主样式 · Deep Space 视觉与动效体系
   ========================================================================== */

:root {
  --bg: #111418;
  --bg-rgb: 17 20 24;
  --bg-elev: #171c22;
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.062);
  --surface-card: linear-gradient(180deg, rgba(255, 255, 255, 0.052) 0%, rgba(255, 255, 255, 0.018) 100%);
  --border: rgba(231, 234, 242, 0.085);
  --border-strong: rgba(231, 234, 242, 0.16);
  --text: #eef1f7;
  --muted: #9da7b8;
  --dim: #8b95a8;
  --brand: #fea120;
  --brand-rgb: 254 161 32;
  --brand-2: #ff7a3d;
  --brand-soft: #ffd180;
  --on-brand: #191105;
  --ok: #69d5a2;
  --ok-rgb: 105 213 162;
  --ok-soft: #b8f0d4;
  --cyan: #5fe0c9;
  --violet: #a99cff;
  --warn: #ff7666;
  --grad: linear-gradient(120deg, #ffe0a3 0%, #fea120 48%, #ff7a3d 100%);
  --grad-loop: linear-gradient(90deg, #ffe0a3, #fea120, #ff7a3d, #ffc366, #ffe0a3);

  /* 首屏客户端界面配色（对齐 Deep space 主题） */
  --app-bg: #22262a;
  --app-panel: #1b2028;
  --app-input: #14191f;
  --app-border: #2f3845;
  --app-accent: var(--brand);

  --radius: 22px;
  --shadow: 0 36px 90px -24px rgba(0, 0, 0, 0.72);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1200px;
  --font: 'Inter', 'SF Pro Display', -apple-system, 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei',
    system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgb(var(--brand-rgb) / 0.38);
  color: #fff;
}

.sr-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Scroll Reading Progress ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: transparent;
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  box-shadow: 0 0 12px rgb(var(--brand-rgb) / 0.75);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

/* ---------- Ambient Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.a1 {
  width: 680px;
  height: 680px;
  background: var(--brand);
  top: -280px;
  left: -140px;
  opacity: 0.16;
}

.a2 {
  width: 560px;
  height: 560px;
  background: var(--brand-2);
  top: -200px;
  right: -160px;
  opacity: 0.12;
  animation-delay: -9s;
}

.a3 {
  width: 520px;
  height: 520px;
  background: #2dd4bf;
  top: 52%;
  left: 34%;
  opacity: 0.055;
  animation-delay: -15s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 58% at 50% 0%, #000 28%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 58% at 50% 0%, #000 28%, transparent 78%);
  opacity: 0.45;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  to {
    transform: translate3d(70px, 50px, 0) scale(1.1);
  }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: transform 0.28s var(--ease), background 0.25s, box-shadow 0.3s, border-color 0.25s, color 0.2s;
  will-change: transform;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-lg {
  height: 50px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-primary {
  background: linear-gradient(180deg, #ffba52 0%, var(--brand) 100%);
  color: var(--on-brand);
  box-shadow: 0 0 0 1px rgb(var(--brand-rgb) / 0.45), 0 10px 30px -8px rgb(var(--brand-rgb) / 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgb(var(--brand-rgb) / 0.7), 0 18px 44px -8px rgb(var(--brand-rgb) / 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-beam::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 55%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.48) 50%, transparent 80%);
  transform: skewX(-18deg);
  animation: btn-sweep 5.2s var(--ease) infinite;
  pointer-events: none;
}

@keyframes btn-sweep {
  0%,
  70% {
    left: -70%;
  }
  100% {
    left: 135%;
  }
}

.btn-glass {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.nav.scrolled,
.nav.open {
  background: rgb(var(--bg-rgb) / 0.76);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-color: var(--border);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-halo {
  display: grid;
  place-items: center;
  padding: 2px;
  border-radius: 9px;
  transition: transform 0.3s var(--ease-spring), filter 0.3s;
}

.brand:hover .brand-halo {
  transform: scale(1.06) rotate(-3deg);
  filter: drop-shadow(0 0 12px rgb(var(--brand-rgb) / 0.55));
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled .nav-links {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.nav-pill-bg {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.36s var(--ease), width 0.36s var(--ease), opacity 0.25s;
}

.nav-pill-bg.visible {
  opacity: 1;
}

.nav-links a {
  position: relative;
  z-index: 1;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.22s;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav.open .nav-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav.open .nav-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 152px 0 36px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 15px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.pill:hover {
  color: var(--text);
  border-color: rgb(var(--brand-rgb) / 0.55);
  background: rgb(var(--brand-rgb) / 0.08);
  transform: translateY(-1px);
}

.pill-sep {
  width: 1px;
  height: 11px;
  background: var(--border-strong);
}

.pill-arrow {
  color: var(--brand);
  transition: transform 0.25s var(--ease);
}

.pill:hover .pill-arrow {
  transform: translateX(4px);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgb(var(--ok-rgb) / 0.18);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgb(var(--ok-rgb) / 0);
  }
}

.hero-title {
  margin-top: 26px;
  font-size: clamp(40px, 6.8vw, 82px);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: var(--grad-loop);
  background-size: 280% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 9s linear infinite;
}

@keyframes shine {
  to {
    background-position: 280% center;
  }
}

.hero-sub {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: clamp(15.5px, 1.5vw, 18px);
  color: var(--muted);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--dim);
}

.hero-gift,
.cta-gift {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand-rgb) / 0.35);
  background: rgb(var(--brand-rgb) / 0.1);
  color: var(--brand-soft);
  font-size: 13px;
  font-weight: 500;
}

.cta-gift {
  margin-top: 16px;
}

.hero-gift[hidden],
.cta-gift[hidden] {
  display: none;
}

/* ---------- Logos / Dual Marquee ---------- */

.logos {
  padding: 68px 0 18px;
  text-align: center;
}

.logos p {
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.marquee {
  overflow: hidden;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee-rev .marquee-track {
  animation-direction: reverse;
  animation-duration: 48s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.22s, border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}

.marquee-track span:hover {
  color: var(--text);
  border-color: rgb(var(--brand-rgb) / 0.45);
  background: rgb(var(--brand-rgb) / 0.1);
  transform: translateY(-2px);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin: 0;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-title {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* ---------- Cards & Interactive Spotlight ---------- */

.card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 46px -24px rgba(0, 0, 0, 0.65);
  transition: border-color 0.3s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--brand-rgb) / 0.13), transparent 44%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(var(--brand-rgb) / 0.52), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 28px 60px -24px rgba(0, 0, 0, 0.78);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card-tilt {
  transform: perspective(1000px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)) translateY(var(--ty, 0px));
}

.card-tilt:hover {
  --ty: -3px;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgb(var(--brand-rgb) / 0.26);
  background: rgb(var(--brand-rgb) / 0.09);
  color: var(--brand);
  transition: transform 0.32s var(--ease-spring), background 0.25s, border-color 0.25s;
}

.card:hover .icon {
  transform: scale(1.06) rotate(-4deg);
  background: rgb(var(--brand-rgb) / 0.16);
  border-color: rgb(var(--brand-rgb) / 0.45);
}

.icon svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Bento Grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }

.card-fill {
  display: flex;
  flex-direction: column;
}

/* GEO Card Interactive Segmented Viewer */

.mini-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
}

.mini-seg button {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: background 0.22s, color 0.22s;
}

.mini-seg button.is-active {
  background: rgb(var(--brand-rgb) / 0.18);
  color: var(--brand-soft);
  font-weight: 600;
}

.geo-card-viz {
  margin-top: 22px;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.26);
}

.gcv-pane.is-active {
  animation: fade-up 0.35s var(--ease);
}

.gcv-spark-bar {
  margin-bottom: 12px;
  padding: 10px 12px 6px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.gcv-spark-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11.5px;
  color: var(--dim);
}

.gcv-spark-meta b {
  font-weight: 600;
  color: var(--brand-soft);
}

.gcv-spark-svg {
  width: 100%;
  height: 48px;
  overflow: visible;
}

.spark-grid {
  stroke: rgba(231, 234, 242, 0.06);
  stroke-width: 1;
}

.spark-line {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: spark-draw 2.6s var(--ease) forwards;
}

.spark-dot {
  fill: var(--brand);
}

.spark-dot.pulse {
  fill: var(--ok);
  filter: drop-shadow(0 0 6px var(--ok));
  animation: spark-pulse 2.2s ease-in-out infinite;
}

@keyframes spark-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes spark-pulse {
  50% { opacity: 0.45; }
}

.gcv-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gcv-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  transition: border-color 0.22s, transform 0.22s var(--ease);
}

.gcv-pill:hover {
  border-color: rgb(var(--brand-rgb) / 0.35);
  transform: translateY(-1px);
}

.gcv-pill b { font-weight: 600; color: var(--text); }
.gcv-pill span { font-size: 12px; color: var(--dim); }
.gcv-pill em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(var(--ok-rgb) / 0.14);
  color: var(--ok);
}

.gcv-video-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gcv-slot {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 76px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgb(var(--ok-rgb) / 0.3);
  background: linear-gradient(160deg, rgba(105, 213, 162, 0.12), rgba(0, 0, 0, 0.35));
}

.gcv-slot.ai {
  border-color: rgb(var(--brand-rgb) / 0.35);
  background: linear-gradient(160deg, rgb(var(--brand-rgb) / 0.14), rgba(0, 0, 0, 0.35));
}

.gcv-slot em {
  align-self: flex-start;
  font-style: normal;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--ok-soft);
}

.gcv-slot.ai em { color: var(--brand-soft); }
.gcv-slot b { font-size: 12px; font-weight: 600; color: var(--text); }

.gcv-video-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.gcv-video-foot b { color: var(--brand-soft); font-weight: 500; }

.gcv-aao-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgb(var(--brand-rgb) / 0.28);
  background: rgb(var(--brand-rgb) / 0.06);
}

.aao-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--brand-soft);
  margin-bottom: 4px;
}

.gcv-aao-card b { display: block; font-size: 15px; color: var(--text); }
.gcv-aao-card small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.aao-status {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(var(--ok-rgb) / 0.16);
  color: var(--ok);
  font-size: 12px;
  font-weight: 600;
}

/* Week Calendar & Cron Chips */

.week {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 20px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
}

.week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}

.week-head b { font-weight: 600; color: var(--text); }
.week-head span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--dim); white-space: nowrap; }
.week-head span .dot { margin-left: 6px; }

.week-grid {
  display: grid;
  flex: 1;
  grid-template-columns: 18px repeat(7, 1fr);
  gap: 5px;
}

.wk-day,
.wk-axis {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 88px;
}

.wk-day b,
.wk-axis b { font-size: 11px; font-weight: 500; line-height: 1; text-align: center; color: var(--dim); }

.wk-col { position: relative; flex: 1; border-radius: 8px; }
.wk-day .wk-col { background: rgba(255, 255, 255, 0.035); }
.wk-day.is-today .wk-col { background: rgb(var(--brand-rgb) / 0.09); box-shadow: inset 0 0 0 1px rgb(var(--brand-rgb) / 0.42); }
.wk-day.is-today b { color: var(--brand); }
.wk-axis i { position: absolute; top: var(--t); right: 0; transform: translateY(-50%); font-family: var(--mono); font-size: 9px; font-style: normal; color: var(--dim); }

.ev {
  position: absolute;
  top: var(--t);
  left: 16%;
  right: 16%;
  height: 6px;
  border-radius: 3px;
  transform: translateY(-50%);
  transition: opacity 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.wk-day.is-past .ev { opacity: 0.48; }
.ev.geo { height: 8px; margin-top: 4px; }
.week.is-filtering .ev { opacity: 0.18; }
.week.is-filtering .ev.is-hl { opacity: 1; transform: translateY(-50%) scaleY(1.35); box-shadow: 0 0 10px currentColor; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ev.geo, .dot.geo { background: var(--brand); color: var(--brand); }
.ev.shop, .dot.shop { background: var(--cyan); color: var(--cyan); }
.ev.sum, .dot.sum { background: var(--violet); color: var(--violet); }

.chips { display: grid; gap: 7px; margin-top: 12px; }
.chips span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12.5px;
  cursor: default;
  transition: border-color 0.22s, background 0.22s, transform 0.22s var(--ease);
}

.chips span:hover {
  border-color: rgb(var(--brand-rgb) / 0.45);
  background: rgb(var(--brand-rgb) / 0.08);
  transform: translateX(3px);
}

.chips em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgb(var(--brand-rgb) / 0.14);
  color: var(--brand-soft);
}

.chips span i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--dim); }
.chips span i.ok { color: var(--ok); }
.chips span i.next { color: var(--brand-soft); }

/* Drama Studio Interactive Mini Editor */

.studio {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.studio-preview {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #0b111d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 40px -16px rgba(0, 0, 0, 0.85);
}

.studio-scene {
  width: 100%;
  height: 100%;
  animation: kenburns 9s ease-in-out infinite alternate;
  transform-origin: 50% 60%;
  transition: opacity 0.25s;
}

@keyframes kenburns {
  to { transform: scale(1.08); }
}

.studio-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 9.5px;
  color: #fff;
}

.studio-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5a4a;
  animation: rec 1.6s ease-in-out infinite;
}

@keyframes rec {
  50% { opacity: 0.25; }
}

.studio-sub {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: 92%;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.studio-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.studio-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform-origin: 0 50%;
  animation: progress 9s linear infinite;
}

@keyframes progress {
  from { transform: scaleX(0); }
}

.studio-side { display: flex; flex-direction: column; min-width: 0; }
.studio-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 0 2px; }
.studio-title b { font-size: 13px; font-weight: 600; color: var(--text); }
.studio-title span { font-size: 11px; color: var(--dim); white-space: nowrap; }

.shots { display: grid; gap: 6px; list-style: none; }
.shots li { list-style: none; }

.shot {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
  transition: background 0.22s, border-color 0.22s, transform 0.2s var(--ease);
}

.shot:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--border-strong);
  transform: translateX(2px);
}

.shot.is-active {
  border-color: rgb(var(--brand-rgb) / 0.5);
  background: rgb(var(--brand-rgb) / 0.1);
}

.shot-thumb { position: relative; width: 28px; height: 38px; border-radius: 6px; overflow: hidden; background: #0b111d; }
.shot-thumb svg { width: 100%; height: 100%; }
.shot.is-gen .shot-thumb svg { filter: blur(2px) saturate(0.6); opacity: 0.72; }
.shot.is-gen .shot-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.shot-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.shot-meta b { font-size: 12px; font-weight: 600; color: var(--text); }
.shot-meta small { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.shot em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgb(var(--ok-rgb) / 0.12);
  color: var(--ok);
}

.shot.is-active em { background: rgb(var(--brand-rgb) / 0.18); color: var(--brand); }
.shot.is-gen em { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

/* Multi-track Timeline */

.timeline {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  --label: 34px;
}

.tl-ruler { display: flex; justify-content: space-between; margin-left: var(--label); padding-right: 2px; font-family: var(--mono); font-size: 9.5px; color: var(--dim); }
.tl-row { display: grid; grid-template-columns: var(--label) minmax(0, 1fr); align-items: center; }
.tl-label { font-size: 10.5px; color: var(--dim); }
.tl-track { position: relative; display: flex; gap: 3px; min-width: 0; height: 24px; overflow: hidden; }
.clip { position: relative; flex: 0 0 calc(var(--w) - 3px); min-width: 0; border-radius: 5px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.strip { display: flex; height: 100%; }
.strip svg { flex: none; height: 100%; width: auto; aspect-ratio: 9 / 13; border-right: 1px solid rgba(0, 0, 0, 0.55); opacity: 0.92; }
.clip i { position: absolute; left: 5px; top: 3px; font-family: var(--mono); font-size: 9px; font-style: normal; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.clip.is-gen { background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 5px, transparent 5px 10px); }
.clip.is-gen svg { opacity: 0.15; filter: grayscale(1); }
.tl-voice, .tl-music { height: 16px; }
.vclip, .mclip { position: absolute; top: 0; bottom: 0; border-radius: 5px; overflow: hidden; }
.vclip { left: var(--x); width: var(--w); background: rgba(169, 156, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(169, 156, 255, 0.45); }
.vclip svg, .mclip svg { width: 100%; height: 100%; }
.vclip path { fill: var(--violet); }
.mclip { left: 0; right: 0; background: rgba(95, 224, 201, 0.12); box-shadow: inset 0 0 0 1px rgba(95, 224, 201, 0.35); }
.mclip path { fill: var(--cyan); opacity: 0.78; }

.tl-playhead {
  position: absolute;
  top: 20px;
  bottom: -2px;
  left: var(--label);
  width: 2px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--brand);
  box-shadow: 0 0 10px rgb(var(--brand-rgb) / 0.85);
  animation: playhead 9s linear infinite;
}

.tl-playhead::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -4px;
  width: 10px;
  height: 8px;
  border-radius: 2px 2px 5px 5px;
  background: var(--brand);
}

@keyframes playhead {
  to { left: 100%; }
}

/* Ecommerce Card Widget */

.viz-ecom {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 20px;
}

.ve-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgb(var(--ok-rgb) / 0.28);
  background: rgb(var(--ok-rgb) / 0.08);
  font-size: 12px;
}

.ve-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgb(var(--ok-rgb) / 0.2);
  animation: pulse 2s infinite;
}

.ve-head b { font-weight: 600; color: var(--text); }
.ve-head em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--ok); }

.ve-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ve-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  color: var(--muted);
}

.ve-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-size: 12.5px;
}

.ve-row em {
  font-style: normal;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}

.ve-row em.warn { background: rgba(255, 118, 102, 0.16); color: var(--warn); }
.ve-row em.ok { background: rgb(var(--ok-rgb) / 0.14); color: var(--ok); }

/* Workflow Market Card Interactive Pipeline */

.mini-action-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.mini-action-btn:hover {
  border-color: rgb(var(--brand-rgb) / 0.55);
  background: rgb(var(--brand-rgb) / 0.14);
  color: var(--brand-soft);
}

.mini-action-btn.primary {
  border-color: rgb(var(--brand-rgb) / 0.45);
  background: rgb(var(--brand-rgb) / 0.16);
  color: var(--brand-soft);
}

.viz-wf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
}

.wf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.wf-chip i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

.wf-chip.is-lit {
  border-color: rgb(var(--brand-rgb) / 0.55);
  background: rgb(var(--brand-rgb) / 0.14);
  color: var(--text);
  box-shadow: 0 0 20px -6px rgb(var(--brand-rgb) / 0.65);
}

.wf-chip.is-lit i { color: var(--brand); }
.wf-chip.is-ok { border-color: rgb(var(--ok-rgb) / 0.5); background: rgb(var(--ok-rgb) / 0.12); color: var(--ok-soft); }
.wf-chip.is-ok i { color: var(--ok); }

.wf-wire {
  position: relative;
  flex: 1;
  height: 2px;
  min-width: 14px;
  background: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}

.wf-wire b {
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: translateX(-100%);
}

.wf-wire.is-pulse b {
  animation: wire-run 0.65s var(--ease) forwards;
}

@keyframes wire-run {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* Skills & Prompt Card */

.viz-skills {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.vs-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
  font-size: 12.5px;
}

.vs-line span { color: var(--muted); }
.vs-line b { font-weight: 550; color: var(--text); font-size: 12px; }
.vs-line.accent {
  border-color: rgb(var(--brand-rgb) / 0.34);
  background: rgb(var(--brand-rgb) / 0.08);
}
.vs-line.accent b { color: var(--brand-soft); }

/* ---------- Interactive SVG Architecture Explainer ---------- */

.arch-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.arch-tabs {
  display: grid;
  gap: 10px;
}

.arch-tab {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 15px 16px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
  text-align: left;
  transition: border-color 0.26s, background 0.26s, transform 0.26s var(--ease), box-shadow 0.26s;
}

.arch-tab:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(3px);
}

.arch-tab.is-active {
  border-color: rgb(var(--brand-rgb) / 0.55);
  background: rgb(var(--brand-rgb) / 0.1);
  box-shadow: 0 14px 32px -18px rgb(var(--brand-rgb) / 0.5);
}

.arch-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.arch-tab.is-active .arch-num {
  border-color: rgb(var(--brand-rgb) / 0.6);
  background: rgb(var(--brand-rgb) / 0.2);
  color: var(--brand);
}

.arch-tab b {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}

.arch-tab small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.arch-stage {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 46% 52%, rgb(var(--brand-rgb) / 0.08), rgba(10, 13, 17, 0.72) 66%);
  padding: 12px;
  overflow: hidden;
}

.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

.zone-box {
  fill: rgba(255, 255, 255, 0.015);
  stroke: rgba(231, 234, 242, 0.1);
  stroke-width: 1;
  stroke-dasharray: 5 5;
  transition: stroke 0.35s, fill 0.35s, stroke-width 0.35s;
}

.zone-label {
  fill: var(--dim);
  font-size: 10.5px;
  font-weight: 550;
  transition: fill 0.35s;
}

[data-arch-mode='boundary'] .zone-local {
  fill: rgb(var(--ok-rgb) / 0.05);
  stroke: rgb(var(--ok-rgb) / 0.6);
  stroke-width: 1.5;
}

[data-arch-mode='boundary'] .zone-cloud {
  fill: rgb(var(--brand-rgb) / 0.045);
  stroke: rgb(var(--brand-rgb) / 0.5);
  stroke-width: 1.5;
}

[data-arch-mode='boundary'] .zone-label { fill: var(--ok-soft); }
[data-arch-mode='boundary'] .zone-label.cloud { fill: var(--brand-soft); }

.flow-base {
  fill: none;
  stroke: rgba(231, 234, 242, 0.12);
  stroke-width: 1.6;
}

.flow-anim {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  animation: svg-dash 1.8s linear infinite;
}

.flow-anim.slow { animation-duration: 2.6s; }
.flow-anim.rev { animation-duration: 2.4s; }
.flow-anim.amber { stroke: url(#arch-grad-amber); }
.flow-anim.ok { stroke: url(#arch-grad-ok); }
.flow-anim.cyan { stroke: var(--cyan); }
.flow-anim.violet { stroke: url(#arch-grad-violet); }

@keyframes svg-dash {
  to { stroke-dashoffset: -48; }
}

.flow-tag {
  fill: var(--ok-soft);
  font-size: 10.5px;
  font-weight: 500;
}

.orb-amber { fill: #ffd58a; }
.orb-ok { fill: #69d5a2; }
.orb-cyan { fill: #5fe0c9; }
.orb-violet { fill: #c4b5fd; }

.arch-layer,
.arch-node,
.arch-gate {
  transition: opacity 0.4s var(--ease);
}

[data-arch-mode='geo'] .layer-hub,
[data-arch-mode='geo'] .arch-node:not(.node-geo) {
  opacity: 0.28;
}

[data-arch-mode='hub'] .layer-geo,
[data-arch-mode='hub'] .arch-node:not(.node-hub),
[data-arch-mode='hub'] .arch-gate {
  opacity: 0.28;
}

[data-arch-mode='boundary'] .layer-geo .flow-tag,
[data-arch-mode='boundary'] .arch-node:not(.node-boundary) {
  opacity: 0.34;
}

.arch-node rect {
  fill: #1b2129;
  stroke: #333e4d;
  stroke-width: 1.2;
  transition: stroke 0.3s;
}

.n-dot.amber { fill: var(--brand); }
.n-dot.ok { fill: var(--ok); }
.n-dot.cyan { fill: var(--cyan); }
.n-dot.violet { fill: var(--violet); }
.n-title { fill: var(--text); font-size: 12px; font-weight: 650; }
.n-sub { fill: var(--muted); font-size: 10px; }

.core-ring {
  fill: none;
  stroke: rgb(var(--brand-rgb) / 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 6 6;
  transform-origin: 0 0;
  animation: svg-spin 22s linear infinite;
}

.core-ring.r2 {
  stroke: rgb(var(--ok-rgb) / 0.35);
  stroke-dasharray: 4 8;
  animation-direction: reverse;
  animation-duration: 16s;
}

@keyframes svg-spin {
  to { transform: rotate(360deg); }
}

.core-box {
  fill: #202630;
  stroke: var(--brand);
  stroke-width: 1.5;
}

.core-title { fill: var(--text); font-size: 13px; font-weight: 700; }
.core-sub { fill: var(--brand-soft); font-size: 9.5px; }

.arch-gate rect {
  fill: rgba(105, 213, 162, 0.1);
  stroke: rgb(var(--ok-rgb) / 0.55);
  stroke-width: 1.3;
}

.gate-shield {
  fill: rgb(var(--ok-rgb) / 0.16);
  stroke: var(--ok);
  stroke-width: 1.6;
}

.gate-check {
  fill: none;
  stroke: var(--ok-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gate-text {
  fill: var(--ok-soft);
  font-size: 10px;
  font-weight: 600;
}

/* ---------- Enterprise Ecosystem Strip + Animated SVGs ---------- */

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.eco-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.eco-svg-wrap {
  margin-bottom: 16px;
  padding: 6px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.eco-svg {
  width: 100%;
  height: 86px;
  display: block;
}

.es-line { fill: none; stroke: rgba(231, 234, 242, 0.14); stroke-width: 1.3; }
.es-flow {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-dasharray: 6 14;
  stroke-linecap: round;
  animation: svg-dash 2.2s linear infinite;
}
.es-flow.cyan { stroke: var(--cyan); }
.es-chip { fill: #1c222b; stroke: #313b48; stroke-width: 1; }
.es-txt { fill: var(--muted); font-size: 10px; font-weight: 600; }
.es-txt.accent { fill: var(--brand-soft); font-family: var(--mono); font-size: 10.5px; }
.es-ring {
  fill: none;
  stroke: rgb(var(--brand-rgb) / 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  transform-box: fill-box;
  transform-origin: center;
  animation: svg-spin 16s linear infinite;
}
.es-core { fill: rgb(var(--brand-rgb) / 0.16); stroke: var(--brand); stroke-width: 1.3; }
.es-core-rect { fill: rgb(var(--brand-rgb) / 0.14); stroke: var(--brand); stroke-width: 1.3; }
.es-icon { fill: none; stroke: var(--brand-soft); stroke-width: 1.5; }

.es-bar {
  fill: var(--brand);
  opacity: 0.85;
  transform-box: fill-box;
  transform-origin: bottom;
  animation: es-eq 2.6s ease-in-out infinite alternate;
}
.es-bar.b2 { fill: var(--brand-soft); animation-delay: -0.6s; }
.es-bar.b3 { fill: var(--ok); animation-delay: -1.3s; }
.es-bar.b4 { fill: var(--cyan); animation-delay: -1.9s; }

@keyframes es-eq {
  0% { transform: scaleY(0.58); }
  100% { transform: scaleY(1); }
}

.es-radar {
  fill: none;
  stroke: rgb(var(--brand-rgb) / 0.25);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: es-radar-pulse 3.4s ease-out infinite;
}
.es-radar.r2 { animation-delay: -1.7s; stroke: rgb(var(--ok-rgb) / 0.32); }

@keyframes es-radar-pulse {
  0% { transform: scale(0.75); opacity: 0.7; }
  100% { transform: scale(1.16); opacity: 0.12; }
}

.es-bldg { fill: rgba(255, 255, 255, 0.04); stroke: #3b4656; stroke-width: 1.1; }
.es-bldg.main { fill: rgb(var(--brand-rgb) / 0.1); stroke: rgb(var(--brand-rgb) / 0.58); }
.es-bldg-edge { fill: none; stroke: #3b4656; stroke-width: 1; }
.es-bldg-edge.main { stroke: rgb(var(--brand-rgb) / 0.5); }

.es-pin {
  animation: bob 2.8s ease-in-out infinite;
}

.es-phone { fill: #191f27; stroke: #394454; stroke-width: 1.2; }
.es-screen { fill: #10151b; }
.es-scan {
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--cyan));
  animation: es-scan-move 2.6s ease-in-out infinite alternate;
}
.es-scan.delay { animation-delay: -1.3s; stroke: var(--brand); }

@keyframes es-scan-move {
  from { transform: translateY(0); }
  to { transform: translateY(32px); }
}

.es-pet { animation: es-pet-hop 3s ease-in-out infinite; }
.es-pet-aura { fill: rgb(var(--brand-rgb) / 0.12); }
.es-pet-body { fill: #252c36; stroke: var(--brand); stroke-width: 1.5; }
.es-eye {
  fill: var(--brand-soft);
  transform-box: fill-box;
  transform-origin: center;
  animation: es-blink 4s infinite;
}
.es-smile { fill: none; stroke: var(--ok); stroke-width: 1.5; stroke-linecap: round; }

@keyframes es-pet-hop {
  50% { transform: translate(174px, 40px); }
}

@keyframes es-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.12); }
}

.eco-badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand-rgb) / 0.3);
  background: rgb(var(--brand-rgb) / 0.08);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand-soft);
}

.eco-card h3 { font-size: 18px; margin-top: 14px; }
.eco-card p { font-size: 13.5px; line-height: 1.65; }

.eco-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.eco-pills span {
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- Workflow Steps ---------- */

.steps-wrap {
  position: relative;
}

.steps-connector {
  position: absolute;
  top: 46px;
  left: 0;
  width: 100%;
  height: 40px;
  pointer-events: none;
  z-index: 0;
}

.conn-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}

.conn-beam {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-dasharray: 80 700;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--brand));
  animation: beam-travel 3.8s linear infinite;
}

@keyframes beam-travel {
  from { stroke-dashoffset: 780; }
  to { stroke-dashoffset: 0; }
}

.steps-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgb(var(--brand-rgb) / 0.35);
  background: rgb(var(--brand-rgb) / 0.12);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.step-card h3 { margin-top: 14px; }

.fake-input {
  margin-top: 22px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.3);
  font-size: 13.5px;
  min-height: 46px;
  display: flex;
  align-items: center;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--brand);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.plan-chips span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 12.5px;
  transition: border-color 0.3s, background 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.seq-chips span.is-lit {
  border-color: rgb(var(--brand-rgb) / 0.6);
  background: rgb(var(--brand-rgb) / 0.16);
  color: var(--brand-soft);
  transform: translateY(-2px);
}

.plan-chips.out span {
  border-color: rgb(var(--ok-rgb) / 0.35);
  background: rgb(var(--ok-rgb) / 0.08);
  color: var(--ok-soft);
}

/* ---------- Scenario Tabs ---------- */

.tabs {
  position: relative;
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs button {
  position: relative;
  z-index: 1;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s;
}

.tabs button[aria-selected='true'] {
  color: var(--on-brand);
  font-weight: 650;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffba52, var(--brand));
  box-shadow: 0 6px 20px -6px rgb(var(--brand-rgb) / 0.7);
  transition: transform 0.42s var(--ease), width 0.42s var(--ease);
}

.panels {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 46px;
}

.panel[hidden] { display: none; }

.panel.active {
  animation: fade-up 0.48s var(--ease);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.panel-text h3 {
  font-size: clamp(23px, 2.5vw, 31px);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.panel-text p { margin-top: 12px; color: var(--muted); }

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  list-style: none;
  font-size: 14.5px;
}

.ticks li { position: relative; padding-left: 28px; }

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--brand-rgb) / 0.16);
}

.ticks li::after {
  content: '';
  position: absolute;
  left: 6.5px;
  top: 8px;
  width: 4px;
  height: 8px;
  border: solid var(--brand);
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.panel-visual {
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.34);
}

.pv-prompt {
  margin-bottom: 6px;
  padding: 12px 16px;
  border-radius: 14px 14px 4px 14px;
  background: var(--grad);
  color: var(--on-brand);
  font-weight: 600;
  font-size: 14px;
  justify-self: end;
  max-width: 92%;
}

.pv-out {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}

.panel.active .pv-out {
  animation: slide-row 0.45s var(--ease) both;
  animation-delay: calc(0.08s + var(--i, 0) * 0.08s);
}

@keyframes slide-row {
  from { opacity: 0; transform: translateX(12px); }
}

.pv-out em {
  font-style: normal;
  font-size: 12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgb(var(--ok-rgb) / 0.14);
  color: var(--ok);
}

/* ---------- Security ---------- */

.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sec-card h3 { font-size: 18px; }
.sec-card p { font-size: 14px; }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
}

.price-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgb(36 31 24 / 0.96), rgb(var(--bg-rgb) / 0.98)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 32px 84px -30px rgb(var(--brand-rgb) / 0.46);
}

.price-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(var(--brand-rgb) / 0.16);
  color: var(--brand-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.price-tag.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.price-card h3 { margin-top: 0; font-size: 22px; }
.price-desc { font-size: 14px !important; }

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin: 22px 0 6px;
}

.price-amount .cur { font-size: 22px; font-weight: 600; }
.price-amount b { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price-amount b.quote { font-size: 34px; letter-spacing: -0.02em; }
.price-amount .per { margin-left: 6px; font-size: 14px; color: var(--muted); }

.price-card .ticks { margin: 18px 0 24px; color: var(--muted); }
.price-wb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.price-wb span {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgb(var(--brand-rgb) / 0.35);
  background: rgb(var(--brand-rgb) / 0.08);
  font-size: 13px;
  color: var(--brand-soft);
}

.price-note { margin-bottom: 24px; font-size: 14px !important; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

.price-foot {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 13px;
  color: var(--dim);
  text-align: center;
}

/* ---------- FAQ Smooth Accordion ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.faq-lead {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  padding: 21px 40px 21px 0;
  font-size: 16.5px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq summary:hover {
  color: var(--brand-soft);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--muted);
  transition: transform 0.32s var(--ease), background 0.2s;
}

.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); background: var(--brand); }
.faq details[open] summary::before { background: var(--brand); }

.faq-body {
  overflow: hidden;
}

.faq-body p {
  padding: 0 36px 22px 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- CTA & Download ---------- */

.cta-section { padding-top: 40px; }

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 92px 32px;
  border-radius: 32px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: -52% -10% auto;
  height: 120%;
  z-index: -1;
  background: conic-gradient(from 180deg at 50% 50%, #fea120, #ff7a3d, #ffd58a, #fea120);
  filter: blur(115px);
  opacity: 0.2;
  animation: spin 18s linear infinite;
}

.cta-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  border: 1px solid rgb(var(--brand-rgb) / 0.14);
  z-index: -1;
  pointer-events: none;
  animation: ring-breathe 6s ease-in-out infinite;
}

@keyframes ring-breathe {
  50% { transform: scale(1.08); opacity: 0.45; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cta h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.cta > p {
  margin-top: 14px;
  font-size: 16.5px;
  color: var(--muted);
}

.dl-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  list-style: none;
}

.dl-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 164px;
  padding: 14px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.dl-list a:hover,
.dl-list a.current {
  border-color: rgb(var(--brand-rgb) / 0.58);
  background: rgb(var(--brand-rgb) / 0.1);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgb(var(--brand-rgb) / 0.4);
}

.os-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  color: var(--brand-soft);
}

.dl-list small { font-size: 12px; font-weight: 400; color: var(--muted); }
.dl-list small.dl-size { color: var(--dim); font-variant-numeric: tabular-nums; }
.cta .dl-meta { margin-top: 12px; font-size: 13px; color: var(--dim); }
.cta .dl-mobile { margin-top: 14px; font-size: 14px; }

.dl-copy {
  margin-left: 6px;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */

.footer {
  padding: 68px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand p { margin-top: 10px; font-size: 13.5px; color: var(--dim); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 48px;
}

.footer-cols h4 { margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.footer-cols a,
.footer-cols [data-contact-phone] {
  display: block;
  margin-bottom: 10px;
  font-size: 13.5px;
  color: var(--dim);
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--dim);
}

/* ---------- Reveal Animations ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition: opacity 0.68s var(--ease), transform 0.68s var(--ease), filter 0.68s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-inner { gap: 12px; }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 24px 20px;
    border-radius: 0;
    background: #111418;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.78);
  }

  .nav.open .nav-pill-bg { display: none; }
  .nav.open .nav-links a { padding: 14px 4px; font-size: 15.5px; border-bottom: 1px solid var(--border); border-radius: 0; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4 { grid-column: span 2; }
  .span-2 { grid-column: span 1; }

  .steps-connector { display: none; }
  .arch-shell { grid-template-columns: 1fr; padding: 20px; }
  .steps-row, .panel, .faq-wrap, .price-grid { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { gap: 24px; }
  .panel { gap: 28px; padding: 30px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 118px; }
  .section { padding: 80px 0; }
  .section-tight { padding: 56px 0; }
  .section-head { margin-bottom: 38px; }
  .bento, .eco-grid, .sec-grid { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .card { padding: 24px 20px; }
  .card-top-row { flex-wrap: wrap; }
  .gcv-sample-grid { grid-template-columns: 1fr; }
  .gcv-video-strip { grid-template-columns: repeat(2, 1fr); }
  .gcv-aao-card { flex-direction: column; align-items: flex-start; }
  .arch-shell { padding: 16px; gap: 16px; }
  .arch-stage { padding: 6px; }
  .viz-wf { flex-wrap: wrap; }
  .wf-wire { display: none; }
  .studio { grid-template-columns: 96px 1fr; gap: 10px; padding: 10px; }
  .shot { grid-template-columns: 1fr auto; padding-left: 10px; }
  .shot-thumb { display: none; }
  .panel { padding: 24px 18px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cta { padding: 68px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .orb { display: none; }
  .spark-line { stroke-dashoffset: 0; }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .card-tilt { transform: none !important; }
}
