/* ================================================================
   PanDeck — Premium Cyberpunk Theme (v0.14.0)
   Vanilla CSS — Custom Properties, Glassmorphism, Scrollytelling
   ================================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }

/* ---- Custom Properties ---- */
:root {
  --bg:      oklch(6% 0.01 20);
  --surface: oklch(11% 0.015 20);
  --fg:      oklch(90% 0.005 20);
  --muted:   oklch(55% 0.01 20);
  --border:  oklch(22% 0.015 20);
  --accent-blue:   oklch(62% 0.22 25);     /* Primary Accent: Neon Red */
  --accent-red:    oklch(70% 0.18 235);    /* Secondary Accent: Neon Blue/Cyan */
  --accent-purple: oklch(58% 0.20 350);    /* Gradient Complementary Accent: Neon Magenta/Pink */
  --accent-green:  oklch(65% 0.15 150);
  --accent-yellow: oklch(80% 0.18 85);
  --accent-orange: oklch(70% 0.20 50);
  --glow-blue: 0 0 24px oklch(62% 0.22 25 / 0.35);    /* Red Glow */
  --glow-red:  0 0 24px oklch(70% 0.18 235 / 0.35);   /* Blue Glow */
  --glow-purple: 0 0 24px oklch(58% 0.20 350 / 0.35); /* Pink/Magenta Glow */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --content-max: 1200px;
  --nav-h: 72px;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Radial & Grid Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    radial-gradient(ellipse 80% 60% at 50% -20%, oklch(32% 0.14 20 / 0.18), transparent),
    radial-gradient(ellipse 50% 50% at 80% 80%, oklch(28% 0.12 350 / 0.10), transparent),
    radial-gradient(ellipse 60% 40% at 20% 70%, oklch(26% 0.10 40 / 0.08), transparent);
  background-size: 40px 40px, 40px 40px, auto, auto, auto;
  pointer-events: none;
  z-index: 0;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--muted); max-width: 65ch; }
.mono { font-family: var(--font-mono); }

/* ---- Glassmorphism Utility ---- */
.glass {
  background: oklch(100% 0 0 / 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid oklch(100% 0 0 / 0.06);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Sections ---- */
.section { padding: 120px 0; position: relative; }
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header p {
  margin: 16px auto 0;
  font-size: 1.15rem;
  max-width: 600px;
}
.section-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.section-badge.blue {
  background: oklch(62% 0.22 25 / 0.12);
  color: var(--accent-blue);
  border: 1px solid oklch(62% 0.22 25 / 0.2);
}
.section-badge.purple {
  background: oklch(58% 0.20 350 / 0.12);
  color: var(--accent-purple);
  border: 1px solid oklch(58% 0.20 350 / 0.2);
}
.section-badge.red {
  background: oklch(60% 0.22 25 / 0.12);
  color: var(--accent-red);
  border: 1px solid oklch(60% 0.22 25 / 0.2);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), oklch(58% 0.20 350));
  color: #000;
  box-shadow: var(--glow-blue);
}
.btn-primary:hover { box-shadow: 0 0 32px oklch(62% 0.22 25 / 0.6); }
.btn-secondary {
  background: oklch(100% 0 0 / 0.05);
  color: var(--fg);
  border: 1px solid oklch(100% 0 0 / 0.1);
}
.btn-secondary:hover { background: oklch(100% 0 0 / 0.1); border-color: oklch(100% 0 0 / 0.2); }
.btn-sm { padding: 10px 22px; font-size: 0.85rem; }

/* ---- Header / Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.nav.scrolled {
  background: oklch(6% 0.015 270 / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid oklch(100% 0 0 / 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  font-family: 'Space Grotesk', sans-serif;
}
.nav-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-blue);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid oklch(100% 0 0 / 0.08);
}
.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.lang-btn.active { background: var(--accent-blue); color: #000; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, oklch(62% 0.22 25 / 0.08), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.hero-content h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}
.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-buttons .btn { min-width: 180px; justify-content: center; }

/* ---- Custom Hero Mockup ---- */
.hero-mockup {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, oklch(14% 0.015 20), oklch(8% 0.01 20));
  border: 1px solid oklch(100% 0 0 / 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}
.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid oklch(100% 0 0 / 0.06);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot.r { background: var(--accent-red); }
.mockup-dot.y { background: oklch(75% 0.15 85); }
.mockup-dot.g { background: var(--accent-green); }
.mockup-title { font-size: 0.8rem; font-weight: 600; color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.mockup-body {
  flex: 1;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  height: calc(100% - 41px);
}
.mockup-sidebar {
  background: oklch(100% 0 0 / 0.02);
  border-right: 1px solid oklch(100% 0 0 / 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
}
.mockup-sidebar-item {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.04);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  transition: var(--transition);
}
.mockup-sidebar-item.active {
  background: var(--accent-blue);
  color: #000;
  box-shadow: 0 0 12px oklch(62% 0.22 25 / 0.4);
}
.mockup-main {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.mockup-line {
  height: 8px;
  border-radius: 4px;
  background: oklch(100% 0 0 / 0.05);
  transition: var(--transition);
}
.mockup-line.w60 { width: 60%; }
.mockup-line.w40 { width: 40%; }
.mockup-line.w80 { width: 80%; }
.mockup-line.w50 { width: 50%; }
.mockup-line.w90 { width: 90%; }
.mockup-line.accent { background: linear-gradient(90deg, var(--accent-blue), transparent); }
.mockup-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: oklch(65% 0.15 150 / 0.06);
  border: 1px solid oklch(65% 0.15 150 / 0.12);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent-green);
  font-family: var(--font-mono);
}
.mockup-status::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-dot 2s infinite;
}

/* ---- PREMIUM SCROLLYTELLING SECTION ---- */
#features {
  position: relative;
  height: 400vh; /* 4 steps * 100vh */
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}
.features-sticky-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.features-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 600px at 70% 50%, oklch(62% 0.22 25 / 0.08), transparent 80%);
  transition: background 1s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 1;
}
.features-sticky-wrap .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  gap: 32px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.scrolly-grid {
  display: grid;
  grid-template-columns: 60px 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.scrolly-timeline-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 380px;
}
.scrolly-timeline-track {
  position: relative;
  width: 2px;
  height: 100%;
  background: oklch(100% 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.scrolly-timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 0 10px var(--accent-blue);
  transition: height 0.1s ease;
}
.scrolly-timeline-node {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid oklch(100% 0 0 / 0.12);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  z-index: 2;
  transition: var(--transition);
  cursor: pointer;
}
.scrolly-timeline-node:hover {
  border-color: var(--accent-blue);
  color: var(--fg);
}
.scrolly-timeline-node.active {
  border-color: var(--accent-blue);
  color: #000;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue);
  animation: ripple-blue 2s infinite;
}
.scrolly-timeline-node:nth-child(3).active {
  border-color: var(--accent-purple);
  background: var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple);
  animation: ripple-purple 2s infinite;
}
.scrolly-timeline-node:nth-child(4).active {
  border-color: var(--accent-red);
  background: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red);
  animation: ripple-red 2s infinite;
}
.scrolly-timeline-node:nth-child(5).active {
  border-color: var(--accent-green);
  background: var(--accent-green);
  box-shadow: 0 0 12px var(--accent-green);
  animation: ripple-green 2s infinite;
}

@keyframes ripple-blue {
  0% { box-shadow: 0 0 0 0 oklch(62% 0.22 25 / 0.4); }
  100% { box-shadow: 0 0 0 12px oklch(62% 0.22 25 / 0); }
}
@keyframes ripple-purple {
  0% { box-shadow: 0 0 0 0 oklch(58% 0.20 350 / 0.4); }
  100% { box-shadow: 0 0 0 12px oklch(58% 0.20 350 / 0); }
}
@keyframes ripple-red {
  0% { box-shadow: 0 0 0 0 oklch(70% 0.18 235 / 0.4); }
  100% { box-shadow: 0 0 0 12px oklch(70% 0.18 235 / 0); }
}
@keyframes ripple-green {
  0% { box-shadow: 0 0 0 0 oklch(65% 0.15 150 / 0.4); }
  100% { box-shadow: 0 0 0 12px oklch(65% 0.15 150 / 0); }
}
.scrolly-left {
  position: relative;
  height: 380px; /* fixed container height for card transitions */
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.scrolly-card {
  grid-area: 1 / 1 / 2 / 2; /* overlap cards */
  padding: 48px;
  border-radius: var(--radius-lg);
  background: oklch(100% 0 0 / 0.02);
  border: 1px solid oklch(100% 0 0 / 0.06);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}
.scrolly-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent-blue);
  opacity: 0;
  transition: var(--transition);
}
.scrolly-card:hover {
  background: oklch(100% 0 0 / 0.03);
  border-color: oklch(100% 0 0 / 0.08);
}
.scrolly-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  background: oklch(100% 0 0 / 0.04);
  z-index: 2;
}
.scrolly-card:nth-child(1).active { border-color: oklch(62% 0.22 25 / 0.25); box-shadow: 0 10px 30px oklch(62% 0.22 25 / 0.06); }
.scrolly-card:nth-child(2).active { border-color: oklch(58% 0.20 350 / 0.25); box-shadow: 0 10px 30px oklch(58% 0.20 350 / 0.06); }
.scrolly-card:nth-child(3).active { border-color: oklch(70% 0.18 235 / 0.25); box-shadow: 0 10px 30px oklch(70% 0.18 235 / 0.06); }
.scrolly-card:nth-child(4).active { border-color: oklch(65% 0.15 150 / 0.25); box-shadow: 0 10px 30px oklch(65% 0.15 150 / 0.06); }
.scrolly-card.active::before {
  opacity: 1;
}
.scrolly-card:nth-child(2).active::before { background: var(--accent-purple); }
.scrolly-card:nth-child(3).active::before { background: var(--accent-red); }
.scrolly-card:nth-child(4).active::before { background: var(--accent-green); }

.scrolly-card-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition);
}
.scrolly-card-icon.blue { background: oklch(62% 0.22 25 / 0.1); color: var(--accent-blue); }
.scrolly-card-icon.purple { background: oklch(58% 0.20 350 / 0.1); color: var(--accent-purple); }
.scrolly-card-icon.red { background: oklch(70% 0.18 235 / 0.1); color: var(--accent-red); }
.scrolly-card-icon.green { background: oklch(65% 0.15 150 / 0.1); color: var(--accent-green); }

.scrolly-card h3 {
  margin-bottom: 16px;
  font-size: 1.8rem;
  transition: var(--transition);
}
.scrolly-card.active h3 {
  color: var(--fg);
}
.scrolly-card.active:nth-child(1) h3 { color: var(--accent-blue); }
.scrolly-card.active:nth-child(2) h3 { color: var(--accent-purple); }
.scrolly-card.active:nth-child(3) h3 { color: var(--accent-red); }
.scrolly-card.active:nth-child(4) h3 { color: var(--accent-green); }

.scrolly-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  transition: var(--transition);
}

.scrolly-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.scrolly-right .hero-mockup {
  transform: scale(1.25);
  transform-origin: center;
  transition: transform 0.5s ease;
}

/* ---- INTERACTIVE SCRONS (INSIDE MOCKUP) ---- */
.scrolly-screen {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.scrolly-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: 0;
}

/* Screen 1: Telemetry */
.tel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.tel-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tel-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--muted);
}
.tel-label .val { color: var(--fg); font-weight: 600; }
.tel-progress-bg {
  height: 6px;
  border-radius: 3px;
  background: oklch(100% 0 0 / 0.05);
  overflow: hidden;
}
.tel-progress-fg {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.scrolly-screen.active .tel-progress-fg.cpu { width: 44%; background: var(--accent-blue); }
.scrolly-screen.active .tel-progress-fg.ram { width: 68%; background: var(--accent-purple); }
.scrolly-screen.active .tel-progress-fg.gpu { width: 28%; background: var(--accent-red); }

/* Screen 2: Screen Share */
.desktop-view {
  flex: 1;
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.03);
  border: 1px dashed oklch(100% 0 0 / 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.desktop-preview-win {
  width: 70%;
  height: 60%;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  padding: 8px;
}
.sim-cursor {
  position: absolute;
  top: 80%; left: 80%;
  font-size: 0.8rem;
  color: var(--accent-purple);
  filter: drop-shadow(0 0 4px var(--accent-purple));
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.scrolly-screen.active .sim-cursor {
  top: 35%; left: 45%;
}

/* Screen 3: Audio sliders */
.audio-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audio-slider-row {
  display: grid;
  grid-template-columns: 50px 1fr 30px;
  align-items: center;
  gap: 10px;
}
.audio-label {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}
.audio-track {
  height: 4px;
  background: oklch(100% 0 0 / 0.05);
  border-radius: 2px;
  position: relative;
}
.audio-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 1s ease;
}
.audio-handle {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0;
  transition: left 1s ease;
  box-shadow: 0 0 6px rgba(255,255,255,0.4);
}
.scrolly-screen.active .audio-fill.game { width: 85%; background: var(--accent-blue); }
.scrolly-screen.active .audio-handle.game { left: 85%; }
.scrolly-screen.active .audio-fill.chat { width: 50%; background: var(--accent-purple); }
.scrolly-screen.active .audio-handle.chat { left: 50%; }
.scrolly-screen.active .audio-fill.music { width: 70%; background: var(--accent-green); }
.scrolly-screen.active .audio-handle.music { left: 70%; }

.audio-val {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted);
  text-align: right;
}

/* Screen 4: Macros */
.macro-grid-sim {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.macro-btn-sim {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: oklch(100% 0 0 / 0.04);
  border: 1px solid oklch(100% 0 0 / 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: var(--transition);
}
.macro-btn-sim span { font-size: 0.5rem; font-family: var(--font-mono); letter-spacing: 0.02em; }
.macro-btn-sim:hover {
  background: oklch(100% 0 0 / 0.08);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 8px oklch(70% 0.18 235 / 0.2);
}
.macro-btn-sim.active-glow {
  background: oklch(60% 0.22 25 / 0.15);
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 10px oklch(60% 0.22 25 / 0.3);
}

/* ---- STEPS (GLASS CARDS) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: oklch(100% 0 0 / 0.15);
  background: oklch(100% 0 0 / 0.06);
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 900;
  color: oklch(100% 0 0 / 0.04);
  position: absolute;
  top: 16px; right: 24px;
  line-height: 1;
}
.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #000;
  margin: 0 auto 24px;
}
.step-card h3 { margin-bottom: 12px; }
.step-card p { font-size: 0.92rem; margin: 0 auto; }

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid oklch(100% 0 0 / 0.06);
  overflow: hidden;
  transition: var(--transition);
  background: oklch(100% 0 0 / 0.01);
}
.faq-item:hover { border-color: oklch(100% 0 0 / 0.15); background: oklch(100% 0 0 / 0.02); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  background: none;
  transition: var(--transition);
}
.faq-question .icon {
  font-size: 1.25rem;
  transition: var(--transition);
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); color: var(--accent-red); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid oklch(100% 0 0 / 0.06);
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand { font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; font-family: 'Space Grotesk', sans-serif; }
.footer-desc { font-size: 0.85rem; max-width: 320px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 5px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent-blue); }
.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); transition: var(--transition); }
.footer-legal a:hover { color: var(--accent-blue); }

/* ---- Docs Page ---- */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
  min-height: 100vh;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: fit-content;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.docs-sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.docs-nav-item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  margin-bottom: 2px;
}
.docs-nav-item:hover { color: var(--fg); background: oklch(100% 0 0 / 0.04); }
.docs-nav-item.active { color: var(--accent-blue); background: oklch(62% 0.22 25 / 0.08); }
.docs-content { min-width: 0; }
.docs-content h1 { margin-bottom: 24px; }
.docs-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid oklch(100% 0 0 / 0.06);
}
.docs-content h3 {
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
}
.docs-content p, .docs-content li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.docs-content ul { list-style: disc; padding-left: 24px; }
.docs-content ul li { margin-bottom: 6px; }
.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 2px 8px;
  border-radius: 4px;
  background: oklch(100% 0 0 / 0.06);
  color: var(--accent-blue);
}
.docs-content pre {
  background: oklch(8% 0.015 270);
  border: 1px solid oklch(100% 0 0 / 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 16px 0 24px;
}
.docs-content pre code {
  background: none;
  padding: 0;
  color: var(--fg);
  font-size: 0.85rem;
  line-height: 1.6;
}
.docs-content .note {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-blue);
  background: oklch(62% 0.22 25 / 0.08);
  margin: 16px 0 24px;
  font-size: 0.9rem;
}
.docs-content .warning {
  border-left-color: var(--accent-red);
  background: oklch(60% 0.22 25 / 0.08);
}
.docs-toc {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.docs-toc a {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid oklch(100% 0 0 / 0.1);
  transition: var(--transition);
}
.docs-toc a:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* ---- Legal & Error Pages ---- */
.legal-page, .error-page {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 100px;
  min-height: calc(100vh - 300px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}
.legal-content h1 { margin-bottom: 8px; }
.legal-content .last-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 32px;
}
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-content p, .legal-content li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul { list-style: disc; padding-left: 24px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content strong { color: var(--fg); }

/* Error Page Centering Card */
.error-container {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.error-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.error-badge.yellow { background: oklch(80% 0.18 85 / 0.12); color: var(--accent-yellow); border: 1px solid oklch(80% 0.18 85 / 0.2); }
.error-badge.purple { background: oklch(58% 0.20 350 / 0.12); color: var(--accent-purple); border: 1px solid oklch(58% 0.20 350 / 0.2); }
.error-badge.red { background: oklch(70% 0.18 235 / 0.12); color: var(--accent-red); border: 1px solid oklch(70% 0.18 235 / 0.2); }
.error-badge.blue { background: oklch(62% 0.22 25 / 0.12); color: var(--accent-blue); border: 1px solid oklch(62% 0.22 25 / 0.2); }

.error-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--fg);
}
.error-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ---- CYBERPUNK GLITCH EFFECT ---- */
.glitch {
  font-size: 7.5rem;
  font-weight: 950;
  letter-spacing: -0.05em;
  position: relative;
  line-height: 1;
  margin-bottom: 16px;
  user-select: none;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg);
}
.glitch::before {
  left: 2px;
  animation: glitch-anim 4s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  animation: glitch-anim2 4s infinite linear alternate-reverse;
}

/* Glitch color mappings */
.blue-glitch::before { text-shadow: -2px 0 var(--accent-red); }
.blue-glitch::after { text-shadow: 2px 0 var(--accent-purple); }
.red-glitch::before { text-shadow: -2px 0 var(--accent-blue); }
.red-glitch::after { text-shadow: 2px 0 var(--accent-orange); }
.yellow-glitch::before { text-shadow: -2px 0 var(--accent-yellow); }
.yellow-glitch::after { text-shadow: 2px 0 var(--accent-orange); }
.purple-glitch::before { text-shadow: -2px 0 var(--accent-purple); }
.purple-glitch::after { text-shadow: 2px 0 var(--accent-blue); }

@keyframes glitch-anim {
  0% { clip-path: inset(40% 0 61% 0); }
  10% { clip-path: inset(92% 0 1% 0); }
  20% { clip-path: inset(25% 0 58% 0); }
  30% { clip-path: inset(80% 0 5% 0); }
  40% { clip-path: inset(11% 0 70% 0); }
  50% { clip-path: inset(50% 0 30% 0); }
  60% { clip-path: inset(85% 0 10% 0); }
  70% { clip-path: inset(5% 0 80% 0); }
  80% { clip-path: inset(62% 0 25% 0); }
  90% { clip-path: inset(15% 0 75% 0); }
  100% { clip-path: inset(40% 0 45% 0); }
}
@keyframes glitch-anim2 {
  0% { clip-path: inset(15% 0 80% 0); }
  10% { clip-path: inset(45% 0 40% 0); }
  20% { clip-path: inset(82% 0 5% 0); }
  30% { clip-path: inset(10% 0 75% 0); }
  40% { clip-path: inset(60% 0 28% 0); }
  50% { clip-path: inset(22% 0 65% 0); }
  60% { clip-path: inset(70% 0 12% 0); }
  70% { clip-path: inset(30% 0 55% 0); }
  80% { clip-path: inset(90% 0 2% 0); }
  90% { clip-path: inset(5% 0 88% 0); }
  100% { clip-path: inset(50% 0 35% 0); }
}

/* ---- Animations ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-mockup { max-width: 440px; margin: 0 auto; }
  
  /* Responsive Sticky Scrollytelling styling */
  .features-sticky-wrap .container {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }
  .features-sticky-wrap .section-header {
    margin-bottom: 0;
    text-align: center;
  }
  .features-sticky-wrap .section-header h2 {
    font-size: 1.3rem;
  }
  .scrolly-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 24px;
    height: calc(100% - 110px);
    align-items: center;
    width: 100%;
  }
  .scrolly-timeline-container {
    display: none;
  }
  .scrolly-left {
    order: 2;
    height: auto;
    min-height: 150px;
  }
  .scrolly-right {
    order: 1;
    position: relative;
    top: 0;
    padding-bottom: 0;
  }
  .scrolly-right .hero-mockup {
    transform: scale(0.9);
    margin: 0 auto;
  }
  .scrolly-card {
    padding: 24px 32px;
  }
  .scrolly-card-icon {
    display: none; /* hide card icon to save vertical space on mobile */
  }
  .scrolly-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  .scrolly-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-toc { display: flex; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    background: oklch(6% 0.015 270 / 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid oklch(100% 0 0 / 0.06);
  }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .legal-content, .error-container { padding: 32px 20px; }
  .glitch { font-size: 5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2rem; }
  .hero .hero-mockup { display: none; } /* Hide only the top hero mockup */
  
  /* Make scrollytelling mockup scale down further to fit small screens */
  .scrolly-right .hero-mockup {
    display: flex !important;
    transform: scale(0.78);
  }
  .features-sticky-wrap .container {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .scrolly-grid {
    gap: 8px;
    height: calc(100% - 90px);
  }
  .scrolly-card {
    padding: 16px 20px;
  }
  .scrolly-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .scrolly-card p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .docs-toc { display: flex; flex-wrap: wrap; }
  .docs-toc a { font-size: 0.75rem; padding: 4px 10px; }
}

/* ================================================================
   PanDeck — New Premium Upgrades (v0.14.0)
   ================================================================ */

#premium-network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.75;
}

/* Mouse spotlight glow border for glass, cards, sidebar */
.glass, .scrolly-card, .step-card, .docs-sidebar {
  position: relative;
}
.glass::after, .scrolly-card::after, .step-card::after, .docs-sidebar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    400px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    oklch(62% 0.22 25 / 0.45) 0%,
    oklch(58% 0.20 350 / 0.25) 40%,
    transparent 100%
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.glass:hover::after, .scrolly-card:hover::after, .step-card:hover::after, .docs-sidebar:hover::after {
  opacity: 1;
}

/* Scroll Down Hint Mouse Indicator */
.scroll-down-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
  animation: fade-pulse 2s infinite ease-in-out;
}
.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--muted);
  border-radius: 10px;
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--accent-blue);
  border-radius: 1.5px;
  animation: scroll-wheel-anim 1.6s infinite ease-in-out;
}
@keyframes scroll-wheel-anim {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(7px); opacity: 0; }
}
@keyframes fade-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Scroll to Top Ring */
#scroll-to-top-ring {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: oklch(100% 0 0 / 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid oklch(100% 0 0 / 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px oklch(100% 0 0 / 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s, background 0.3s;
  z-index: 99;
}
#scroll-to-top-ring.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}
#scroll-to-top-ring:hover {
  background: oklch(100% 0 0 / 0.08);
  border-color: oklch(100% 0 0 / 0.15);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 15px oklch(62% 0.22 25 / 0.3);
}
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}
.progress-ring-circle {
  stroke-dasharray: 125.6;
  stroke-dashoffset: 125.6;
  transition: stroke-dashoffset 0.1s ease;
}
.arrow-up {
  font-size: 0.9rem;
  color: var(--fg);
  transition: transform 0.3s ease;
}
#scroll-to-top-ring:hover .arrow-up {
  transform: translateY(-2px);
}

/* Premium Button Upgrades (Glow & Sweeping Light) */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: 0;
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(100%);
}
.btn-primary:hover {
  animation: button-pulse-glow 1.5s infinite;
}
@keyframes button-pulse-glow {
  0%, 100% { box-shadow: 0 0 24px oklch(62% 0.22 25 / 0.35); }
  50% { box-shadow: 0 0 36px oklch(62% 0.22 25 / 0.65), 0 0 0 4px oklch(62% 0.22 25 / 0.15); }
}

/* Custom Interactive Mockup Visual Details */
.tel-wave-canvas {
  width: 100%;
  height: 35px;
  background: transparent;
  margin-top: 8px;
}
.active-pulse-handle {
  animation: handle-pulse-ring 1.5s infinite;
}
@keyframes handle-pulse-ring {
  0% { box-shadow: 0 0 0 0 oklch(62% 0.22 25 / 0.5); }
  100% { box-shadow: 0 0 0 8px oklch(62% 0.22 25 / 0); }
}
.macro-btn-sim {
  position: relative;
  overflow: hidden;
}
.macro-ripple {
  position: absolute;
  border-radius: 50%;
  background: oklch(62% 0.22 25 / 0.3);
  transform: scale(0);
  animation: macro-ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes macro-ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Error page canvas overlay style */
.error-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

