/* Volcanic Merge: Lava Prism — landing page styles
   Style: Molten Elemental Heat / Molten Lava on Obsidian Black
   Mobile-first; progressive enhancement at >=768px and >=1024px */

:root {
  --obsidian: #0d0705;
  --obsidian-raised: #1a0f0a;
  --rock: #241511;
  --rock-border: #3d221a;
  --lava: #ff4d10;
  --lava-bright: #ff7a1a;
  --ember: #ffb020;
  --cream: #fbe9d8;
  --cream-dim: #cbb2a4;
  --disabled-grey: #2a2a2a;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

a { color: var(--ember); }

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

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(13, 7, 5, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rock-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 800;
}

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

.brand-name { font-size: 15px; letter-spacing: 0.02em; }

.site-nav { display: none; margin-left: auto; gap: 22px; }

.site-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a:hover, .site-nav a:active { color: var(--ember); }

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--ember), var(--lava));
  text-decoration: none;
  font-weight: 800;
}

.header-cta-text { display: none; }
.header-cta-icon { display: block; }

/* ---------- Hero (Diagonal Molten Split) ---------- */
.hero {
  position: relative;
  padding: 40px 20px 48px;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 77, 16, 0.28), transparent 60%),
    var(--obsidian);
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; text-align: center; }

.hero-icon {
  margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--rock-border), 0 14px 40px rgba(255, 77, 16, 0.4);
}

#hero-title {
  font-size: 34px;
  background: linear-gradient(180deg, var(--cream) 30%, var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  max-width: 34ch;
  margin: 0 auto 26px;
  color: var(--cream-dim);
  font-size: 16px;
}

.hero-visual { position: relative; z-index: 1; margin-top: 34px; }

.hero-visual-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rock-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 77, 16, 0.25);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

/* ---------- Store buttons ---------- */
.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.store-buttons--center { align-items: center; }

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
}

/* Molten Ember Glass Tiles — Google Play */
.store-btn--play {
  color: var(--cream);
  background:
    linear-gradient(var(--obsidian-raised), var(--obsidian-raised)) padding-box,
    linear-gradient(135deg, var(--ember), var(--lava)) border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 176, 32, 0.25), 0 10px 30px rgba(255, 77, 16, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.store-btn--play:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 176, 32, 0.35), 0 14px 38px rgba(255, 77, 16, 0.45); }
.store-btn--play:active { transform: translateY(0); }

/* App Store — forced neutral grey disabled "Coming Soon" */
.store-btn--ios {
  color: #cfcfcf;
  background: var(--disabled-grey);
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  border: 1px solid #3a3a3a;
}

.store-btn-badge {
  position: absolute;
  top: -9px;
  right: -6px;
  background: #4a4a4a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.store-btn-glyph { flex: none; }

.store-btn-labels { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-btn-small { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.store-btn-large { font-size: 19px; font-weight: 800; }

/* ---------- Sections shared ---------- */
.section-title { font-size: 27px; text-align: center; }
.section-lead {
  max-width: 44ch;
  margin: 0 auto 30px;
  text-align: center;
  color: var(--cream-dim);
}

.features, .about { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px; }

/* ---------- Features ---------- */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-card {
  background: var(--rock);
  border: 1px solid var(--rock-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover, .feature-card:active {
  transform: translateY(-3px);
  border-color: var(--lava);
}

.feature-emoji { font-size: 32px; display: block; margin-bottom: 10px; }
.feature-card h3 { font-size: 19px; color: var(--ember); }
.feature-card p { margin: 0; color: var(--cream-dim); font-size: 15px; }

/* ---------- Download CTA ---------- */
.download-cta {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 122, 26, 0.35), transparent 65%),
    linear-gradient(180deg, #1a0d08, var(--obsidian));
  padding: 64px 20px 72px;
  text-align: center;
  border-top: 1px solid var(--rock-border);
  border-bottom: 1px solid var(--rock-border);
}

.download-inner { max-width: 640px; margin: 0 auto; }
.download-icon { margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 0 40px rgba(255, 77, 16, 0.5); }
#download-title { font-size: 28px; }
.download-cta p { color: var(--cream-dim); margin: 0 auto 28px; max-width: 40ch; }

/* ---------- About ---------- */
.about { text-align: center; }
.about p { max-width: 62ch; margin: 0 auto 18px; color: var(--cream-dim); }
.about-contact { color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--obsidian-raised);
  border-top: 1px solid var(--rock-border);
  padding: 40px 20px 96px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

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

.footer-contact { margin: 0 0 14px; }
.footer-contact a { color: var(--cream-dim); text-decoration: none; }

.footer-legal { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; }
.footer-legal a { color: var(--cream-dim); text-decoration: none; font-size: 14px; }
.footer-legal a:hover, .footer-legal a:active { color: var(--ember); }

.footer-copy { color: #7a655a; font-size: 13px; margin: 0; }

/* ---------- Mobile sticky bottom CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 7, 5, 0.96);
  border-top: 1px solid var(--rock-border);
  transform: translateY(120%);
  transition: transform 0.3s ease;
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta-btn {
  display: block;
  text-align: center;
  min-height: 50px;
  line-height: 50px;
  border-radius: 12px;
  color: var(--obsidian);
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, var(--ember), var(--lava));
}

/* ---------- Motion: Ember Glow Pulse & Rising Heat ---------- */
@keyframes ember-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--rock-border), 0 14px 40px rgba(255, 77, 16, 0.35); }
  50% { box-shadow: 0 0 0 1px var(--rock-border), 0 14px 52px rgba(255, 122, 26, 0.6); }
}

.hero-icon { animation: ember-pulse 3.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-icon { animation: none; }
  .store-btn, .feature-card, .sticky-cta { transition: none; }
}

/* ---------- Tablet >=768px ---------- */
@media (min-width: 768px) {
  .site-header { height: 64px; padding: 0 28px; }
  .site-nav { display: flex; }
  .header-cta { margin-left: 0; padding: 0 18px; border-radius: 12px; }
  .header-cta-text { display: inline; }
  .header-cta-icon { display: none; }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 36px;
    padding: 72px 40px 84px;
    text-align: left;
  }
  .hero-copy { text-align: left; }
  .hero-icon { margin: 0 0 20px; }
  #hero-title { font-size: 46px; }
  .hero-tagline { margin: 0 0 30px; font-size: 18px; }
  .hero-visual { margin-top: 0; }

  .store-buttons { flex-direction: row; flex-wrap: wrap; }
  .store-buttons--center { justify-content: center; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ---------- Desktop >=1024px ---------- */
@media (min-width: 1024px) {
  #hero-title { font-size: 54px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
}
