/* =========================================================
   Pour It Right — official site
   Motif: neon liquid lab / pour-path layout (not a standard card grid)
   ========================================================= */

:root {
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --bg-deep: #050a2e;
  --bg-mid: #0a1450;
  --bg-panel: rgba(18, 28, 90, 0.72);
  --text: #f4f7ff;
  --text-muted: #a8b4e0;
  --cyan: #3de0ff;
  --yellow: #ffe14a;
  --orange: #ff8a1a;
  --red: #ff3b5c;
  --purple: #7b4dff;
  --lime: #5cff6a;
  --gold: #ffd24a;
  --glass: rgba(255, 255, 255, 0.08);
  --stroke: rgba(61, 224, 255, 0.45);
  --shadow-glow: 0 0 28px rgba(61, 224, 255, 0.35);
  --radius-xl: 28px;
  --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

[data-theme="light"] {
  --bg-deep: #e8f2ff;
  --bg-mid: #f5f9ff;
  --bg-panel: rgba(255, 255, 255, 0.86);
  --text: #10183a;
  --text-muted: #4a5680;
  --glass: rgba(255, 255, 255, 0.7);
  --stroke: rgba(40, 90, 200, 0.28);
  --shadow-glow: 0 12px 40px rgba(40, 80, 180, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  color: #10183a;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Atmosphere ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #1a2a7a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #02041a 100%);
  overflow: hidden;
}

[data-theme="light"] .sky {
  background:
    radial-gradient(ellipse 70% 45% at 70% 0%, #c8e4ff 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 10% 30%, #ffe8b8 0%, transparent 45%),
    linear-gradient(180deg, #f7fbff 0%, #e4efff 100%);
}

.sky__glow {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.sky__glow--cyan {
  top: 10%;
  right: -8%;
  background: #1ec8ff;
}

.sky__glow--amber {
  bottom: 5%;
  left: -10%;
  background: #ff9a2e;
  opacity: 0.22;
}

.sky__stars {
  position: absolute;
  inset: 0;
}

.sky__stars span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #9ef;
  opacity: 0.55;
  animation: twinkle 3.6s ease-in-out infinite;
}

[data-theme="light"] .sky__stars span {
  opacity: 0.25;
  background: #5a7fd4;
  box-shadow: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.sky__splash {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(61, 224, 255, 0.35), transparent 70%);
  filter: blur(2px);
  opacity: 0.5;
}

.sky__splash--a {
  top: 18%;
  left: 8%;
  animation: floaty 14s ease-in-out infinite;
}

.sky__splash--b {
  bottom: 22%;
  right: 12%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 225, 74, 0.28), transparent 70%);
  animation: floaty 18s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(18px, -24px) rotate(8deg); }
}

/* ---------- Pour meter (desktop side rail) ---------- */
.pour-meter {
  display: none;
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1200px) {
  .pour-meter { display: flex; }
}

.pour-meter__tube {
  position: relative;
  width: 22px;
  height: 220px;
  border-radius: 14px;
  border: 2px solid var(--stroke);
  background: rgba(0, 10, 40, 0.55);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.pour-meter__liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8%;
  background: linear-gradient(180deg, var(--cyan), var(--purple) 55%, var(--orange));
  transition: height 0.25s var(--ease);
  border-radius: 0 0 12px 12px;
}

.pour-meter__shine {
  position: absolute;
  inset: 6px auto 6px 4px;
  width: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}

.pour-meter__marks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 220px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Header / dock nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), backdrop-filter 0.25s;
}

.site-header.is-scrolled {
  background: rgba(5, 10, 46, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(245, 249, 255, 0.88);
  box-shadow: 0 8px 28px rgba(40, 80, 160, 0.12);
}

.dock-nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--stroke);
  background: var(--bg-panel);
  box-shadow: var(--shadow-glow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__icon {
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(61, 224, 255, 0.4);
}

.brand__stack {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
}

.brand__pour {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 2px 0 #c45a00, 0 0 12px rgba(255, 200, 40, 0.5);
}

.brand__right {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 2px 0 #0a4a8a, 0 0 12px rgba(61, 224, 255, 0.5);
}

.dock-nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

@media (min-width: 860px) {
  .dock-nav__links {
    display: flex;
  }
}

.dock-nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.dock-nav__links a:hover,
.dock-nav__links a:focus-visible {
  color: var(--text);
  background: var(--glass);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #6a3dff, #3a1a9a);
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(255, 210, 74, 0.35);
  transition: transform 0.2s var(--ease);
}

.theme-toggle:hover { transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

.nav-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--stroke);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 859px) {
  .dock-nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    padding: 12px;
    border-radius: 20px;
    border: 2px solid var(--stroke);
    background: rgba(8, 14, 55, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-glow);
  }

  [data-theme="light"] .dock-nav__links.is-open {
    background: rgba(255, 255, 255, 0.96);
  }

  .site-header { position: sticky; }
  .dock-nav { position: relative; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, filter 0.18s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.btn svg { width: 18px; height: 18px; }

.btn--juice {
  background: linear-gradient(180deg, #7dff7a, #2ecf3a);
  color: #063810;
  border: 3px solid #1a8a28;
  box-shadow: 0 0 20px rgba(92, 255, 106, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.btn--juice:hover {
  box-shadow: 0 0 28px rgba(92, 255, 106, 0.65), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.btn--store {
  background: linear-gradient(180deg, #5ce8ff, #1a9fff);
  color: #041830;
  border: 3px solid #0a5aaa;
  box-shadow: 0 0 22px rgba(61, 224, 255, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  min-width: 160px;
}

.btn--store-alt {
  background: linear-gradient(180deg, #ffe56a, #ff9a1a);
  border-color: #c45a00;
  color: #3a1a00;
  box-shadow: 0 0 22px rgba(255, 180, 40, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

@media (max-width: 520px) {
  .nav-actions .btn--juice span { display: none; }
  .nav-actions .btn--juice { padding: 10px 12px; }
}

/* ---------- Sections shared ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title em {
  font-style: normal;
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(255, 225, 74, 0.35);
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    min-height: calc(100vh - var(--header-h) - 80px);
  }
}

.hero__brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.hero__brand-line img {
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(61, 224, 255, 0.45);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 0.35em;
}

.hero__tap,
.hero__pour {
  color: #fff;
  text-shadow:
    0 0 18px rgba(120, 200, 255, 0.8),
    0 3px 0 #1a3a9a,
    0 6px 0 rgba(10, 20, 80, 0.5);
}

.hero__match {
  color: var(--yellow);
  text-shadow:
    0 0 22px rgba(255, 200, 40, 0.75),
    0 3px 0 #c45a00,
    0 6px 0 rgba(120, 40, 0, 0.45);
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 16px;
  border: 2px solid var(--stroke);
  background: var(--glass);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__hint svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
  flex-shrink: 0;
}

.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.pour-demo {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 6%;
  transform: translateX(-118%);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 900px) {
  .pour-demo {
    left: 0;
    transform: none;
    pointer-events: auto;
  }
}

.vial {
  width: 52px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.vial__glass {
  position: relative;
  display: block;
  width: 48px;
  height: 120px;
  border-radius: 10px 10px 16px 16px;
  border: 2px solid rgba(120, 220, 255, 0.85);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 40%, rgba(255, 255, 255, 0.08));
  box-shadow: 0 0 18px rgba(61, 224, 255, 0.35), inset 0 0 12px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vial__liquid {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 0 0 12px 12px;
}

.vial__liquid--blue {
  height: 72%;
  background: linear-gradient(180deg, #5ce8ff, #1a7fff);
  animation: fillPulse 2.8s ease-in-out infinite;
}

.vial__liquid--stack {
  height: 78%;
  display: flex;
  flex-direction: column-reverse;
  padding: 0;
  overflow: hidden;
}

.layer {
  display: block;
  height: 33.33%;
}

.layer--red { background: linear-gradient(180deg, #ff6a7a, #e01840); }
.layer--blue { background: linear-gradient(180deg, #5ca0ff, #1a4fff); }
.layer--yellow { background: linear-gradient(180deg, #ffe56a, #ff9a1a); }

.vial__highlight {
  position: absolute;
  top: 10px;
  left: 7px;
  width: 6px;
  height: 40%;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
}

.vial--src.is-pouring {
  transform-origin: 70% 20%;
  animation: tipPour 2.8s ease-in-out infinite;
}

@keyframes tipPour {
  0%, 15% { transform: rotate(0deg); }
  35%, 55% { transform: rotate(-28deg); }
  75%, 100% { transform: rotate(0deg); }
}

@keyframes fillPulse {
  0%, 30% { height: 72%; }
  50%, 65% { height: 38%; }
  85%, 100% { height: 72%; }
}

.pour-stream {
  position: absolute;
  left: 54px;
  top: 28px;
  width: 6px;
  height: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #8ef, #1a9fff);
  box-shadow: 0 0 12px #3de0ff;
  opacity: 0;
  animation: stream 2.8s ease-in-out infinite;
}

@keyframes stream {
  0%, 28% { height: 0; opacity: 0; }
  38% { height: 52px; opacity: 1; }
  58% { height: 52px; opacity: 1; }
  70%, 100% { height: 0; opacity: 0; }
}

.pour-hand {
  position: absolute;
  left: 8px;
  bottom: -18px;
  width: 44px;
  height: 44px;
  animation: handTap 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.pour-hand svg { width: 100%; height: 100%; }

@keyframes handTap {
  0%, 20% { transform: translate(0, 0); opacity: 1; }
  35% { transform: translate(6px, -10px) scale(0.95); }
  55% { transform: translate(6px, -10px); }
  70%, 100% { transform: translate(0, 0); }
}

.phone-frame {
  margin: 0;
  width: min(260px, 68vw);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(80, 120, 255, 0.35), rgba(20, 30, 80, 0.8));
  border: 2px solid rgba(120, 220, 255, 0.55);
  box-shadow:
    0 0 40px rgba(61, 224, 255, 0.25),
    0 28px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 506 / 900;
  object-fit: cover;
  border-radius: 20px;
}

.phone-frame--sm {
  width: min(220px, 58vw);
  border-radius: 24px;
  padding: 8px;
}

.phone-frame--sm img { border-radius: 16px; }

.hero__banner {
  margin-top: 2.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 2px solid var(--stroke);
  box-shadow: var(--shadow-glow);
}

.hero__banner img {
  width: 100%;
  aspect-ratio: 900 / 439;
  object-fit: cover;
}

/* ---------- Features: stack bottle ---------- */
.features {
  padding: 4rem 1.25rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.stack-bottle {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  border-radius: 28px 28px 40px 40px;
  border: 3px solid rgba(120, 220, 255, 0.55);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.05)),
    rgba(8, 16, 60, 0.55);
  box-shadow: var(--shadow-glow), inset 0 0 40px rgba(61, 224, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .stack-bottle {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent 20%),
    rgba(255, 255, 255, 0.75);
}

.stack-bottle__rim {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 42%;
  height: 18px;
  border-radius: 10px;
  border: 2px solid rgba(120, 220, 255, 0.6);
  background: rgba(20, 40, 100, 0.8);
}

.stack-bottle__cork {
  width: 56px;
  height: 18px;
  margin: 8px auto 0;
  border-radius: 6px;
  background: linear-gradient(180deg, #c49a5a, #8a6230);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25);
  opacity: 0.85;
}

.layer-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: default;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s;
}

.layer-card:hover,
.layer-card:focus-visible {
  transform: translateY(-2px) scale(1.01);
  outline: none;
  filter: brightness(1.05);
}

.layer-card--tap {
  background: linear-gradient(90deg, rgba(61, 224, 255, 0.35), rgba(30, 100, 220, 0.55));
  border-color: rgba(120, 230, 255, 0.45);
}

.layer-card--sort {
  background: linear-gradient(90deg, rgba(255, 90, 120, 0.4), rgba(200, 30, 80, 0.55));
  border-color: rgba(255, 120, 150, 0.45);
}

.layer-card--plan {
  background: linear-gradient(90deg, rgba(255, 210, 70, 0.4), rgba(255, 140, 30, 0.55));
  border-color: rgba(255, 200, 80, 0.5);
  color: #1a1200;
}

.layer-card--plan h3,
.layer-card--plan p,
.layer-card--plan .layer-card__tag { color: #1a1200; }

.layer-card--feel {
  background: linear-gradient(90deg, rgba(140, 90, 255, 0.45), rgba(80, 40, 200, 0.6));
  border-color: rgba(180, 140, 255, 0.45);
}

.layer-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.layer-card__icon svg { width: 22px; height: 22px; }

.layer-card h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.layer-card p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.92;
  line-height: 1.45;
}

.layer-card__tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  opacity: 0.55;
}

@media (max-width: 560px) {
  .layer-card {
    grid-template-columns: auto 1fr;
  }
  .layer-card__tag {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.95rem;
  }
}

/* ---------- Gallery cascade ---------- */
.gallery {
  padding: 2rem 1.25rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.cascade {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

.cascade::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), var(--orange));
  border-radius: 4px;
  opacity: 0.35;
  display: none;
}

@media (min-width: 800px) {
  .cascade::before { display: block; }
}

.cascade__item {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

@media (min-width: 800px) {
  .cascade__item {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: left;
  }

  .cascade__item--left .cascade__copy { padding-left: 1rem; }
  .cascade__item--right .cascade__copy {
    text-align: right;
    padding-right: 1rem;
    order: 0;
  }
  .cascade__item--right .phone-frame { order: 1; justify-self: start; }
  .cascade__item--left .phone-frame { justify-self: end; }
}

.cascade__copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(255, 200, 40, 0.35);
}

.cascade__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32ch;
}

.cascade__item--right .cascade__copy p {
  margin-left: auto;
}

.cascade__item--left .cascade__copy p {
  margin-right: auto;
}

@media (max-width: 799px) {
  .cascade__item--left .cascade__copy p,
  .cascade__item--right .cascade__copy p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Download ---------- */
.download {
  padding: 1rem 1.25rem 5rem;
  max-width: 760px;
  margin: 0 auto;
}

.download__panel {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: 32px;
  border: 3px solid var(--purple);
  background: linear-gradient(180deg, rgba(60, 30, 140, 0.65), rgba(20, 15, 70, 0.85));
  box-shadow: 0 0 40px rgba(123, 77, 255, 0.35);
  overflow: hidden;
}

[data-theme="light"] .download__panel {
  background: linear-gradient(180deg, #efe6ff, #ffffff);
  border-color: #8a5cff;
}

.download__glow {
  position: absolute;
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 74, 0.35), transparent 70%);
  pointer-events: none;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 1.5rem 0 1.75rem;
}

.game-dock {
  display: inline-flex;
  gap: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #5a2fd4, #2a1470);
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.3);
}

.game-dock__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #7a4dff, #3a1a9a);
  border: 2px solid var(--gold);
  color: #fff;
}

.game-dock__btn svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid rgba(120, 180, 255, 0.15);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.brand--footer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.brand--footer img { border-radius: 10px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 20, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  border-radius: 28px;
  border: 4px solid var(--purple);
  background: linear-gradient(180deg, #f7f0ff, #fff);
  color: #2a1a50;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 210, 74, 0.35);
  animation: modalIn 0.28s var(--ease);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff5a6a, #d01830);
  border: 3px solid #7a1020;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal__close svg { width: 18px; height: 18px; }

.modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #8a5cff, #4a2ab0);
  color: #fff;
  border: 2px solid var(--gold);
}

.modal__icon svg { width: 26px; height: 26px; }

.modal__dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: #3a1a80;
}

.modal__dialog p {
  margin: 0 0 1.25rem;
  color: #5a4a80;
  line-height: 1.5;
}

body.modal-open { overflow: hidden; }
