/* ==========================================================================
   Supreme Wave — Dark Mode Design System
   Warm-dark editorial • Cream typography • Ocean teal accent
   ========================================================================== */

:root {
  /* ===== Page surfaces ===== */
  --bg:           #0d0b08;
  --paper:        #15110d;
  --paper-2:      #1c1813;
  --paper-3:      #221d18;
  --surface:      #1a1612;
  --surface-2:    #221c17;

  /* ===== Text colors (cream on dark) ===== */
  --ink:          #f0e9da;
  --ink-2:        #d4cab8;
  --ink-3:        #b8ad96;
  --muted:        #8a8170;
  --muted-2:      #6e6557;

  --brand-dark:   #0d0b08;

  /* ===== Hairlines ===== */
  --line:         rgba(240,233,218,0.10);
  --line-2:       rgba(240,233,218,0.05);
  --line-dark:    rgba(255,255,255,0.10);
  --line-dark-2:  rgba(255,255,255,0.06);

  /* ===== Accent (brightened teal for dark) ===== */
  --accent:       #4a9eb5;
  --accent-2:     #6cb5c8;
  --accent-soft:  rgba(74,158,181,0.15);

  /* ===== Radii ===== */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* ===== Shadows (deeper for dark) ===== */
  --sh-1: 0 1px 0 rgba(0,0,0,0.30), 0 4px 12px rgba(0,0,0,0.40);
  --sh-2: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.35);
  --sh-3: 0 40px 80px -30px rgba(0,0,0,0.70), 0 12px 30px -10px rgba(0,0,0,0.50);

  /* ===== Type ===== */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --f-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --f-serif: 'Newsreader', 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: "ss01" on, "cv11" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--bg); }

/* ============================== LAYOUT ================================ */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

section.block { padding: 140px 0; }
section.block.compact { padding: 90px 0; }
@media (max-width: 760px) {
  section.block { padding: 96px 0; }
  section.block.compact { padding: 64px 0; }
}

/* ============================== NAV =================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,11,8,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-wordmark {
  display: inline-flex; align-items: baseline; gap: 8px;
  line-height: 1;
  color: var(--ink);
}
.sw-supreme {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
}
.sw-wave {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: inherit;
}
.foot-brand .brand-wordmark { color: var(--ink); }

/* Brand mark — artistic variants */
body[data-brand-variant="stacked"] .brand-wordmark { flex-direction: column; align-items: flex-start; gap: 1px; }
body[data-brand-variant="stacked"] .sw-supreme { font-size: 9.5px; letter-spacing: 0.3em; }
body[data-brand-variant="stacked"] .sw-wave { font-size: 18px; }
body[data-brand-variant="inline"] .sw-supreme { font-size: 14px; letter-spacing: 0.14em; font-weight: 600; }
body[data-brand-variant="inline"] .sw-wave { font-size: 16px; font-style: normal; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: -0.01em; }
body[data-brand-variant="serif"] .sw-supreme { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: -0.02em; text-transform: lowercase; line-height: 0.85; }
body[data-brand-variant="monogram"] .brand-wordmark::before { content: 'sw'; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 28px; letter-spacing: -0.06em; line-height: 1; color: var(--ink); }
body[data-brand-variant="monogram"] .sw-supreme,
body[data-brand-variant="monogram"] .sw-wave { display: none; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  position: relative;
  color: var(--ink-2); font-weight: 450; font-size: 14px;
  letter-spacing: -0.005em;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 1px; background: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500; font-size: 13.5px;
  letter-spacing: -0.005em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.nav-cta:active { transform: scale(0.97); }

.mobile-toggle {
  display: none; background: transparent; border: none;
  width: 40px; height: 40px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,11,8,0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 32px; border-top: 1px solid var(--line-2); font-size: 15px; }
  .nav-links a.active::after { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
}

/* ============================== TYPOGRAPHY ============================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1.display {
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}
h1.display .serif,
h2 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h2.section-title {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
  max-width: 900px;
}
h2.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-lead {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ============================== BUTTONS =============================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 14.5px;
  letter-spacing: -0.005em;
  border: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn .arr {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.btn:hover .arr { transform: translateX(3px); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.btn-light {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-light:hover { background: rgba(255,255,255,0.18); }

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

/* ============================== CARDS / GLASS ========================= */
.glass {
  background: rgba(240,233,218,0.05);
  border: 1px solid rgba(240,233,218,0.10);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease, background .25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: rgba(240,233,218,0.20);
  background: var(--surface-2);
}
.card-num {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.card-ic {
  width: 64px; height: 64px;
  margin: 22px 0 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,233,218,0.06);
  border-radius: 18px;
}
.card-ic img { width: 38px; height: 38px; object-fit: contain; }
.card h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.card p {
  color: var(--muted); font-size: 15px; margin: 0;
  line-height: 1.6;
}
.card .corner {
  position: absolute; top: 26px; right: 26px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background .25s ease, color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1);
}
.card:hover .corner { background: var(--ink); color: var(--bg); transform: rotate(-45deg); }

/* ============================== PAGE HEAD ============================= */
.page-head {
  position: relative;
  padding: 96px 0 72px;
  background: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(74,158,181,0.12), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(240,233,218,0.04), transparent 60%);
  pointer-events: none;
}
.page-head-inner { position: relative; }
.crumb {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.crumb a:hover { color: var(--ink); }
.crumb .sep { opacity: 0.5; }

h1.page-title {
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 1080px;
}
h1.page-title .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.page-sub {
  color: var(--muted); font-size: clamp(17px,1.5vw,20px);
  max-width: 640px; line-height: 1.55; margin: 0;
  font-weight: 400; letter-spacing: -0.005em;
}

/* ============================== CHECKLIST ============================= */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checks li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink-2); font-weight: 450;
  line-height: 1.5;
}
.checks li::before {
  content: ''; flex-shrink: 0; margin-top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================== CTA SECTION ========================== */
.cta {
  text-align: center;
  padding: 130px 0;
}
.cta h2 {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin: 18px auto 18px;
  max-width: 980px;
  text-wrap: balance;
}
.cta h2 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.cta p { color: var(--muted); font-size: 19px; max-width: 560px; margin: 0 auto 32px; }
.cta .cta-row { justify-content: center; }

/* ============================== FOOTER =============================== */
footer {
  background: var(--paper);
  color: var(--ink-2);
  padding: 110px 0 36px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
footer::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(74,158,181,0.12), transparent 55%),
    radial-gradient(700px 400px at 0% 100%, rgba(240,233,218,0.03), transparent 60%);
  pointer-events: none;
}
.foot-inner { position: relative; }
.foot-claim {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px;
  padding-bottom: 80px; border-bottom: 1px solid var(--line);
  align-items: end;
}
.foot-claim h3 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.foot-claim h3 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}
.foot-claim .cta-row { justify-content: flex-end; }
@media (max-width: 760px) {
  .foot-claim { grid-template-columns: 1fr; gap: 28px; }
  .foot-claim .cta-row { justify-content: flex-start; }
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding: 70px 0 50px;
}
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 16px; max-width: 320px; line-height: 1.6; }
.foot-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink); margin: 6px 0 18px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--muted); font-size: 14px; transition: color .15s ease; }
.foot-col a:hover { color: var(--ink); }
.foot-addr { font-size: 14px; color: var(--muted); line-height: 1.7; }
.foot-addr strong { color: var(--ink-2); font-weight: 500; }
.foot-addr a { color: var(--ink) !important; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
  flex-wrap: wrap; gap: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
}
@media (max-width: 760px) {
  footer { padding: 80px 0 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 56px; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ============================== REVEAL =============================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .04s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .20s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .28s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .36s; opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .44s; opacity: 1; transform: none; }

/* ============================== PROSE (legal) ======================== */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.prose h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 56px 0 14px;
  color: var(--ink);
  font-weight: 600;
}
.prose h3 {
  font-size: 19px;
  margin: 32px 0 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 24px; margin: 0 0 20px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(74,158,181,0.4); transition: border-color .2s ease; }
.prose a:hover { border-color: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose .last-updated {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.prose .toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  margin: 32px 0 48px;
}
.prose .toc strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.prose .toc ol { padding-left: 22px; margin: 0; }
.prose .toc ol li { margin: 5px 0; font-size: 15px; }
.prose .toc a { color: var(--ink-2); border: none; }
.prose .toc a:hover { color: var(--accent); }

/* ============================== UTIL ================================ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240,233,218,0.05);
  border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.tag.dark { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); color: var(--ink-2); }

.divider-strip {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
