/* ==========================================================================
   Datemax — date-max.app
   Dark luxury: jet black canvas, warm gold accent.
   Every colour below comes from the brand tokens. Nothing invents a hue.
   ========================================================================== */

/* --- Space Grotesk, self-hosted variable font (no third-party requests) --- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens -------------------------------------------------------------- */
:root {
  --canvas: #0A0A0B;
  --surface: #17161A;
  --raised: #221F26;
  --hairline: #2A2830;
  --ink: #FFFFFF;
  --body-text: #CDCDD2;
  --muted: #86868D;
  --gold: #C9A45C;
  --gold-dark: #8A7445;
  --danger: #C4644F;

  --radius: 20px;
  --shell: 1140px;
  --prose: 720px;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}

/* --- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--canvas); }

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

/* The one small-caps label style, used everywhere. */
.label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}
.btn:hover { text-decoration: none; }

/* Gold buttons always carry black text. */
.btn--gold { background: var(--gold); color: #0A0A0B; }
.btn--gold:hover { background: #D8B573; }
.btn--gold:active { transform: translateY(1px); }

/* --- Nav ----------------------------------------------------------------- */
.nav { padding: 24px 0; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }

.nav__link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
}

/* --- Hero ---------------------------------------------------------------- */
/* The photo is a band, not a backdrop. Type never sits on the subject: the
   image dissolves into the canvas at its bottom edge and the hero copy lives
   on the black below it. That is the brief's photo treatment, and it also
   means legibility never depends on where the subject happens to land. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: relative;
  height: clamp(320px, 46vh, 500px);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 18%;
}

/* The only gradient in the design: it exists solely to marry photo to canvas. */
.hero__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 68%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0) 0%,
    rgba(10, 10, 11, 0.45) 52%,
    rgba(10, 10, 11, 0.88) 78%,
    var(--canvas) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: clamp(32px, 5vh, 56px);
  padding-bottom: clamp(52px, 8vh, 92px);
}

.hero__copy { max-width: 660px; }

.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  margin: 18px 0 0;
}

.hero__sub {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--body-text);
  max-width: 46ch;
}

.hero__actions { margin-top: 34px; }

/* Not a button — there is nothing to download yet, and it must not pretend. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(23, 22, 26, 0.72);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--body-text);
}

.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* --- Feature index ------------------------------------------------------- */
/* An editorial numbered index, deliberately not a grid of equal tiles:
   the four capabilities are ranked by reading order, not boxed into parity. */
.section { padding: clamp(72px, 11vw, 132px) 0; }

.features {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.feature {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--hairline);
}

.feature__num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  padding-top: 6px;
}

.feature__name {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
}

.feature__desc {
  margin-top: 10px;
  font-size: 17px;
  color: var(--body-text);
  max-width: 58ch;
}

/* --- Platinum ------------------------------------------------------------ */
/* Photo band dissolves into the canvas, then the offer sits on flat black.
   No price appears anywhere, by instruction. */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(240px, 34vw, 420px);
}

.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.band__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 11, 0.72) 0%,
    rgba(10, 10, 11, 0.35) 34%,
    rgba(10, 10, 11, 0.86) 74%,
    var(--canvas) 100%
  );
}

.platinum {
  padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 11vw, 130px);
}

.platinum__card {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 60px);
  max-width: 720px;
}

.platinum__card h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 18px;
}

.platinum__actions { margin-top: 30px; }

/* --- Footer -------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 52px 0 64px;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: baseline;
  justify-content: space-between;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin: 0;
  flex: none;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
}

.footer__links a { color: var(--body-text); }
.footer__links a:hover { color: var(--gold); }

.footer__meta {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* --- Legal / long-form --------------------------------------------------- */
.prose-wrap {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.prose { font-size: 16px; line-height: 1.68; }

.prose h1 {
  font-size: clamp(30px, 4.2vw, 38px);
  margin: 10px 0 6px;
}

.prose h2 {
  font-size: 21px;
  margin: 42px 0 10px;
  letter-spacing: -0.01em;
  scroll-margin-top: 28px;
}

.prose h3 { font-size: 18px; margin: 30px 0 8px; }

.prose p { margin: 14px 0; }

.prose ul { margin: 14px 0; padding-left: 22px; }

.prose li { margin: 7px 0; }

.prose strong { color: var(--ink); font-weight: 600; }

.prose em { color: var(--muted); font-style: normal; }

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 1px 6px;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 34px 0;
}

.prose a { color: var(--gold); }

.prose .eyebrow {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 720px) {
  .hero__media { height: clamp(260px, 38vh, 340px); }
  .hero__media img { object-position: 66% 16%; }
  .hero__fade { height: 78%; }

  .feature {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }
  .feature__num { padding-top: 0; }

  .footer__grid { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* --- Motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
