/* Rogue Superintelligence — brand system
   Tokens and components per the brand scheme. No radius, no gradients, no shadows. */

:root {
  --void: #08090B;
  --surface: #101216;
  --line: #23262C;
  --line-strong: #3A3F47;
  --ink: #E9EBEE;
  --ink-muted: #8A919C;
  --ink-faint: #5A6068;
  --signal: #B8FF2E;
  --hazard: #FF4B33;

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1240px;
  --pad-x: 48px;
  --pad-y: 80px;
  /* Slightly more room above a section title than below its content, so the
     kicker/heading reads as the start of something. */
  --section-top: 104px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-gutter: stable; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Column + auto margin on the footer keeps short pages from leaving it mid-viewport. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: var(--signal); color: var(--void); }

a { color: var(--signal); text-decoration: none; }
a:hover { color: var(--ink); }

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

/* ---------- ambient texture ---------- */

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- signature: blinking cursor ---------- */

@keyframes rsBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.78em;
  background: var(--signal);
  margin-left: 0.08em;
  transform: translateY(0.08em);
  animation: rsBlink 1.1s steps(1) infinite;
}

/* The cursor is part of the wordmark and stays, but the closing lockup
   holds it still rather than blinking. */
.cursor-static { animation: none; }

/* ---------- primary wordmark lockup ---------- */

.lockup-name {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lockup-sub {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.3vw, 15px);
  letter-spacing: 0.52em;
  color: var(--ink-muted);
  margin-top: 10px;
}

/* ---------- layout ---------- */

/* Horizontal longhands only. The `padding` shorthand here would set
   padding-top/bottom to 0 at class specificity and silently kill the vertical
   rhythm on any element that is both .wrap and a section. */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}

section {
  padding-top: var(--section-top);
  padding-bottom: var(--pad-y);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 400;
}

/* ---------- typography ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
}

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

.mono { font-family: var(--font-mono); }

.muted { color: var(--ink-muted); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}

.wordmark:hover { color: var(--ink); }

.wordmark-name {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}

.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav-links a {
  color: var(--ink-muted);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { color: var(--signal); }

/* ---------- nav dropdown ---------- */

.dropdown { position: relative; }

.dropdown-toggle {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dropdown-toggle:hover,
.dropdown.open .dropdown-toggle,
.dropdown.active .dropdown-toggle { color: var(--signal); }

.caret { font-size: 8px; line-height: 1; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  min-width: 180px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  z-index: 100;
}

.dropdown.open .dropdown-menu { display: flex; }

.dropdown-menu a { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--void); }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  padding: 9px 10px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  margin: 4px 0;
}

.hamburger:hover { border-color: var(--signal); }
.hamburger:hover span { background: var(--signal); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn:hover { border-color: var(--signal); color: var(--signal); }

.btn-primary {
  background: var(--signal);
  color: var(--void);
  border-color: var(--signal);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--void);
}

/* For a label that is literal data (an address), not a command — uppercasing
   an email address makes it harder to read back. */
.btn-literal { text-transform: none; letter-spacing: 0.04em; }

.btn svg { width: 15px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- tags ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  padding: 5px 10px;
}

.tag-signal { border-color: var(--signal); color: var(--signal); }

/* ---------- cards ---------- */

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.card h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.card p { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 560px;
}

/* ---------- prose (legal + support pages) ---------- */

/* Vertical only — .prose shares an element with .wrap, whose horizontal
   padding the `padding` shorthand would otherwise reset to 0. */
.prose { padding-top: var(--pad-y); padding-bottom: 120px; }

.prose h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 0.98;
  margin-bottom: 16px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.prose p, .prose li { color: var(--ink-muted); font-size: 16px; line-height: 1.7; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose > p:first-of-type { max-width: 720px; }
.prose .body { max-width: 760px; }

.effective-date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 48px;
}

/* ---------- footer ---------- */

/* One block: wordmark left, links stacked right. A single rule off the page
   content — no divider between the mark and the links. */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 64px;
  padding-bottom: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-links a { color: var(--ink-faint); }
.footer-links a:hover { color: var(--signal); }

.footer-copy { margin-top: 28px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --pad-x: 24px; --pad-y: 56px; --section-top: 72px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .nav { flex-wrap: wrap; }

  .hamburger { display: block; }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    margin-top: 20px;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links > a:last-child { border-bottom: none; }

  /* The menu expands inline in the stack instead of floating over the page. */
  .dropdown { position: static; }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    border: none;
    background: transparent;
  }

  .dropdown-menu a { padding: 14px 0 14px 16px; }
  .dropdown-menu a:last-child { border-bottom: none; }

  /* Stack the footer: wordmark, then the links left-aligned beneath it. */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 40px; }
  .footer-links { align-items: flex-start; }
}
