/* Handoff: Chain — midnight corridor landing
   Palette from HandoffPalette.swift */

:root {
  --asphalt: #6e5a3a;
  --wash-deep: #0b1016;
  --wash-mid: #141e2a;
  --wash-glow: #c48218;
  --wash-teal: #0f3a38;
  --wash-indigo: #1a1c32;
  --marker: #d4921a;
  --lag: #c04545;
  --ok: #3d9a5c;
  --ink: #e6e1d8;
  --on-wash: #ece7de;
  --on-wash-muted: #9aa3b0;
  --corridor-line: #2e3a48;
  --muted-ink: #8e98a6;
  --disc-fill: #161f2b;
  --accent: #d4921a;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --max: 1080px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(
      145deg,
      var(--wash-deep) 0%,
      var(--wash-indigo) 32%,
      var(--wash-mid) 68%,
      var(--wash-teal) 100%
    );
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(110, 90, 58, 0.1) 0%,
      transparent 28%,
      rgba(196, 130, 24, 0.06) 55%,
      transparent 100%
    );
}

.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.glow-gold {
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  top: -8%;
  right: -10%;
  background: rgba(196, 130, 24, 0.28);
}

.glow-teal {
  width: min(480px, 75vw);
  height: min(480px, 75vw);
  bottom: 8%;
  left: -12%;
  background: rgba(15, 58, 56, 0.55);
}

a {
  color: var(--marker);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #f0b84a;
}

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

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* —— Header —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem var(--pad);
  background: rgba(11, 16, 22, 0.82);
  border-bottom: 1px solid rgba(46, 58, 72, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--on-wash);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f0b84a, var(--marker) 55%, #8a5a0c);
  box-shadow: 0 0 18px rgba(212, 146, 26, 0.55);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--corridor-line);
  border-radius: 10px;
  background: var(--disc-fill);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--on-wash-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--on-wash);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--marker);
  color: #1a1205 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 24px rgba(212, 146, 26, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: #1a1205 !important;
}

/* —— Sections —— */

.hero,
.section {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.hero {
  padding: clamp(3rem, 10vw, 5.5rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marker);
}

.hero h1,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--on-wash);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  text-shadow: 0 0 40px rgba(212, 146, 26, 0.18);
}

.subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--on-wash-muted);
  font-weight: 500;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--muted-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--marker);
  color: #1a1205;
  box-shadow: 0 0 32px rgba(212, 146, 26, 0.4);
}

.btn-primary:hover {
  color: #1a1205;
  box-shadow: 0 0 40px rgba(212, 146, 26, 0.55);
}

.btn-ghost {
  border: 1px solid var(--corridor-line);
  background: rgba(22, 31, 43, 0.65);
  color: var(--on-wash);
}

.btn-ghost:hover {
  color: var(--on-wash);
  border-color: rgba(212, 146, 26, 0.45);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 36rem;
}

.hero-stats li {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(22, 31, 43, 0.72);
  border: 1px solid rgba(46, 58, 72, 0.7);
  color: var(--on-wash-muted);
  font-size: 0.88rem;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--marker);
  margin-bottom: 0.15rem;
}

.section {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.section-copy {
  margin: 0;
  color: var(--muted-ink);
}

.effective,
.reply-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--on-wash-muted);
}

/* —— Features —— */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(22, 31, 43, 0.78);
  border: 1px solid rgba(46, 58, 72, 0.75);
  box-shadow: 0 0 0 1px rgba(212, 146, 26, 0.04), 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(212, 146, 26, 0.35);
  box-shadow: 0 0 28px rgba(212, 146, 26, 0.12), 0 18px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.feature-index {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--marker);
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-wash);
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-ink);
}

/* —— About —— */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.about-card,
.about-aside,
.policy,
.contact-card {
  padding: 1.4rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(22, 31, 43, 0.78);
  border: 1px solid rgba(46, 58, 72, 0.75);
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--muted-ink);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.disclaimer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(46, 58, 72, 0.7);
  font-size: 0.9rem;
  color: var(--on-wash-muted) !important;
}

.aside-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(46, 58, 72, 0.55);
  font-size: 0.92rem;
  color: var(--on-wash-muted);
}

.aside-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-row:first-child {
  padding-top: 0;
}

.aside-row strong {
  color: var(--on-wash);
  font-weight: 600;
  text-align: right;
}

/* —— Privacy —— */

.policy h3 {
  margin: 1.6rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--on-wash);
}

.policy p,
.policy li {
  color: var(--muted-ink);
}

.policy ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.policy li {
  margin-bottom: 0.35rem;
}

/* —— Contact —— */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.contact-card:hover {
  border-color: rgba(212, 146, 26, 0.4);
  box-shadow: 0 0 24px rgba(212, 146, 26, 0.12);
}

.contact-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--marker);
}

.contact-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-wash);
  word-break: break-word;
}

.contact-card-static {
  cursor: default;
}

/* —— Footer —— */

.site-footer {
  margin-top: 2rem;
  padding: 2rem var(--pad) 2.5rem;
  border-top: 1px solid rgba(46, 58, 72, 0.65);
  background: rgba(11, 16, 22, 0.72);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--on-wash);
}

.site-footer p {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  color: var(--muted-ink);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--on-wash-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--marker);
}

/* —— Reveal —— */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Mobile —— */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1rem;
    background: rgba(11, 16, 22, 0.96);
    border-bottom: 1px solid var(--corridor-line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(46, 58, 72, 0.45);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .feature-card {
    transition: none;
  }
}
