:root {
  --bg: #14111c;
  --bg-2: #1d1830;
  --surface: #251e3d;
  --surface-2: #2f2750;
  --ink: #f3ecdc;
  --ink-dim: #c4b8d8;
  --accent: #ffb347;
  --accent-2: #ff7a59;
  --muted: #8a7fa8;
  --line: rgba(255, 179, 71, 0.18);
  --radius: 14px;
  --max: 1180px;
  --font: "DM Serif Display", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--font); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

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

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 17, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 14px 22px; max-width: var(--max); margin: 0 auto;
}
.brand-logo {
  font-family: var(--font); font-size: 1.45rem; color: var(--accent);
  display: flex; align-items: center; gap: 9px;
}
.brand-logo::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent-2);
}
.nav-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--ink-dim); font-size: .95rem; padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); padding: 8px 12px; border-radius: 8px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-2); padding: 14px 22px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 70px 0 60px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(255,122,89,.18), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(255,179,71,.12), transparent 55%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.18rem; color: var(--ink-dim); max-width: 36ch; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
}
.hero-img {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.7);
  border: 1px solid var(--line);
}
.hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px;
  font-weight: 600; font-family: var(--sans); font-size: 1rem;
  border: 1px solid transparent; transition: transform .15s, background .2s; cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1a1422; }
.btn-primary:hover { background: var(--accent-2); color: #1a1422; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
}

/* ===== Sections ===== */
.section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--ink-dim); }

/* Asymmetric editorial grid */
.editorial {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { color: var(--accent); margin-bottom: .4em; }
.card p { color: var(--ink-dim); margin: 0; }
.card.span-4 { grid-column: span 4; }
.card.span-5 { grid-column: span 5; }
.card.span-6 { grid-column: span 6; }
.card.span-7 { grid-column: span 7; }
.card.span-8 { grid-column: span 8; }
.card.span-12 { grid-column: span 12; }

@media (max-width: 860px) {
  .card.span-4, .card.span-5, .card.span-6, .card.span-7, .card.span-8 { grid-column: span 12; }
}

/* Article layout */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.article-body { max-width: 70ch; }
.article-body h2 { margin-top: 1.6em; }
.article-body figure { margin: 26px 0; }
.article-body figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.article-body figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .5em; }

.toc { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.toc h3 { font-size: 1rem; color: var(--accent); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a { color: var(--ink-dim); font-size: .92rem; }
.toc a:hover { color: var(--accent); }

@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* Lead image on article pages */
.page-hero { padding: 50px 0 30px; }
.page-hero .crumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.page-hero figure { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.page-hero figure img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 22px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat .num { font-family: var(--font); font-size: 2.1rem; color: var(--accent); display: block; }
.stat .lbl { font-size: .85rem; color: var(--ink-dim); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Disclaimer */
.disclaimer {
  background: rgba(255,179,71,.08); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 16px 20px; margin: 24px 0; font-size: .95rem; color: var(--ink-dim);
}

/* Contact form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label { font-size: .9rem; color: var(--ink-dim); }
.field input, .field textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 14px; border-radius: 10px; font-family: var(--sans); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink-dim); }
.consent-row input { margin-top: 4px; }
.form-msg { font-size: .92rem; margin-top: 10px; }
.form-error { color: var(--accent-2); }
.form-success { color: #7bd88f; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: span 1; } }

/* Contact info */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 30px; }
.info-block { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.info-block h3 { color: var(--accent); margin-bottom: 8px; font-size: 1.05rem; }
.info-block p { margin: 0; color: var(--ink-dim); }
@media (max-width: 640px) { .contact-info { grid-template-columns: 1fr; } }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  padding: 16px 22px; cursor: pointer; font-family: var(--font); font-size: 1.15rem; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .answer { padding: 0 22px 18px; color: var(--ink-dim); }

/* Legal page */
.legal h2 { margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal .lead { color: var(--ink-dim); }

/* Footer */
.site-footer { background: var(--bg-2); padding: 48px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: var(--accent); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-dim); font-size: .92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--ink-dim); font-size: .92rem; max-width: 36ch; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.err-wrap { text-align: center; padding: 90px 0; }
.err-code { font-family: var(--font); font-size: clamp(5rem, 18vw, 11rem); color: var(--accent); line-height: 1; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #1a1422; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }