/* ==========================================================================
   INTELLIA — ITCN 2026 Product Showcase Stylesheet
   Ultra-Smooth Living Animation Engine & Design System
   ========================================================================== */

:root {
  --bg: #06070b;
  --panel: #0b0d13;
  --ink: #f5f5f2;
  --muted: #9ba1ad;
  --soft: #5d6470;
  --line: rgba(255, 255, 255, 0.11);
  --line-light: rgba(255, 255, 255, 0.06);
  --accent: #ff6b3d;
  --accent-rgb: 255, 107, 61;
  --pad-x: clamp(32px, 5.5vw, 100px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.2, 1);
  --duration: 850ms;
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ==========================================================================
   Background & Ambient Lighting
   ========================================================================== */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  transform: translateZ(0);
  will-change: opacity;
  contain: strict;
}

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
  transform: translateZ(0);
}

.ambient i {
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.085;
  background: var(--accent);
  transition: background 1.2s var(--ease);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout style paint;
}

.ambient i:first-child {
  right: -15vw;
  top: -20vw;
  animation: ambientFloat1 20s ease-in-out infinite alternate;
}

.ambient i:nth-child(2) {
  left: 15%;
  bottom: -35vw;
  opacity: 0.055;
  animation: ambientFloat2 24s ease-in-out infinite alternate;
}

.ambient i:last-child {
  width: 28vw;
  height: 28vw;
  right: 25%;
  top: 30%;
  opacity: 0.045;
}

/* ==========================================================================
   Header & Top Navigation Bar
   ========================================================================== */

.topbar {
  position: fixed;
  z-index: 100;
  left: var(--pad-x);
  right: var(--pad-x);
  top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.22em;
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand__img {
  height: 38px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.35));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand:hover .brand__img {
  transform: translateY(-1px);
  opacity: 0.92;
}

.event {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.event b {
  color: var(--ink);
}

.event__pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s infinite;
}

.sound-toggle {
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.sound-toggle:hover {
  color: var(--ink);
}

.sound-bars {
  display: flex;
  height: 14px;
  gap: 2.5px;
  align-items: flex-end;
}

.sound-bars i {
  display: block;
  width: 2px;
  background: currentColor;
  border-radius: 2px;
  animation: bars 0.7s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(2) { animation-delay: -0.3s; }
.sound-bars i:nth-child(3) { animation-delay: -0.15s; }
.sound-bars i:nth-child(4) { animation-delay: -0.45s; }

.is-paused .sound-bars i {
  animation-play-state: paused;
  height: 3px !important;
}

/* ==========================================================================
   Showcase Container & Scene Layouts
   ========================================================================== */

.showcase {
  height: 100%;
  position: relative;
  width: 100%;
}

.scene {
  position: absolute;
  inset: 0;
  padding: 105px var(--pad-x) 90px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(460px, 1.05fr);
  gap: clamp(36px, 4.5vw, 84px);
  align-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.992);
  transition: opacity 650ms var(--ease),
              transform 650ms var(--ease),
              visibility 0s 650ms;
  will-change: opacity, transform;
  isolation: isolate;
}

.scene.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.scene:not(.is-active) {
  content-visibility: auto;
  contain: layout style paint;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 90px 24px 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  pointer-events: none;
  z-index: -1;
}

.scene__copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
  min-width: 0;
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--accent);
}

.scene h1, .scene h2 {
  font-size: clamp(52px, 5.2vw, 98px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin: 0;
  font-weight: 600;
}

.scene h1 em, .scene h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

.lede {
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 560px;
  margin: 28px 0 0;
}

.explore-btn, .replay-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  margin-top: 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  transition: all 0.35s var(--ease);
}

.explore-btn i, .replay-btn span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #08090d;
  margin-left: 16px;
  font-style: normal;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.35s var(--ease);
}

.explore-btn:hover, .replay-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.explore-btn:hover i, .replay-btn:hover span {
  transform: rotate(45deg);
}

/* ==========================================================================
   Hero Scene
   ========================================================================== */

.hero {
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 72% 50%, black, transparent 60%);
  opacity: 0.45;
}

.hero__copy {
  padding-left: 1.5vw;
}

.hero-system {
  width: min(38vw, 620px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  --orbit-radius: calc(min(19vw, 310px) - 28px);
}

/* Ambient Conic Radar Sweep */
.hero-radar {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(var(--accent-rgb), 0.08) 55deg, transparent 65deg);
  animation: rotate 16s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit--outer {
  inset: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.08);
  animation: rotate 50s linear infinite;
  z-index: 4;
}

.orbit--outer:hover,
.orbit--outer:hover .hero-node {
  animation-play-state: paused;
}

.orbit--mid {
  inset: 16%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: rotate 32s linear infinite reverse;
}

.orbit--inner {
  inset: 31%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 110px rgba(var(--accent-rgb), 0.15);
}

/* Apple-Grade Planetary Domain Nodes (Always Upright) */
.hero-node {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -29px 0 0 -29px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.2), rgba(10, 13, 22, 0.92) 75%);
  border: 1.5px solid rgba(var(--rgb), 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65), 
              0 0 24px rgba(var(--rgb), 0.35), 
              inset 0 1px 2px rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
  animation: keepUpright 50s linear infinite;
}

.hero-node:hover {
  transform: rotate(var(--p)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--p))) scale(1.22) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(var(--rgb), 0.85), 
              inset 0 1px 3px rgba(255, 255, 255, 0.7);
  border-color: rgba(var(--rgb), 1);
  z-index: 25;
}

.hero-node__pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
  margin-bottom: 2px;
  animation: pulse 2.2s infinite;
}

.hero-node__tag {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(var(--rgb), 0.75);
}

.hero-node__label {
  font-size: 6.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  margin-top: 2px;
  line-height: 1;
}

@keyframes keepUpright {
  0% {
    transform: rotate(var(--p)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--p)));
  }
  100% {
    transform: rotate(var(--p)) translateX(var(--orbit-radius)) rotate(calc(-1 * var(--p) - 360deg));
  }
}

/* Apple-Style Frosted Glass Core Orb */
.hero-core {
  width: 35%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), rgba(12, 16, 26, 0.95) 65%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0 100px rgba(var(--accent-rgb), 0.3), 
              inset 0 2px 4px rgba(255, 255, 255, 0.45), 
              inset 0 -18px 30px rgba(0, 0, 0, 0.75);
  position: relative;
  overflow: hidden;
  z-index: 3;
}

.hero-core__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.hero-core strong {
  font-size: clamp(54px, 5.2vw, 92px);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 850;
  background: linear-gradient(180deg, #ffffff 20%, #b8c4da 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(var(--accent-rgb), 0.45));
}

.hero-core span {
  font-size: 8.5px;
  line-height: 1.45;
  letter-spacing: 0.22em;
  color: #d2d9e8;
  margin-top: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.signal {
  position: absolute;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 50%;
  animation: signal 3s ease-out infinite;
}

.signal--a, .signal--b { inset: 30%; }
.signal--a { animation-delay: 0.5s; }
.signal--b { animation-delay: 1.7s; }

.scroll-cue {
  position: absolute;
  left: var(--pad-x);
  bottom: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #9aa2b0;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 42px;
  height: 1px;
  background: var(--line);
  position: relative;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 1px;
  background: var(--accent);
  left: 0;
  animation: cue 2.4s var(--ease) infinite;
}

/* ==========================================================================
   Ecosystem Map Scene
   ========================================================================== */

.ecosystem__copy {
  padding-left: 1.5vw;
}

.ecosystem h2 {
  font-size: clamp(48px, 4.5vw, 88px);
}

.stat-line {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 580px;
}

.stat-line b {
  font-size: 28px;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.stat-line span {
  font-size: 9.5px;
  letter-spacing: 0.13em;
  line-height: 1.45;
  color: var(--soft);
  text-transform: uppercase;
  margin-right: 18px;
}

.ecosystem-map {
  width: min(34vw, 560px);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
}

.ecosystem-map::before, .ecosystem-map::after, .map-ring {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.ecosystem-map::before { inset: 3%; }
.ecosystem-map::after {
  inset: 22%;
  border-style: dashed;
  animation: rotate 45s linear infinite;
}

.map-ring {
  inset: 37%;
  border-color: rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.12);
}

.map-core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #0d0f17;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.map-core span {
  font-size: 15px;
  letter-spacing: 0.22em;
  font-weight: 850;
  color: #ffffff;
}

.map-core small {
  font-size: 9.5px;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 750;
  margin-top: 4px;
}

.map-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  padding: 11px 18px;
  background: rgba(12, 15, 24, 0.94);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e2e6f0;
  white-space: nowrap;
  z-index: 3;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.map-node:hover {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(var(--accent-rgb), 0.4);
}

/* ==========================================================================
   Product Showcase Scenes (Smooth Typography & Flow)
   ========================================================================== */

.product-scene {
  grid-template-columns: minmax(380px, 1fr) minmax(460px, 1.08fr);
  gap: clamp(36px, 4.5vw, 76px);
  align-items: center;
}

.product-copy {
  padding-left: 1.5vw;
  min-width: 0;
  max-width: 660px;
}

.product-num {
  font-size: 13px;
  font-weight: 600;
  color: #a2a8b6;
  letter-spacing: 0.22em;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-num::after {
  content: "";
  width: 50px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.18);
}

.product-title {
  font-size: clamp(46px, 4.8vw, 76px) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em !important;
  margin: 0 !important;
  font-weight: 700;
  color: #ffffff;
  white-space: normal !important;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

.product-category {
  display: block;
  margin: 16px 0 22px;
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.product-desc {
  font-size: clamp(17px, 1.3vw, 23px);
  line-height: 1.6;
  color: #e2e6f0;
  max-width: 620px;
  margin-bottom: 30px;
  font-weight: 450;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 640px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  counter-reset: item;
}

.feature-list li {
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.45;
  color: #d2d7e4;
  padding: 16px 8px 0 0;
  position: relative;
}

.feature-list li::before {
  content: "0" counter(item);
  counter-increment: item;
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 7px;
  font-weight: 800;
}

/* ==========================================================================
   Interactive Visual Dashboard & Upwards Chart Animations
   ========================================================================== */

.visual-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  min-width: 0;
  justify-self: end;
}

.visual-wrap::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18), transparent 64%);
  filter: blur(35px);
  z-index: -1;
}

.visual-frame {
  aspect-ratio: 1.42;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  padding: 12px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1.2deg);
  transition: transform 1.2s var(--ease);
}

.is-active .visual-frame {
  transform: perspective(1400px) rotateY(0) rotateX(0);
  animation: frameFloat 6s ease-in-out 0.8s infinite alternate;
}

.ui-shell {
  height: 100%;
  border-radius: 16px;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 17% 1fr;
}

.ui-side {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 14px;
}

.ui-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #08090d;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
  margin-bottom: 26px;
}

.ui-nav {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin: 14px 0;
}

.ui-nav:nth-child(3) { width: 72%; background: rgba(var(--accent-rgb), 0.6); }
.ui-nav:nth-child(4) { width: 85%; }
.ui-nav:nth-child(5) { width: 64%; }

.ui-main {
  padding: 20px 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ui-head {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ui-head b {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.ui-actions {
  display: flex;
  gap: 6px;
}

.ui-actions i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.ui-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.metric {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  transform-origin: center bottom;
}

.metric small {
  font-size: 8.5px;
  font-weight: 750;
  color: #b0b8c6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 5px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.metric em {
  font-size: 8.5px;
  font-weight: 750;
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0.05em;
}

.ui-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
  min-height: 0;
}

.ui-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.ui-panel__title {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #e4e8f2;
  text-transform: uppercase;
}

/* Upwards Rising Bar Chart with Stagger & Live Wave */
.chart {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 14px;
  height: 60%;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}

.chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0.95));
  height: var(--h);
  transform-origin: bottom center;
}

.scene.is-active .chart i {
  animation: riseUp 1.1s var(--ease) calc(0.18s + var(--bi, 0) * 0.06s) both,
             barLivePulse 3.5s ease-in-out calc(1.3s + var(--bi, 0) * 0.15s) infinite alternate;
}

.side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.ring-chart {
  position: absolute;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0 74%, rgba(255, 255, 255, 0.12) 74%);
  left: 50%;
  top: 65%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.scene.is-active .ring-chart {
  animation: ringFill 1.2s var(--ease) 0.25s both;
}

.ring-chart::after {
  content: "";
  width: 34px;
  aspect-ratio: 1;
  background: #0d0f15;
  border-radius: 50%;
}

.list-lines {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.list-lines i {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.list-lines i::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: rgba(var(--accent-rgb), 0.7);
}

.scene.is-active .list-lines i::after {
  animation: lineStream 1s var(--ease) calc(0.3s + var(--li, 0) * 0.08s) both;
}

.visual-tag {
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--soft);
  margin-top: 8px;
  text-align: right;
  display: block;
}

.visual-chip {
  position: absolute;
  right: -16px;
  top: 36px;
  background: #11141d;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  z-index: 5;
}

.scene.is-active .visual-chip {
  animation: chipEntrance 0.8s var(--ease) 0.2s both, float 4.5s ease-in-out 1s infinite alternate;
}

.visual-chip b {
  color: var(--accent);
  margin-right: 6px;
}

.visual-chip--bottom {
  top: auto;
  right: auto;
  left: -20px;
  bottom: 40px;
}

.scene.is-active .visual-chip--bottom {
  animation: chipEntrance 0.8s var(--ease) 0.35s both, float 5s ease-in-out 1.2s infinite alternate-reverse;
}

/* ==========================================================================
   Creative Finale Scene (2-Column Ecosystem Matrix)
   ========================================================================== */

.finale {
  grid-template-columns: minmax(360px, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(32px, 4.5vw, 76px);
  align-items: center;
  overflow: hidden;
}

.finale__content {
  position: relative;
  z-index: 2;
  padding-left: 1.5vw;
}

.finale h2 {
  font-size: clamp(52px, 5.4vw, 94px);
  line-height: 0.94;
}

.finale__content > p:not(.eyebrow) {
  font-size: clamp(16px, 1.25vw, 22px);
  color: var(--muted);
  margin: 24px 0 0;
  max-width: 520px;
  line-height: 1.55;
}

.finale__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.finale__halo {
  position: absolute;
  width: min(68vw, 1100px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 8vw rgba(255, 255, 255, 0.005),
              0 0 0 16vw rgba(255, 255, 255, 0.003),
              inset 0 0 140px rgba(var(--accent-rgb), 0.08);
  animation: breath 6s ease-in-out infinite;
  pointer-events: none;
}

.finale__matrix {
  position: relative;
  z-index: 3;
  background: rgba(11, 13, 19, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 760px;
  justify-self: end;
}

.matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.matrix-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.matrix-title .matrix-indicator {
  width: 8px;
  height: 8px;
  background: #38d996;
  border-radius: 50%;
  box-shadow: 0 0 10px #38d996;
  animation: pulse 2s infinite;
}

.matrix-title b {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-transform: uppercase;
}

.matrix-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.08);
  border-radius: 999px;
  font-weight: 700;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.matrix-node {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  color: inherit;
}

.matrix-node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--node-accent, var(--accent));
  opacity: 0.7;
  transition: width 0.25s ease, opacity 0.25s ease;
}

.matrix-node:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.matrix-node:hover::before {
  width: 5px;
  opacity: 1;
}

.matrix-node strong {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-node strong span {
  font-size: 8px;
  font-weight: 700;
  color: var(--node-accent, var(--accent));
  letter-spacing: 0.1em;
}

.matrix-node small {
  font-size: 8.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scene.is-active .matrix-node {
  animation: nodeEntrance 0.6s var(--ease) calc(0.16s + var(--ni, 0) * 0.035s) both;
}

.matrix-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--soft);
}

.matrix-footer b {
  color: var(--muted);
}

.finale__footer {
  position: absolute;
  bottom: 34px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--soft);
}

/* ==========================================================================
   Navigation Rail & Dock
   ========================================================================== */

.rail {
  position: fixed;
  z-index: 100;
  right: clamp(24px, 2.5vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.rail__arrow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(10, 11, 16, 0.6);
  color: var(--muted);
  transition: 0.25s ease;
  display: grid;
  place-items: center;
}

.rail__arrow:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.rail__track {
  width: 1px;
  flex: 1;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.rail__progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: height 0.8s var(--ease);
}

.rail__count {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.rail__count strong {
  font-size: 12px;
}

.rail__count span {
  font-size: 8px;
  color: var(--soft);
}

.dock {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: 58vw;
}

.dock__items {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 11, 16, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
}

.dock button {
  border: 0;
  background: transparent;
  color: var(--soft);
  height: 26px;
  min-width: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: 0.35s var(--ease);
}

.dock button.is-active {
  color: #07080b;
  background: var(--accent);
  min-width: 44px;
}

.dock button:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.bottom-meta {
  position: fixed;
  z-index: 94;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.current-label, .hint {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--soft);
}

kbd {
  font: inherit;
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

.auto-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.04);
}

.auto-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.auto-progress.is-running i {
  animation: auto 6s linear forwards;
}

/* ==========================================================================
   Master Keyframe Animation Engine
   ========================================================================== */

.scene.is-active .eyebrow {
  animation: reveal 0.75s var(--ease) 0.05s both;
}

.scene.is-active h1,
.scene.is-active h2 {
  animation: reveal 0.8s var(--ease) 0.1s both;
}

.scene.is-active .lede,
.scene.is-active .product-category {
  animation: reveal 0.8s var(--ease) 0.16s both;
}

.scene.is-active .product-desc,
.scene.is-active .stat-line {
  animation: reveal 0.8s var(--ease) 0.22s both;
}

.scene.is-active .feature-list li {
  animation: reveal 0.7s var(--ease) calc(0.28s + var(--fi, 0) * 0.07s) both;
}

.scene.is-active .metric {
  animation: metricPop 0.7s var(--ease) calc(0.14s + var(--mi, 0) * 0.07s) both;
}

.scene.is-active .finale__actions {
  animation: reveal 0.8s var(--ease) 0.28s both;
}

.scene.is-active .finale__matrix {
  animation: reveal 0.85s var(--ease) 0.12s both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

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

/* Upwards rising chart animation */
@keyframes riseUp {
  0% {
    height: 0;
    opacity: 0.15;
    transform: scaleY(0);
  }
  100% {
    height: var(--h);
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes barLivePulse {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22) drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.35));
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes ringFill {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7) rotate(-70deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes lineStream {
  0% {
    width: 0;
    opacity: 0.2;
  }
  100% {
    width: var(--w);
    opacity: 1;
  }
}

@keyframes chipEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes nodeEntrance {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes frameFloat {
  0% {
    transform: perspective(1400px) translateY(0) rotateY(0) rotateX(0);
  }
  100% {
    transform: perspective(1400px) translateY(-6px) rotateY(-0.8deg) rotateX(0.5deg);
  }
}

@keyframes ambientFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3vw, 4vw) scale(1.08); }
}

@keyframes ambientFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, -3vw) scale(1.06); }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes signal {
  0% { opacity: 0.7; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(2.7); }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.7); }
}

@keyframes cue {
  0% { transform: translateX(0); opacity: 0; }
  25%, 75% { opacity: 1; }
  100% { transform: translateX(30px); opacity: 0; }
}

@keyframes bars {
  from { height: 25%; }
  to { height: 100%; }
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

@keyframes breath {
  50% { transform: scale(1.03); opacity: 0.75; }
}

@keyframes auto {
  to { width: 100%; }
}

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

@media (max-width: 1260px) {
  :root { --pad-x: 44px; }
  .scene, .product-scene, .finale {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
  }
  .product-title {
    font-size: clamp(32px, 3.4vw, 54px) !important;
  }
  .product-desc {
    font-size: 16px;
  }
  .feature-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .feature-list li {
    padding-top: 8px;
  }
  .feature-list li::before {
    display: inline;
    margin-right: 8px;
  }
  .visual-frame {
    aspect-ratio: 1.3;
  }
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dock {
    max-width: 65vw;
  }
  .hint {
    display: none;
  }
}

@media (max-width: 860px) {
  :root { --pad-x: 20px; }
  .topbar {
    top: 16px;
    left: 20px;
    right: 20px;
  }
  .event {
    display: none;
  }
  .scene, .product-scene, .finale {
    padding: 80px 18px 80px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 20px;
    align-items: start;
    overflow-y: auto;
  }
  .scene::before {
    inset: 68px 8px 48px;
    border-radius: 18px;
  }
  .scene h1, .scene h2, .finale h2 {
    font-size: clamp(38px, 10vw, 62px);
  }
  .hero__copy, .ecosystem__copy, .product-copy, .finale__content {
    padding-left: 0;
  }
  .lede {
    font-size: 15px;
    margin-top: 18px;
  }
  .hero-system {
    position: absolute;
    width: 65vw;
    right: -15vw;
    bottom: -10vw;
    opacity: 0.55;
    --orbit-radius: calc(32.5vw - 18px);
  }
  .hero-node {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
  }
  .hero-node__tag {
    font-size: 10.5px;
  }
  .hero-node__label {
    display: none;
  }
  .scroll-cue {
    display: none;
  }
  .product-num {
    margin-bottom: 14px;
  }
  .product-category {
    margin: 8px 0 12px;
  }
  .product-desc {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .feature-list {
    display: none;
  }
  .visual-wrap {
    width: 100%;
    max-width: 100%;
    margin: auto;
  }
  .visual-frame {
    aspect-ratio: 1.5;
  }
  .ui-side {
    display: none;
  }
  .ui-shell {
    grid-template-columns: 1fr;
  }
  .ui-main {
    padding: 12px;
  }
  .ui-grid {
    height: calc(100% - 85px);
  }
  .visual-chip {
    display: none;
  }
  .finale__matrix {
    max-width: 100%;
    padding: 16px;
  }
  .matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rail {
    right: 10px;
    height: 32vh;
  }
  .dock {
    max-width: 86vw;
    bottom: 14px;
    overflow: hidden;
  }
  .dock__items {
    overflow-x: auto;
  }
  .dock button {
    padding: 0 5px;
  }
  .bottom-meta {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }
  .ecosystem-map {
    width: 60vw;
  }
  .ecosystem .stat-line {
    display: none;
  }
  .finale__footer {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }
  .finale__footer span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .auto-progress {
    display: none;
  }
}
