/* ============================================
   Motion Human — Landing Page Styles
   ============================================ */

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Variables --- */
:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --red: #FF2D2D;
  --blue: #00A3FF;
  --text: #F5F5F5;
  --muted: #888888;
  --border: #222222;
  --nav-height: 72px;
}

/* --- Base --- */
html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Layout helpers --- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scroll reveals --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- Pulsing dot --- */
.pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 45, 45, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(255, 45, 45, 0); }
}

/* --- Eyebrow labels --- */
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

/* ============================================
   1. NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: #e02020;
  transform: translateY(-1px);
}

.nav-scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 999;
}

.mobile-menu-open .mobile-menu {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-height) 24px 48px;
}

.hero-map {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  opacity: 0.25;
  pointer-events: none;
}

.hero-map .map-dot {
  fill: var(--blue);
  animation: map-pulse 3s ease-in-out infinite;
}

@keyframes map-pulse {
  0%, 100% { opacity: 0.2; r: 3; }
  50% { opacity: 0.9; r: 5; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(3.5rem, 12vw, 9rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  text-align: center;
}

.btn-red {
  display: inline-block;
  padding: 16px 40px;
  background: var(--red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-red:hover {
  background: #e02020;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* ============================================
   3. THE WHY
   ============================================ */
.the-why {
  padding: 120px 24px;
}

.the-why-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 64px;
}

.the-why-card h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 48px;
}

.why-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.why-bullets li {
  padding-left: 20px;
  border-left: 3px solid var(--red);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--text);
}

.why-closing {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.6;
}

.why-standout {
  max-width: 900px;
  margin: 48px auto 0;
  text-align: center;
}

.why-standout p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  color: var(--red);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ============================================
   4. HOW IT WORKS
   ============================================ */
.how-it-works {
  padding: 120px 24px;
}

.how-it-works .section-inner {
  max-width: 1000px;
}

.how-it-works h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 64px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.step {
  text-align: center;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 16px;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.step p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  align-self: stretch;
  text-align: center;
}

.steps-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================
   5. LIVE PULSE DEMO
   ============================================ */
.live-demo {
  display: none; /* hidden until live data is connected */
  padding: 120px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.live-demo .section-inner {
  max-width: 900px;
}

.live-demo h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  margin-bottom: 48px;
}

.demo-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.demo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 28px;
}

.demo-card-headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.demo-card-question {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
}

.reaction-bar {
  display: flex;
  gap: 4px;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.reaction-bar span {
  display: block;
  height: 100%;
  transition: width 0.5s ease;
}

.reaction-bar .bar-yes {
  background: var(--blue);
}

.reaction-bar .bar-no {
  background: var(--red);
}

.reaction-bar .bar-unsure {
  background: var(--muted);
}

.reaction-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.reaction-count {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.demo-counter {
  text-align: center;
  margin-bottom: 40px;
}

.demo-counter .counter-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--blue);
}

.demo-counter p {
  font-size: 1rem;
  color: var(--muted);
}

.movement-counter {
  text-align: center;
  margin: 32px 0 24px;
}

.movement-counter .counter-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--blue);
  line-height: 1;
}

.movement-counter p {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 8px;
}

.demo-cta {
  text-align: center;
}

/* ============================================
   6. THE MOVEMENT
   ============================================ */
.the-movement {
  padding: 120px 24px;
  background: linear-gradient(180deg, rgba(255, 45, 45, 0.04) 0%, rgba(255, 45, 45, 0.01) 100%);
}

.the-movement .section-inner {
  max-width: 760px;
  text-align: center;
}

.the-movement h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 48px;
}

.manifesto {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 56px;
  text-align: left;
}

.manifesto p {
  margin-bottom: 20px;
}

.manifesto p:last-child {
  margin-bottom: 0;
}

/* ---- Principles display ---- */
.principles {
  max-width: 640px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.principles-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 4px;
}

.principle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.principle:hover {
  border-color: var(--red);
}

.principle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.principle-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--muted);
  background: transparent;
  position: relative;
  margin-top: 1px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.principle:hover .principle-box {
  border-color: var(--red);
}

.principle-checkbox:checked + .principle-box {
  background: var(--red);
  border-color: var(--red);
}

.principle-checkbox:checked + .principle-box::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 7px;
  width: 5px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.principle-checkbox:focus-visible + .principle-box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.principle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

/* ---- Email gate hint ---- */
.email-gate-hint {
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 auto 12px;
  max-width: 480px;
  transition: opacity 0.25s ease;
}

.email-gate-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Turnstile widget ---- */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 20px;
  max-width: 480px;
}

.principle-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.principle-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 16px;
}

.email-form input {
  flex: 1;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.email-form input::placeholder {
  color: var(--muted);
}

.email-form input:focus {
  border-color: var(--red);
}

.email-form input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.email-form button {
  padding: 16px 32px;
  background: var(--red);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.email-form button:hover {
  background: #e02020;
}

.email-form button:disabled {
  background: var(--border);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
}

.email-form button:disabled:hover {
  background: var(--border);
}

.email-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================
   7. FOOTER
   ============================================ */
.footer {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand .footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-privacy p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  /* Nav */
  .nav-cta-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--nav-height) + 32px);
    min-height: 100svh;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-ctas {
    width: 100%;
  }

  .btn-red,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .desktop-only {
    display: none;
  }

  /* The Why */
  .the-why {
    padding: 80px 16px;
  }

  .the-why-card {
    padding: 32px 24px;
  }

  /* How It Works */
  .how-it-works {
    padding: 80px 16px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step {
    text-align: left;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
  }

  .step:last-child {
    border-bottom: none;
  }

  .step-icon {
    flex-shrink: 0;
    margin: 0;
    width: 48px;
    height: 48px;
  }

  /* Live Demo */
  .live-demo {
    padding: 80px 16px;
  }

  /* The Movement */
  .the-movement {
    padding: 80px 16px;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form input {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }

  .email-form input:focus {
    border-color: var(--red);
  }

  .principle {
    padding: 14px 16px;
  }

  .principle-quote {
    font-size: 0.9rem;
  }

  /* Footer */
  .footer {
    padding: 48px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .the-why-card h2,
  .how-it-works h2,
  .live-demo h2,
  .the-movement h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
}
