/* ═══════════════════════════════════════════════════════════════
   Fernet.lol — Premium Landing · Argentine Identity
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Argentina palette */
  --celeste: #74ACDF;
  --celeste-bright: #33adf2;
  --celeste-deep: #5a94c9;
  --celeste-muted: rgba(116, 172, 223, 0.65);
  --sol-gold: #F6B40E;
  --sol-gold-light: #ffd054;
  --white-pure: #ffffff;

  /* Surfaces */
  --bg-deep: #070b12;
  --bg-elevated: #0c121f;
  --bg-window: rgba(10, 16, 28, 0.88);
  --bg-card: rgba(8, 14, 26, 0.82);
  --bg-popup: #151d2e;

  /* Accent system */
  --accent: var(--celeste-bright);
  --accent-hover: #47bfff;
  --accent-active: var(--celeste-deep);
  --accent-soft: rgba(116, 172, 223, 0.16);
  --accent-glow: rgba(51, 173, 242, 0.35);
  --yellow: var(--sol-gold);
  --yellow-soft: rgba(246, 180, 14, 0.16);
  --yellow-glow: rgba(246, 180, 14, 0.4);

  /* Typography */
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --text: #eef4fb;
  --text-muted: #8fa3bc;
  --text-subtle: #5a6d85;

  /* Layout rhythm */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --container: 1160px;
  --header-h: 72px;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --outline: rgba(116, 172, 223, 0.12);
  --outline-strong: rgba(116, 172, 223, 0.28);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(51, 173, 242, 0.12);
  --glass: blur(20px) saturate(1.5);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-soft: cubic-bezier(0.25, 1.25, 0.5, 1);
  --panel-perspective: 1400px;

  /* Scrollbars */
  --scrollbar-size: 6px;
  --scrollbar-track: rgba(7, 11, 18, 0.95);
  --scrollbar-track-window: rgba(10, 16, 28, 0.9);
  --scrollbar-track-popup: rgba(21, 29, 46, 0.95);
  --scrollbar-track-card: rgba(8, 14, 26, 0.92);
  --scrollbar-thumb: rgba(116, 172, 223, 0.4);
  --scrollbar-thumb-hover: rgba(51, 173, 242, 0.75);
  --scrollbar-thumb-active: rgba(246, 180, 14, 0.85);

  --success: #3dd68c;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(116, 172, 223, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(246, 180, 14, 0.05), transparent 50%),
    radial-gradient(circle at 5% 90%, rgba(116, 172, 223, 0.08), transparent 40%),
    radial-gradient(circle at 95% 80%, rgba(255, 255, 255, 0.02), transparent 35%),
    linear-gradient(180deg, var(--bg-deep) 0%, #0a1018 40%, #060910 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-loading { overflow: hidden; }

::selection {
  background: rgba(51, 173, 242, 0.35);
  color: var(--white-pure);
}

/* ── Ambient layers ── */
#rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.85;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.arg-stripes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.028;
  background: repeating-linear-gradient(
    -12deg,
    transparent 0, transparent 48px,
    rgba(116, 172, 223, 0.5) 48px, rgba(116, 172, 223, 0.5) 52px,
    transparent 52px, transparent 100px,
    rgba(255, 255, 255, 0.35) 100px, rgba(255, 255, 255, 0.35) 104px
  );
}

.sol-bg {
  display: none !important;
}

.ambient-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(80px);
}

.ambient-glow--left {
  top: 30%;
  left: -180px;
  background: rgba(116, 172, 223, 0.08);
}

.ambient-glow--right {
  bottom: 10%;
  right: -160px;
  background: rgba(246, 180, 14, 0.05);
}

.site-header, main, .site-footer {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE LOADER
   ═══════════════════════════════════════════════════════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader.is-hidden,
.page-loader.is-hidden * {
  animation: none !important;
}

.loader-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(116, 172, 223, 0.14), transparent 65%),
    radial-gradient(circle at 20% 80%, rgba(246, 180, 14, 0.06), transparent 45%);
}

.loader-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
  padding: 2rem;
  animation: loaderFadeIn 0.7s var(--ease-out) both;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.loader-logo-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--celeste);
  border-right-color: var(--sol-gold);
  animation: loaderSpin 1.2s linear infinite;
}

.loader-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(116, 172, 223, 0.55));
  animation: loaderLogoPulse 2s ease-in-out infinite;
}

@keyframes loaderLogoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 28px rgba(116, 172, 223, 0.55));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 36px rgba(246, 180, 14, 0.4));
    transform: scale(1.05);
  }
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

.loader-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white-pure);
}

.loader-dot { color: var(--accent); }

.loader-tagline {
  margin: -0.5rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--celeste-muted);
}

.loader-progress-track {
  width: min(240px, 75vw);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--celeste-deep), var(--celeste-bright), var(--sol-gold));
  box-shadow: 0 0 16px rgba(51, 173, 242, 0.5);
  transition: width 0.3s var(--ease-out);
}

.loader-status {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBARS
   ═══════════════════════════════════════════════════════════════ */
html, body, .dash-sidebar, .dash-panels, .combo-menu, .mock-list {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar, body::-webkit-scrollbar,
.dash-sidebar::-webkit-scrollbar, .dash-panels::-webkit-scrollbar,
.combo-menu::-webkit-scrollbar, .mock-list::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track, body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

.dash-sidebar::-webkit-scrollbar-track { background: rgba(12, 11, 24, 0.95); }
.dash-panels::-webkit-scrollbar-track { background: var(--scrollbar-track-window); }
.combo-menu::-webkit-scrollbar-track { background: var(--scrollbar-track-popup); }
.mock-list::-webkit-scrollbar-track { background: var(--scrollbar-track-card); }

html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb,
.dash-sidebar::-webkit-scrollbar-thumb, .dash-panels::-webkit-scrollbar-thumb,
.combo-menu::-webkit-scrollbar-thumb, .mock-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(71, 191, 255, 0.5), rgba(51, 173, 242, 0.35));
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover,
.dash-sidebar::-webkit-scrollbar-thumb:hover, .dash-panels::-webkit-scrollbar-thumb:hover,
.combo-menu::-webkit-scrollbar-thumb:hover, .mock-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
}

html::-webkit-scrollbar-thumb:active, body::-webkit-scrollbar-thumb:active,
.dash-sidebar::-webkit-scrollbar-thumb:active, .dash-panels::-webkit-scrollbar-thumb:active,
.combo-menu::-webkit-scrollbar-thumb:active, .mock-list::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, var(--yellow), var(--accent-active));
}

.dash-sidebar { scrollbar-color: var(--scrollbar-thumb) rgba(12, 11, 24, 0.95); }
.dash-panels { scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track-window); }
.combo-menu { scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track-popup); }
.mock-list { scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track-card); }

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */
.scroll-reveal {
  --reveal-delay: 0s;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.scroll-reveal--fade { transform: none; }
.scroll-reveal--slide-up { transform: translateY(36px); }
.scroll-reveal--scale { transform: translateY(24px) scale(0.97); }

.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.scroll-reveal.is-visible .reveal-item,
.scroll-reveal.is-visible.reveal-stagger > .reveal-item {
  opacity: 1;
  transform: none;
}

.scroll-reveal.is-visible,
.scroll-reveal.is-visible .reveal-item {
  will-change: auto;
}

.scroll-reveal.is-visible .reveal-item:nth-child(1),
.scroll-reveal.is-visible.reveal-stagger > .reveal-item:nth-child(1) { transition-delay: 0.06s; }
.scroll-reveal.is-visible .reveal-item:nth-child(2),
.scroll-reveal.is-visible.reveal-stagger > .reveal-item:nth-child(2) { transition-delay: 0.13s; }
.scroll-reveal.is-visible .reveal-item:nth-child(3),
.scroll-reveal.is-visible.reveal-stagger > .reveal-item:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.is-visible .reveal-item:nth-child(4),
.scroll-reveal.is-visible.reveal-stagger > .reveal-item:nth-child(4) { transition-delay: 0.27s; }
.scroll-reveal.is-visible .reveal-item:nth-child(5),
.scroll-reveal.is-visible.reveal-stagger > .reveal-item:nth-child(5) { transition-delay: 0.34s; }
.scroll-reveal.is-visible .reveal-item:nth-child(6),
.scroll-reveal.is-visible.reveal-stagger > .reveal-item:nth-child(6) { transition-delay: 0.41s; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0;
  border-bottom: 1px solid transparent;
  background: rgba(7, 11, 18, 0.55);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  transition: background 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 18, 0.88);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom-color: var(--outline);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.brand:hover { opacity: 0.88; }

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(116, 172, 223, 0.45));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(116, 172, 223, 0.45)); }
  50% { filter: drop-shadow(0 0 20px rgba(246, 180, 14, 0.3)); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-dot { color: var(--accent); }

.header-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s var(--ease-spring), box-shadow 0.25s;
}

.social-link svg { flex-shrink: 0; opacity: 0.85; transition: transform 0.25s; }

.social-link:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.social-link--discord:hover {
  border-color: rgba(114, 137, 218, 0.5);
  background: rgba(114, 137, 218, 0.12);
  color: #a8b5f0;
}

.social-link--youtube:hover {
  border-color: rgba(255, 77, 77, 0.45);
  background: rgba(255, 77, 77, 0.1);
  color: #ff8080;
}

.social-link--github:hover {
  border-color: rgba(51, 173, 242, 0.4);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.social-link:hover svg { transform: scale(1.08); }

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
   ═══════════════════════════════════════════════════════════════ */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem var(--space-2xl);
}

.section-label {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sol-gold);
}

.section-label--light { color: var(--celeste-muted); }

.section-head {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--white-pure) 0%, var(--celeste) 55%, var(--sol-gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-block: 0.05em;
}

.section-head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
  min-height: calc(100vh - var(--header-h) - 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 90vw);
  height: 400px;
  background: radial-gradient(ellipse, rgba(116, 172, 223, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-sol {
  display: none !important;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.45rem 1.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sol-gold);
  background: var(--yellow-soft);
  border: 1px solid rgba(246, 180, 14, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(246, 180, 14, 0.08);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-gold);
  box-shadow: 0 0 8px var(--yellow-glow);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Typewriter Title Dynamic Single-Line Styling */
.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1.8rem;
  padding: 0.4rem 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.hero-title {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: clamp(1.1rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 100%;
}

.typewriter-text {
  display: inline;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--white-pure) 0%, var(--celeste-bright) 45%, var(--sol-gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: titleShimmer 6s ease-in-out infinite;
}

.typewriter-cursor {
  display: inline-block;
  white-space: nowrap;
  color: var(--sol-gold);
  font-weight: 400;
  margin-left: 3px;
  vertical-align: baseline;
  animation: cursorBlink 0.75s ease-in-out infinite alternate;
  text-shadow: 0 0 16px var(--sol-gold);
}

@keyframes cursorBlink {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto 2.8rem;
  padding: 0;
  list-style: none;
  max-width: 580px;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 0.85rem;
}

.hero-stat-card {
  background: rgba(12, 18, 30, 0.82);
  border: 1px solid rgba(116, 172, 223, 0.28);
  border-radius: 14px;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.35s;
  align-items: center;
  text-align: center;
}

.stat-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  background: rgba(116, 172, 223, 0.1);
  border: 1px solid rgba(116, 172, 223, 0.25);
  color: var(--celeste-bright);
  box-shadow: 0 0 16px rgba(51, 173, 242, 0.15);
  transition: transform 0.3s var(--ease-spring), color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.hero-stat-card:nth-child(3) .stat-card-icon {
  color: var(--sol-gold);
  border-color: rgba(246, 180, 14, 0.3);
  box-shadow: 0 0 16px rgba(246, 180, 14, 0.15);
}

.hero-stat-card:hover .stat-card-icon {
  transform: scale(1.15) rotate(4deg);
  box-shadow: 0 0 24px rgba(51, 173, 242, 0.4);
}

.hero-stat-card:hover {
  transform: translateY(-6px) translateZ(16px);
  border-color: rgba(51, 173, 242, 0.48);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 28px rgba(51, 173, 242, 0.28);
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white-pure);
}

.hero-stat span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-divider {
  display: none;
}

/* 3D Clean Scene Wrapper */
.hero-3d-scene {
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.15s linear;
}

/* Scroll-Down Indicator 3D Clean */
.scroll-down-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-top: 2.2rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s, transform 0.25s var(--ease-spring);
  cursor: pointer;
}

.scroll-down-indicator:hover {
  color: var(--accent-hover);
  transform: translateY(4px);
}

.scroll-down-mouse {
  position: relative;
  width: 22px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid rgba(116, 172, 223, 0.4);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 14px rgba(51, 173, 242, 0.15);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.scroll-down-indicator:hover .scroll-down-mouse {
  border-color: var(--celeste-bright);
  box-shadow: 0 0 20px rgba(51, 173, 242, 0.35);
}

.scroll-down-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--celeste-bright), var(--sol-gold));
  box-shadow: 0 0 8px var(--celeste-bright);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  70% { opacity: 0; transform: translateX(-50%) translateY(14px); }
  71% { opacity: 0; transform: translateX(-50%) translateY(0); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.scroll-down-arrow {
  color: var(--sol-gold);
  animation: scrollArrowBounce 1.8s ease-in-out infinite;
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(5px); opacity: 1; }
}

.hero-tagline {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--celeste-muted);
  letter-spacing: 0.01em;
}

.hero-title-wrap {
  margin-bottom: 1.25rem;
  overflow: visible;
  padding-block: 0.15em;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0;
  overflow: visible;
}

.hero-title-line {
  background: linear-gradient(180deg, var(--white-pure) 0%, rgba(238, 244, 251, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-block: 0.06em;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--celeste-bright) 0%, var(--celeste) 40%, var(--sol-gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-block: 0.06em;
  animation: titleShimmer 6s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-title-underline {
  width: min(120px, 30vw);
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--celeste), var(--sol-gold), transparent);
  opacity: 0.7;
}

.hero-subtitle {
  max-width: 540px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2rem;
  padding: 0;
  list-style: none;
  max-width: 420px;
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.5rem;
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white-pure);
}

.hero-stat span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, var(--outline-strong), transparent);
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  overflow: visible;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--celeste-bright) 0%, var(--celeste) 100%);
  box-shadow: 0 8px 32px rgba(51, 173, 242, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--celeste-bright) 100%);
  box-shadow: 0 14px 44px rgba(51, 173, 242, 0.4), 0 0 0 1px rgba(246, 180, 14, 0.2);
}

.btn-glow {
  position: relative;
  isolation: isolate;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(51, 173, 242, 0.4), rgba(246, 180, 14, 0.25));
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-glow:hover::after { opacity: 1; }

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--outline);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 173, 242, 0.4);
  color: var(--accent-hover);
  background: var(--accent-soft);
  box-shadow: 0 8px 28px rgba(51, 173, 242, 0.12);
}

.btn-lg {
  padding: 1.05rem 1.85rem;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONNECT SECTION
   ═══════════════════════════════════════════════════════════════ */
.connect-section {
  margin-bottom: var(--space-2xl);
  padding: var(--space-lg) var(--space-md);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--outline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(116, 172, 223, 0.07), transparent 65%),
    rgba(10, 16, 28, 0.6);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-sm);
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}

.connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.75rem 1.35rem 2.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius);
  border: 1px solid var(--outline);
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 173, 242, 0.06), transparent 55%),
    rgba(8, 14, 26, 0.7);
  backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.25s var(--ease-spring), box-shadow 0.3s, background 0.3s;
}

.connect-card > * {
  position: relative;
  z-index: 1;
}

.connect-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(51, 173, 242, 0.06) 0%, transparent 50%, rgba(246, 180, 14, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.connect-card:hover {
  border-color: rgba(51, 173, 242, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), var(--shadow-glow);
  z-index: 1;
}

.connect-card:hover::before { opacity: 1; }

.connect-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
}

.connect-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
}

.connect-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  color: var(--accent);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}

.connect-card:hover .connect-arrow {
  opacity: 0.7;
  transform: translateX(0);
}

.connect-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  position: relative;
}

.connect-card:hover .connect-icon {
  transform: scale(1.08) translateY(-2px);
}

.connect-icon-discord {
  color: #7289da;
  background: rgba(114, 137, 218, 0.1);
  border-color: rgba(114, 137, 218, 0.22);
}

.connect-card:hover .connect-icon-discord {
  box-shadow: 0 8px 24px rgba(114, 137, 218, 0.2);
}

.connect-icon-youtube {
  color: #ff4d4d;
  background: rgba(255, 77, 77, 0.1);
  border-color: rgba(255, 77, 77, 0.22);
}

.connect-card:hover .connect-icon-youtube {
  box-shadow: 0 8px 24px rgba(255, 77, 77, 0.18);
}

.connect-icon-github {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.connect-card:hover .connect-icon-github {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════════════
   DEV PROFILE
   ═══════════════════════════════════════════════════════════════ */
.dev-section {
  margin-bottom: var(--space-2xl);
}

.dev-profile-scene {
  perspective: var(--panel-perspective);
  perspective-origin: 50% 50%;
  display: flex;
  justify-content: center;
  padding: 1rem 0 1.5rem;
  overflow: visible;
}

.dev-profile-card {
  position: relative;
  width: min(100%, 440px);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--outline-strong);
  background: rgba(10, 16, 28, 0.9);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow), 0 0 0 1px rgba(246, 180, 14, 0.06), var(--shadow-glow);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.4s;
  transform: perspective(var(--panel-perspective)) rotateX(0deg) rotateY(0deg);
}

.dev-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(51, 173, 242, 0.07) 0%, transparent 45%, rgba(246, 180, 14, 0.04) 100%);
  z-index: 3;
}

.dev-profile-card.is-tilting {
  box-shadow: var(--shadow), 0 0 70px rgba(51, 173, 242, 0.2), 0 0 36px rgba(246, 180, 14, 0.1);
}

.dev-profile-banner {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-active), var(--celeste), var(--sol-gold));
}

.dev-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.dev-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 16, 28, 0.85) 100%);
  pointer-events: none;
}

.dev-profile-card:hover .dev-banner-img { transform: scale(1.05); }

.dev-profile-body {
  position: relative;
  padding: 0 1.5rem 1.65rem;
  z-index: 2;
}

.dev-profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-top: -48px;
  margin-bottom: 0.9rem;
  flex-shrink: 0;
}

.dev-profile-avatar {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid rgba(10, 16, 28, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(51, 173, 242, 0.35), 0 0 24px rgba(51, 173, 242, 0.15);
  background: var(--bg-deep);
  transition: box-shadow 0.35s;
}

.dev-profile-avatar-decoration {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  height: 118%;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.dev-profile-card:hover .dev-profile-avatar {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(246, 180, 14, 0.45), 0 0 32px rgba(51, 173, 242, 0.25);
}

.dev-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  z-index: 3;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--success);
  border: 4px solid rgba(10, 16, 28, 0.98);
  box-shadow: 0 0 12px rgba(61, 214, 140, 0.55);
}

.dev-profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dev-username {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white-pure);
  line-height: 1.2;
}

.dev-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  padding: 0.32rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yellow);
  background: var(--yellow-soft);
  border: 1px solid rgba(246, 180, 14, 0.3);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(246, 180, 14, 0.08);
}

.dev-role-badge svg { flex-shrink: 0; opacity: 0.9; }

.dev-bio {
  margin: 0.1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.dev-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: 0.1rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--celeste);
  background: rgba(116, 172, 223, 0.1);
  border: 1px solid rgba(116, 172, 223, 0.22);
  border-radius: 999px;
}

.dev-location-badge svg { flex-shrink: 0; opacity: 0.85; }

.dev-discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(51, 173, 242, 0.3);
  background: var(--accent-soft);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s var(--ease-spring), box-shadow 0.25s;
}

.dev-discord-link:hover {
  color: var(--white-pure);
  border-color: rgba(51, 173, 242, 0.55);
  background: rgba(51, 173, 242, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(51, 173, 242, 0.18);
}

.dev-discord-link svg { flex-shrink: 0; opacity: 0.9; }

/* ═══════════════════════════════════════════════════════════════
   PANEL PREVIEW
   ═══════════════════════════════════════════════════════════════ */
.preview-section {
  margin-bottom: var(--space-2xl);
}

.preview-section,
.connect-section,
.dev-section {
  overflow: visible;
}

.preview-section .section-head h2 {
  background: linear-gradient(135deg, var(--white-pure) 0%, var(--celeste) 50%, var(--sol-gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.panel-3d-scene {
  position: relative;
  perspective: var(--panel-perspective);
  perspective-origin: 50% 40%;
  padding: 1.25rem 0 1.75rem;
  overflow: visible;
}

.panel-frame-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse at 50% 50%, rgba(51, 173, 242, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-frame {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--outline-strong);
  box-shadow: var(--shadow), 0 0 0 1px rgba(246, 180, 14, 0.08), var(--shadow-glow);
  background: var(--bg-window);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease-out), box-shadow 0.4s;
  transform: perspective(var(--panel-perspective)) rotateX(0deg) rotateY(0deg);
}

.dashboard-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(51, 173, 242, 0.05) 0%, transparent 40%, rgba(246, 180, 14, 0.03) 100%);
  z-index: 1;
}

.dashboard-frame.is-tilting {
  box-shadow: var(--shadow), 0 0 90px rgba(51, 173, 242, 0.18), 0 0 44px rgba(246, 180, 14, 0.08);
}

.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(10, 10, 22, 0.96);
  border-bottom: 1px solid var(--outline);
  position: relative;
  z-index: 2;
}

.chrome-dots {
  display: flex;
  gap: 0.45rem;
}

.chrome-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.2);
}

.chrome-dots span:nth-child(1) { background: #ff5f57; }
.chrome-dots span:nth-child(2) { background: var(--yellow); }
.chrome-dots span:nth-child(3) { background: #28c840; }

.chrome-url {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, "Cascadia Code", monospace;
}

.chrome-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--outline);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.4rem;
}

.sound-toggle-btn:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(51, 173, 242, 0.4);
  box-shadow: 0 0 12px rgba(51, 173, 242, 0.2);
}

.sound-toggle-btn.is-muted {
  opacity: 0.55;
  color: var(--text-subtle);
  border-color: rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--success); }
  50% { opacity: 0.55; box-shadow: 0 0 4px var(--success); }
}

.dashboard {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 580px;
  position: relative;
  z-index: 2;
}

.dash-sidebar {
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  background: rgba(10, 10, 22, 0.94);
  border-right: 1px solid var(--outline);
  overflow-y: auto;
  max-height: 580px;
}

.dash-sidebar-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--outline);
}

.dash-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(116, 172, 223, 0.3));
}

.dash-sidebar-top strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
}

.dash-sidebar-top small {
  color: var(--text-subtle);
  font-size: 0.7rem;
}

.dash-nav-group { margin-bottom: 0.85rem; }

.dash-nav-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 0.45rem 0.4rem;
  opacity: 0.9;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dash-nav-item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  padding: 0.58rem 0.8rem;
  border-radius: var(--radius-xs);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.dash-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transform: translateX(3px);
}

.dash-nav-item.active {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  color: var(--accent-hover);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 600;
}

.dash-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--outline);
}

.dash-status-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
}

.dash-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dash-status-dot.red { background: #f65c55; }
.dash-status-dot.yellow { background: var(--yellow); }
.dash-status-dot.green { background: #28c847; }

.dash-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-window);
  min-width: 0;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--outline);
}

.dash-header h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dash-header p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dash-header.is-switching h3,
.dash-header.is-switching p {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dash-header.header-enter h3 {
  animation: headerTitleIn 0.35s var(--ease-out) both;
}

.dash-header.header-enter p {
  animation: headerDescIn 0.35s var(--ease-out) 0.06s both;
}

@keyframes headerTitleIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes headerDescIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-header-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: none;
  font-family: inherit;
  cursor: default;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
}

.pill-live {
  background: rgba(61, 214, 140, 0.1);
  color: var(--success);
  border: 1px solid rgba(61, 214, 140, 0.22);
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--outline);
  cursor: pointer;
}

.pill-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.pill-action {
  background: var(--yellow-soft);
  color: var(--yellow);
  border: 1px solid rgba(246, 180, 14, 0.3);
  cursor: pointer;
}

.pill-action:hover {
  background: rgba(246, 180, 14, 0.25);
  transform: scale(1.04);
}

.dash-subtabs {
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem 0;
  flex-wrap: wrap;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dash-subtabs.is-switching {
  opacity: 0.55;
  transform: translateY(-4px);
}

.dash-subtabs.subtabs-enter {
  animation: subtabsIn 0.35s var(--ease-out) both;
}

@keyframes subtabsIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-subtab {
  appearance: none;
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-subtab:hover {
  color: var(--text);
  border-color: rgba(51, 173, 242, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.dash-subtab.active {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: rgba(51, 173, 242, 0.4);
  box-shadow: 0 0 20px rgba(51, 173, 242, 0.12);
}

.dash-panels {
  padding: 1.1rem 1.35rem 1.35rem;
  flex: 1;
  overflow-y: auto;
  max-height: 450px;
  transform-style: preserve-3d;
  position: relative;
}

.dash-panels.is-switching { pointer-events: none; }

.dash-tab {
  display: none;
  transform-style: preserve-3d;
}

.dash-tab.active {
  display: block;
  animation: tabEnter 0.38s var(--ease-out);
}

.dash-tab.tab-exit { animation: tabExit 0.22s ease forwards; }
.dash-tab.tab-exit-sub { animation: tabExitSub 0.18s ease forwards; }
.dash-tab.tab-enter-sub { animation: tabEnterSub 0.32s var(--ease-out); }

@keyframes tabEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tabExit {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes tabEnterSub {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tabExitSub {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
}

.panel-card {
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--outline);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}

.panel-card:nth-child(1),
.panel-card:nth-child(2),
.panel-card:nth-child(3),
.panel-card:nth-child(4) {
  animation: none;
}

.panel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(51, 173, 242, 0.32);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(246, 180, 14, 0.05);
}

.panel-card h4 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-hover);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.panel-card h4::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--yellow));
}

.panel-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

/* Panel controls */
.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 28px;
}

.ctrl-row > span:first-child { flex: 1; min-width: 0; }

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.toggle:hover { color: var(--text); }

.toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.25s, box-shadow 0.25s;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6b7390;
  transition: transform 0.25s var(--ease-spring), background 0.25s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.toggle input:checked + .toggle-track {
  background: rgba(51, 173, 242, 0.4);
  box-shadow: 0 0 14px rgba(51, 173, 242, 0.25);
}

.toggle input:checked + .toggle-track::after {
  transform: translateX(18px);
  background: var(--accent-hover);
}

.toggle input:focus-visible + .toggle-track {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.slider-row > span { flex: 0 0 42%; min-width: 0; }

.slider-wrap {
  flex: 1;
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}

.slider-input {
  width: 100%;
  height: 4px;
  appearance: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.slider-input::-webkit-slider-thumb {
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--yellow));
  border: 2px solid var(--white-pure);
  box-shadow: 0 2px 10px rgba(51, 173, 242, 0.4);
  cursor: grab;
  transition: transform 0.15s var(--ease-spring);
}

.slider-input::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.18);
}

.slider-input::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hover), var(--yellow));
  border: 2px solid var(--white-pure);
  box-shadow: 0 2px 10px rgba(51, 173, 242, 0.4);
  cursor: grab;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-active), var(--accent-hover), var(--yellow));
  pointer-events: none;
  z-index: 1;
}

.slider-row em {
  flex: 0 0 2.5rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.combo-wrap { position: relative; flex: 0 0 auto; }

.combo-btn {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  font: inherit;
  font-size: 0.72rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-width: 92px;
  justify-content: space-between;
}

.combo-btn:hover,
.combo-btn.open {
  border-color: rgba(51, 173, 242, 0.4);
  background: var(--accent-soft);
}

.combo-btn svg {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.2s;
}

.combo-btn.open svg { transform: rotate(180deg); }

.combo-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: var(--bg-popup);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xs);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 50;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}

.combo-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.combo-option {
  display: block;
  width: 100%;
  padding: 0.48rem 0.7rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.combo-option:hover,
.combo-option.selected {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.keybind kbd,
.keybind-btn {
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--outline);
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.keybind-btn:hover,
.keybind-btn.listening {
  border-color: var(--yellow);
  background: var(--yellow-soft);
  color: var(--yellow);
}

.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.color-input-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.color-input-wrap:hover {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(51, 173, 242, 0.35);
}

.color-input-wrap input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  cursor: pointer;
  padding: 0;
}

.panel-btn {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.58rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(51, 173, 242, 0.3);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), background 0.2s, box-shadow 0.2s;
}

.panel-btn:hover {
  transform: translateY(-2px);
  background: rgba(51, 173, 242, 0.25);
  box-shadow: 0 6px 20px rgba(51, 173, 242, 0.18);
}

.panel-btn.ghost {
  background: transparent;
  border-color: var(--outline);
  color: var(--text-muted);
}

.panel-btn.ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.mock-list {
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid var(--outline);
  border-radius: var(--radius-xs);
  margin-bottom: 0.5rem;
}

.mock-list-item {
  padding: 0.42rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.mock-list-item:hover,
.mock-list-item.selected {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.mock-list-item:last-child { border-bottom: none; }

.mock-search {
  width: 100%;
  padding: 0.42rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--outline);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mock-search:focus {
  outline: none;
  border-color: rgba(51, 173, 242, 0.4);
  box-shadow: 0 0 0 3px rgba(51, 173, 242, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════ */
.cta-section {
  margin-bottom: var(--space-xl);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--outline-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 172, 223, 0.12), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(246, 180, 14, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%),
    rgba(10, 16, 28, 0.85);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(51, 173, 242, 0.3), transparent 40%, rgba(246, 180, 14, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-sol {
  position: absolute;
  top: -12px;
  right: 2rem;
  color: var(--sol-gold);
  opacity: 0.12;
  pointer-events: none;
}

.cta-card h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.cta-card p {
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--outline);
  background: linear-gradient(180deg, transparent, rgba(116, 172, 223, 0.02));
  padding: var(--space-lg) 1.5rem var(--space-xl);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(116, 172, 223, 0.3));
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-made-in {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--celeste);
  font-weight: 600;
}

.footer-made-in svg { opacity: 0.85; }

.footer-status {
  color: var(--text-subtle);
  font-weight: 500;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--accent-hover); }

.footer-sep { opacity: 0.35; }

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.96);
  border: 1px solid rgba(51, 173, 242, 0.35);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), var(--shadow-glow);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .arg-stripes { opacity: 0.015; }
  .sol-bg { opacity: 0.035; width: min(480px, 80vw); height: 480px; }
  .hero-sol { opacity: 0.35; }

  .connect-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-social {
    width: 100%;
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding: var(--space-lg) 0 var(--space-xl);
  }

  .hero-stats {
    max-width: 100%;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--outline);
    max-height: none;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .dash-nav-item {
    flex: 1 1 calc(50% - 0.2rem);
    text-align: center;
  }

  .dash-nav-item.active {
    box-shadow: inset 0 -3px 0 var(--accent);
  }

  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chrome-url { display: none; }

  .panel-3d-scene,
  .dev-profile-scene {
    perspective: none;
    padding-inline: 0;
  }

  .dashboard-frame,
  .dev-profile-card {
    transform: none !important;
  }

  .dashboard-frame.is-tilting,
  .dev-profile-card.is-tilting {
    box-shadow: var(--shadow), 0 0 0 1px rgba(246, 180, 14, 0.08), var(--shadow-glow);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-meta { justify-content: center; }
}

@media (max-width: 520px) {
  .arg-stripes,
  .sol-bg { display: none; }

  main { padding-inline: 1rem; }

  .hero-title {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn { width: 100%; }

  .hero-stats {
    flex-direction: column;
    gap: 0;
  }

  .hero-stat-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--outline-strong), transparent);
  }

  .social-link span { display: none; }
  .social-link { padding: 0.55rem; }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn { width: 100%; }

  .panel-grid { grid-template-columns: 1fr; }

  .connect-section { padding: var(--space-md) var(--space-sm); }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.scroll-reveal {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}

.scroll-reveal--slide-up {
  transform: translateY(48px);
}

.scroll-reveal--scale {
  transform: scale(0.93) translateY(36px);
}

.scroll-reveal--fade {
  transform: translateY(20px);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered items inside scroll-reveal sections */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.is-visible .reveal-item:nth-child(1) { transition-delay: 0.04s; }
.scroll-reveal.is-visible .reveal-item:nth-child(2) { transition-delay: 0.11s; }
.scroll-reveal.is-visible .reveal-item:nth-child(3) { transition-delay: 0.18s; }
.scroll-reveal.is-visible .reveal-item:nth-child(4) { transition-delay: 0.25s; }
.scroll-reveal.is-visible .reveal-item:nth-child(5) { transition-delay: 0.32s; }
.scroll-reveal.is-visible .reveal-item:nth-child(6) { transition-delay: 0.39s; }
.scroll-reveal.is-visible .reveal-item:nth-child(7) { transition-delay: 0.46s; }
.scroll-reveal.is-visible .reveal-item:nth-child(8) { transition-delay: 0.53s; }

.reveal-stagger > .reveal-item:nth-child(1) { transition-delay: 0.08s; }
.reveal-stagger > .reveal-item:nth-child(2) { transition-delay: 0.18s; }
.reveal-stagger > .reveal-item:nth-child(3) { transition-delay: 0.28s; }
.reveal-stagger > .reveal-item:nth-child(4) { transition-delay: 0.38s; }

/* ═══════════════════════════════════════════════════════════════
   MENU & TAB SWITCHING ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.dash-panels {
  perspective: var(--panel-perspective);
}

.dash-tab {
  display: none;
  transform-origin: center top;
  will-change: opacity, transform, filter;
}

.dash-tab.active {
  display: block;
  animation: tabEnter3D 0.42s var(--ease-out) forwards;
}

.dash-tab.tab-exit {
  display: block;
  animation: tabExit3D 0.24s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.dash-tab.tab-enter-sub {
  animation: tabEnterSub 0.36s var(--ease-out) forwards;
}

.dash-tab.tab-exit-sub {
  display: block;
  animation: tabExitSub 0.20s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes tabEnter3D {
  0% {
    opacity: 0;
    transform: translateY(22px) rotateX(-5deg) scale(0.96);
    filter: blur(4px);
  }
  60% {
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
  }
}

@keyframes tabExit3D {
  0% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) rotateX(5deg) scale(0.96);
    filter: blur(4px);
  }
}

@keyframes tabEnterSub {
  0% {
    opacity: 0;
    transform: translateX(26px) scale(0.98);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
  }
}

@keyframes tabExitSub {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: translateX(-22px) scale(0.98);
    filter: blur(3px);
  }
}

/* Stagger card reveal when panel switches */
.dash-tab.active .panel-card {
  animation: panelCardPop 0.42s var(--ease-out) both;
}

.dash-tab.active .panel-card:nth-child(1) { animation-delay: 0.04s; }
.dash-tab.active .panel-card:nth-child(2) { animation-delay: 0.10s; }
.dash-tab.active .panel-card:nth-child(3) { animation-delay: 0.16s; }
.dash-tab.active .panel-card:nth-child(4) { animation-delay: 0.22s; }

@keyframes panelCardPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sidebar navigation item animation enhancements */
.dash-nav-item {
  position: relative;
  overflow: hidden;
}

.dash-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--celeste-bright), var(--sol-gold));
  opacity: 0;
  transform: scaleY(0.4);
  transition: transform 0.25s var(--ease-spring), opacity 0.2s;
}

.dash-nav-item.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.dash-nav-item.active {
  background: linear-gradient(90deg, rgba(51, 173, 242, 0.18), rgba(246, 180, 14, 0.03) 80%, transparent);
  color: var(--accent-hover);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 12px rgba(51, 173, 242, 0.4);
}

.dash-nav-item:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════════════
   ARGENTINE IDENTITY VISUAL POLISH
   ═══════════════════════════════════════════════════════════════ */
.hero-sol-rays {
  transform-origin: 100px 100px;
  animation: solRaysSpin 90s linear infinite;
}

.hero-sol-core {
  transform-origin: 100px 100px;
  animation: solCoreGlow 4s ease-in-out infinite alternate;
}

@keyframes solRaysSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes solCoreGlow {
  0% {
    r: 18px;
    filter: drop-shadow(0 0 8px rgba(246, 180, 14, 0.5));
  }
  100% {
    r: 21px;
    filter: drop-shadow(0 0 24px rgba(246, 180, 14, 0.95)) drop-shadow(0 0 36px rgba(116, 172, 223, 0.6));
  }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: rgba(116, 172, 223, 0.12);
  color: var(--celeste-bright);
  border: 1px solid rgba(116, 172, 223, 0.28);
  margin-bottom: 0.75rem;
  box-shadow: 0 0 20px rgba(51, 173, 242, 0.15);
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sol-gold);
  box-shadow: 0 0 10px var(--sol-gold);
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING APPLE MUSIC STYLE RECTANGULAR CARD
   ═══════════════════════════════════════════════════════════════ */
.apple-music-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.92) 0%, rgba(8, 14, 26, 0.96) 100%);
  border: 1px solid rgba(116, 172, 223, 0.28);
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(51, 173, 242, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.35s;
  min-width: 320px;
  max-width: 380px;
}

.apple-music-widget:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(246, 180, 14, 0.5);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.7),
    0 0 36px rgba(246, 180, 14, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.music-cover-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0d131f;
}

.music-cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease-spring);
}

.apple-music-widget.is-playing .music-cover-art {
  transform: scale(1.08);
}

.liquid-equalizer {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 26, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.apple-music-widget.is-playing .liquid-equalizer {
  opacity: 1;
}

.liquid-bar {
  width: 3px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--celeste-bright), var(--sol-gold));
}

.apple-music-widget.is-playing .liquid-bar:nth-child(1) { animation: liquidWave 0.7s ease-in-out infinite alternate; }
.apple-music-widget.is-playing .liquid-bar:nth-child(2) { animation: liquidWave 0.7s ease-in-out 0.2s infinite alternate; }
.apple-music-widget.is-playing .liquid-bar:nth-child(3) { animation: liquidWave 0.7s ease-in-out 0.4s infinite alternate; }

@keyframes liquidWave {
  0% { height: 4px; opacity: 0.6; }
  100% { height: 16px; opacity: 1; filter: drop-shadow(0 0 6px var(--celeste-bright)); }
}

.music-info-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.music-track-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.music-artist-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.music-controls-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.apple-btn {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.apple-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white-pure);
  transform: scale(1.08);
}

.apple-btn-play {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--celeste-bright), var(--celeste-deep));
  color: var(--white-pure);
  box-shadow: 0 4px 16px rgba(51, 173, 242, 0.45);
}

.apple-btn-play:hover {
  background: linear-gradient(135deg, var(--sol-gold), var(--sol-gold-light));
  color: #000;
  box-shadow: 0 6px 20px rgba(246, 180, 14, 0.55);
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .music-player-widget {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(340px, 92vw);
    justify-content: space-between;
  }
  .music-player-widget:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  #rain-canvas { display: none; }

  .hero-sol-svg { transform: none; }

  .sol-bg, .arg-stripes, .ambient-glow { display: none; }

  body.is-loading { overflow: auto; }

  .page-loader { display: none; }

  .scroll-reveal,
  .scroll-reveal--slide-up,
  .scroll-reveal--scale,
  .scroll-reveal--fade,
  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
