/* ============================================================
   OFFENSIVE BITS — shared stylesheet
   ============================================================ */

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

:root {
  /* Surface */
  --bg-0: oklch(0.13 0.012 150);
  --bg-1: oklch(0.17 0.012 150);
  --bg-2: oklch(0.22 0.012 150);
  --bg-3: oklch(0.27 0.013 150);
  --line: oklch(0.30 0.015 150);
  --line-soft: oklch(0.24 0.013 150);

  /* Foreground */
  --fg: oklch(0.97 0.005 150);
  --fg-2: oklch(0.78 0.010 150);
  --fg-3: oklch(0.58 0.012 150);
  --fg-4: oklch(0.42 0.012 150);

  /* Brand */
  --green: oklch(0.82 0.20 145);
  --green-deep: oklch(0.55 0.16 145);
  --green-soft: oklch(0.35 0.10 145);
  --green-veil: oklch(0.25 0.06 145);
  --green-glow: oklch(0.90 0.22 145);

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1280px;
  --pad-x: 40px;
  --radius: 4px;
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--green); color: var(--bg-0); }

/* ----------- Layout -------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

section { position: relative; }

.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

@media (max-width: 720px) {
  .section-pad { padding: 80px 0; }
  .section-pad-sm { padding: 56px 0; }
}

.divider {
  height: 1px;
  background: var(--line-soft);
  width: 100%;
}

/* ----------- Typography ----------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  line-height: 1.05;
}

.h-display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.h-1 {
  font-size: clamp(40px, 5.2vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.h-2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.h-3 {
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { margin: 0; }

.lead {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 300;
  text-wrap: pretty;
  max-width: 64ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  display: inline-block;
}

.label-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.muted { color: var(--fg-2); }
.subtle { color: var(--fg-3); }

/* ----------- Buttons ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--green); color: var(--green); }

.btn-primary {
  background: var(--green);
  color: var(--bg-0);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-glow);
  border-color: var(--green-glow);
  color: var(--bg-0);
}

.btn .arrow {
  width: 12px;
  height: 8px;
  position: relative;
  transition: transform 0.18s ease;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn .arrow svg { display: block; }

/* ----------- Nav ----------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg-0) 85%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.nav-logo .mark {
  width: 28px;
  height: 28px;
  border: 1px solid var(--green);
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
}
.nav-logo .word {
  display: flex;
  gap: 2px;
}
.nav-logo .slash { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-2);
  transition: color 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--green); }
.nav-links a.active::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--green);
}

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

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ----------- Hero common --------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 75%);
  opacity: 0.5;
}

/* ----------- Cards & panels ------ */
.panel {
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.card:hover { border-color: var(--green-soft); }

/* corner ticks */
.tick-corners { position: relative; }
.tick-corners::before,
.tick-corners::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--green);
}
.tick-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.tick-corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ----------- Status dot ---------- */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.dot-pulse {
  position: relative;
}
.dot-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

/* ----------- Footer -------------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 80px 0 40px;
  background: var(--bg-0);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: var(--fg-2); font-size: 14px; transition: color 0.15s; }
.footer ul a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 16px;
}

/* ----------- Tag chips ----------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: color-mix(in oklab, var(--bg-1) 70%, transparent);
}

/* small reset utilities */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }

/* Mono pill list */
.idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}

/* Animated marquee */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Scanline subtle bg */
.scanlines {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    color-mix(in oklab, var(--green) 6%, transparent) 2px,
    color-mix(in oklab, var(--green) 6%, transparent) 3px
  );
}

/* ----------- Form ----------- */
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--display);
  font-size: 15px;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green);
}
.textarea { resize: vertical; min-height: 140px; font-family: var(--display); }

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}

/* Mobile nav toggle button (placeholder, hidden on desktop) */
.nav-toggle {
  display: none;
}
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--fg);
    padding: 10px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
}
