/* ============================================================
   Macgie landing page — design tokens
   Palette + type extracted from Figma (Macgie / node 4294:13535)
   ============================================================ */
:root {
  --cream: #f2efec;      /* primary/50  — light section bg */
  --ink: #070707;        /* primary/700 — dark section bg / display text */
  --ink-900: #17181c;    /* neutral/900 */
  --gray-700: #3a3a3a;
  --gray-500: #262626;
  --gray-400: #6e6c6a;   /* body copy on light */
  --gray-200: #dddbdc;   /* hairline borders */
  --cream-dim: #b9b4ae;  /* body copy on dark */
  --white: #ffffff;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 68px);
  --radius: 12px;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { font-family: var(--font-display); margin: 0; font-weight: 700; }

p { margin: 0; }

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

/* ===== shared button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 1.4px;
  padding: 15px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-500);
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--cream { background: var(--cream); color: var(--ink-900); }
.btn--cream:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--ink:hover { background: transparent; color: var(--ink); }

/* ===== announcement bar ===== */
.topbar {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  padding: 8px 16px;
}
.topbar p { display: inline; }
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font-display);
  letter-spacing: .2px;
}
.topbar__link svg { transition: transform .2s var(--ease); }
.topbar__link:hover svg { transform: translateX(3px); }

/* ===== nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.nav__links { display: none; gap: 4px; }
.nav__link {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .2px;
  color: var(--gray-500);
  padding: 20px 12px;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 16px;
  height: 2px;
  background: var(--gray-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.nav__logo img { height: 25px; width: auto; }
.nav__burger {
  margin-left: auto;
  width: 40px; height: 40px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav__burger span {
  height: 2px;
  background: var(--gray-500);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.nav__links.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 56px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 8px var(--pad) 16px;
  gap: 0;
}
.nav__links.is-open .nav__link { padding: 14px 0; }
.nav__links.is-open .nav__link::after { display: none; }

/* ===== hero ===== */
.hero { position: relative; background: #e7ded6; overflow: hidden; }
.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(24px, 6vw, 56px);
}
.hero__title {
  font-size: clamp(40px, 10.5vw, 96px);
  line-height: .96;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--ink);
  animation: rise .9s var(--ease) both;
}
.hero__scroll {
  margin-top: auto;
  margin-bottom: clamp(16px, 4vw, 40px);
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(242, 239, 236, .6);
  animation: bob 2.4s var(--ease) infinite;
}

/* ===== manifesto / beta band ===== */
.band {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(28px, 5vw, 40px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.band__text {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.4vw, 16px);
  line-height: 1.5;
  max-width: 560px;
}
.band__text strong { font-weight: 700; }

/* ===== section scaffolding ===== */
.section-title {
  font-size: clamp(26px, 4.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 18ch;
  margin: 0 auto;
}
.section-title--light { color: var(--cream); }

/* ===== Section 1 — why ===== */
.why {
  background: var(--cream);
  padding: clamp(56px, 8vw, 110px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.why__grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 56px);
}
.why__cell { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); }
.why__photo {
  width: clamp(120px, 30vw, 170px);
  flex: 0 0 auto;
  object-fit: contain;
}
.why__body h3 {
  font-size: clamp(24px, 4.5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.why__body p {
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.55;
  max-width: 32ch;
}

/* ===== Section 2 — steps (dark) ===== */
.steps {
  background: var(--ink);
  padding: clamp(56px, 8vw, 110px) var(--pad);
}
.steps .section-title { margin-bottom: clamp(40px, 6vw, 72px); }
.steps__row {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 48px);
}
.steps__num {
  display: block;
  color: var(--cream-dim);
  font-size: 13px;
  letter-spacing: .4px;
  margin-bottom: 10px;
}
.steps__head {
  color: var(--cream);
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 24px;
}
.steps__media { display: flex; flex-wrap: wrap; gap: 12px; }
.steps__media--app img {
  width: 84px; height: 84px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.tile {
  background: var(--white);
  border-radius: 14px;
  width: 112px;
  height: 140px;
  display: grid;
  place-items: center;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
  transition: transform .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); }
.tile img { max-height: 100%; width: auto; object-fit: contain; }

/* ===== Section 3 — features ===== */
.features {
  background: var(--cream);
  padding: clamp(56px, 8vw, 110px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.features__grid {
  margin-top: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 56px) clamp(32px, 5vw, 72px);
}
.feature__icon { display: block; margin-bottom: 22px; }
.feature__icon svg {
  width: 52px; height: 52px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  font-size: clamp(26px, 4.6vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 11ch;
}
.feature p {
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.55;
  max-width: 34ch;
}

/* ===== Section 4 — sample wardrobe (dark) ===== */
.sample {
  position: relative;
  background: var(--ink);
  padding: clamp(56px, 9vw, 120px) var(--pad);
  overflow: hidden;
}
.sample__bleed {
  position: absolute;
  right: -4%;
  bottom: 0;
  height: 86%;
  width: auto;
  opacity: .12;
  filter: grayscale(1);
  pointer-events: none;
  mask-image: linear-gradient(to right, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 60%);
}
.sample__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.sample__eyebrow {
  display: block;
  color: var(--cream-dim);
  font-size: 14px;
  letter-spacing: .4px;
  margin-bottom: 28px;
}
.sample__lead {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: clamp(22px, 3.6vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: 28px;
}
.sample__lead:last-child { margin-bottom: 0; }

/* ===== Section 5 — decisions ===== */
.decisions {
  background: var(--cream);
  padding: clamp(56px, 8vw, 110px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}
.decisions__stage {
  position: relative;
  margin: clamp(36px, 5vw, 64px) auto 0;
  max-width: 980px;
}
.decisions__img { width: 100%; border-radius: 18px; }
.bubble {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(12px, 1.5vw, 16px);
  line-height: 1.25;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  max-width: 15rem;
}
/* desktop: scatter the bubbles over the collage */
.decisions__stage .bubble { position: absolute; }
.bubble--1 { top: 4%;  left: -2%;  transform: rotate(-5deg); }
.bubble--2 { top: -3%; left: 40%;  transform: rotate(3deg); }
.bubble--3 { top: 8%;  right: -3%; transform: rotate(6deg); }
.bubble--4 { bottom: 8%; left: 30%; transform: rotate(-4deg); }
.bubble--5 { bottom: 16%; right: 6%; transform: rotate(4deg); }

/* ===== footer ===== */
.footer { background: var(--cream); }
.footer__cta {
  border-top: 1px solid var(--gray-200);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.01em;
}
.footer__bar {
  border-top: 1px solid var(--gray-200);
  padding: 22px var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__bar img { height: 22px; width: auto; opacity: .8; }
.footer__bar p { color: var(--gray-400); font-size: 12px; }

/* ===== scroll reveal =====
   Content is visible by default (no-JS / reduced-motion safe).
   Only hidden once JS adds `.reveal-ready` to <html>. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================
   Tablet
   ============================================================ */
@media (min-width: 720px) {
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .why__cell { flex-direction: column; align-items: flex-start; text-align: left; }
  .why__photo { width: clamp(120px, 16vw, 150px); }
  .steps__row { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bar { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   Desktop
   ============================================================ */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .steps__row { grid-template-columns: repeat(4, 1fr); }
  .features__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Accessibility — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal, .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}
