/* Droplet marketing site.
   Palette, type and motion follow DESIGN.md: clear glass on white, Space Grotesk display,
   Manrope body, status never carried by colour alone, and a still frame under Reduced Motion. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --soft: #f6f6f6;
  --charcoal: #191919;
  --graphite: #646464;
  --action: #242424;
  --edge: #778187;
  --silver: #acb7bb;
  --emerald: #147357;
  --hairline: rgba(119, 129, 135, 0.18);
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --page: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--charcoal); text-decoration: none; }
a:focus-visible, .store:focus-visible, #sphere:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  z-index: 10;
}
.skip:focus { left: var(--gutter); }

/* ---------- glass recipe ---------- */

.glass,
.satellite,
.store {
  background:
    radial-gradient(58% 44% at 31% 25%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 72%),
    radial-gradient(70% 60% at 74% 82%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 70%),
    radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0.5), rgba(172, 183, 187, 0.12) 78%, rgba(119, 129, 135, 0.2) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(119, 129, 135, 0.2),
    inset 0 -8px 16px -14px rgba(119, 129, 135, 0.5),
    0 20px 40px -34px rgba(25, 25, 25, 0.4);
  -webkit-backdrop-filter: blur(0.6px) saturate(1.05);
  backdrop-filter: blur(0.6px) saturate(1.05);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--hairline); }

.wordmark {
  font-size: 26px;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}

.site-nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; color: var(--graphite); }
.site-nav a { color: var(--graphite); transition: color 180ms ease; }
.site-nav a:hover { color: var(--charcoal); }
@media (max-width: 640px) { .site-nav a:nth-child(2) { display: none; } }

/* ---------- hero ---------- */

.hero {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding: clamp(40px, 7vw, 92px) var(--gutter) clamp(56px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.052em;
  max-width: 12ch;
}

.lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--graphite);
}

.cta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #353535, #141414);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 30px -22px rgba(20, 20, 20, 0.9);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 22px 34px -22px rgba(20, 20, 20, 0.95); }
.primary:active { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.access { margin-top: 34px; max-width: 460px; }

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 24px 44px -40px rgba(25, 25, 25, 0.9);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field:focus-within {
  border-color: rgba(25, 25, 25, 0.45);
  box-shadow: 0 24px 44px -38px rgba(25, 25, 25, 0.95);
}

.field input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--charcoal);
}
.field input::placeholder { color: var(--silver); }
.field input:focus { outline: none; }

.field .primary {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.access.is-busy .field { opacity: 0.7; }
.access.is-done .hint { display: none; }
.access.is-invalid .field { border-color: rgba(179, 75, 61, 0.7); }

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hint {
  margin-top: 12px;
  padding-left: 4px;
  font-size: 14px;
  color: var(--graphite);
}

.form-status {
  margin-top: 8px;
  padding-left: 4px;
  font-size: 14px;
  color: var(--charcoal);
  min-height: 0;
}
.form-status:empty { margin-top: 0; }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }
.form-status[data-tone="ok"] { color: var(--emerald); }
.form-status[data-tone="warn"] { color: #b34b3d; }

/* ---------- glass stage ---------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(340px, 44vw, 560px);
  touch-action: pan-y;
}

.sphere {
  position: relative;
  width: clamp(210px, 25vw, 330px);
  aspect-ratio: 1;
  background: url("/assets/img/sphere.webp") center / contain no-repeat;
  cursor: grab;
  will-change: transform;
}
.sphere.is-held { cursor: grabbing; }

/* The transmission sits inside the painted rim so the backdrop is bent, never boxed. */
.lens {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  -webkit-backdrop-filter: blur(1px) saturate(1.06) brightness(1.02);
  backdrop-filter: blur(1px) saturate(1.06) brightness(1.02);
  pointer-events: none;
}

.satellite {
  position: absolute;
  box-shadow:
    inset 0 0 0 1px rgba(119, 129, 135, 0.32),
    inset 0 -9px 14px -12px rgba(119, 129, 135, 0.6),
    0 16px 26px -22px rgba(25, 25, 25, 0.45);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  will-change: transform;
}
.satellite svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #565656;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-hint {
  position: absolute;
  bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

/* ---------- bands ---------- */

.band {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 132px) var(--gutter);
}
.band--quiet {
  width: 100%;
  max-width: none;
  background: var(--soft);
  border-block: 1px solid var(--hairline);
}
.band--quiet > * {
  width: min(var(--page), 100%);
  margin-inline: auto;
}

.band-head { max-width: 62ch; }
.band-head h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.section-lede {
  margin-top: 18px;
  color: var(--graphite);
  max-width: 54ch;
}

/* steps + phone */

.how-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 20px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.steps .num { grid-row: span 2; }
.steps h3, .steps p { grid-column: 2; }
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  font-family: var(--display);
  font-size: 17px;
  color: var(--charcoal);
  background: var(--white);
}
.steps h3 { font-size: 21px; letter-spacing: -0.03em; }
.steps p { margin-top: 8px; color: var(--graphite); font-size: 16px; }

.phone {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 14px;
}
.phone img {
  width: min(300px, 78vw);
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--hairline);
  box-shadow: 0 60px 90px -70px rgba(25, 25, 25, 0.75), 0 8px 24px -20px rgba(25, 25, 25, 0.5);
}
.phone figcaption {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* features */

.features {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  overflow: hidden;
}
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.features li {
  background: var(--white);
  padding: clamp(24px, 3vw, 36px);
}
.features h3 { font-size: 19px; letter-spacing: -0.03em; }
.features p { margin-top: 10px; color: var(--graphite); font-size: 16px; }

/* gallery */

.gallery {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  gap: clamp(22px, 3vw, 36px);
  justify-items: center;
}
.gallery .phone img { width: 100%; max-width: 260px; }

/* plans */

.plans {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.plan {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  padding: clamp(26px, 3.4vw, 40px);
}
.plan--pro { border-color: rgba(25, 25, 25, 0.55); }
.plan h3 { font-size: 22px; }
.plan-line { margin-top: 12px; font-size: 19px; color: var(--charcoal); }
.plan-line strong { font-weight: 700; }
.plan ul { margin-top: 20px; display: grid; gap: 10px; }
.plan li {
  position: relative;
  padding-left: 24px;
  color: var(--graphite);
  font-size: 16px;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--silver);
}
.plan--pro li::before { border-color: var(--emerald); }

.fineprint {
  margin-top: 26px;
  font-size: 14px;
  color: var(--graphite);
  max-width: 68ch;
}

/* stats */

.band--build { text-align: left; }
.stats {
  margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 4vw, 56px);
}
.stats > div { border-top: 1px solid var(--hairline); padding-top: 22px; }
.stats dt {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite);
}
.stats dd {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.6vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1;
}
.stats p { margin-top: 10px; color: var(--graphite); font-size: 15px; }

/* closer */

.closer {
  width: min(var(--page), 100%);
  margin-inline: auto;
  padding: clamp(72px, 10vw, 148px) var(--gutter);
  text-align: center;
  display: grid;
  justify-items: center;
}
.closer h2 {
  font-size: clamp(34px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  max-width: 16ch;
}
.closer .access { margin-inline: auto; width: min(460px, 100%); }
.closer .hint, .closer .form-status { text-align: center; padding-left: 0; }
.closer .fineprint { margin-top: 28px; text-align: center; }

/* footer */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(40px, 5vw, 64px) var(--gutter) 56px;
  display: grid;
  gap: 28px;
}
.site-footer > * { width: min(var(--page), 100%); margin-inline: auto; }
.foot-brand .wordmark { font-size: 24px; display: block; }
.foot-brand p { margin-top: 8px; color: var(--graphite); font-size: 15px; max-width: 46ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }
.site-footer nav a { color: var(--graphite); }
.site-footer nav a:hover { color: var(--charcoal); }
.copyright { font-size: 13px; color: var(--silver); }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; gap: 8px; }
  .stage { min-height: 300px; }
  .access { margin-top: 26px; }
  h1 { max-width: 16ch; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .phone { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .primary { transition: none; }
  .stage-hint { display: none; }
  .sphere { cursor: default; }
}
