/* ============================================================
   Logiqura — Cosmic Glass Design System (Web)
   ============================================================ */

:root {
  /* Cosmic palette */
  --cosmic-deep: #05060f;
  --cosmic-night: #0a0b1e;
  --cosmic-mid: #121432;
  --cosmic-violet: #1a1840;
  --cosmic-glow: #2a1f5d;

  /* Game accents */
  --sudoku: #a78bfa;        /* purple */
  --sudoku-deep: #7c3aed;
  --tile-2048: #ff9d4d;     /* orange */
  --tile-2048-deep: #ea580c;
  --gloom: #22d3ee;         /* cyan */
  --gloom-deep: #0891b2;

  /* Text */
  --text-primary: rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.3);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);

  /* Layout */
  --container: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--cosmic-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
  min-height: 100vh;
}
/* Belt-and-braces: prevent any descendant from causing horizontal scroll */
img, svg, video, canvas { max-width: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }

/* ============================================================
   Cosmic background — deep nebula with subtle aurora
   ============================================================ */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 1200px 800px at 15% -10%, rgba(167, 139, 250, 0.22), transparent 60%),
    radial-gradient(ellipse 1000px 700px at 90% 20%, rgba(255, 157, 77, 0.14), transparent 60%),
    radial-gradient(ellipse 1100px 800px at 50% 80%, rgba(34, 211, 238, 0.16), transparent 65%),
    linear-gradient(180deg, var(--cosmic-deep) 0%, var(--cosmic-night) 40%, var(--cosmic-mid) 100%);
}
.cosmic-bg::before,
.cosmic-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.5;
}
.cosmic-bg::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 60px 100px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 130px 60px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 200px 140px, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 260px 50px, rgba(255,255,255,0.6), transparent);
  background-size: 320px 200px;
  animation: drift 80s linear infinite;
}
.cosmic-bg::after {
  background-image:
    radial-gradient(1px 1px at 40px 80px, rgba(167,139,250,0.55), transparent),
    radial-gradient(1px 1px at 180px 30px, rgba(34,211,238,0.5), transparent),
    radial-gradient(1.5px 1.5px at 240px 170px, rgba(255,255,255,0.8), transparent);
  background-size: 280px 220px;
  animation: drift 120s linear infinite reverse;
  opacity: 0.4;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-320px, 200px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .cosmic-bg::before,
  .cosmic-bg::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 120px 0; position: relative; }
@media (max-width: 720px) {
  section { padding: 80px 0; }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5, 6, 15, 0.6);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.3);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--text-primary); background: var(--glass-bg); }
@media (max-width: 720px) {
  .nav-links .nav-link:not(.btn) { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #ffffff, #e8e7ff);
  color: #0a0b1e;
  box-shadow:
    0 10px 30px rgba(167, 139, 250, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(167, 139, 250, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-ghost {
  background: var(--glass-bg-strong);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #fff;
  color: #0a0b1e;
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.appstore-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(167, 139, 250, 0.35);
}
.appstore-badge svg { width: 28px; height: 28px; }
.appstore-badge .small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; line-height: 1; margin-bottom: 3px; }
.appstore-badge .big { display: block; font-size: 19px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { padding: 100px 0 100px; }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sudoku);
  box-shadow: 0 0 12px var(--sudoku);
}
.hero h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--sudoku) 0%, var(--gloom) 50%, var(--tile-2048) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero p.lead {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; }

/* Hero phone showcase */
.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  min-height: 580px;
  max-width: 100%;
}
.phone {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 0 0 8px #0d0d18,
    0 0 0 10px rgba(255, 255, 255, 0.06),
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(167, 139, 250, 0.15);
  background: #000;
  transition: transform 0.6s var(--ease);
}
.phone img { display: block; width: 100%; }
.phone-main {
  width: 280px;
  z-index: 2;
  transform: rotate(-2deg);
}
.phone-side {
  position: absolute;
  width: 220px;
  opacity: 0.85;
  filter: blur(0.5px);
}
.phone-side-left {
  left: -10%;
  top: 6%;
  transform: rotate(-12deg) scale(0.9);
  z-index: 1;
}
.phone-side-right {
  right: -10%;
  top: 12%;
  transform: rotate(10deg) scale(0.9);
  z-index: 1;
}
@media (max-width: 720px) {
  .hero-phones { min-height: 480px; }
  .phone-main { width: 230px; }
  .phone-side { width: 170px; }
  .phone-side-left { left: -20px; }
  .phone-side-right { right: -20px; }
}

/* Floating glow orbs in hero */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.orb-purple { width: 320px; height: 320px; background: var(--sudoku); opacity: 0.4; top: 10%; left: 30%; }
.orb-cyan { width: 240px; height: 240px; background: var(--gloom); opacity: 0.32; bottom: 5%; right: 20%; }
.orb-orange { width: 200px; height: 200px; background: var(--tile-2048); opacity: 0.22; top: 50%; left: -10%; }

/* ============================================================
   Section heading
   ============================================================ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.section-head .label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sudoku);
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.section-head p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ============================================================
   Three games showcase
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.game-card {
  position: relative;
  padding: 36px 32px 36px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.08;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.game-card:hover { transform: translateY(-6px); border-color: var(--glass-border-strong); }
.game-card:hover::before { opacity: 0.15; }
.game-card.sudoku { --accent: var(--sudoku); --accent-deep: var(--sudoku-deep); --accent-gradient: radial-gradient(ellipse at top, var(--sudoku) 0%, transparent 60%); }
.game-card.tile { --accent: var(--tile-2048); --accent-deep: var(--tile-2048-deep); --accent-gradient: radial-gradient(ellipse at top, var(--tile-2048) 0%, transparent 60%); }
.game-card.gloom { --accent: var(--gloom); --accent-deep: var(--gloom-deep); --accent-gradient: radial-gradient(ellipse at top, var(--gloom) 0%, transparent 60%); }

.game-card .game-art {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--glass-border);
}
.game-card .game-art .accent-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  background: var(--accent);
  filter: blur(60px);
  opacity: 0.35;
}
.game-card h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.game-card .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.game-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.55; }

/* Game art — Sudoku 9-grid */
.art-sudoku {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 2px;
  width: 160px;
  height: 160px;
  position: relative;
  z-index: 1;
}
.art-sudoku .cell {
  background: rgba(167, 139, 250, 0.12);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--sudoku);
  font-family: var(--font-mono);
}
.art-sudoku .cell.filled { background: rgba(167, 139, 250, 0.28); color: #fff; }
.art-sudoku .cell.given { background: rgba(167, 139, 250, 0.45); }

/* Game art — 2048 tiles */
.art-2048 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 160px;
  height: 160px;
  position: relative;
  z-index: 1;
}
.art-2048 .t {
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255, 157, 77, 0.08);
}
.art-2048 .t-2 { background: #eee4da; color: #776e65; }
.art-2048 .t-4 { background: #ede0c8; color: #776e65; }
.art-2048 .t-8 { background: #f2b179; color: #fff; }
.art-2048 .t-16 { background: #f59563; color: #fff; }
.art-2048 .t-32 { background: #f67c5f; color: #fff; }
.art-2048 .t-64 { background: #f65e3b; color: #fff; font-size: 12px; }
.art-2048 .t-128 { background: #edcf72; color: #fff; font-size: 11px; }
.art-2048 .t-256 { background: #edcc61; color: #fff; font-size: 11px; }
.art-2048 .t-512 { background: #edc850; color: #fff; font-size: 10px; }

/* Game art — Grid Gloom 5x5 lights */
.art-gloom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 160px;
  height: 160px;
  position: relative;
  z-index: 1;
}
.art-gloom .light {
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
  transition: background 0.3s ease;
}
.art-gloom .light.on {
  background: var(--gloom);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
}

/* ============================================================
   Feature grid
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature {
  padding: 28px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--glass-border-strong); }
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.25), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--glass-border-strong);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.feature .icon svg { width: 22px; height: 22px; stroke-width: 2; }
.feature h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.55; }

/* ============================================================
   Big stats strip
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  text-align: center;
  padding: 12px;
}
.stat-num {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ============================================================
   Screenshot carousel
   ============================================================ */
.scroller-wrap { position: relative; }
.scroller {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 24px 40px;
  margin: 0 -24px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.shot {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: center;
  position: relative;
}
.shot img {
  width: 100%;
  border-radius: 38px;
  box-shadow:
    0 0 0 8px #0d0d18,
    0 0 0 10px rgba(255,255,255,0.06),
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 0 50px rgba(167, 139, 250, 0.1);
  background: #000;
}
.shot .caption {
  margin-top: 24px;
  text-align: center;
}
.shot .caption strong { display: block; font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.shot .caption span { font-size: 14px; color: var(--text-muted); }

.scroller-hint {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Daily ritual section (alternating rows)
   ============================================================ */
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.row:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 80px; }
  .row.reverse .row-text { order: 2; }
  .row.reverse .row-visual { order: 1; }
}
.row-text .label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.row-text.purple .label { color: var(--sudoku); }
.row-text.cyan .label { color: var(--gloom); }
.row-text.orange .label { color: var(--tile-2048); }
.row-text h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.row-text p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}
.row-text ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.row-text li {
  padding: 10px 0 10px 30px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.row-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--sudoku), var(--gloom));
  border-radius: 50%;
  opacity: 0.9;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}

/* Visual row containers */
.row-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.row-visual .phone {
  width: 280px;
}

/* ============================================================
   Accessibility section
   ============================================================ */
.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .access-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .access-grid { grid-template-columns: repeat(4, 1fr); }
}
.access-item {
  padding: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  text-align: center;
}
.access-item .icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gloom), var(--sudoku));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
}
.access-item .icon svg { width: 22px; height: 22px; color: #fff; }
.access-item h4 { font-size: 16px; margin-bottom: 6px; }
.access-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   Pricing
   ============================================================ */
.price-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .price-wrap { grid-template-columns: 1.05fr 0.95fr; }
}
.price-card {
  padding: 36px 32px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.10), rgba(255, 255, 255, 0.04));
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(167, 139, 250, 0.18), transparent 70%);
  pointer-events: none;
}
.price-card h3 { font-size: 22px; margin-bottom: 6px; }
.price-card .price-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }
.price-card .price-big {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}
.price-card .price-cents { font-size: 22px; color: var(--text-muted); font-weight: 600; }
.price-card .price-meta { color: var(--text-secondary); font-size: 14px; margin-bottom: 24px; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.price-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background: var(--sudoku);
  border-radius: 50%;
  opacity: 0.9;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center/contain no-repeat;
}
.hint-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
}
.hint-table .row-label { font-size: 14px; color: var(--text-secondary); }
.hint-table .row-price { font-size: 14px; font-weight: 600; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(255, 157, 77, 0.08), rgba(34, 211, 238, 0.12));
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.cta-band::before { width: 400px; height: 400px; background: var(--sudoku); opacity: 0.25; top: -150px; left: -100px; }
.cta-band::after { width: 300px; height: 300px; background: var(--gloom); opacity: 0.22; bottom: -100px; right: -50px; }
.cta-band h2 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.cta-band p {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.cta-band .ctas {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--glass-border);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; }
.footer-tag { color: var(--text-muted); font-size: 14px; max-width: 320px; line-height: 1.55; }
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14.5px;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Legal pages (privacy / support / 404)
   ============================================================ */
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 24px 80px;
}
.legal-card {
  padding: 48px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
}
.legal-card h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.legal-card .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 36px;
}
.legal-card h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  letter-spacing: -0.015em;
}
.legal-card h3 {
  font-size: 17px;
  margin: 24px 0 8px;
  color: var(--text-primary);
}
.legal-card p {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.legal-card ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}
.legal-card li { margin-bottom: 6px; }
.legal-card a {
  color: var(--sudoku);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.legal-card a:hover { text-decoration-color: var(--sudoku); }
.legal-card strong { color: var(--text-primary); }

/* 404 specific */
.not-found {
  text-align: center;
  padding: 120px 24px;
}
.not-found .code {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--sudoku), var(--gloom), var(--tile-2048));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 24px;
}
.not-found h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.not-found p { color: var(--text-secondary); max-width: 460px; margin: 0 auto 32px; font-size: 17px; }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Selection */
::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--sudoku);
  outline-offset: 3px;
  border-radius: 4px;
}
