/* ---------- TOKENS ---------- */
:root {
  --bg: #0D0D0D;
  --bg-elev: #131313;
  --bg-elev-2: #181818;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #EDEDED;
  --text-mute: #8A8A8A;
  --text-dim: #5A5A5A;
  --accent: #007BFF;
  --accent-2: #FFB000;
  --accent-glow: rgba(0, 123, 255, 0.18);

  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 56px);

  --font-sans: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, Menlo, monospace;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ---------- BACKGROUND GRID ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  z-index: 0;
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.brand-x { color: var(--accent); }
.brand-six { color: var(--text); }

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.22em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav a {
  color: var(--text-mute);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 14vw, 160px) var(--pad-x) clamp(80px, 12vw, 140px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, var(--accent-glow), transparent 60%);
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-title .amp {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
}

.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-mute);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #1a8cff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px #1a8cff, 0 12px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero-wave {
  position: relative;
  height: 140px;
  margin: 0 calc(var(--pad-x) * -1);
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0, 123, 255, 0.03), transparent);
}
.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-readouts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.hero-readouts > div {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: var(--bg-elev);
}
.hero-readouts > div:last-child { border-right: none; }
.hero-readouts .lbl {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}
.hero-readouts .val {
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 600px) {
  .hero-readouts { grid-template-columns: repeat(2, 1fr); }
  .hero-readouts > div:nth-child(2) { border-right: none; }
  .hero-readouts > div:nth-child(1),
  .hero-readouts > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--pad-x);
  border-top: 1px solid var(--line);
}

.section-head { margin-bottom: 56px; max-width: 720px; }

.section-num {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.section h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.section-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--text-mute);
  max-width: 600px;
}

/* ---------- PATHS ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .paths-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .paths-grid { grid-template-columns: 1fr; } }

.path-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.path-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.path-card:hover::before { opacity: 1; }

.path-card.path-architect {
  background: linear-gradient(180deg, rgba(0, 123, 255, 0.06), var(--bg-elev) 60%);
  border-color: rgba(0, 123, 255, 0.25);
}
.path-card.path-architect::before { opacity: 1; }

.path-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
}
.path-tag { color: var(--accent); }

.path-card h3 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.path-card p {
  color: var(--text-mute);
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
}
.path-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.path-cta:hover {
  color: var(--accent);
  gap: 10px;
}

/* ---------- BLOCKS ---------- */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 900px) { .blocks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blocks-grid { grid-template-columns: 1fr; } }

.block {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.25s ease;
  position: relative;
}
.block:hover { background: var(--bg-elev); }

.block-num {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.block-num::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.block h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.block ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.block li {
  font-size: 14.5px;
  color: var(--text-mute);
  line-height: 1.55;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  transition: border-color 0.25s ease;
}
.block:hover li { border-color: var(--accent); }

.block li .mono {
  display: block;
  font-size: 10.5px;
  color: var(--text);
  letter-spacing: 0.16em;
  margin-bottom: 2px;
}

/* ---------- PHILOSOPHY ---------- */
.section-phil { padding-bottom: clamp(60px, 10vw, 100px); }

.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .phil-grid { grid-template-columns: 1fr; gap: 16px; } }

.phil {
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.phil-key {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  display: block;
}
.phil p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}

.pull-quote {
  margin: 0;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
  font-style: italic;
}
.pull-quote .quote-mark {
  position: absolute;
  top: -8px;
  left: 24px;
  font-size: 80px;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  font-style: normal;
}

/* ---------- CONTACT ---------- */
.section-contact { padding-bottom: clamp(80px, 12vw, 140px); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.contact-key {
  grid-column: 1 / -1;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
}
.contact-val {
  font-size: 16px;
  color: var(--text);
}
.contact-arrow {
  font-size: 18px;
  color: var(--text-mute);
  transition: transform 0.2s ease, color 0.2s ease;
}
.contact-card:hover .contact-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad-x);
}
.footer-row {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.16em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
