/* ─── LEIDISTUDIO SHARED DESIGN SYSTEM ─── */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600&display=swap');

:root {
  --app:    #ffffff;
  --bg:     #000000;
  --bg2:    #080808;
  --bg3:    #111111;
  --fg:     #F5F5F5;
  --fg2:    #777777;
  --fg3:    #2E2E2E;
  --border: #1A1A1A;
  --gold:   #E8C96A;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 36px;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav.stuck { background: rgba(0,0,0,.9); border-color: var(--border); backdrop-filter: blur(16px); }
.nav-logo { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.nav-logo em { color: var(--gold); font-style: normal; }
.nav-back { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--fg2); transition: color .15s; }
.nav-back:hover { color: var(--fg); }
.nav-back svg { width: 14px; height: 14px; }
.nav-app-name { font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: var(--app); }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--fg2); transition: color .15s; }
.nav-link:hover { color: var(--fg); }

/* ── HERO HOME ── */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 36px 72px; position: relative; overflow: hidden;
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(140px); pointer-events: none; animation: orb-breathe ease-in-out infinite; }
.orb-a { width: 600px; height: 440px; background: #D4A836; opacity: .1; top: 8%; right: -80px; animation-duration: 9s; }
.orb-b { width: 400px; height: 320px; background: #C82040; opacity: .055; bottom: 12%; left: -60px; animation-duration: 13s; animation-delay: -4s; }
@keyframes orb-breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.16)} }

.hero-inner { position: relative; z-index: 1; }
.hero-kicker { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.hero-h1 { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(64px, 12vw, 180px); line-height: .88; letter-spacing: -.04em; }
.hero-h1 .outline { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.18); }
.h-rule { height: 1px; background: var(--border); margin: 48px 0 32px; }
.hero-sub { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-desc { font-size: 15px; line-height: 1.8; color: var(--fg2); max-width: 380px; }
.hero-desc strong { color: var(--fg); font-weight: 500; }
.hero-nums { display: flex; gap: 40px; }
.num-block { text-align: right; }
.num-big { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 40px; line-height: 1; color: var(--fg); display: block; }
.num-lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg3); margin-top: 4px; display: block; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 52px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); }
.scroll-bar { width: 44px; height: 1px; background: currentColor; transform-origin: left; animation: scbar 2.2s ease-in-out infinite; }
@keyframes scbar { 0%,100%{transform:scaleX(.5);opacity:.3} 50%{transform:scaleX(1);opacity:1} }

/* ── SECTION HEADS ── */
.sec-wrap { padding-left: 36px; padding-right: 36px; }
.sec-head { padding: 72px 0 48px; display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--border); }
.sec-num { font-family: 'Archivo', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--fg3); }
.sec-title { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(28px, 4.5vw, 56px); letter-spacing: -.03em; line-height: 1; }
.sec-title em { font-style: normal; color: var(--gold); }

/* ── APP GRID (homepage) ── */
.apps-grid { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--border); }
@media (max-width: 960px) { .apps-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  --c: #fff;
  position: relative; overflow: hidden;
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .25s;
  display: flex; flex-direction: column; gap: 0;
}
.app-card:hover { background: rgba(255,255,255,.02); }
.app-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--c); transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.app-card:hover::before { transform: scaleX(1); }

.card-logo {
  width: 64px; height: 64px; border-radius: 16px; overflow: hidden;
  margin-bottom: 20px; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-logo-placeholder {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px;
  background: var(--c); opacity: .15; display: flex; align-items: center; justify-content: center;
  font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 24px; color: var(--c);
  flex-shrink: 0;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
  padding: 3px 10px; border-radius: 2px; margin-bottom: 18px;
  transition: opacity .25s; width: fit-content;
}
.badge.live { opacity: 1; }
.app-card:hover .badge { opacity: .9; }
.ldot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: ldot 1.8s ease-in-out infinite; }
@keyframes ldot { 0%,100%{opacity:1} 50%{opacity:.25} }

.card-name { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -.015em; color: var(--fg); margin-bottom: 8px; transition: color .25s; }
.app-card:hover .card-name { color: var(--c); }
.card-tag { font-size: 13px; color: var(--fg2); line-height: 1.5; flex: 1; }
.card-arrow {
  margin-top: 24px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c); opacity: 0; transform: translateX(-6px);
  transition: opacity .25s, transform .3s cubic-bezier(.16,1,.3,1);
  display: flex; align-items: center; gap: 6px;
}
.app-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ── VISION ── */
.vision-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vision-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; padding: 80px 36px; align-items: start; }
@media (max-width: 768px) { .vision-inner { grid-template-columns: 1fr; gap: 36px; } }
.vision-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.vision-title { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(22px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.vision-title em { font-style: normal; color: var(--gold); }
.vision-body p { font-size: 15px; line-height: 1.85; color: var(--fg2); margin-bottom: 16px; }
.vision-body p:last-child { margin-bottom: 0; }
.vision-body strong { color: var(--fg); font-weight: 500; }

/* ── UTILITIES GRID ── */
.utils-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--border); }
@media (max-width: 560px) { .utils-grid { grid-template-columns: 1fr; } }
.util-card {
  --c: #fff;
  position: relative; overflow: hidden; padding: 48px 36px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .25s;
  display: flex; flex-direction: column; gap: 0;
}
.util-card:hover { background: rgba(255,255,255,.02); }
.util-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--c); transform: scaleX(0); transform-origin: right;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.util-card:hover::after { transform: scaleX(1); }
.util-logo { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(0,0,0,.5); }
.util-logo img { width: 100%; height: 100%; object-fit: cover; }
.util-name { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 26px; letter-spacing: -.02em; color: var(--fg); margin-bottom: 10px; transition: color .25s; }
.util-card:hover .util-name { color: var(--c); }
.util-tag { font-size: 14px; color: var(--fg2); line-height: 1.6; max-width: 280px; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px 36px; }
.footer-brand { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg3); }
.footer-brand em { color: var(--gold); font-style: normal; }
.footer-copy { font-size: 11px; color: var(--fg3); letter-spacing: .04em; }

/* ─── APP DETAIL PAGES ─── */

/* APP HERO */
.app-hero {
  min-height: 90svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px 36px 64px; position: relative; overflow: hidden;
}
.app-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, color-mix(in srgb, var(--app) 12%, transparent), transparent 70%);
}
.app-hero-noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px;
}

.app-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; }
@media (max-width: 640px) { .app-hero-inner { grid-template-columns: 1fr; gap: 24px; } }

.app-icon {
  width: 100px; height: 100px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  flex-shrink: 0;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-hero-text {}
.app-badge-hero {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--app); border: 1px solid color-mix(in srgb, var(--app) 30%, transparent);
  padding: 4px 12px; border-radius: 2px; margin-bottom: 16px;
}
.app-name { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(44px, 8vw, 100px); letter-spacing: -.04em; line-height: .9; color: var(--fg); margin-bottom: 16px; }
.app-tagline { font-size: 16px; color: var(--fg2); line-height: 1.6; max-width: 480px; }

.app-meta-row {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; padding-top: 36px;
  border-top: 1px solid var(--border);
}
.meta-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg2);
}
.meta-chip-val { color: var(--fg); font-weight: 600; }

/* ABOUT SECTION */
.about-app { padding: 72px 36px; border-bottom: 1px solid var(--border); }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--app); margin-bottom: 16px; }
.about-app-title { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(24px, 3.5vw, 40px); letter-spacing: -.025em; line-height: 1.15; color: var(--fg); margin-bottom: 20px; text-wrap: balance; }
.about-app-body { font-size: 15px; line-height: 1.85; color: var(--fg2); max-width: 660px; }
.about-app-body p { margin-bottom: 14px; }
.about-app-body p:last-child { margin-bottom: 0; }
.about-app-body strong { color: var(--fg); font-weight: 500; }

/* PRICING SPLIT */
.pricing-section { padding: 0 36px 72px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-top: none; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-col { padding: 40px 36px; }
.pricing-col:first-child { border-right: 1px solid var(--border); }
.pricing-col.premium { background: rgba(255,255,255,.015); }
.pricing-label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-label.free { color: var(--fg2); }
.pricing-label.prem { color: var(--app); }
.pricing-price { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 32px; letter-spacing: -.02em; color: var(--fg); margin-bottom: 6px; }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--fg2); }
.pricing-desc { font-size: 13px; color: var(--fg2); margin-bottom: 28px; line-height: 1.5; }

.feat-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg2); line-height: 1.5; }
.feat-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fg3); flex-shrink: 0; margin-top: 6px; }
.pricing-col.premium .feat-list li::before { background: var(--app); }
.pricing-col.premium .feat-list li { color: var(--fg); }

/* CTA */
.cta-section { padding: 56px 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--border); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--app); color: #000; font-family: 'Archivo', sans-serif;
  font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 2px; cursor: pointer;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--fg2);
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 13px;
  border: 1px solid var(--border); padding: 14px 28px; border-radius: 2px;
  cursor: default;
}
.soon-note { font-size: 12px; color: var(--fg3); letter-spacing: .04em; }

/* PACK CARDS (for games with theme packs) */
.packs-section { padding: 0 36px 64px; }
.packs-title { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--app); margin-bottom: 24px; }
.packs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.pack-card { background: var(--bg); padding: 20px; }
.pack-emoji { font-size: 24px; margin-bottom: 10px; }
.pack-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px; color: var(--fg); margin-bottom: 4px; }
.pack-desc { font-size: 12px; color: var(--fg2); line-height: 1.5; margin-bottom: 12px; }
.pack-price { font-size: 11px; font-weight: 600; color: var(--app); letter-spacing: .05em; }
.pack-soon { font-size: 10px; color: var(--fg3); letter-spacing: .08em; text-transform: uppercase; }

/* Responsive */
@media (max-width: 640px) {
  .nav { padding: 18px 20px; }
  .hero { padding: 0 20px 56px; }
  .sec-wrap { padding-left: 20px; padding-right: 20px; }
  .sec-head { padding: 56px 0 36px; }
  .app-hero { padding: 90px 20px 48px; }
  .about-app { padding: 48px 20px; }
  .pricing-section { padding: 0 20px 56px; }
  .pricing-col { padding: 28px 24px; }
  .cta-section { padding: 40px 20px; }
  .packs-section { padding: 0 20px 48px; }
  .vision-inner { padding: 56px 20px; }
  footer { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
