:root {
  --ink: #001a21;
  --surface: #08222a;
  --surface-elevated: #0c2a34;
  --parchment: #f2f0ea;
  --steel: #7f97a0;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --max-width: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--parchment);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 26, 33, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 19px;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--parchment);
  color: var(--ink);
}

.btn-ghost {
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  background: transparent;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 15px;
}

.btn-icon {
  width: 19px;
  height: 19px;
  margin-top: -2px;
}

/* Hero */

.hero {
  position: relative;
  /* Top and bottom padding reserve the bands the corner icons live in. */
  padding: 100px 0 104px;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -30% 20% auto;
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(127, 151, 160, 0.22), transparent 70%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
  z-index: 2;
}

/* Floating challenge icons */

.floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floater {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--surface-elevated);
  border: 1px solid var(--hairline);
  color: var(--steel);
  opacity: 0.72;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  animation: float 7s ease-in-out infinite;
}

.floater svg {
  width: 21px;
  height: 21px;
}

/* Mobile: sit fully inside the corners, above and below the text block, with
   uneven heights so the group doesn't read as a rigid frame. */
.floater.f1 { top: 12px; left: 18px; animation-delay: 0s; transform: rotate(-10deg); }
.floater.f4 { top: 42px; right: 16px; animation-delay: 0.6s; transform: rotate(9deg); }
.floater.f3 { bottom: 42px; left: 16px; animation-delay: 2.3s; transform: rotate(-6deg); }
.floater.f6 { bottom: 12px; right: 18px; animation-delay: 3s; transform: rotate(7deg); }

/* The two mid-height icons only fit once there are side margins to spare. */
.floater.f2,
.floater.f5 {
  display: none;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 var(--float-distance, -10px); }
}

@media (prefers-reduced-motion: reduce) {
  .floater {
    animation: none;
  }
}

.hero h1 {
  font-size: clamp(46px, 8vw, 84px);
  margin: 0 auto 20px;
  max-width: 14ch;
}

.hero h1 .accent {
  color: var(--steel);
}

.hero p.lede {
  max-width: 54ch;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Full-bleed tap target on phones, hugging content once there's room. */
.hero-actions .btn {
  width: 100%;
}

.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* Sections */

section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.section-head {
  max-width: 46ch;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 14px;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
}

/* Cards */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card h3 {
  font-family: "Inter", sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.step-number {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 40px;
  color: var(--steel);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}

/* Challenge chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* FAQ */

details {
  border-bottom: 1px solid var(--hairline);
  padding: 22px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "+";
  color: var(--steel);
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 14px 0 0;
  color: var(--text-secondary);
}

/* CTA band */

.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(34px, 6vw, 56px);
  margin: 0 0 18px;
}

.cta-band p {
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto 32px;
}

/* Footer */

footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
  color: var(--text-tertiary);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
}

/* Legal / support pages */

.doc {
  /* padding-block only — a shorthand here would wipe .wrap's side padding. */
  padding-block: 44px 64px;
  max-width: 720px;
}

.doc h1 {
  font-size: clamp(34px, 9vw, 56px);
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0 0 28px;
}

.doc h2 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 32px 0 10px;
}

.doc p,
.doc li {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Email addresses and long links shouldn't push the page sideways. */
.doc a {
  overflow-wrap: anywhere;
}

.doc ul {
  padding-left: 20px;
  margin: 0 0 16px;
}

.doc li {
  margin-bottom: 8px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

.contact-box p {
  margin: 0 0 6px;
}

@media (min-width: 640px) {
  .nav-links {
    display: flex;
  }

  .brand {
    font-size: 22px;
  }

  section {
    padding: 88px 0;
  }

  .hero {
    padding: 96px 0 88px;
  }

  .hero p.lede {
    font-size: 19px;
    margin-bottom: 36px;
  }

  .hero-actions .btn {
    width: auto;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .doc {
    padding-block: 72px 96px;
  }

  .doc .updated {
    margin-bottom: 40px;
  }

  .doc h2 {
    font-size: 20px;
    margin-top: 40px;
  }

  .doc p,
  .doc li {
    font-size: 17px;
  }

  .contact-box {
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
  }
}

@media (min-width: 720px) {
  .floater {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    opacity: 0.85;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
    --float-distance: -16px;
  }

  .floater svg {
    width: 24px;
    height: 24px;
  }

  .floater.f2,
  .floater.f5 {
    display: grid;
  }

  .floater.f1 { top: 11%; left: 3%; }
  .floater.f2 { top: 46%; left: 0; animation-delay: 1.1s; transform: rotate(7deg); }
  .floater.f3 { bottom: 11%; left: 8%; }
  .floater.f4 { top: 9%; right: 4%; }
  .floater.f5 { top: 44%; right: 0; animation-delay: 1.8s; transform: rotate(-7deg); }
  .floater.f6 { bottom: 12%; right: 8%; }
}

@media (min-width: 1080px) {
  .floater {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    opacity: 1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .floater svg {
    width: 27px;
    height: 27px;
  }

  .floater.f1 { top: 12%; left: 6%; }
  .floater.f2 { top: 46%; left: 2%; }
  .floater.f3 { bottom: 12%; left: 13%; }
  .floater.f4 { top: 10%; right: 8%; }
  .floater.f5 { top: 44%; right: 3%; }
  .floater.f6 { bottom: 14%; right: 12%; }
}
