:root {
  --bg-deep: #070d1d;
  --bg-surface: #0e1830;
  --bg-card: #132140;
  --bg-elevated: #1b2d55;
  --gold: #f5c518;
  --gold-hover: #ffd644;
  --gold-soft: rgba(245, 197, 24, 0.16);
  --gold-border: rgba(245, 197, 24, 0.36);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --gas-accent: #84cc16;
  --gas-glow: rgba(132, 204, 22, 0.32);
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  color: var(--text-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.28), transparent 44%),
    radial-gradient(circle at 12% 28%, rgba(245, 197, 24, 0.11), transparent 38%),
    var(--bg-deep);
  color: var(--text-primary);
  padding-bottom: 84px;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 29, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-icon {
  border-radius: 8px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  padding: 22px 0 40px;
}

.section,
[id] {
  scroll-margin-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 6vw, 3.6rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.title-accent {
  color: var(--gold);
  display: inline-block;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 54ch;
}

.hero-lead strong {
  color: var(--text-primary);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 420px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--gold);
  color: var(--bg-deep);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(245, 197, 24, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-icon {
  flex-shrink: 0;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.meta-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.trust-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.trust-list li {
  position: relative;
  padding-left: 22px;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gas-accent);
  font-weight: 900;
}

/* Interactive Hero Stage */
.hero-stage-card {
  background: linear-gradient(180deg, rgba(25, 45, 86, 0.92), rgba(11, 20, 42, 0.96));
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.hero-stage-card[data-skin="classic"] {
  --gas-accent: #84cc16;
  --gas-glow: rgba(132, 204, 22, 0.34);
}
.hero-stage-card[data-skin="golf"] {
  --gas-accent: #a3e635;
  --gas-glow: rgba(163, 230, 53, 0.34);
}
.hero-stage-card[data-skin="space"] {
  --gas-accent: #2dd4bf;
  --gas-glow: rgba(45, 212, 191, 0.36);
}
.hero-stage-card[data-skin="cowboy"] {
  --gas-accent: #a3e635;
  --gas-glow: rgba(132, 169, 44, 0.38);
}
.hero-stage-card[data-skin="gold"] {
  --gas-accent: #facc15;
  --gas-glow: rgba(250, 204, 21, 0.38);
}
.hero-stage-card[data-skin="prison"] {
  --gas-accent: #bef264;
  --gas-glow: rgba(132, 204, 22, 0.36);
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.stage-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 13, 29, 0.78);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stage-pill-gas {
  border-color: var(--gas-accent);
  color: var(--gas-accent);
  font-variant-numeric: tabular-nums;
}

.stage-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 12px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 52%, #0f172a 100%);
  overflow: hidden;
}

.gas-aura {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gas-glow), transparent 68%);
  bottom: 12px;
  left: 50%;
  transform: translateX(-56%);
}

.fart-callout {
  position: absolute;
  left: 16px;
  bottom: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 2px solid var(--gas-accent);
  color: var(--gas-accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  transform: rotate(-8deg);
}

.hero-character {
  position: relative;
  z-index: 2;
  width: 224px;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
  animation: float-hero 3.2s ease-in-out infinite;
}

@keyframes float-hero {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-9px) rotate(1.5deg);
  }
}

.stage-caption {
  margin: 12px 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 2.7em;
}

.skin-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.skin-btn {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.skin-btn:hover {
  background: var(--bg-elevated);
}

.skin-btn[aria-pressed="true"] {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

/* Sections */
.section {
  padding: 46px 0;
}

.section-alt {
  background: rgba(14, 24, 48, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 24px;
  max-width: 62ch;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.15;
  font-weight: 900;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.card-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Wardrobe Gallery */
.wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.outfit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.outfit-card img {
  width: 118px;
  height: auto;
}

.outfit-card h3 {
  margin: 4px 0 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.outfit-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
}

/* Install Steps */
.install-wrap {
  max-width: 820px;
}

.steps-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-deep);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}

.steps-list h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.steps-list p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Technical Disclosure */
.tech-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tech-toggle {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.tech-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

.toggle-chevron {
  font-size: 1.2rem;
  color: var(--gold);
  flex-shrink: 0;
}

.tech-panel {
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-subtle);
}

.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 14px 0 0;
  font-variant-numeric: tabular-nums;
}

.tech-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.tech-grid dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  min-width: 0;
}

.hash-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-copy {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--gold-border);
  background: var(--bg-elevated);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--gold-soft);
}

.copy-status {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gas-accent);
}

.ios-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-sub {
  color: var(--text-secondary);
  font-size: 0.84rem;
}

/* Mobile sticky thumb-zone bar (appears smoothly once hero CTA scrolls out of view) */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7, 13, 29, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-border);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.btn-sticky {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 640px) {
  .skin-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wardrobe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tech-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .site-nav {
    display: flex;
  }
  .mobile-sticky-bar {
    display: none;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 58px 0 68px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 44px;
  }
  .wardrobe-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-character {
    animation: none;
  }
}
