/* Millpond website — tokens from Millpond/DesignSystem/Theme.swift */

:root {
  --bg: #0A1220;
  --bg-deep: #070B14;
  --surface: #111A2B;
  --surface-raised: #151F32;
  --ink: #F4EFE7;
  --muted: #8D96AA;
  --faint: #78808F;
  --amber: #E4A85C;
  --amber-bright: #FFD9A0;
  --amber-ink: #241605;
  --teal: #7FB5A8;
  --hairline: rgba(244, 239, 231, 0.08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

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

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-bright); }

::selection { background: rgba(228, 168, 92, 0.3); }

/* ---------- atmosphere ---------- */

.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1200px;
  pointer-events: none;
  background:
    radial-gradient(720px 460px at 74% 300px, rgba(228, 168, 92, 0.1), transparent 68%),
    radial-gradient(900px 620px at 18% 140px, rgba(127, 181, 168, 0.05), transparent 70%),
    linear-gradient(180deg, #0B1424 0%, var(--bg) 55%);
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent);
}

/* ---------- nav ---------- */

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.wordmark { display: block; }
.wordmark img { display: block; height: 36px; width: auto; }

.nav-right { display: flex; align-items: center; gap: 26px; }

.nav-link { color: var(--muted); font-size: 16px; }
.nav-link:hover { color: var(--ink); }

.pill {
  display: inline-block;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
  font-size: 15.5px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.15s;
}
.pill:hover { background: var(--amber-bright); color: var(--amber-ink); }

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

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 6.2fr) minmax(0, 4.8fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 40px;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(44px, 5.4vw, 68px);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--amber);
}

.hero .sub {
  margin: 24px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
}

.hero-cta { display: flex; align-items: center; gap: 22px; margin-top: 36px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background: #05080E;
  color: var(--ink);
  border: 1.5px solid rgba(244, 239, 231, 0.28);
  border-radius: 13px;
  padding: 10px 22px 11px 18px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.store-badge:hover {
  color: var(--ink);
  transform: translateY(-1px);
  border-color: rgba(244, 239, 231, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-badge-text small { font-size: 12px; font-weight: 400; }
.store-badge-text strong { font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }

.hero .note { margin: 18px 0 0; font-size: 15px; color: var(--faint); }

/* phone + floating cards */

.hero-visual { position: relative; display: flex; justify-content: center; padding: 30px 0 30px; }

.phone-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(560px, 96vw); height: min(560px, 96vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(228, 168, 92, 0.14), rgba(228, 168, 92, 0.04) 55%, transparent 72%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 292px;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2A3040 0%, #10141E 30%, #0B0E16 100%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 4px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(244, 239, 231, 0.14);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 37px;
}

.float-card {
  position: absolute;
  z-index: 2;
  background: linear-gradient(180deg, rgba(24, 33, 52, 0.96), rgba(17, 26, 43, 0.96));
  border: 1px solid rgba(244, 239, 231, 0.09);
  border-radius: 18px;
  padding: 15px 19px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.float-match { top: 12%; left: -4%; }
.float-impact { bottom: 10%; right: -6%; }

.float-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.float-value { font-family: var(--mono); font-size: 21px; color: var(--ink); margin-top: 5px; letter-spacing: 0.02em; }
.float-value .arrow { color: var(--teal); }
.float-sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.float-spark { display: block; margin-top: 9px; }

/* ---------- gauge band ---------- */

.gauge-band {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 84px 0 8px;
}

.gauge-band h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 540;
  line-height: 1.15;
}

.gauge-band .lede {
  margin: 0;
  color: var(--muted);
  font-size: 18.5px;
  max-width: 520px;
}

.gauge-fig { position: relative; margin-top: 10px; line-height: 0; }
.gauge-fig svg { max-width: 100%; height: auto; }

.gauge-readout {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.3;
}
.gauge-readout .hz { font-family: var(--mono); font-size: 28px; letter-spacing: 0.04em; }
.gauge-readout .cap { font-size: 15px; color: var(--faint); }

/* ---------- bento ---------- */

.bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 72px 0 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid rgba(244, 239, 231, 0.07);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.card-shot { position: relative; height: 250px; overflow: hidden; }
.card-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.card-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--surface-raised) 100%);
}
.card-shot.fade-mid::after { background: linear-gradient(180deg, transparent 40%, var(--surface-raised) 96%); }

.card-gauge {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 250px;
  padding: 26px 20px 0;
  background: radial-gradient(360px 220px at 50% 105%, rgba(228, 168, 92, 0.12), transparent 70%);
}
.card-gauge svg { width: 100%; max-width: 320px; height: auto; }

.card-body { padding: 24px 28px 30px; }
.card-body h3 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 540;
}
.card-body p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }

/* ---------- honesty ---------- */

.honesty {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 0 110px;
}
.honesty h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 540;
  line-height: 1.15;
}
.honesty p {
  margin: 20px auto 0;
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 540px;
}
.honesty p strong { color: var(--ink); font-weight: 500; }

/* ---------- closing cta ---------- */

.closing {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  border: 1px solid rgba(244, 239, 231, 0.08);
  background:
    radial-gradient(560px 300px at 50% -80px, rgba(228, 168, 92, 0.14), transparent 70%),
    linear-gradient(180deg, #16202F, #0E1626);
  padding: 74px 32px 70px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.closing::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 217, 160, 0.5), transparent);
}
.closing h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.8vw, 44px);
  font-weight: 540;
}
.closing p { margin: 14px auto 0; color: var(--muted); font-size: 18.5px; max-width: 440px; }
.closing .store-badge { margin-top: 34px; }

/* ---------- footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 96px;
  border-top: 1px solid var(--hairline);
  padding: 44px 0 52px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; font-size: 15.5px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-small { margin-top: 22px; font-size: 13.5px; color: var(--faint); }
.footer-small .mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- inner pages (legal, contact) ---------- */

.page { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 48px 28px 90px; }
.page h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 44px); font-weight: 550; line-height: 1.12; margin: 18px 0 8px; }
.page .meta { color: var(--faint); font-size: 14.5px; font-family: var(--mono); }
.page h2 { font-family: var(--serif); font-size: 24px; font-weight: 540; margin: 40px 0 10px; }
.page p, .page li { color: var(--muted); font-size: 17px; }
.page li { margin-bottom: 10px; }
.page strong { color: var(--ink); font-weight: 500; }

/* contact form */

.form { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; color: var(--ink); }
.form input, .form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(244, 239, 231, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: rgba(228, 168, 92, 0.6); }
.form textarea { min-height: 150px; resize: vertical; }
.form button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  background: var(--amber);
  color: var(--amber-ink);
  border: none;
  border-radius: 999px;
  padding: 13px 34px;
  transition: background 0.15s;
}
.form button:hover { background: var(--amber-bright); }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 44px; gap: 26px; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { padding-top: 44px; }
  .float-match { left: 2%; }
  .float-impact { right: 2%; }
  .bento { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .nav-link { display: none; }
  .phone { width: 252px; }
  .float-card { padding: 12px 15px; }
  .float-value { font-size: 17px; }
  .float-match { left: -2%; }
  .float-impact { right: -2%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
