/* Mia landing page — full-bleed image is the page; everything overlaid.
   Adaline-style: image fills the viewport edge-to-edge, content sits on
   top against a cream wash that ensures text legibility. */

:root {
  --ink: #1c2820;
  --ink-soft: #3d4a40;
  --muted: #7a8378;
  --cream: #f5f1ea;
  /* Button — white pill with dark text, pops against the image without
     fighting the green tones. */
  --btn-bg: #ffffff;
  --btn-bg-hover: #f5f1ea;
  --btn-text: #1c2820;
  --border: rgba(28, 40, 32, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  min-height: 100vh;
}

/* The whole page is the image with a smooth left-to-right darkening
   gradient layered on top. No rectangular scrim — the gradient does all
   the legibility work and reads as "premium product," not "PowerPoint
   shape on a photo." */
body {
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 42%, rgba(0,0,0,0.08) 100%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #0a0e0a;
}

/* Page wrapper — full viewport, content distributed top/middle/bottom. */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Topbar — just the Mia wordmark, left-aligned to the same vertical
   rail as the headline below (shared padding-left + max-width). -------- */
.topbar {
  display: flex;
  align-items: center;
  padding: 36px 56px 0;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
}
.brand-name {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  text-decoration: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 4px 18px -6px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 20px 44px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  gap: 10px;
}
.btn-lg .btn-label { line-height: 1; }
.btn-lg .btn-arrow {
  font-size: 22px;
  line-height: 1;
  /* Pull the arrow up to optically center with the smaller text. */
  margin-top: -2px;
  transition: transform 0.15s ease;
}
.btn-lg:hover .btn-arrow { transform: translateX(3px); }

/* Hero — left-aligned, stacked, anchored to the same left rail as the
   topbar. Content sits a touch below center for a calmer, more "private
   portal" feel. The body-level gradient handles legibility, so no
   per-section scrim is needed. ----------------------------------------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 130px 56px 8vh;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(48px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  color: #ffffff;
  margin: 8px 0 44px;
  max-width: 820px;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.55),
    0 1px 4px rgba(0, 0, 0, 0.4);
}
.hero-cta { margin-top: 8px; }

/* Footer — same horizontal rails as topbar/hero so it reads as part of
   the same composition, not floating separately ----------------------- */
footer {
  padding: 0 0 22px;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 500;
  flex-wrap: wrap;
  gap: 12px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.footer-inner .muted { color: rgba(255, 255, 255, 0.7); font-weight: 400; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  .topbar { padding: 20px 24px; }
  .brand-name { font-size: 34px; }
  .hero { padding: 40px 24px 60px; }
  .hero-title { font-size: clamp(34px, 9vw, 56px); }
  .hero::before {
    background: radial-gradient(
      ellipse 700px 500px at 30% 50%,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.25) 50%,
      transparent 80%
    );
  }
  .footer-inner { padding: 0 24px; font-size: 14px; }
  body { background-attachment: scroll; }   /* fixed backgrounds break on iOS */
}
