/* Alethos Design System — Web
 * Dark theme, Inter + JetBrains Mono
 * Responsive (desktop + mobile; QR-code friendly on phones)
 */

:root {
  --bg: #06090E;
  --bg-elev: #0D1218;
  --surface: #10161F;
  --border: #1E2A3D;
  --border-strong: #3A4E6B;
  --text: #EEF2F8;
  --text-dim: #DFE6F0;
  --text-muted: #B8C5D9;
  --text-soft: #A8B5C9;
  --blue: #1E8FFF;
  --blue-dim: #0F5FC2;
  --green: #2ACA6A;
  --orange: #F5A623;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

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

/* ── Accent bar (top) ───────────────────────────── */
.accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 30%, transparent 90%);
}

/* ── Layout ─────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.wrap-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Header ─────────────────────────────────────── */
header.site {
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(28px, 5vw, 56px);
}
.site-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 200;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text);
}
.brand a { color: var(--text); }
.brand a:hover { color: var(--blue); }
.brand-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 400;
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 4px;
}
.nav {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
}
.nav a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--blue); }

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .nav a { font-size: 11px; }
}

/* ── Hero / Title block ─────────────────────────── */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.title {
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.005em;
  margin-bottom: 20px;
}
.title strong { font-weight: 500; color: var(--blue); }
.title .mfd { color: var(--text-soft); font-weight: 300; font-size: .68em; }

.hook {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--blue);
  letter-spacing: .04em;
  border-left: 2px solid var(--blue);
  padding-left: 16px;
  line-height: 1.4;
  margin-bottom: 24px;
}

.intro {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 32px;
}

/* ── Sections ───────────────────────────────────── */
.section { margin-bottom: clamp(24px, 4vw, 44px); }
.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-strong);
}
.section p {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.6;
  color: var(--text-dim);
}
.section ul { list-style: none; padding: 0; }
.section li {
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.5;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.section li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 400;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 44px);
  margin-bottom: clamp(24px, 4vw, 44px);
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Role-meta chips ────────────────────────────── */
.role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pill {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── Apply CTA block ────────────────────────────── */
.apply-cta {
  margin-top: clamp(32px, 5vw, 56px);
  margin-bottom: clamp(32px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.apply-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 70%);
}
.apply-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 14px;
}
.apply-email-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(18px, 3.2vw, 28px);
  color: var(--text);
  letter-spacing: .02em;
  padding: 14px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(30, 143, 255, 0.05);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  margin-bottom: 14px;
  word-break: break-all;
}
.apply-email-link:hover {
  background: rgba(30, 143, 255, 0.12);
  border-color: var(--blue);
  color: var(--text);
}
.apply-email-link .arrow {
  color: var(--blue);
  font-weight: 500;
  flex-shrink: 0;
}
.apply-note {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: .02em;
}

/* ── Role cards (hub page) ──────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(48px, 8vw, 80px);
}
.role-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
  color: var(--text);
}
.role-card:hover {
  border-color: var(--blue);
  background: var(--bg-elev);
  color: var(--text);
  transform: translateY(-1px);
}
.role-card .role-level {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
  white-space: nowrap;
  align-self: start;
  padding-top: 4px;
  min-width: 110px;
}
.role-card .role-title {
  font-weight: 300;
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.2;
  color: var(--text);
}
.role-card .role-title strong { font-weight: 500; color: var(--blue); }
.role-card .role-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
  letter-spacing: .04em;
}
.role-card .role-arrow {
  font-size: 24px;
  color: var(--blue);
  font-weight: 300;
  padding-left: 8px;
  transition: transform .15s ease;
}
.role-card:hover .role-arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .role-card {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .role-card .role-level { min-width: 0; padding-top: 0; }
  .role-card .role-arrow { display: none; }
}

/* ── Back-link ──────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.back-link:hover { color: var(--blue); }
.back-link::before { content: '←'; color: var(--blue); }

/* ── Footer ─────────────────────────────────────── */
footer.site {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
footer.site a { color: var(--text-muted); }
footer.site a:hover { color: var(--blue); }

/* ── Root / hero section ────────────────────────── */
.hero {
  padding: clamp(48px, 10vw, 120px) 0 clamp(32px, 6vw, 72px);
}
.hero .title { max-width: 900px; }
.hero .intro { max-width: 620px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 6px;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn-primary {
  background: var(--blue);
  color: var(--bg);
  border: 1px solid var(--blue);
}
.btn-primary:hover { background: #3FA1FF; color: var(--bg); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

/* ── Legal pages ────────────────────────────────── */
.legal .title { margin-bottom: 8px; }
.legal-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: .04em;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.legal-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.legal-dim { color: var(--text-soft); font-style: italic; }
.legal ul { margin-top: 8px; margin-bottom: 12px; }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); font-weight: 500; }

/* ── Footer links ───────────────────────────────── */
.footer-links {
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  flex-wrap: wrap;
  align-items: center;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--blue); }

/* ── Utility ────────────────────────────────────── */
.mb-0 { margin-bottom: 0 !important; }
