/* VR — Vitality Rich design system
   Dark floor + antique gold. Industrial sans (Archivo + condensed display).
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Narrow:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Ink */
  --ink-0: #000000;
  --ink-1: #0a0a0b;
  --ink-2: #111113;
  --ink-3: #17171a;
  --ink-4: #1e1e22;
  --ink-5: #2a2a2f;
  --line: #2d2d33;
  --line-soft: #1f1f24;

  /* Paper (inverse accents) */
  --bone: #f4efe4;
  --bone-dim: #d8d2c3;
  --fog: #8a8680;
  --smoke: #5a5854;

  /* Accent — signal green on black/white (variables kept named --gold for compatibility) */
  --gold: #3ddc84;
  --gold-hot: #5be89a;
  --gold-deep: #1fa35e;
  --gold-ink: #041a0d;

  /* Signal */
  --blood: #c8302a;
  --signal-ok: #7fb069;

  /* Type */
  --f-display: 'Archivo Narrow', 'Archivo', 'Helvetica Neue', sans-serif;
  --f-body: 'Archivo', 'Helvetica Neue', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --radius-lg: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink-1);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { min-height: 100vh; overflow-x: hidden; }

/* Theming via data-attr */
body[data-accent="emerald"] {
  --gold: #00c566;
  --gold-hot: #1fe07f;
  --gold-deep: #008a46;
  --gold-ink: #021a0c;
}
body[data-accent="mono"] {
  --gold: #f4f4f2;
  --gold-hot: #ffffff;
  --gold-deep: #a8a8a4;
  --gold-ink: #0a0a0a;
}

body[data-density="compact"] { --gutter: clamp(16px, 3vw, 40px); }

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

/* ============ Placeholder pattern ============ */
.ph {
  position: relative;
  background: var(--ink-3);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(61, 220, 132, 0.04) 0 12px,
    rgba(61, 220, 132, 0.08) 12px 24px
  );
}
.ph-label {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--ink-1);
  padding: 4px 8px;
  border: 1px solid var(--line);
  z-index: 2;
}
.ph-corner {
  position: absolute;
  top: 10px; right: 10px;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--fog);
  letter-spacing: 0.08em;
  z-index: 2;
}

/* ============ Type ============ */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mono {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--fog);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ============ Containers ============ */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-tight {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-primary:hover { background: var(--gold-hot); }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-solid {
  background: var(--bone);
  color: var(--ink-1);
}
.btn-solid:hover { background: var(--bone-dim); }

.btn-sm { padding: 10px 14px; font-size: 12px; }
.btn-lg { padding: 20px 28px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ============ Inputs ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fog);
}
.field label .req { color: var(--gold); }
.input, .textarea, .select {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--bone);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--ink-3);
}
.textarea { resize: vertical; min-height: 100px; }
.input.err, .textarea.err { border-color: var(--blood); }
.err-msg {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blood);
}
.help {
  font-size: 12px;
  color: var(--fog);
}

/* radio group */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.radio-tile {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
}
.radio-tile:hover { border-color: var(--gold-deep); }
.radio-tile.active {
  border-color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, var(--ink-2));
}
.radio-tile .rt-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.radio-tile .rt-sub { font-size: 12px; color: var(--fog); }

/* ============ Sections ============ */
section { position: relative; }
.section-pad {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.section-head .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 8px 0 0;
  max-width: 18ch;
}
.section-head .side { max-width: 380px; color: var(--bone-dim); font-size: 15px; }

/* ============ Marquee ============ */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}
.marquee-inner {
  display: inline-flex;
  gap: 48px;
  padding: 18px 0;
  animation: marquee 36s linear infinite;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.marquee-inner .tick {
  color: var(--gold);
  font-family: var(--f-mono);
  font-size: 14px;
  align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Scroll reveal ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Accessibility ============ */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}
