/* ==========================================================================
   Titan Gear: Alloy Storm — landing page
   Style: Heavy-Metal Foundry Muscle · Gunmetal Alloy & Welding-Spark Amber
   Mobile-first; progressive enhancement at >=768px and >=1024px.
   ========================================================================== */

:root {
  /* Gunmetal alloy base */
  --bg: #15191e;
  --bg-2: #1b2128;
  --panel: #232b34;
  --panel-2: #2b343e;
  --line: #384451;

  /* Text */
  --ink: #eef2f6;
  --ink-muted: #aab8c4;

  /* Welding-spark amber + hot-metal accents */
  --amber: #ff8a1e;
  --amber-hi: #ffb454;
  --steel: #6ea8dc;

  /* Brushed-steel button gradient */
  --steel-lo: #2a333d;
  --steel-hi: #3d4954;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --tap: 44px;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Arial Narrow", "Roboto Condensed", "Oswald", Impact, var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.08;
  margin: 0;
}

a { color: var(--amber-hi); }

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

/* ---------- Sticky Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: rgba(21, 25, 30, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 17px;
  margin-right: auto;
}

.brand-icon { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); }
.brand-sub { color: var(--amber); }

.site-nav { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: #1a1205;
  text-decoration: none;
  box-shadow: 0 3px 0 #b85f08, inset 0 1px 0 rgba(255, 255, 255, .4);
}
.header-cta-text { display: none; }
.header-cta-icon { width: 22px; height: 22px; }
.header-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 #b85f08, inset 0 1px 0 rgba(255, 255, 255, .4); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 20px 16px 40px;
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background: #0e1116 url("../assets/banner.png") center / cover no-repeat;
  transform: scale(1.04);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 138, 30, .12), transparent 60%),
    linear-gradient(180deg, rgba(15, 17, 22, .55) 0%, rgba(15, 17, 22, .82) 62%, var(--bg) 100%);
}
.hero-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(180deg, rgba(35, 43, 52, .86), rgba(21, 25, 30, .92));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 24px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  /* bolted steel plate corners */
  background-image:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, .14) 1.5px, transparent 2px),
    radial-gradient(circle at calc(100% - 12px) 12px, rgba(255, 255, 255, .14) 1.5px, transparent 2px),
    radial-gradient(circle at 12px calc(100% - 12px), rgba(255, 255, 255, .14) 1.5px, transparent 2px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), rgba(255, 255, 255, .14) 1.5px, transparent 2px),
    linear-gradient(180deg, rgba(35, 43, 52, .86), rgba(21, 25, 30, .92));
}
.hero-icon {
  width: 68px; height: 68px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
  margin-bottom: 12px;
}
.hero-eyebrow {
  margin: 0 0 6px;
  color: var(--amber);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 3rem);
  margin-bottom: 12px;
}
.title-break { color: var(--amber); display: block; }
.hero-lede {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin: 0 0 20px;
  max-width: 46ch;
}
.hero-meta {
  margin: 14px 0 0;
  font-size: .82rem;
  color: var(--ink-muted);
  letter-spacing: .02em;
}

/* ---------- Store buttons (brushed-steel with amber bevel) ---------- */
.store-row { display: flex; flex-direction: column; gap: 12px; }
.store-row--center { align-items: stretch; }

.store-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--steel-hi), var(--steel-lo));
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .4);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.store-btn--play {
  border-color: var(--amber);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 138, 30, .35), 0 8px 20px rgba(0, 0, 0, .45);
}
.store-btn--play:hover { transform: translateY(-2px); border-color: var(--amber-hi); }
.store-btn--play:active { transform: translateY(1px); }

.store-glyph { width: 26px; height: 26px; flex: 0 0 auto; }
.store-btn-copy { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-copy small { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.store-btn-copy strong { font-size: 1.05rem; font-weight: 700; }

/* Disabled App Store — neutral grey, not brand colored */
.store-btn--ios {
  background: #2a2a2a;
  border-color: #3a3a3a;
  color: #cfcfcf;
  opacity: .55;
  filter: grayscale(.6);
  cursor: not-allowed;
  box-shadow: none;
}
.store-btn--ios .store-btn-copy small { color: #b3b3b3; }
.store-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  background: #3a3a3a;
  color: #f0f0f0;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #4a4a4a;
}

/* ---------- Section shells ---------- */
section { padding: 56px 16px; }
.section-head { max-width: 640px; margin: 0 auto 28px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-muted); margin: 0; }

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.feature-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .14s ease, border-color .14s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--amber); }
.feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  color: var(--amber);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-muted); margin: 0; font-size: .96rem; }

/* ---------- Download CTA ---------- */
.download-cta {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 138, 30, .16), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.download-inner { max-width: 620px; margin: 0 auto; }
.download-icon {
  width: 66px; height: 66px;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 0 auto 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
.download-cta h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin-bottom: 10px; }
.download-cta p { color: var(--ink-muted); margin: 0 auto 22px; max-width: 44ch; }
.download-cta .store-row { max-width: 340px; margin: 0 auto; }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-inner { max-width: 720px; margin: 0 auto; }
.about h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 16px; text-align: center; }
.about p { color: var(--ink-muted); margin: 0 0 14px; }
.about-contact { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 32px 16px 96px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.footer-brand img { border-radius: 9px; border: 1px solid var(--line); }
.footer-contact { margin: 6px 0; }
.footer-legal { margin: 10px 0; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--amber-hi); }
.footer-copy { color: var(--ink-muted); font-size: .82rem; margin: 10px 0 0; }

/* ---------- Mobile Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 25, 30, .96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(120%);
  transition: transform .28s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: #1a1205;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 #b85f08, inset 0 1px 0 rgba(255, 255, 255, .4);
}
.sticky-cta-btn:active { transform: translateY(2px); }

/* ==========================================================================
   Tablet >=768px
   ========================================================================== */
@media (min-width: 768px) {
  .site-header { height: 64px; padding: 0 24px; }
  .site-nav { display: flex; gap: 26px; margin-right: 22px; }
  .site-nav a {
    color: var(--ink-muted);
    text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .92rem;
  }
  .site-nav a:hover { color: var(--amber-hi); }
  .header-cta { padding: 8px 18px; gap: 8px; }
  .header-cta-text { display: inline; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
  .header-cta-icon { display: none; }

  .hero { min-height: 92vh; padding: 40px 32px 60px; align-items: center; }
  .hero-panel { padding: 34px 34px 36px; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); }
  .title-break { display: inline; }

  .store-row { flex-direction: row; flex-wrap: wrap; }
  .store-btn { flex: 0 1 auto; }
  .download-cta .store-row { max-width: none; justify-content: center; }

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

  .sticky-cta { display: none; }
}

/* ==========================================================================
   Desktop >=1024px
   ========================================================================== */
@media (min-width: 1024px) {
  section { padding: 80px 40px; }
  .hero { padding: 60px 60px 80px; }
  .hero-panel { max-width: 620px; padding: 42px 42px 44px; }
  .hero h1 { font-size: 4rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Motion — Launcher Recoil & Steel Shimmer (reveal on scroll)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
  * { animation: none !important; }
}
