/* ============================================================
   MARQUEE — SITE-WIDE STYLESHEET
   ------------------------------------------------------------
   Sections:
     1.  Reset & base
     2.  Design tokens
     3.  Typography helpers
     4.  Layout primitives (container, section, grid)
     5.  Buttons
     6.  Forms / fields
     7.  Site navigation (sticky, mobile menu)
     8.  Site footer
     9.  Cookie consent banner
     10. CTA modal
     11. Hero (home)
     12. Page hero (inner pages)
     13. Role cards (home)
     14. Learn list (home)
     15. Requirements (home)
     16. Benefits bento (home)
     17. Final CTA block (home)
     18. About page
     19. Blog listing
     20. Blog post detail
     21. Contact page
     22. Legal pages (long-form prose)
     23. Composer (admin)
     24. Reveal animations
     25. Utilities
   ============================================================ */

/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --bg-elevated: #131316;
  --surface: #18181B;
  --border: #26262B;
  --border-strong: #3A3A42;

  /* Text */
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;

  /* Accent */
  --accent: #C6FF3D;
  --accent-hover: #D4FF66;
  --accent-dim: rgba(198, 255, 61, 0.12);
  --danger: #FF6B5C;
  --success: #4ADE80;

  /* Layout */
  --max-width: 1200px;
  --max-width-prose: 720px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-py: clamp(72px, 12vw, 140px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Type */
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   3. TYPOGRAPHY HELPERS
   ============================================================ */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; color: var(--text-primary); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow.is-static::before { animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* ============================================================
   4. LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-prose {
  width: 100%;
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-tight { padding-top: clamp(48px, 8vw, 80px); padding-bottom: clamp(48px, 8vw, 80px); }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 var(--accent-dim);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--accent-dim), 0 0 0 6px var(--accent-dim);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-tertiary); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ============================================================
   6. FORMS / FIELDS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}
.field.has-error .field-error { display: block; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.check-row a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   7. SITE NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

@media (min-width: 880px) {
  .nav-inner {
    justify-content: center;
    position: relative;
  }
  .logo {
    position: absolute;
    left: var(--gutter);
  }
  .nav-cta {
    position: absolute;
    right: var(--gutter);
    margin-left: 0;
  }
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: 6px;
  display: grid; place-items: center;
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  display: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-links a.is-active { color: var(--text-primary); background: var(--bg-elevated); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
  cursor: pointer;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

.nav-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--text-primary);
  order: -1;                  /* Visually appear before the logo on mobile */
}
.nav-toggle:hover { background: var(--bg-elevated); }

/* Mobile menu (collapsed by default, expanded with .is-open) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter) 24px;
  z-index: 49;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .btn { width: 100%; margin-top: 12px; }

@media (min-width: 880px) {
  .nav-links { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ============================================================
   8. SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: clamp(56px, 10vw, 88px);
  padding-bottom: 48px;
}
@media (min-width: 720px)  { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text-primary); }
.footer-col p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.footer-tagline { margin: 16px 0 0; max-width: 30ch; }

.footer-cta .btn { width: 100%; margin-top: 4px; }

.footer-base {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13px;
}
@media (min-width: 720px) {
  .footer-base { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================
   9. COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.cookie-inner p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.cookie-inner p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-actions .btn { flex: 1; }

@media (min-width: 720px) {
  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 460px; }
  .cookie-actions .btn { flex: 0 0 auto; }
}

/* ============================================================
   10. CTA MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.modal-overlay.is-open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  margin: auto;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s var(--ease-out);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.modal-overlay.is-open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close:hover { background: var(--bg); color: var(--text-primary); }

.modal-head { margin-bottom: 24px; }
.modal-head h2 {
  font-size: 1.625rem;
  margin: 12px 0 8px;
  letter-spacing: -0.025em;
}
.modal-head p { color: var(--text-secondary); font-size: 14px; }

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.modal-actions .btn { flex: 1; padding: 14px 20px; font-size: 15px; }
.modal-actions .btn-ghost { flex: 0 0 auto; }

.modal-success {
  text-align: center;
  padding: 16px 0;
}
.success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 32px;
  font-weight: 800;
}
.modal-success h3 { font-size: 1.375rem; margin-bottom: 10px; }
.modal-success p { color: var(--text-secondary); margin-bottom: 24px; }

/* Lock body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ============================================================
   11. HERO (HOME)
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(80px, 12vw, 120px);
  padding-bottom: clamp(72px, 10vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 800px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-inner { position: relative; z-index: 1; }
.hero-headline {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 24px 0 28px;
  max-width: 18ch;
}
.hero-headline .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 800;
  display: inline-block;
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-tertiary); font-size: 14px;
}
.hero-meta-dot {
  width: 6px; height: 6px;
  border-radius: 50%; background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.trust-strip {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap;
  gap: 12px 28px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-tertiary);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip span::before {
  content: ''; width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
}

/* ============================================================
   12. PAGE HERO (inner pages — about, blog, contact, legal)
   ============================================================ */
.page-hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute; top: -100px; left: 50%;
  width: 600px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none; filter: blur(40px);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  margin: 16px 0 18px;
  line-height: 1;
  max-width: 18ch;
}
.page-hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.6;
}

/* ============================================================
   13. ROLE CARDS (HOME — what you'll do)
   ============================================================ */
.role { background: var(--bg); position: relative; }
.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px)  { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }

.role-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.role-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface);
}
.role-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.role-card:hover::before { opacity: 1; }
.role-card-num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.role-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.role-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.role-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   14. LEARN LIST (HOME — what you'll learn)
   ============================================================ */
.learn { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.learn-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .learn-list { grid-template-columns: repeat(2, 1fr); }
  .learn-list .learn-item:nth-child(odd) { border-right: 1px solid var(--border); }
}
.learn-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s var(--ease);
}
.learn-item:hover { background: rgba(198, 255, 61, 0.02); }
.learn-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 4px;
  min-width: 36px;
}
.learn-item h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.015em; }
.learn-item p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.55; }

/* ============================================================
   15. REQUIREMENTS (HOME)
   ============================================================ */
.requirements { background: var(--bg); }
.req-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .req-layout { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.req-list { list-style: none; display: grid; gap: 4px; }
.req-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.req-item:last-child { border-bottom: none; }
.req-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  margin-top: 2px;
}
.req-item.is-bonus .req-check {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--text-tertiary);
}
.req-item-text { flex: 1; line-height: 1.5; }
.req-item-text strong { font-weight: 600; color: var(--text-primary); }
.req-item-text span { color: var(--text-secondary); }
.req-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-left: 8px;
  vertical-align: middle;
}
.req-item.is-bonus .req-tag {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-tertiary);
}

/* ============================================================
   16. BENEFITS BENTO (HOME)
   ============================================================ */
.benefits { background: var(--bg-elevated); border-top: 1px solid var(--border); }
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; } }
.benefit {
  position: relative;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.benefit:hover { border-color: var(--accent); transform: translateY(-2px); }
.benefit.is-feature {
  background: linear-gradient(135deg, var(--accent) 0%, #9FE82C 100%);
  color: var(--bg);
  border: none;
}
@media (min-width: 1024px) {
  .benefit.is-feature { grid-column: span 2; grid-row: span 2; padding: 40px; }
}
.benefit.is-feature .benefit-label { color: rgba(10,10,11,0.6); }
.benefit.is-feature .benefit-value { color: var(--bg); font-size: clamp(2rem, 4.5vw, 3rem); }
.benefit.is-feature .benefit-desc { color: rgba(10,10,11,0.75); font-size: 1rem; max-width: 36ch; }
.benefit-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.benefit-value {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 8px;
}
.benefit-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.55; }

/* ============================================================
   17. FINAL CTA BLOCK (HOME)
   ============================================================ */
.cta-final {
  position: relative;
  padding: clamp(80px, 14vw, 160px) var(--gutter);
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-final h2 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1;
}
.cta-final h2 .accent { color: var(--accent); font-style: italic; }
.cta-final p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
}
.cta-final .btn-primary { padding: 20px 36px; font-size: 17px; }

/* ============================================================
   18. ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.about-prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 32px 0 14px;
  letter-spacing: -0.025em;
}
.about-prose h2:first-child { margin-top: 0; }
.about-prose p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px)  { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.value-card:hover { border-color: var(--border-strong); }
.value-card-num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.value-card h3 { font-size: 1.125rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.value-card p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================================
   19. BLOG LISTING
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.post-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.post-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.post-card-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.post-card-meta .post-cat { color: var(--accent); }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); }
.post-card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.25;
}
.post-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.post-card-footer {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}
.post-card-footer .read-more {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap 0.2s var(--ease);
}
.post-card:hover .read-more { gap: 8px; }

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-tertiary);
}

/* ============================================================
   20. BLOG POST DETAIL
   ============================================================ */
.post-hero {
  position: relative;
  padding: clamp(48px, 8vw, 80px) 0 0;
  border-bottom: 1px solid var(--border);
}
.post-hero-inner { max-width: var(--max-width-prose); margin: 0 auto; padding: 0 var(--gutter); }
.post-hero .post-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.post-hero .post-meta .post-cat { color: var(--accent); }
.post-hero .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); align-self: center; }
.post-hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.post-hero .post-author {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 36px;
  color: var(--text-secondary); font-size: 14px;
}
.post-hero .author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.post-hero .post-cover {
  margin: 12px calc(-1 * var(--gutter)) 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
@media (min-width: 760px) {
  .post-hero .post-cover { margin: 24px 0 0; border-radius: var(--radius-lg); }
}
.post-hero .post-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Post body — long-form reading typography */
.post-body {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 64px) var(--gutter) clamp(60px, 9vw, 96px);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.post-body p { margin-bottom: 1.5em; }
.post-body h2 {
  color: var(--text-primary);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin: 2em 0 0.75em;
  letter-spacing: -0.025em;
}
.post-body h3 {
  color: var(--text-primary);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin: 1.75em 0 0.5em;
  letter-spacing: -0.02em;
}
.post-body ul, .post-body ol { margin: 0 0 1.5em 1.25em; }
.post-body li { margin-bottom: 0.5em; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--text-primary); font-weight: 600; }
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  color: var(--text-primary);
  font-style: italic;
}
.post-body code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--accent);
}
.post-body pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-body pre code {
  background: none; border: none; padding: 0; color: var(--text-primary);
}
.post-body img {
  border-radius: var(--radius);
  margin: 1.5em 0;
  border: 1px solid var(--border);
}

.post-footer-cta {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 10vw, 96px);
}
.post-footer-cta-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}
.post-footer-cta-inner h3 {
  font-size: 1.5rem; margin-bottom: 10px; letter-spacing: -0.025em;
}
.post-footer-cta-inner p { color: var(--text-secondary); margin-bottom: 24px; }
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-secondary); font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.post-back:hover { color: var(--text-primary); gap: 10px; }

/* ============================================================
   21. CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.contact-info { padding-top: 8px; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.025em; }
.contact-info p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.65; }
.contact-info ul { list-style: none; display: grid; gap: 18px; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 14px;
}
.contact-info .ic {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid; place-items: center;
}
.contact-info .ic-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 4px; }
.contact-info a { color: var(--text-primary); }
.contact-info a:hover { color: var(--accent); }

.contact-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ============================================================
   22. LEGAL PAGES (long-form prose)
   ============================================================ */
.legal-prose {
  max-width: var(--max-width-prose);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) var(--gutter) clamp(64px, 10vw, 96px);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-prose .updated {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}
.legal-prose h2 {
  color: var(--text-primary);
  font-size: 1.375rem;
  margin: 2em 0 0.65em;
  letter-spacing: -0.02em;
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose h3 {
  color: var(--text-primary);
  font-size: 1.125rem;
  margin: 1.5em 0 0.5em;
}
.legal-prose p { margin-bottom: 1.25em; }
.legal-prose ul, .legal-prose ol { margin: 0 0 1.25em 1.25em; }
.legal-prose li { margin-bottom: 0.5em; }
.legal-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-prose strong { color: var(--text-primary); }

/* ============================================================
   23. COMPOSER (admin/hidden page)
   ============================================================ */
.composer-banner {
  background: rgba(255, 107, 92, 0.08);
  border-bottom: 1px solid rgba(255, 107, 92, 0.25);
  padding: 12px var(--gutter);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--danger);
  letter-spacing: 0.05em;
  text-align: center;
}

.composer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 80px;
}
@media (min-width: 1024px) { .composer-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; } }

.composer-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.composer-form-card h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.025em; }
.composer-form-card .help {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.composer-output-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.composer-output-card h2 { font-size: 1.5rem; margin-bottom: 8px; letter-spacing: -0.025em; }
.composer-output-card .help {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.composer-output-card ol {
  margin: 0 0 20px 20px;
  color: var(--text-secondary);
  font-size: 14px;
}
.composer-output-card ol li { margin-bottom: 8px; }

.composer-output-area {
  width: 100%;
  min-height: 240px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
  resize: vertical;
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.posts-existing {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.posts-existing h3 { font-size: 1rem; margin-bottom: 12px; }
.posts-existing-list { list-style: none; display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.posts-existing-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.posts-existing-list .post-slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ============================================================
   24. SCROLL-REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   25. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
[hidden] { display: none !important; }

/* ============================================================
   26. PROMO POPUP (timed — appears after 2 min)
   ============================================================ */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}
.promo-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.promo-popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 36px 40px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.45s var(--ease-out);
  overflow: hidden;
}
.promo-overlay.is-open .promo-popup {
  transform: scale(1) translateY(0);
}

/* Gradient glow behind the popup */
.promo-popup::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  width: 350px;
  height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(30px);
}

/* Accent top border line */
.promo-popup::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.promo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  z-index: 2;
}
.promo-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 24px var(--accent-dim), 0 0 0 4px var(--accent-dim);
  animation: promoPulse 2.5s ease-in-out infinite;
}

@keyframes promoPulse {
  0%, 100% { box-shadow: 0 0 24px var(--accent-dim), 0 0 0 4px var(--accent-dim); }
  50%      { box-shadow: 0 0 36px var(--accent-dim), 0 0 0 8px rgba(198, 255, 61, 0.06); }
}

.promo-popup h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.promo-popup .promo-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.promo-popup .btn-primary {
  padding: 18px 40px;
  font-size: 17px;
  position: relative;
  z-index: 1;
}

.promo-popup .promo-sub {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}
