/* ==========================================================================
   Night Doge: Ironheart — landing page styles
   Style: Cold Steel Nocturne / Ironclad Black & Cold Spark Cyan
   Mobile-first; desktop enhanced via min-width media queries.
   ========================================================================== */

:root {
  /* Ironclad Black & Cold Spark Cyan palette */
  --bg: #05070a;            /* pitch-black base */
  --bg-panel: #0b1016;      /* raised panel */
  --bg-raise: #121a22;      /* card surface */
  --iron: #1c252e;          /* iron-gray border */
  --iron-soft: #2a3742;     /* softer divider */
  --ink: #e6edf3;           /* primary text */
  --ink-muted: #9aa7b2;     /* muted text (AA on --bg) */
  --spark: #34dfef;         /* cold spark cyan accent */
  --spark-deep: #1aa9bd;    /* deeper cyan for gradients */
  --steel: #4a86ff;         /* steel-blue secondary */
  --soon-grey: #2a2a2a;     /* neutral disabled slab */

  --maxw: 1120px;
  --radius: 4px;
  --clip: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--spark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 56px 0; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--spark);
  margin: 0 0 12px;
  font-weight: 700;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--iron);
}
.header-inner { display: flex; align-items: center; height: 48px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 8px; border: 1px solid var(--iron-soft); }
.brand-name { font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-accent { color: var(--spark); }

.site-nav { display: none; margin-left: auto; gap: 26px; }
.site-nav a {
  color: var(--ink-muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-nav a:hover { color: var(--spark); text-decoration: none; }

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--bg);
  background: var(--spark);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.header-cta:hover { background: #4fe9f7; text-decoration: none; }
.header-cta-text { display: none; }
.header-cta-icon { font-size: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 48px; overflow: hidden; border-bottom: 1px solid var(--iron); }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 30px; }

.hero-visual { margin: 0; }
.hud-frame {
  position: relative;
  clip-path: var(--clip);
  border: 1px solid var(--spark);
  box-shadow: 0 0 0 1px rgba(52, 223, 239, 0.15), 0 24px 60px rgba(0, 0, 0, 0.6);
  background: var(--bg-panel);
}
.hud-frame img { width: 100%; }
.reticle { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.reticle-tl { top: 8px; left: 8px; border-top: 2px solid var(--spark); border-left: 2px solid var(--spark); }
.reticle-br { bottom: 8px; right: 8px; border-bottom: 2px solid var(--spark); border-right: 2px solid var(--spark); }

.hero-copy { text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 9vw, 3.4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 14px;
}
.title-accent { color: var(--spark); }
.lede { color: var(--ink-muted); font-size: 16px; margin: 0 auto 24px; max-width: 46ch; }
.hero-note { color: var(--ink-muted); font-size: 13px; letter-spacing: 0.04em; margin: 16px 0 0; }

/* ---------- Store buttons ---------- */
.store-buttons { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.store-buttons--cta { max-width: 420px; margin: 0 auto; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  clip-path: var(--clip);
  border: 1px solid var(--iron-soft);
  background: var(--bg-raise);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  position: relative;
}
.store-btn-glyph { font-size: 22px; line-height: 1; }
.store-btn-lines { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn-top { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.store-btn-bottom { font-size: 17px; font-weight: 700; letter-spacing: 0.03em; }

/* live (Google Play) — neon cyan edge */
.store-btn--live {
  border-color: var(--spark);
  box-shadow: 0 0 0 1px rgba(52, 223, 239, 0.2), 0 0 22px rgba(52, 223, 239, 0.28);
  transition: box-shadow 0.25s var(--ease), transform 0.15s var(--ease);
}
.store-btn--live .store-btn-glyph { color: var(--spark); }
.store-btn--live:hover { text-decoration: none; box-shadow: 0 0 0 1px var(--spark), 0 0 30px rgba(52, 223, 239, 0.5); }
.store-btn--live:active { transform: translateY(1px); }

/* App Store — forced neutral disabled "Coming Soon" */
.store-btn--soon {
  background: var(--soon-grey);
  border-color: #3a3a3a;
  color: #cfcfcf;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
}
.store-btn--soon .store-btn-glyph { color: #cfcfcf; }
.soon-badge {
  position: absolute;
  top: -9px;
  right: -6px;
  background: #3a3a3a;
  color: #eaeaea;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #4a4a4a;
}

/* ---------- Features ---------- */
.features { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-panel) 100%); }
.feature-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-card {
  position: relative;
  padding: 24px 20px 22px;
  background: var(--bg-raise);
  border: 1px solid var(--iron);
  clip-path: var(--clip);
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--spark), transparent);
}
.feature-index {
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em;
  color: var(--spark); opacity: 0.7;
}
.feature-card h3 {
  margin: 6px 0 8px; font-size: 18px; letter-spacing: 0.03em;
  text-transform: uppercase; font-weight: 700;
}
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* ---------- Download CTA ---------- */
.download {
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(52, 223, 239, 0.12), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--iron);
  border-bottom: 1px solid var(--iron);
}
.download-icon { margin: 0 auto 16px; border-radius: 18px; border: 1px solid var(--iron-soft); box-shadow: 0 0 26px rgba(52, 223, 239, 0.25); }
.download-sub { color: var(--ink-muted); max-width: 44ch; margin: 0 auto 26px; }

/* ---------- About ---------- */
.about-inner { max-width: 760px; margin: 0 auto; }
.about-inner .section-title { text-align: left; }
.about-inner p { color: var(--ink-muted); margin: 0 0 16px; }
.about-contact { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-panel); border-top: 1px solid var(--iron); padding: 32px 0 96px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-brand .brand-name { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-contact a { color: var(--spark); }
.footer-legal { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-legal a { color: var(--ink-muted); }
.footer-legal a:hover { color: var(--spark); }
.footer-legal .dot { color: var(--iron-soft); }
.footer-copy { color: var(--ink-muted); font-size: 13px; margin: 4px 0 0; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 7, 10, 0.94);
  border-top: 1px solid var(--iron);
  backdrop-filter: blur(8px);
  transform: translateY(120%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta-btn {
  display: block;
  text-align: center;
  min-height: 48px;
  line-height: 48px;
  color: var(--bg);
  background: var(--spark);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  clip-path: var(--clip);
}
.mobile-cta-btn:hover { text-decoration: none; }
.mobile-cta-btn:active { background: var(--spark-deep); }

/* ---------- Scroll reveal ---------- */
.feature-card { opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.feature-card.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet / desktop enhancements
   ========================================================================== */
@media (min-width: 768px) {
  .section { padding: 80px 0; }
  .site-header { height: 64px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 17px; }
  .site-nav { display: flex; }
  .header-cta { margin-left: 26px; }
  .header-cta-text { display: inline; }
  .header-cta-icon { display: none; }

  .hero { padding: 64px 0 72px; }
  .hero-inner { flex-direction: row; align-items: center; gap: 48px; }
  .hero-visual { flex: 1 1 52%; order: 1; }
  .hero-copy { flex: 1 1 48%; order: 2; text-align: left; }
  .lede { margin-left: 0; }
  .store-buttons { flex-direction: row; flex-wrap: wrap; }
  .store-btn { flex: 0 1 auto; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .site-footer { padding-bottom: 40px; }
  .footer-inner { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
  .footer-copy { width: 100%; }
  .mobile-cta { display: none; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 3.4rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card { opacity: 1; transform: none; transition: none; }
  .mobile-cta { transition: none; }
  .store-btn--live { transition: none; }
  .starfield { display: none; }
}
