/* ============================================================
   Outfit.so landing page
   Monochrome, center-aligned, parallax between sections.
   ============================================================ */

:root {
  /* Black & white only */
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #3d3d3d;
  --ink-faint: #6b6b6b;

  --line: #e6e6e6;
  --line-strong: #cfcfcf;
  --surface: #ffffff;
  --panel: #0a0a0a;

  /* Grayscale swatches for the product visual */
  --g1: #ededed;
  --g2: #dcdcdc;
  --g3: #cbcbcb;
  --g4: #bcbcbc;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.07), 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10), 0 30px 70px rgba(0, 0, 0, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --container: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

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

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

/* Everything centered by default */
.hero__inner,
.section__head,
.cards,
.steps,
.vision__inner,
.cta__inner {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 15px; }

/* Black button, white text */
.btn--primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Outlined black button */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* White button for dark sections */
.btn--invert {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn--invert:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

.btn__arrow { transition: transform 0.2s var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark { color: var(--ink); display: inline-flex; }
.brand__dot { color: var(--ink-faint); font-weight: 600; }

/* ---------- Shared section bits ---------- */
.section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.section--dark { background: var(--panel); color: #fff; }
.section__head {
  max-width: 680px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 2;
}
.section__title {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.eyebrow--invert { color: rgba(255, 255, 255, 0.6); }

/* ---------- Parallax decorative words ---------- */
.ghost-word,
.band-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  will-change: transform;
}
.ghost-word {
  font-size: clamp(140px, 30vw, 420px);
  color: rgba(10, 10, 10, 0.035);
}
.ghost-word--sm { font-size: clamp(120px, 24vw, 320px); }
.parallax-band {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
}
.band-word {
  position: static;
  transform: none;
  font-size: clamp(160px, 34vw, 460px);
  color: rgba(10, 10, 10, 0.04);
}
.band-word--light { color: rgba(255, 255, 255, 0.05); }
.hero__decor,
.vision__decor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin-bottom: 26px;
  max-width: 16ch;
}
.hero__lede {
  font-size: clamp(19px, 2.4vw, 23px);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: 10px;
}
.hero__sub {
  font-size: 16px;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

/* ---------- Hero product visual ---------- */
.hero__visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.app-card {
  width: 100%;
  max-width: 420px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  will-change: transform;
}
.app-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.app-card__eyebrow { font-size: 12.5px; color: var(--ink-faint); font-weight: 500; margin-bottom: 4px; }
.app-card__title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
}
.outfit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.swatch {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.swatch span {
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(10, 10, 10, 0.62);
  background: rgba(255, 255, 255, 0.78);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.swatch--a { background: linear-gradient(145deg, #f2f2f2, var(--g1)); }
.swatch--b { background: linear-gradient(145deg, #e4e4e4, var(--g2)); }
.swatch--c { background: linear-gradient(145deg, #d6d6d6, var(--g3)); }
.swatch--d { background: linear-gradient(145deg, #e9e9e9, var(--g2)); }

.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 10px; }
.stat__num { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-size: 12.5px; color: var(--ink-faint); line-height: 1.25; }
.mini-btn {
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  will-change: transform;
}
.float-chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.08);
}
.float-chip--1 { top: -22px; left: max(-10px, calc(50% - 352px)); }
.float-chip--2 {
  bottom: -22px; right: max(-10px, calc(50% - 352px));
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ---------- Benefit cards ---------- */
.cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  margin-bottom: 22px;
}
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card__body { font-size: 15.5px; color: var(--ink-soft); max-width: 30ch; }

/* ---------- Steps (dark section) ---------- */
.steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
}
.step__num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
}
.step__title { font-size: 18.5px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; color: #fff; }
.step__body { font-size: 15.5px; color: rgba(255, 255, 255, 0.66); max-width: 30ch; }

/* ---------- Vision ---------- */
.vision { padding: 140px 0; }
.vision__inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin: 0 auto;
}
.vision__title {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 26px;
}
.vision__lead { font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.vision__body { font-size: 19px; color: var(--ink-soft); max-width: 58ch; margin: 0 auto; }

/* ---------- Closing CTA ---------- */
.cta { padding: 130px 0; }
.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.cta__title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 18ch;
  margin: 0 auto 16px;
}
.cta__sub { font-size: 18px; color: rgba(255, 255, 255, 0.7); max-width: 46ch; margin: 0 auto 36px; }
.waitlist {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.waitlist__input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  padding: 16px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  background: #fff;
  outline: none;
  transition: box-shadow 0.18s var(--ease);
}
.waitlist__input::placeholder { color: var(--ink-faint); }
.waitlist__input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.waitlist__note { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); margin-top: 18px; }
.waitlist__note.is-success { color: #fff; font-weight: 600; }
.waitlist__note.is-error { color: #fff; font-weight: 600; }
.waitlist__input.is-invalid { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--bg); }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer__tagline { color: var(--ink-faint); font-size: 15px; }
.footer__copy { color: var(--ink-faint); font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .cards, .steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .section { padding: 92px 0; }
  .vision, .cta { padding: 100px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 88px; }
  .hero__cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hero__cta .btn { width: 100%; }
  .float-chip--1 { left: -6px; top: -14px; }
  .float-chip--2 { right: -6px; bottom: -14px; }
  .waitlist { flex-direction: column; }
  .waitlist .btn { width: 100%; }
}

/* ---------- Accessibility: honor reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  [data-parallax] { transform: none !important; }
  * { transition-duration: 0.001ms !important; }
}
