/* ============================================================
   HOME PAGE — home.css
   Depends on: global.css, header.css
   ============================================================ */

body { background: var(--bg-dark); }

/* ── Shared layout ─────────────────────────────────────────── */
.hm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section headers ───────────────────────────────────────── */
.hm-section-header { margin-bottom: 48px; }
.hm-center { text-align: center; }

.hm-section-label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hm-center .hm-section-label-row { justify-content: center; }

.hm-label-line {
  width: 24px;
  height: 1px;
  background: var(--brand-orange);
  opacity: 0.65;
  flex-shrink: 0;
}
.hm-label-line-dim {
  background: rgba(245,240,232,0.25);
  opacity: 1;
}
.hm-section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
}
.hm-label-dim { color: rgba(245,240,232,0.35); }

.hm-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.hm-light h2 { color: var(--text-inverse); }

/* ============================================================
   SECTION 1 — HERO (dark)
   ============================================================ */
.hm-hero {
  background: linear-gradient(155deg, #021C10 0%, #0A2818 50%, #0D3020 100%);
  padding: 80px 32px 100px;
  position: relative;
  overflow: hidden;
}
.hm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 75%, rgba(0,88,89,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 10%, rgba(251,122,2,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 55% 45%, rgba(53,189,143,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hm-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

/* Eyebrow */
.hm-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hm-eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--brand-orange);
  opacity: 0.7;
  flex-shrink: 0;
}
.hm-hero-eyebrow span {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

/* H1 */
.hm-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
  margin-bottom: 20px;
}
.hm-hero-content h1 em {
  font-style: italic;
  color: var(--brand-mint);
}

.hm-hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(245,240,232,0.58);
  max-width: 520px;
  margin-bottom: 14px;
}
.hm-hero-credential {
  font-family: var(--font-ui);
  font-size: 12px;
  color: rgba(245,240,232,0.30);
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}

/* CTAs */
.hm-hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--soft-white);
  background: var(--brand-teal);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
}
.hm-btn-primary:hover {
  background: #006b6c;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,88,89,0.38);
}
.hm-link-ghost {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(245,240,232,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.hm-link-ghost:hover { color: rgba(245,240,232,0.80); }

/* Hero image */
.hm-hero-visual { position: relative; }
.hm-hero-img-frame {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow:
    0 0 0 1px rgba(53,189,143,0.10),
    0 40px 80px rgba(0,0,0,0.50);
}
.hm-hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hm-hero-badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: rgba(2,28,16,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(53,189,143,0.16);
  border-radius: 10px;
  padding: 14px 18px;
  min-width: 200px;
}
.hm-hero-badge-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-mint);
  margin-bottom: 4px;
}
.hm-hero-badge-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-inverse);
}
.hm-hero-badge-creds {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(245,240,232,0.45);
  margin-top: 2px;
}

/* Scroll hint */
.hm-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(245,240,232,0.22);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: hmPulse 2.5s ease-in-out infinite;
}
.hm-scroll-hint svg { width: 16px; height: 16px; }

/* ============================================================
   SECTION 2 — STATS (cream)
   ============================================================ */
.hm-stats {
  background: var(--warm-cream);
  border-top: 1px solid rgba(0,88,89,0.08);
  border-bottom: 1px solid rgba(0,88,89,0.08);
  padding: 56px 32px;
}
.hm-stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 52px;
  flex: 1;
}
.hm-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(0,88,89,0.14);
  flex-shrink: 0;
}
.hm-stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hm-stat-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 110px;
}

/* ============================================================
   SECTION 3 — REFRAME (white)
   ============================================================ */
.hm-reframe {
  background: var(--soft-white);
  padding: 80px 32px;
}
.hm-reframe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hm-reframe-card {
  background: white;
  border: 1px solid var(--border, rgba(0,88,89,0.10));
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.hm-reframe-card:hover {
  box-shadow: 0 10px 36px rgba(0,88,89,0.09);
  transform: translateY(-2px);
  border-color: rgba(0,88,89,0.18);
}
/* Middle card gets orange accent */
.hm-reframe-card--accent {
  border-top: 3px solid var(--brand-orange);
  background: linear-gradient(170deg, rgba(251,122,2,0.03) 0%, white 40%);
}
.hm-reframe-card--accent .hm-reframe-num { color: var(--brand-orange); }

.hm-reframe-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  color: rgba(0,88,89,0.12);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hm-reframe-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}
.hm-reframe-card p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-secondary);
}

/* ============================================================
   SECTION 4 — TILES (dark)
   ============================================================ */
.hm-tiles {
  background: linear-gradient(165deg, #021C10 0%, #0A2818 55%, #0F3020 100%);
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}
.hm-tiles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 80%, rgba(0,88,89,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.hm-tiles .hm-container { position: relative; z-index: 1; }

.hm-tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Base tile */
.hm-tile {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.hm-tile::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.hm-tile:hover { transform: translateY(-3px); }
.hm-tile:hover::after { transform: scaleX(1); }

/* Tile color variants */
.hm-tile--mint {
  background: rgba(53,189,143,0.08);
  border-color: rgba(53,189,143,0.16);
}
.hm-tile--mint::after { background: var(--brand-mint); }
.hm-tile--mint:hover {
  background: rgba(53,189,143,0.13);
  border-color: rgba(53,189,143,0.30);
  box-shadow: 0 12px 36px rgba(53,189,143,0.10);
}

.hm-tile--orange {
  background: rgba(251,122,2,0.07);
  border-color: rgba(251,122,2,0.14);
}
.hm-tile--orange::after { background: var(--brand-orange); }
.hm-tile--orange:hover {
  background: rgba(251,122,2,0.11);
  border-color: rgba(251,122,2,0.26);
  box-shadow: 0 12px 36px rgba(251,122,2,0.10);
}

.hm-tile--teal {
  background: rgba(0,88,89,0.18);
  border-color: rgba(0,88,89,0.30);
}
.hm-tile--teal::after { background: var(--brand-teal); }
.hm-tile--teal:hover {
  background: rgba(0,88,89,0.25);
  border-color: rgba(0,88,89,0.45);
  box-shadow: 0 12px 36px rgba(0,88,89,0.18);
}

.hm-tile--cream {
  background: rgba(245,240,232,0.06);
  border-color: rgba(245,240,232,0.10);
}
.hm-tile--cream::after { background: rgba(245,240,232,0.50); }
.hm-tile--cream:hover {
  background: rgba(245,240,232,0.09);
  border-color: rgba(245,240,232,0.20);
  box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}

/* Tile icons */
.hm-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.hm-tile-icon svg { width: 21px; height: 21px; }
.hm-tile-icon--mint  { background: rgba(53,189,143,0.15); color: var(--brand-mint); }
.hm-tile-icon--orange{ background: rgba(251,122,2,0.14);  color: var(--brand-orange); }
.hm-tile-icon--teal  { background: rgba(0,88,89,0.28);    color: #4FC5B0; }
.hm-tile-icon--cream { background: rgba(245,240,232,0.10); color: rgba(245,240,232,0.55); }

/* Tile text */
.hm-tile-label {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.30);
  margin-bottom: 8px;
}
.hm-tile h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-inverse);
  line-height: 1.25;
  margin-bottom: 10px;
}
.hm-tile p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.68;
  color: rgba(245,240,232,0.45);
  flex: 1;
  margin-bottom: 20px;
}
.hm-tile-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: rgba(245,240,232,0.35);
  transition: color 0.2s;
  align-self: flex-start;
}
.hm-tile--mint:hover .hm-tile-cta   { color: var(--brand-mint); }
.hm-tile--orange:hover .hm-tile-cta { color: var(--brand-orange); }
.hm-tile--teal:hover .hm-tile-cta   { color: #4FC5B0; }
.hm-tile--cream:hover .hm-tile-cta  { color: rgba(245,240,232,0.75); }

/* ============================================================
   SECTION 5 — NEWSLETTER (cream)
   ============================================================ */
.hm-newsletter {
  background: var(--warm-cream);
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid rgba(0,88,89,0.08);
}
.hm-newsletter-inner {
  max-width: 480px;
  margin: 0 auto;
}
.hm-nl-divider {
  width: 40px;
  height: 1px;
  background: var(--brand-teal);
  opacity: 0.25;
  margin: 0 auto 20px;
}
.hm-nl-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 12px;
}
.hm-newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hm-newsletter p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 28px;
  font-weight: 300;
}
.hm-nl-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 12px;
}
.hm-nl-form input {
  flex: 1;
  padding: 12px 16px;
  background: white;
  border: 1px solid rgba(0,88,89,0.18);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}
.hm-nl-form input::placeholder { color: var(--text-muted); }
.hm-nl-form input:focus { border-color: var(--brand-teal); }
.hm-nl-form button {
  padding: 12px 20px;
  background: var(--brand-teal);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.hm-nl-form button:hover { background: #006b6c; }
.hm-nl-note {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.hm-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hm-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delay for grid items */
.hm-reframe-card:nth-child(2) { transition-delay: 0.1s; }
.hm-reframe-card:nth-child(3) { transition-delay: 0.2s; }
.hm-tile:nth-child(2) { transition-delay: 0.08s; }
.hm-tile:nth-child(3) { transition-delay: 0.16s; }
.hm-tile:nth-child(4) { transition-delay: 0.24s; }
.hm-stat:nth-child(3) { transition-delay: 0.08s; }
.hm-stat:nth-child(5) { transition-delay: 0.16s; }
.hm-stat:nth-child(7) { transition-delay: 0.24s; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes hmPulse {
  0%, 100% { opacity: 0.22; }
  50%       { opacity: 0.50; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hm-hero-inner { grid-template-columns: 1fr 360px; gap: 60px; }
  .hm-tiles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hm-reframe-grid { grid-template-columns: 1fr; }
  .hm-stats-grid { flex-wrap: wrap; gap: 0; }
  .hm-stat { flex: 0 0 50%; padding: 20px; }
  .hm-stat:nth-child(2) { display: none; } /* hide dividers */
  .hm-stat:nth-child(4) { display: none; }
  .hm-stat:nth-child(6) { display: none; }
  .hm-stat-divider { display: none; }
}

@media (max-width: 768px) {
  .hm-hero { padding: 60px 20px 80px; }
  .hm-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hm-hero-content { text-align: center; }
  .hm-hero-eyebrow { justify-content: center; }
  .hm-hero-sub { margin: 0 auto 14px; }
  .hm-hero-ctas { justify-content: center; }
  .hm-hero-visual { max-width: 340px; margin: 0 auto; }
  .hm-hero-badge { left: 0; bottom: -12px; }

  .hm-reframe { padding: 60px 20px; }
  .hm-stats { padding: 40px 20px; }
  .hm-tiles { padding: 60px 20px; }
  .hm-tiles-grid { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .hm-stat { flex: 0 0 100%; }
  .hm-nl-form { flex-direction: column; }
}