/* ---------- Custom properties ---------- */
:root {
  --bg: #111417;
  --bg-alt: #15191d;
  --surface: #191e23;
  --border: #262c33;
  --text: #e9e7e2;
  --muted: #a3adb8;
  --accent: #7fa3bf;
  --accent-strong: #9db8cf;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #111417;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 600px) {
  .container {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

@media (min-width: 700px) {
  .section {
    padding-block: 5.5rem;
  }
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  max-width: 32ch;
}

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.intro {
  max-width: 70ch;
  margin-bottom: 2.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111417;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 20, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media (min-width: 600px) {
  .nav {
    padding-inline: 2rem;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
}

.wordmark svg {
  color: var(--accent);
}

.wm-light {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-cta.btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}

.hamburger {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.hamburger::before {
  top: -5px;
}

.hamburger::after {
  top: 5px;
}

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(163, 173, 184, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: -10%;
  width: 640px;
  height: 640px;
  max-width: 90vw;
  background: radial-gradient(circle, rgba(127, 163, 191, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-network {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero-network polyline,
.hero-network circle {
  vector-effect: non-scaling-stroke;
}

@media (max-width: 820px) {
  .hero-network {
    display: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
}

@media (min-width: 600px) {
  .hero-inner {
    padding-inline: 2rem;
  }
}

.hero h1 {
  max-width: 25ch;
}

.subhead {
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card-grid-6 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (min-width: 960px) {
  .card-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 960px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(127, 163, 191, 0.5);
  transform: translateY(-2px);
}

.card svg {
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.975rem;
}

.card-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* stagger reveal of cards within a grid */
.card-grid .card:nth-child(1) { transition-delay: 0s; }
.card-grid .card:nth-child(2) { transition-delay: 0.05s; }
.card-grid .card:nth-child(3) { transition-delay: 0.1s; }
.card-grid .card:nth-child(4) { transition-delay: 0.15s; }
.card-grid .card:nth-child(5) { transition-delay: 0.2s; }
.card-grid .card:nth-child(6) { transition-delay: 0.25s; }

/* ---------- Why section ---------- */
.why-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.why-list,
.founder-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
}

.why-list li,
.founder-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.why-list li::before,
.founder-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.founder-list {
  margin-top: 1.5rem;
}

.career-line {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.career-line + .career-line {
  margin-top: 1.25rem;
}

.career-label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.founder-links {
  margin-top: 1.25rem;
  font-size: 0.9rem;
}

.founder-links a {
  color: var(--accent);
  text-decoration: none;
}

.founder-links a:hover {
  color: var(--accent-strong);
}

.engagement-highlight {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
}

.engagement-highlight .eyebrow {
  margin-bottom: 0.75rem;
}

.engagement-highlight p:last-child {
  max-width: 75ch;
}

/* ---------- Founder ---------- */
.founder-inner {
  max-width: 680px;
}

.founder-inner p + p {
  margin-top: 1rem;
}

/* ---------- Contact ---------- */
.contact-inner {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.contact-inner h2 {
  margin-inline: auto;
}

.status-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.6s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.contact-inner p {
  margin-bottom: 1.75rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-block: 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

.footer-tagline,
.footer-loc {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-email {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  width: fit-content;
}

.footer-email:hover {
  color: var(--accent-strong);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
