/* ============================================================
   MMH LANDING — DESIGN SYSTEM TOKENS
   Fonts: Sora (primary) · Space Grotesk (mono/accent)
   Source: MMH APP Design System (Figma)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --color-primary:    #E63E1E;
  --color-secondary:  #2E2E2E;
  --color-tertiary:   #FFE7E1;

  /* Neutrals */
  --color-black:      #3C3B3B;
  --color-n1:         #626262;
  --color-n2:         #8E8E8E;
  --color-n3:         #E7E7E7;
  --color-n4:         #F9FAFB;
  --color-white:      #FFFFFF;

  /* Typography */
  --font-sans:        'Sora', sans-serif;
  --font-mono:        'Space Grotesk', sans-serif;

  /* Radius */
  --r-sm:   4px;
  --r-base: 8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-4xl:  40px;
  --r-full: 9999px;

  /* Spacing scale */
  --s-4:  4px;
  --s-8:  8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-32: 32px;
  --s-40: 40px;
  --s-48: 48px;
  --s-64: 64px;

  /* Layout */
  --max-w:    1360px;
  --px:       80px;
  --nav-h:    80px;
  --band-h:   88px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-black);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

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

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

/* ============================================================
   UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--r-base);
  padding: 14px 28px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-black);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-secondary);
}

.btn-white:hover {
  background: var(--color-n4);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--r-base);
}

/* ============================================================
   BADGE / PILL
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.55px;
  color: var(--color-n1);
  border: 1px solid var(--color-n3);
  border-radius: var(--r-sm);
  padding: 6px 14px;
  background: transparent;
}

/* ============================================================
   LINK ARROW
   ============================================================ */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-black);
  cursor: pointer;
  transition: color 0.2s ease;
  background: none;
  border: none;
}

.link-arrow .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.link-arrow:hover { color: var(--color-primary); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-white);
  letter-spacing: -0.3px;
  cursor: pointer;
}

.navbar-logo .logo-gem {
  width: 28px;
  height: 28px;
  background: var(--color-secondary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo .logo-gem svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.navbar-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--s-32);
}

.navbar-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-n1);
  transition: color 0.2s ease;
}

.navbar-link:hover { color: var(--color-black); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 120px 0 80px;
  background: var(--color-white);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
  max-width: 620px;
}

.hero-eyebrow {
  animation: fadeInUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-black);
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-n1);
  max-width: 540px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-n1);
  animation: fadeInUp 0.6s 0.4s ease both;
}

.hero-social-proof .check {
  color: var(--color-primary);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.8s 0.3s ease both;
}

/* ============================================================
   FEATURE IMAGE
   ============================================================ */

.feature-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  object-position: top center;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.18),
    0 6px 16px rgba(0, 0, 0, 0.10);
}

/* ============================================================
   COUNTDOWN BAND
   ============================================================ */

.countdown-band {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: var(--color-secondary);
  height: var(--band-h);
  overflow: hidden;
}

.countdown-band .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
}

.countdown-event {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.countdown-event-label {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #a0a0a0;
  text-transform: uppercase;
}

.countdown-event-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-white);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.countdown-unit {
  background: #333;
  border-radius: var(--r-base);
  padding: 8px 12px;
  min-width: 64px;
  text-align: center;
}

.countdown-value {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 26px;
  color: var(--color-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.36px;
  color: #a0a0a0;
  margin-top: 4px;
  text-transform: uppercase;
}

.countdown-sep {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-n2);
  line-height: 1;
  margin-bottom: 8px;
}

/* ============================================================
   STATS
   ============================================================ */

.stats {
  background: var(--color-n4);
  border-top: 1px solid var(--color-n3);
  border-bottom: 1px solid var(--color-n3);
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 28px var(--s-32);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--color-n3);
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 36px;
  color: var(--color-black);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--color-n1);
  line-height: 1.4;
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */

.feature {
  padding: 96px 0;
}

.feature.bg-gray { background: var(--color-n4); }
.feature.bg-white { background: var(--color-white); }

.feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature.flip .feature-visual { order: 2; }
.feature.flip .feature-content { order: 1; }

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-20, 20px);
  max-width: 520px;
}

.feature-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.15;
  color: var(--color-black);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-n1);
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background: var(--color-secondary);
  padding: 100px 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-24);
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.88px;
  color: #a0a0a0;
  text-transform: uppercase;
}

.cta-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.15;
  color: var(--color-white);
  letter-spacing: -0.02em;
  max-width: 760px;
}

.cta-subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: #a0a0a0;
}

.cta-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #2a2a2a;
  border: 1px solid #4a4a4a;
  border-radius: var(--r-lg);
  overflow: hidden;
  width: 100%;
  max-width: 580px;
}

.cta-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-white);
}

.cta-input::placeholder { color: #9a9a9a; }

.cta-submit {
  margin: 4px;
  flex-shrink: 0;
}

.cta-note {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #a0a0a0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-secondary);
  border-top: 1px solid #3a3a3a;
  height: 80px;
}

.footer .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: #b3b3b3;
}

.footer-logo .logo-gem {
  width: 22px;
  height: 22px;
  background: var(--color-primary);
  border-radius: var(--r-sm);
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #a0a0a0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--s-24);
}

.footer-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: #a0a0a0;
  transition: color 0.2s ease;
}

.footer-link:hover { color: #c8c8c8; }

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* ── Hero hexagon ─────────────────────────────────── */

.hero-hexagon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-shape {
  width: 460px;
  height: 460px;
  animation: hex-spin 60s linear infinite;
  will-change: transform;
  flex-shrink: 0;
}

.hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62%;
  height: auto;
  pointer-events: none;
}

@keyframes hex-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── General animations ───────────────────────────── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --px: 40px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-title { font-size: 48px; }
  .hero-visual { justify-content: center; }
  .hex-shape { width: 360px; height: 360px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-item:nth-child(3)::before {
    display: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid var(--color-n3);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid var(--color-n3);
  }

  .feature .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature.flip .feature-visual { order: 1; }
  .feature.flip .feature-content { order: 2; }

  .feature-visual { justify-content: flex-start; }
  .feature-title { font-size: 32px; }

  .navbar-nav { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */

@media (max-width: 640px) {
  :root {
    --px: 20px;
    --nav-h: 64px;
  }

  .navbar-logo { font-size: 17px; }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 16px; }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn { width: 100%; justify-content: center; }
  .navbar-cta { width: auto; flex-shrink: 0; }

  .countdown-band { height: auto; padding: 16px 0; }
  .countdown-band .container { flex-direction: column; gap: 16px; align-items: flex-start; }
  .countdown-event-name { font-size: 14px; }
  .countdown-value { font-size: 20px; }
  .countdown-unit { min-width: 50px; padding: 6px 8px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 28px; }

  .feature { padding: 64px 0; }
  .feature-title { font-size: 28px; }
  .feature-desc { font-size: 16px; }

  .hex-shape { width: 280px; height: 280px; }

  .cta-title { font-size: 32px; }
  .cta-form { flex-direction: column; border-radius: var(--r-base); gap: 8px; background: transparent; border: none; }
  .cta-input {
    background: #2a2a2a;
    border: 1px solid #4a4a4a;
    border-radius: var(--r-base);
    padding: 16px;
    width: 100%;
  }
  .cta-submit { margin: 0; width: 100%; }
  .cta-submit .btn { width: 100%; justify-content: center; }

  .footer { height: auto; padding: 24px 0; }
  .footer .container { flex-direction: column; gap: 12px; text-align: center; }
  .footer-copy { font-size: 12px; }
}
