/* MK Launcher site. Spacing, type and radius come from fixed scales; dark theme only. */
:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --border: #313131;
  --text: #F5F5F4;
  --text-muted: #A3A3A3;
  --gold: #E2BC74;
  --gold-hover: #EBCB8E;
  --gold-press: #D4A95A;
  --on-gold: #1A1408;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Manrope", system-ui, sans-serif; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* Text styles (Tailwind scale) */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--text-muted); }

.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 var(--s-300); }
.i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 32px; height: 32px; }

.skip {
  position: absolute; left: var(--s-200); top: -64px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: var(--s-75) var(--s-100); border-radius: 8px;
  transition: transform 300ms var(--ease);
}
.skip:focus { transform: translateY(80px); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  min-height: 44px; padding: var(--s-75) var(--s-100); border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--gold-press); transform: scale(0.98); }
.btn-secondary { background: var(--surface-3); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.link { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--text-muted); transition: color 300ms var(--ease); }
.link:hover { color: var(--gold); }

.glass {
  background: rgba(31, 31, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}

/* Navigation */
.nav-wrap { position: fixed; top: var(--s-200); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--s-200); pointer-events: none; }
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200); border-radius: 9999px;
  background: rgba(24, 24, 24, 0.7);
}
.brand { display: inline-flex; align-items: baseline; gap: var(--s-50); font-weight: 600; font-size: 20px; line-height: 28px; color: var(--text); }
.logo-amp { color: var(--gold); font-size: 16px; }
.nav-links { display: flex; gap: var(--s-300); }
.nav-links a { color: var(--text-muted); transition: color 300ms var(--ease); }
.nav-links a:hover, .nav-links a.current { color: var(--text); }
.nav-cta { border-radius: 9999px; min-height: 36px; padding: var(--s-75) var(--s-200); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 9999px; position: relative; cursor: pointer; color: var(--text); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 500ms var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-open .menu-btn span:first-child { transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40; padding: 112px var(--s-300) var(--s-400);
  background: rgba(0, 0, 0, 0.88); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.mobile-menu.open { opacity: 1; }
.mobile-menu ul { display: grid; gap: var(--s-300); }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(2) { transition-delay: 60ms; }
.mobile-menu.open li:nth-child(3) { transition-delay: 120ms; }
.mobile-menu.open li:nth-child(4) { transition-delay: 180ms; }

/* Hero */
.hero { padding: 160px 0 var(--s-900); overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-300); }
.hero-title {
  max-width: 680px;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 680px; color: var(--text-muted); font-size: 18px; line-height: 28px; }
.hero-actions { display: flex; gap: var(--s-200); margin-top: var(--s-75); }
.hero-proof { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--text-muted); flex-wrap: wrap; justify-content: center; }
.hero-proof .i { color: var(--gold); }
.hero-shot { margin: var(--s-700) auto 0; max-width: 1200px; padding: 0 var(--s-300); }

/* Device frames */
.frame { background: #131209; border: 1px solid var(--border); padding: var(--s-75); overflow: hidden; }
.frame img { width: 100%; }
.frame-car { border-radius: 24px; }
.frame-car img { border-radius: 16px; }
.frame-tv { border-radius: 16px; }
.frame-tv img { border-radius: 8px; }
.frame-phone { border-radius: 24px; max-width: 300px; margin: 0 auto; }
.frame-phone img { border-radius: 16px; }

/* Sections */
.section { padding: var(--s-900) 0; }
.section-head { max-width: 680px; display: grid; gap: var(--s-200); margin-bottom: var(--s-700); }
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-700); align-items: start; }
.zig { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-700); align-items: center; padding: var(--s-700) 0; }
.zig-flip .zig-text { order: 2; }
.zig-flip { grid-template-columns: 7fr 5fr; }
.zig-text { display: grid; gap: var(--s-300); }
.kicker { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.benefits { display: grid; gap: var(--s-300); }
.benefits li { display: grid; gap: var(--s-50); }

/* Tagline reveal */
.tagline { padding: 160px 0; }
.tagline-text { max-width: 680px; margin: 0 auto; text-align: center; }
.tagline-text .w { color: rgba(245, 245, 244, 0.3); transition: color 500ms var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); }
.step { border-radius: 24px; padding: var(--s-400); display: grid; gap: var(--s-200); align-content: start; position: relative; }
.step .i-lg { color: var(--gold); }
.step-n {
  position: absolute; top: var(--s-300); right: var(--s-300);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9999px;
  border: 1px solid var(--border); color: var(--text-muted);
}

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-300); }
.dl { border-radius: 24px; padding: var(--s-300); display: flex; flex-direction: column; gap: var(--s-200); }
.dl-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--gold); }
.dl p.body-6 { flex: 1; }
.dl-btn { width: 100%; border-radius: 12px; }
.dl-meta { color: var(--text-muted); overflow-wrap: anywhere; min-height: 32px; }
.dl.loading .dl-meta span { background: var(--surface-3); color: transparent; border-radius: 4px; }
.dl-more { display: flex; flex-wrap: wrap; gap: var(--s-300); margin-top: var(--s-400); }

/* FAQ */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: var(--s-100); }
.faq details { background: var(--surface); border: 1px solid var(--surface-3); border-radius: 16px; transition: border-color 300ms var(--ease); }
.faq details[open] { border-color: var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); padding: var(--s-200) var(--s-300); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-muted); transition: transform 500ms var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 var(--s-300) var(--s-300); }

/* Final CTA */
.final-inner { border-radius: 24px; padding: var(--s-800) var(--s-300); display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-200); background: var(--surface); }
.final-inner .btn { margin-top: var(--s-200); }

/* Footer */
.footer { padding: var(--s-400) 0 var(--s-600); border-top: 1px solid var(--surface-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-200); flex-wrap: wrap; }
.footer-links { display: flex; gap: var(--s-300); }
.footer-links a { color: var(--text-muted); transition: color 300ms var(--ease); }
.footer-links a:hover { color: var(--text); }

/* Simple pages */
.page { padding: 160px 0 var(--s-900); }
.page .container { max-width: 760px; display: grid; gap: var(--s-300); }
.page h2 { margin-top: var(--s-300); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav { gap: var(--s-200); width: 100%; max-width: 480px; justify-content: space-between; }
  .heading-1 { font-size: 30px; line-height: 36px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .hero { padding-top: 128px; padding-bottom: var(--s-700); }
  .hero-sub { font-size: 16px; line-height: 24px; }
  .hero-shot { margin-top: var(--s-600); padding: 0 var(--s-200); }
  .section { padding: var(--s-700) 0; }
  .split-intro, .zig, .zig-flip { grid-template-columns: 1fr; gap: var(--s-400); }
  .zig-flip .zig-text { order: 0; }
  .zig { padding: var(--s-400) 0; }
  .steps { grid-template-columns: 1fr; }
  .tagline { padding: var(--s-900) 0; }
  .section-head { margin-bottom: var(--s-400); }
  .container { padding: 0 var(--s-200); }
}
@media (max-width: 560px) {
  .dl-grid { grid-template-columns: 1fr; }
  .frame-car, .frame-phone { border-radius: 16px; }
  .frame-car img, .frame-phone img { border-radius: 8px; }
  .hero-actions, .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mobile-menu li { transform: none !important; transition: opacity 300ms var(--ease); }
  .tagline-text .w { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
