/* ─────── S.T.R.In.G · shared design system ─────── */
:root {
  --bg: #0B0B0C;
  --paper: #F2EEE6;
  --ink: #0B0B0C;
  --mute: #8A8A88;
  --mute-d: #6b6b69;
  --line: rgba(255,255,255,0.12);
  --line-d: rgba(11,11,12,0.12);
  --accent: #C6FF4A;
  --accent-ink: #0B0B0C;
  --card: #111113;
  --card-2: #17171a;
  --radius: 18px;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Atoms */
.label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.label.plain::before { display: none; }

h1.display { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 7.5vw, 128px); line-height: 1.02; letter-spacing: -0.025em; }
h2.display { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5.5vw, 88px); line-height: 1.04; letter-spacing: -0.02em; }
h3.display { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
em { font-style: italic; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 80px 0; }
.divider { height: 1px; background: var(--line); width: 100%; }
.paper-bg { background: var(--paper); color: var(--ink); }
.paper-bg .label { color: var(--mute-d); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 500;
  font-size: 14px; letter-spacing: -0.01em;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--line); }
.paper-bg .btn.ghost { border-color: var(--line-d); }
.btn .arrow { width: 14px; height: 14px; transition: transform .25s ease; }
.btn:hover .arrow { transform: translate(2px,-2px); }

/* ─────── nav ─────── */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 40px;
  backdrop-filter: blur(16px);
  background: rgba(11,11,12,0.65);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
nav.topnav.scrolled { border-bottom-color: var(--line); }
nav.topnav.on-paper { background: rgba(242,238,230,0.75); color: var(--ink); border-bottom-color: var(--line-d); }
nav.topnav.on-paper .nav-link { color: var(--ink); }
nav.topnav.on-paper .btn.primary { background: var(--ink); color: var(--paper); }
nav.topnav.on-paper .logo-mark img { filter: none; }
.logo-mark {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px;
}
.logo-mark img { height: 42px; width: auto; filter: invert(1) brightness(1.4); transition: filter .3s ease; }
.logo-mark .acc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper);
  position: relative; padding: 4px 0;
}
.nav-link.active { color: var(--accent); }
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: currentColor;
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; }
.nav-mobile-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--paper);
}
.nav-toggle span {
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
nav.topnav.on-paper .nav-toggle { color: var(--ink); border-color: var(--line-d); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* page hero */
.pg-hero {
  padding: 180px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pg-hero.paper-bg { border-bottom-color: var(--line-d); }
.pg-hero .crumbs {
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 28px;
}
.pg-hero .crumbs a:hover { color: var(--accent); }
.pg-hero .crumbs .sep { margin: 0 10px; color: rgba(255,255,255,0.25); }
.paper-bg .crumbs, .pg-hero.paper-bg .crumbs { color: var(--mute-d); }
.paper-bg .crumbs .sep, .pg-hero.paper-bg .crumbs .sep { color: rgba(0,0,0,0.2); }
.pg-hero h1.display em { color: var(--accent); font-style: italic; }
.pg-hero .sub {
  margin-top: 28px; max-width: 58ch; font-size: 18px; line-height: 1.5; color: #c9c6bd;
}
.paper-bg .pg-hero .sub, .pg-hero.paper-bg .sub { color: #4a4a48; }
.pg-hero .meta-row {
  margin-top: 36px;
  display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.pg-hero .meta-row .k { font-family: var(--mono); font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 4px; display:block; }
.pg-hero .meta-row .v { font-family: var(--mono); font-size: 13px; }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { background: var(--card-2); transform: translateY(-2px); border-color: rgba(198,255,74,0.3); }
.card .num { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 0.14em; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.08; letter-spacing: -0.015em; }
.card p { font-size: 14px; line-height: 1.55; color: #a8a59c; }
.card .link {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px;
}
.paper-bg .card { background: #fff; border-color: var(--line-d); }
.paper-bg .card p { color: #4a4a48; }

/* prose / docs layout */
.prose {
  max-width: 72ch; margin: 0 auto;
  font-size: 16px; line-height: 1.65; color: #d8d5cc;
}
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; letter-spacing: -0.015em; margin: 48px 0 16px; color: var(--paper); }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 36px 0 12px; color: var(--paper); }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(198,255,74,0.3); }
.prose code { font-family: var(--mono); font-size: 13px; background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; }
.prose blockquote {
  border-left: 2px solid var(--accent); padding: 12px 0 12px 24px;
  font-family: var(--serif); font-size: 24px; line-height: 1.35; font-style: italic; margin: 32px 0;
  color: var(--paper);
}
.paper-bg .prose { color: #2a2a28; }
.paper-bg .prose h2, .paper-bg .prose h3, .paper-bg .prose blockquote { color: var(--ink); }

/* two-col layout */
.two-col { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; }

/* side CTA */
.inline-cta {
  background: var(--accent); color: var(--accent-ink);
  padding: 80px; border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: end; gap: 40px;
}
.inline-cta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.5vw, 56px); line-height: 1.05; max-width: 18ch; }
.inline-cta .btn.primary { background: var(--ink); color: var(--paper); }

/* footer */
footer { background: var(--bg); padding: 80px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 60px; }
.foot-grid h5 { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 20px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-grid ul a { font-size: 14px; color: #c9c6bd; }
.foot-grid ul a:hover { color: var(--accent); }
.foot-brand .logo-mark { height: auto; margin-bottom: 20px; }
.foot-brand .logo-mark img { height: 44px; }
.foot-brand p { font-size: 14px; color: #a8a59c; line-height: 1.5; max-width: 36ch; }
.foot-news input {
  width: 100%; padding: 14px 16px; background: transparent;
  border: 1px solid var(--line); border-radius: 99px; color: var(--paper);
  font: inherit; font-size: 13px;
}
.foot-news input:focus { outline: none; border-color: var(--accent); }
.foot-news form { display: flex; gap: 8px; margin-top: 12px; }
.foot-news .btn { padding: 12px 18px; font-size: 13px; }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: 0.1em;
}
.foot-wm {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(180px, 28vw, 520px);
  line-height: 0.82; letter-spacing: -0.06em;
  text-align: center; color: transparent;
  margin: 40px -4vw -0.18em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(242,238,230,0.95) 0%, rgba(242,238,230,0.25) 55%, rgba(242,238,230,0.04) 100%);
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none; overflow: hidden; display: block;
}
.foot-wm .green {
  background: linear-gradient(180deg, rgba(198,255,74,0.95) 0%, rgba(198,255,74,0.15) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; font-style: italic;
}

/* responsive */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .inline-cta { flex-direction: column; align-items: flex-start; padding: 48px; }
  .pg-hero .meta-row { flex-wrap: wrap; gap: 20px 32px; }
  [style*="grid-column: span"] { grid-column: auto !important; }
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  nav.topnav { padding: 12px 20px; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(11,11,12,0.96);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.topnav.on-paper .nav-links { background: rgba(242,238,230,0.98); border-color: var(--line-d); }
  .nav-link { padding: 14px 12px; font-size: 12px; }
  .nav-link::after { display: none; }
  .nav-right { display: none; }
  .nav-mobile-cta { display: block; color: var(--accent); }
  .logo-mark img { height: 36px; }
  .btn { max-width: 100%; justify-content: center; text-align: center; padding: 12px 18px; }
  h1.display { font-size: clamp(40px, 11.5vw, 50px); letter-spacing: -0.015em; }
  h2.display { font-size: clamp(34px, 10vw, 44px); letter-spacing: -0.015em; }
  .section { padding: 80px 0; }
  .pg-hero { padding: 140px 0 60px; }
  .pg-hero .meta-row { flex-direction: column; gap: 16px; }
  .card { padding: 24px; }
  .card h3 { font-size: 28px; }
  .inline-cta { padding: 36px 24px; gap: 24px; }
  .inline-cta h3 { max-width: none; }
  .inline-cta > div { flex-wrap: wrap; }
  [style*="grid-template-columns: repeat("],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="display: flex"][style*="gap: 24px"],
  [style*="display:flex"][style*="gap: 24px"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }
  [style*="display: flex"][style*="gap: 10px"],
  [style*="display:flex"][style*="gap: 10px"] {
    flex-wrap: wrap !important;
  }
  [style*="font-size: 88px"],
  [style*="font-size: 80px"] {
    font-size: 56px !important;
  }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bot { flex-direction: column; gap: 10px; }
  .foot-news form { flex-direction: column; }
  .foot-wm {
    font-size: clamp(72px, 24vw, 108px);
    letter-spacing: -0.04em;
    margin: 36px -10px -0.08em;
    white-space: nowrap;
  }
}
