/* ===== Iron Will Running — Dark Mode Scroll Experience ===== */

:root {
  --bg-dark: #0a0a0b;
  --bg-darker: #060607;
  --surface: #141416;
  --text-on-dark: #f2efe9;
  --text-muted: #9a978f;
  --text-faint: #6b6862;
  --steel: #c9ccd1;
  --accent: #c2a878;          /* burnished bronze — premium, faith-warm */
  --accent-bright: #d9bd86;
  --line: rgba(242, 239, 233, 0.12);
  --font-display: 'Oswald', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-darker);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.35em;
  color: var(--text-on-dark);
  text-indent: 0.35em;
}
#loader-track {
  width: min(320px, 70vw); height: 2px;
  background: rgba(242,239,233,0.12); overflow: hidden;
}
#loader-bar {
  width: 0%; height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}
#loader-percent {
  font-family: var(--font-display);
  font-size: 0.85rem; letter-spacing: 0.3em;
  color: var(--text-muted);
}

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100; padding: 1.6rem 4vw;
  mix-blend-mode: difference;
}
.site-header nav {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.22em; color: #fff;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.logo-mark { font-size: 0.9rem; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; text-decoration: none; font-weight: 500;
  opacity: 0.85; transition: opacity 0.25s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid #fff; padding: 0.55rem 1.1rem;
  border-radius: 100px;
}

/* ===== Hero ===== */
.hero-standalone {
  position: relative; z-index: 50;
  height: 100vh; width: 100%;
  background: radial-gradient(120% 120% at 50% 30%, #161618 0%, var(--bg-dark) 55%, var(--bg-darker) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-label {
  margin-bottom: 2.2rem;
  color: var(--accent);
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 19vw, 18rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  display: flex; flex-direction: column;
  color: var(--text-on-dark);
}
.hero-heading span { display: block; overflow: hidden; }
.hero-heading span:last-child {
  color: transparent;
  -webkit-text-stroke: 2px var(--steel);
}
.hero-tagline {
  margin-top: 2.2rem;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300; letter-spacing: 0.02em;
  color: var(--text-muted);
}
.hero-tagline em { color: var(--accent); font-style: normal; font-weight: 500; }
.scroll-indicator {
  position: absolute; bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.3em; color: var(--text-faint);
}
.scroll-indicator .arrow { animation: bounce 1.8s infinite ease-in-out; font-size: 1rem; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== Canvas ===== */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  clip-path: circle(0% at 50% 50%);
  background: var(--bg-dark);
}
#canvas { width: 100%; height: 100%; display: block; }

/* ===== Dark overlay ===== */
#dark-overlay {
  position: fixed; inset: 0; z-index: 5;
  background: var(--bg-darker);
  opacity: 0; pointer-events: none;
}

/* ===== Marquee ===== */
.marquee-wrap {
  position: fixed; top: 50%; left: 0; width: 100%;
  transform: translateY(-50%); z-index: 6;
  pointer-events: none; opacity: 0;
  overflow: hidden; white-space: nowrap;
}
.marquee-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13vw; line-height: 1;
  letter-spacing: 0.01em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242,239,233,0.16);
  white-space: nowrap; display: inline-block;
  padding-left: 4vw;
}

/* ===== Scroll container & sections ===== */
#scroll-container {
  position: relative; z-index: 10;
  height: 950vh; width: 100%;
}
.scroll-section {
  position: absolute; left: 0; width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
}
.scroll-section .section-inner,
.scroll-section .stats-grid,
.scroll-section form { pointer-events: auto; }

/* Side-aligned text zones — product occupies center */
.align-left { padding-left: 5vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 5vw; }
.align-left .section-inner,
.align-right .section-inner { max-width: 40vw; }
.align-right .section-inner { margin-left: auto; text-align: left; }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.98; letter-spacing: -0.01em;
  color: var(--text-on-dark);
  margin-bottom: 1.6rem;
}
.section-body {
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 300; line-height: 1.6;
  color: var(--text-muted);
  max-width: 30rem;
}

/* ===== Stats ===== */
.section-stats {
  top: 50%; padding: 0 6vw;
  text-align: center;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2vw; max-width: 1100px; margin: 0 auto;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1; color: var(--text-on-dark);
}
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.4rem;
  color: var(--accent); margin-top: 0.3rem;
}
.stat-label {
  margin-top: 0.9rem; font-size: 0.85rem;
  letter-spacing: 0.06em; color: var(--text-muted);
  text-transform: uppercase;
}

/* ===== CTA / waitlist ===== */
.section-cta .section-heading { font-weight: 700; }
.cta-heading { font-size: clamp(3rem, 6vw, 5.5rem); }
.waitlist-form {
  display: flex; gap: 0.6rem; margin-top: 2rem;
  max-width: 30rem; flex-wrap: wrap;
}
.waitlist-input {
  flex: 1 1 14rem;
  background: rgba(242,239,233,0.04);
  border: 1px solid var(--line);
  color: var(--text-on-dark);
  padding: 1rem 1.2rem; font-size: 1rem;
  font-family: var(--font-body); border-radius: 4px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.waitlist-input::placeholder { color: var(--text-faint); }
.waitlist-input:focus {
  outline: none; border-color: var(--accent);
  background: rgba(242,239,233,0.07);
}
.cta-button {
  background: var(--accent); color: #0a0a0b;
  border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 1.8rem; border-radius: 4px;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}
.cta-button:hover { background: var(--accent-bright); transform: translateY(-2px); }
.form-note {
  margin-top: 1rem; font-size: 0.82rem;
  color: var(--text-faint); letter-spacing: 0.02em;
}
.form-note.success { color: var(--accent); }
.form-note.error { color: #e07a6a; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  #scroll-container { height: 620vh; }
  .align-left, .align-right { padding: 0 6vw; }
  .align-left .section-inner,
  .align-right .section-inner { max-width: 100%; }
  .scroll-section.section-content .section-inner {
    background: rgba(6,6,7,0.62);
    backdrop-filter: blur(2px);
    padding: 1.6rem; border-radius: 8px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
  .hero-heading { font-size: clamp(4.5rem, 26vw, 9rem); }
  .marquee-text { font-size: 22vw; }
  .waitlist-form { flex-direction: column; }
  .waitlist-input { flex: 0 0 auto; width: 100%; }
  .cta-button { width: 100%; }
}
