/* ============================================================
   YELLOWLABS.CA: LANDING PAGE STYLES
   (Derived from Cosmic Gaming × Apple Liquid Glass)
   ============================================================ */

:root {
  /* Colors */
  --yellow:       #FFC107;
  --yellow-deep:  #E6A800;
  --yellow-glow:  rgba(255, 193, 7, 0.35);
  --yellow-faint: rgba(255, 193, 7, 0.08);
  --green:        #4CAF50;
  --green-glow:   rgba(76, 175, 80, 0.3);
  --void:         #050507;
  --void-2:       #08080D;
  --surface:      rgba(255,255,255,0.04);
  --surface-2:    rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(255, 193, 7, 0.25);
  --text-primary: #F0F0F0;
  --text-secondary: rgba(240,240,240,0.55);
  --text-muted:   rgba(240,240,240,0.3);

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  --radius-pill: 999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med:  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#landing-page {
  position: fixed;
  inset: 0;
  background: var(--void);
  color: var(--text-primary);
  font-family: var(--font-body);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: auto;
  scroll-behavior: smooth;
  opacity: 0;
  transform: scale(1.02);
  filter: blur(10px);
  transition:
    opacity 1.1s var(--ease-out-expo),
    visibility 0.8s ease,
    transform 1.1s var(--ease-out-expo),
    filter 1.1s var(--ease-out-expo);
}

#landing-page.is-ready {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

#landing-page * {
  cursor: none !important;
}

#landing-page.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
body.custom-cursor-active {
  cursor: none !important;
}

body.custom-cursor-active * {
  cursor: none !important;
}

#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,193,7,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999998;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, border-color 0.3s;
}
body.cursor-hover #cursor-dot { width: 14px; height: 14px; background: var(--yellow); }
body.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: var(--yellow); }

/* ── Canvas Background & Noise ──────────────────────────────── */
#starfield {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Initial Loading Screen ─────────────────────────────────── */
#initial-loader {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background:
    radial-gradient(circle at top, rgba(255, 193, 7, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(0, 229, 255, 0.12), transparent 24%),
    rgba(5, 5, 7, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: clamp(1.25rem, 4vh, 3rem);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  gap: 0.65rem;
  transition: opacity 0.85s var(--ease-out-expo), visibility 0.85s, transform 0.85s var(--ease-out-expo);
  pointer-events: auto;
  backdrop-filter: blur(14px);
  overflow-x: hidden;
  overflow-y: auto;
}

.loader-logo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: scale(1);
  transition: transform 0.18s linear;
  will-change: transform;
  line-height: 0;
}

#initial-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.02);
}
.loader-logo {
  display: block;
  width: min(46vw, 560px);
  max-width: 88vw;
  height: auto;
  animation: none;
  transition:
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 1.05s ease,
    filter 1.05s ease;
  filter:
    brightness(1.1)
    contrast(1.18)
    saturate(1.02)
    drop-shadow(0 0 12px rgba(255, 193, 7, 0.18))
    drop-shadow(0 0 46px rgba(255, 193, 7, 0.1));
  transform-origin: center center;
  will-change: transform, opacity, filter;
}
@keyframes logo-fly-in {
  0%   { transform: scale(0.04); opacity: 0; filter: brightness(6) blur(24px) drop-shadow(0 0 80px rgba(255,193,7,0.9)); }
  30%  { opacity: 1; filter: brightness(2.5) blur(5px) drop-shadow(0 0 50px rgba(255,193,7,0.5)); }
  65%  { filter: brightness(1.4) blur(1px) drop-shadow(0 0 24px rgba(255,193,7,0.28)) drop-shadow(0 0 60px rgba(255,193,7,0.14)); }
  100% { transform: scale(1); opacity: 0.92; filter: brightness(1.1) contrast(1.18) saturate(1.02) drop-shadow(0 0 12px rgba(255,193,7,0.18)) drop-shadow(0 0 46px rgba(255,193,7,0.1)); }
}
.loader-bar-wrap {
  width: 240px;
  height: 2px;
  margin-top: 0.15rem;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  border-radius: 2px;
  width: 0%;
  transition: width 0.18s linear;
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.35);
}
.loader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.loader-phase {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 243, 176, 0.82);
  margin: 0;
  text-align: center;
}

.loader-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(240, 240, 240, 0.4);
  letter-spacing: 0.14em;
  margin: 0;
  text-align: center;
}

#initial-loader::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at center, rgba(255, 193, 7, 0.1), transparent 24%),
    radial-gradient(circle at center, rgba(0, 229, 255, 0.08), transparent 34%);
  opacity: 0.8;
  transition: opacity 0.8s ease, transform 0.9s var(--ease-out-expo);
}

#initial-loader.is-transitioning::before {
  opacity: 0;
  transform: scale(1.35);
}

#initial-loader.is-transitioning .loader-logo {
  animation: none;
  transform: scale(22);
  opacity: 0;
  filter:
    brightness(3)
    contrast(1.18)
    saturate(1.06)
    drop-shadow(0 0 60px rgba(255, 193, 7, 0.8))
    drop-shadow(0 0 200px rgba(255, 193, 7, 0.6));
}

#initial-loader.is-transitioning .loader-bar-wrap,
#initial-loader.is-transitioning .loader-phase,
#initial-loader.is-transitioning .loader-text,
#initial-loader.is-transitioning .loader-meta,
#initial-loader.is-transitioning .loader-gate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Interaction gate: shown when autoplay is blocked */
#initial-loader.is-awaiting-click {
  cursor: pointer;
}

.loader-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out-expo);
}

.loader-gate.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.loader-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.1rem 2.8rem;
  border: 1.5px solid rgba(255, 193, 7, 0.5);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.14), rgba(255, 193, 7, 0.04));
  color: #ffcc00;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 24px rgba(255, 193, 7, 0.12),
    0 0 60px rgba(255, 193, 7, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  animation: gate-btn-glow 2.2s ease-in-out infinite;
}

.loader-gate-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(255, 193, 7, 0.8);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.24), rgba(255, 193, 7, 0.1));
  box-shadow:
    0 0 32px rgba(255, 193, 7, 0.25),
    0 0 80px rgba(255, 193, 7, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.loader-gate-btn:active {
  transform: translateY(0) scale(0.98);
}

.loader-gate-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), transparent 50%, rgba(255, 193, 7, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.loader-gate-btn:hover::before {
  opacity: 1;
}

.loader-gate-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.5));
}

.loader-gate-text {
  text-shadow: 0 0 14px rgba(255, 193, 7, 0.4);
}

.loader-gate-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(240, 240, 240, 0.4);
  text-transform: uppercase;
  animation: hint-fade 2.4s ease-in-out infinite;
}

@keyframes gate-btn-glow {
  0%, 100% {
    box-shadow:
      0 0 24px rgba(255, 193, 7, 0.12),
      0 0 60px rgba(255, 193, 7, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow:
      0 0 32px rgba(255, 193, 7, 0.22),
      0 0 80px rgba(255, 193, 7, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
}

@keyframes hint-fade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-container {
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
  background:
    radial-gradient(circle at top right, rgba(255, 193, 7, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.08));
}

.terminal-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.05) 0px,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

.terminal-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 193, 7, 0.03) 0%,
    transparent 24%,
    transparent 76%,
    rgba(0, 229, 255, 0.03) 100%
  );
}

.terminal-stream {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 360px;
  margin-bottom: 1rem;
  white-space: normal;
}

.terminal-line {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 1.4rem;
}

.terminal-prefix {
  flex: 0 0 auto;
  color: rgba(0, 229, 255, 0.92);
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.terminal-line-body {
  flex: 1;
  min-width: 0;
  color: #ffcf40;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line--dim .terminal-line-body {
  color: rgba(255, 204, 0, 0.68);
}

.terminal-line--accent .terminal-line-body {
  color: #fff3b0;
  text-shadow: 0 0 14px rgba(255, 193, 7, 0.45);
}

.terminal-line--cyan .terminal-prefix,
.terminal-line--cyan .terminal-line-body {
  color: rgba(0, 229, 255, 0.96);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.34);
}

.terminal-line--warning .terminal-prefix,
.terminal-line--warning .terminal-line-body {
  color: #ff7b72;
  text-shadow: 0 0 12px rgba(255, 123, 114, 0.28);
}

.terminal-line--success .terminal-prefix,
.terminal-line--success .terminal-line-body {
  color: #9effae;
  text-shadow: 0 0 12px rgba(76, 175, 80, 0.28);
}

.terminal-line--divider .terminal-prefix {
  color: rgba(0, 229, 255, 0.35);
}

.terminal-line--divider .terminal-line-body {
  color: rgba(255, 204, 0, 0.45);
  letter-spacing: 0.12em;
}

.terminal-line--ghost {
  animation: terminal-flicker-in 220ms ease-out both;
}

.terminal-input-line {
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.terminal-input-symbol {
  color: rgba(255, 243, 176, 0.9);
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.32);
}

.terminal-live-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffcf40;
  font: inherit;
  line-height: inherit;
  caret-color: #ffcc00;
}

.terminal-live-input::placeholder {
  color: rgba(255, 204, 0, 0.38);
}

.terminal-status {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(76, 175, 80, 0.35);
  border-radius: 999px;
  color: #9effae;
  font-size: 0.74em;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.24);
}

.terminal-blink {
  display: inline-block;
  width: 10px;
  height: 1.1rem;
  margin-left: 0.2rem;
  vertical-align: -0.15rem;
  background: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.65);
  animation: blink 1s step-end infinite;
}

@keyframes terminal-flicker-in {
  0% {
    opacity: 0;
    transform: translateY(5px);
    filter: blur(2px);
  }
  45% {
    opacity: 0.65;
    filter: blur(0.8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.mac-window {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mac-header {
  background: rgba(30, 30, 35, 0.9);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-buttons {
  display: flex;
  gap: 8px;
}

.mac-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mac-close { background: #FF5F56; }
.mac-minimize { background: #FFBD2E; }
.mac-maximize { background: #27C93F; }

.mac-title {
  flex: 1;
  text-align: center;
  color: #888;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 56px; /* offset the buttons to truly center */
}

.mac-body {
  padding: 2rem;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ── Navigation ─────────────────────────────────────────────── */
#landing-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 0.7rem clamp(0.9rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.08), rgba(5, 5, 7, 0.04));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.45rem;
  border-radius: 18px;
}
.nav-logo {
  height: 72px;
  width: auto;
  filter:
    brightness(0.96)
    contrast(1.22)
    saturate(0.94)
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 10px rgba(255, 193, 7, 0.08));
  transition: filter 0.3s, transform 0.3s;
}
.nav-logo:hover {
  transform: translateY(-1px);
  filter:
    brightness(1)
    contrast(1.24)
    saturate(0.98)
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 12px rgba(255, 193, 7, 0.1));
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow) !important;
  background: var(--yellow-faint);
  transition: background var(--transition-fast), box-shadow var(--transition-fast) !important;
  cursor: none;
  pointer-events: auto;
}
.nav-cta:hover {
  background: rgba(255,193,7,0.15) !important;
  box-shadow: 0 0 20px var(--yellow-glow) !important;
}

.nav-cta--ghost {
  min-width: 240px;
}

.landing-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: min(1600px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.45rem 0 6rem;
}

.landing-section {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: start;
}

/* ── Hero Section ───────────────────────────────────────────── */
#hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  align-items: start;
  justify-content: center;
  text-align: left;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0.45rem clamp(0.75rem, 1.8vw, 1.5rem) 2rem;
  position: relative;
  z-index: 2;
}

.hero-terminal-window {
  width: 100%;
  align-self: start;
  margin-top: 0;
}

.hero-terminal-body {
  font-family: var(--font-mono);
  color: #ffcc00;
  font-size: 0.95rem;
  line-height: 1.7;
}

.terminal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 204, 0, 0.28);
  padding-bottom: 0.7rem;
  margin-bottom: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 243, 176, 0.86);
}

#terminal-output {
  min-height: 360px;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.hero-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(0, 229, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 7.5rem;
}

.signal-pill,
.section-kicker,
.terminal-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 193, 7, 0.18);
  background: rgba(255, 193, 7, 0.08);
  color: rgba(255, 243, 176, 0.94);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel-title,
.landing-section-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero-panel-copy,
.landing-section-copy,
.right-terminal-intro p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(240, 240, 240, 0.68);
}

.hero-side-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.hero-action-btn,
.studio-enter-btn {
  border: 1px solid rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.08);
  color: #ffcc00;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.hero-action-btn:hover,
.studio-enter-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 193, 7, 0.16);
  box-shadow: 0 14px 28px rgba(255, 193, 7, 0.16);
}

.hero-action-btn--primary,
.studio-enter-btn {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.08));
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.18), 0 0 28px rgba(255, 193, 7, 0.18);
}

.right-terminal-panel {
  opacity: 0.08;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
  position: sticky;
  top: 0.45rem;
  align-self: start;
}

.right-terminal-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.right-terminal-body {
  font-family: var(--font-mono);
  color: #ffcc00;
  font-size: 0.9rem;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.right-terminal-intro {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.merged-terminal-title,
.merged-terminal-subtitle {
  max-width: none;
}

.merged-terminal-subtitle {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.08;
}

.merged-terminal-actions {
  margin-top: 0;
}

.studio-enter-btn {
  width: 100%;
  font-size: 1rem;
  text-align: center;
}

.studio-links-header {
  color: rgba(255, 204, 0, 0.62);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 204, 0, 0.18);
  padding-bottom: 0.7rem;
}

.studio-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.studio-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #ffcc00;
  text-decoration: none;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 204, 0, 0.1);
  background: rgba(255, 255, 255, 0.01);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.studio-link-main {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.studio-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  color: rgba(255, 243, 176, 0.92);
  flex: 0 0 auto;
}

.studio-link-icon svg {
  width: 100%;
  height: 100%;
}

.studio-link:hover {
  border-color: rgba(255, 204, 0, 0.38);
  background: rgba(255, 204, 0, 0.08);
  transform: translateX(4px);
}

.landing-audio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 300px;
  padding: 0.95rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(5, 10, 18, 0.78);
  color: var(--text-primary);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.landing-audio-toggle--header {
  min-width: 255px;
  padding: 0.72rem 0.9rem;
  background: rgba(5, 10, 18, 0.88);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
}

.landing-audio-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.42);
}

.landing-audio-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.25), 0 0 28px rgba(0, 229, 255, 0.14);
  transition: opacity var(--transition-fast);
}

.landing-audio-toggle.is-playing::after {
  opacity: 1;
}

.landing-audio-eq {
  display: inline-flex;
  align-items: end;
  gap: 4px;
  height: 22px;
  min-width: 30px;
}

.landing-audio-eq span {
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.34);
}

.landing-audio-toggle.is-playing .landing-audio-eq span:nth-child(1) {
  animation: equalize 0.8s ease-in-out infinite;
}

.landing-audio-toggle.is-playing .landing-audio-eq span:nth-child(2) {
  animation: equalize 0.9s ease-in-out 0.15s infinite;
}

.landing-audio-toggle.is-playing .landing-audio-eq span:nth-child(3) {
  animation: equalize 0.7s ease-in-out 0.25s infinite;
}

.landing-audio-toggle.is-playing .landing-audio-eq span:nth-child(4) {
  animation: equalize 1s ease-in-out 0.1s infinite;
}

.landing-audio-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.2rem;
}

.landing-audio-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: rgba(240, 240, 240, 0.94);
}

.landing-audio-status {
  font-size: 0.82rem;
  color: rgba(240, 240, 240, 0.62);
}

@keyframes equalize {
  0%, 100% { height: 7px; opacity: 0.55; }
  50% { height: 22px; opacity: 1; }
}

@media (max-width: 1080px) {
  #hero {
    grid-template-columns: 1fr;
  }

  .hero-side-panel,
  .right-terminal-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  #landing-nav {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }

  .nav-logo {
    height: 68px;
  }

  .landing-nav-actions {
    width: 100%;
    justify-content: stretch;
  }

  .landing-scroll {
    width: min(100%, calc(100% - 1rem));
    gap: 3.5rem;
  }

  .landing-section {
    min-height: auto;
  }

  .mac-body,
  .right-terminal-body {
    padding: 1.25rem;
  }

  .terminal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #terminal-output,
  .terminal-stream {
    min-height: 300px;
  }

  .hero-side-actions {
    flex-direction: column;
  }

  .hero-action-btn,
  .studio-enter-btn,
  .nav-cta--ghost,
  .landing-audio-toggle {
    width: 100%;
    min-width: 0;
  }
}
