@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #0D0D0B;
  --surface: #141410;
  --surface-2: #1A1A15;
  --ink: #E8E2D4;
  --ink-light: #A09880;
  --ink-faint: #5A5445;
  --amber: #D4A843;
  --green: #4A7C4A;
  --red: #C94040;
  --rule: #252520;
  --rule-bright: #2E2E28;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
.mono { font-family: 'IBM Plex Mono', monospace; }
.sans { font-family: 'IBM Plex Sans', sans-serif; }
h1, h2, h3, h4 { font-family: 'IBM Plex Serif', serif; font-weight: 600; line-height: 1.2; color: var(--ink); }
a { color: var(--ink-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--amber); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,11,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-bright);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--gutter);
  max-width: 1100px; margin: 0 auto;
}
.nav-logo {
  font-family: 'IBM Plex Serif', serif;
  font-size: 18px; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em;
}
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta {
  color: var(--amber) !important;
  border: 1px solid rgba(212,168,67,.3);
  padding: 6px 16px;
}
.nav-cta:hover { background: rgba(212,168,67,.08); color: var(--amber) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); font-size: 22px; line-height: 1; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--rule-bright);
    flex-direction: column; padding: 24px; gap: 20px;
  }
  .nav-links.open { display: flex; }
}

/* TICKER */
.ticker { background: var(--surface-2); border-bottom: 1px solid var(--rule-bright); padding: 8px 0; overflow: hidden; white-space: nowrap; }
.ticker-inner {
  display: inline-block;
  animation: ticker 40s linear infinite;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.ticker-inner span { color: var(--amber); margin: 0 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* BUTTONS */
.btn {
  display: inline-block; padding: 12px 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.15s; border-radius: 0;
}
.btn-amber { background: var(--amber); color: var(--bg); }
.btn-amber:hover { background: #e0b450; color: var(--bg); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--rule-bright); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost { background: transparent; color: var(--ink-light); border: 1px solid var(--rule); }
.btn-ghost:hover { color: var(--amber); border-color: rgba(212,168,67,.3); }

/* EMAIL FORM */
.email-form { display: flex; max-width: 480px; }
.email-form input[type=email] {
  flex: 1; background: var(--surface-2);
  border: 1px solid var(--rule-bright); border-right: none;
  color: var(--ink); padding: 12px 16px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px;
  outline: none; border-radius: 0; transition: border-color 0.2s;
}
.email-form input[type=email]:focus { border-color: var(--amber); }
.email-form input[type=email]::placeholder { color: var(--ink-faint); }
.email-form button {
  background: var(--amber); color: var(--bg);
  border: none; padding: 12px 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; font-weight: 600; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; white-space: nowrap;
}
.email-form button:hover { background: #e0b450; }
.form-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--ink-faint); margin-top: 8px; letter-spacing: 0.08em;
}
@media (max-width: 500px) {
  .email-form { flex-direction: column; }
  .email-form input[type=email] { border-right: 1px solid var(--rule-bright); border-bottom: none; }
  .email-form button { padding: 12px; }
}

/* LABELS */
.label {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 0;
}
.label-amber { color: var(--amber); border: 1px solid rgba(212,168,67,.3); background: rgba(212,168,67,.06); }
.label-green { color: var(--green); border: 1px solid rgba(74,124,74,.3); background: rgba(74,124,74,.06); }
.label-red { color: var(--red); border: 1px solid rgba(201,64,64,.3); background: rgba(201,64,64,.06); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }
.text-ink { color: var(--ink); }
.text-ink-light { color: var(--ink-light); }
.text-ink-faint { color: var(--ink-faint); }
.text-dim { color: var(--ink-faint); }

/* CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--rule-bright);
  padding: 28px 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(212,168,67,.3); }
.card-amber { border-top: 2px solid var(--amber); }
.card-green { border-top: 2px solid var(--green); }

/* SECTIONS */
section { padding: 72px 0; }
.section-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.section-label::before { content: '// '; }
.section-title { font-size: clamp(24px, 4vw, 40px); margin-bottom: 14px; }
.section-sub { color: var(--ink-faint); font-size: 15px; max-width: 580px; margin-bottom: 44px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 300; }
.accent-bar { height: 2px; background: var(--amber); width: 40px; margin-bottom: 20px; opacity: 0.6; }

/* HERO */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 80px 0;
  border-bottom: 1px solid var(--rule-bright);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; display: block; width: 24px; height: 1px; background: var(--amber); }
.hero h1 { font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.02em; margin-bottom: 22px; line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero-sub {
  font-family: 'IBM Plex Sans', sans-serif; font-weight: 300;
  font-size: 16px; color: var(--ink-light);
  margin-bottom: 36px; max-width: 520px; line-height: 1.7;
}

/* MEMO BLOCK */
.memo {
  background: var(--surface-2);
  border: 1px solid var(--rule-bright);
  border-left: 3px solid var(--amber);
  padding: 24px 32px;
}
.memo-row { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.memo-row:last-child { border-bottom: none; }
.memo-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 2px; }
.memo-value { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; color: var(--ink-light); }
.memo-value.highlight { color: var(--bg); background: var(--amber); padding: 2px 8px; display: inline-block; font-weight: 600; }

/* STATS */
.stat-number { font-family: 'IBM Plex Serif', serif; font-size: 40px; font-weight: 600; color: var(--amber); line-height: 1; }
.stat-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--ink-faint); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em; }

/* CHECKLIST */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-light); font-family: 'IBM Plex Sans', sans-serif; font-weight: 300; }
.checklist li::before { content: '→'; color: var(--amber); font-family: 'IBM Plex Mono', monospace; flex-shrink: 0; margin-top: 2px; font-size: 12px; }

/* ALERTS */
.alert { padding: 12px 16px; font-size: 13px; margin-top: 10px; display: none; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
.alert-success { background: rgba(74,124,74,.08); border: 1px solid rgba(74,124,74,.3); color: var(--green); }
.alert-error { background: rgba(201,64,64,.08); border: 1px solid rgba(201,64,64,.3); color: var(--red); }

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.15em; color: var(--ink-faint); text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--surface-2); border: 1px solid var(--rule-bright);
  color: var(--ink); padding: 11px 14px;
  font-family: 'IBM Plex Sans', sans-serif; font-size: 14px;
  outline: none; border-radius: 0; transition: border-color 0.2s; width: 100%;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--amber); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--ink-faint); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--surface); }

/* PAGE HERO */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--rule-bright); }

/* KIT NUMBER */
.kit-num { font-family: 'IBM Plex Mono', monospace; font-size: 28px; font-weight: 600; color: var(--amber); opacity: 0.35; margin-bottom: 10px; line-height: 1; }

/* FOOTER */
footer { background: var(--surface); border-top: 1px solid var(--rule-bright); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand-name { font-family: 'IBM Plex Serif', serif; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.footer-brand-name span { color: var(--amber); }
.footer-tagline { color: var(--ink-faint); font-size: 13px; max-width: 300px; line-height: 1.6; margin-bottom: 18px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 300; }
.footer-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-socials a { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; transition: color 0.2s; }
.footer-socials a:hover { color: var(--amber); }
.footer-col h4 { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--ink-faint); font-size: 13px; font-family: 'IBM Plex Sans', sans-serif; }
.footer-col ul li a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--ink-faint); letter-spacing: 0.06em; }

/* RULE */
.rule { border: none; border-top: 1px solid var(--rule); }
