/* ================================================================
   Luthien Space — MVP pitch stylesheet
   Design direction: Apple-adjacent restraint on a near-black canvas,
   indigo as accent (dialed cooler than the logo indigo).
================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:root {
  --bg: #0B0C14;
  --surface: #14161F;
  --surface-2: #1B1E2A;
  --ink: #EDEDF2;
  --ink-dim: #9A9BA8;
  --accent: #6B5FFF;
  --accent-soft: rgba(107, 95, 255, 0.14);
  --accent-cyan: #8FD4FF;
  --border: rgba(237, 237, 242, 0.08);
  --border-strong: rgba(237, 237, 242, 0.14);
  --container: 1240px;
  --gutter: 40px;
  --rhythm: 120px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1 { font-size: clamp(44px, 7.5vw, 88px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; }
p  { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-dim);
  max-width: 60ch;
  line-height: 1.55;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), background 200ms var(--ease),
              border-color 200ms var(--ease), opacity 200ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #7A6FFF; }
.btn-ghost {
  color: var(--ink);
  border-color: var(--border-strong);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn .arrow {
  display: inline-block;
  transition: transform 200ms var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 0;
  transition: padding 300ms var(--ease), background 300ms var(--ease),
              backdrop-filter 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(11, 12, 20, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-brand .brand-logo { height: 36px; }
.brand-mark {
  width: 34px; height: 34px;
  flex: none;
  color: var(--ink);
  overflow: visible;
}
.brand-orbit {
  transform-origin: 50% 50%;
  transform-box: fill-box;
  transform: rotate(-22deg);
  transition: transform 2000ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-brand:hover .brand-orbit,
.footer-brand:hover .brand-orbit {
  transform: rotate(338deg);
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-links {
  display: flex; gap: 36px; align-items: center;
}
.nav-links a {
  color: var(--ink-dim); font-size: 14px;
  transition: color 150ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: white;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: background 200ms var(--ease);
}
.nav-cta:hover { background: #7A6FFF; color: white; }

@media (max-width: 800px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 0; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 40px; max-width: 34ch; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* moon visual — topographic image blended into the canvas */
.moon-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 560px;
  margin-left: auto;
  display: grid; place-items: center;
}
.moon-wrap::before {
  /* outer indigo halo — ties the moon into the palette */
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(107, 95, 255, 0.22) 0%,
      rgba(107, 95, 255, 0.09) 42%,
      transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.moon {
  position: relative;
  z-index: 1;
  width: 96%; aspect-ratio: 1;
  border-radius: 50%;
  background-image: url('assets/moon-topo.jpg');
  background-size: cover;
  background-position: 55% center;
  filter: saturate(0.92) contrast(1.02);
  /* radial mask feathers the disc into the near-black canvas */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 60%, rgba(0,0,0,0.7) 78%, transparent 92%);
  mask-image: radial-gradient(circle at 50% 50%, black 60%, rgba(0,0,0,0.7) 78%, transparent 92%);
}

/* backdrop stars */
.stars {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 82% 18%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 60% 72%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 42% 88%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 14% 62%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1px 1px at 90% 55%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 5% 15%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(2px 2px at 75% 35%, rgba(107,95,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 30% 45%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 96% 82%, rgba(143, 212, 255, 0.5), transparent 60%);
  background-size: 100% 100%;
  opacity: 0.7;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .moon-wrap { max-width: 380px; margin: 0 auto; }
}

/* ---------- sections ---------- */
section { padding: var(--rhythm) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 24px; }
.section-head .lede { max-width: 56ch; }

/* ---------- products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease),
              background 300ms var(--ease);
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(107,95,255,0.08), transparent 40%);
  opacity: 0; transition: opacity 400ms var(--ease);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 95, 255, 0.38);
  background: var(--surface-2);
}
.product-card:hover::before { opacity: 1; }
.product-card .num {
  color: var(--accent);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.product-card h3 { margin: 18px 0 14px; }
.product-card p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; }

@media (max-width: 720px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 32px 28px; }
}

/* ---------- process ---------- */
.process {
  background: linear-gradient(180deg, transparent, rgba(107,95,255,0.025) 50%, transparent);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-step {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.process-step .step-num {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  margin-bottom: 28px;
}
.process-step h3 { margin-bottom: 14px; }
.process-step p { color: var(--ink-dim); font-size: 16px; line-height: 1.6; max-width: 32ch; }

@media (max-width: 720px) {
  .process-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: var(--ink-dim); font-size: 18px; line-height: 1.65; }
.about-copy p + p { margin-top: 20px; }
.principles {
  display: flex; flex-direction: column;
  gap: 10px;
}
.principle {
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.principle:hover { border-color: rgba(107,95,255,0.35); background: var(--surface); }
.principle-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 12px rgba(107, 95, 255, 0.5);
}
.principle-text { font-size: 15px; }

@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- team teaser ---------- */
.team-teaser {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}
.avatar {
  width: 128px; height: 128px; border-radius: 50%;
  background: linear-gradient(135deg, #2A2E44, #14161F);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 40px; font-weight: 600; letter-spacing: -0.02em;
  flex: none;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px 32px;
  margin-top: 56px;
}
.team-card { text-align: left; }
.team-card .avatar {
  width: 72px; height: 72px; font-size: 22px;
  margin-bottom: 20px;
}
.team-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.team-card .role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.team-card p {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 42ch;
}
.team-teaser-cta { margin-top: 56px; text-align: center; }

@media (max-width: 720px) {
  .team-member .avatar { width: 96px; height: 96px; font-size: 32px; }
}

/* ---------- contact ---------- */
.contact {
  text-align: center;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: -100px;
  background: radial-gradient(600px circle at center, rgba(107,95,255,0.08), transparent 60%);
  pointer-events: none;
}
.contact-inner { position: relative; z-index: 1; }
.contact h2 { max-width: 22ch; margin: 0 auto 24px; }
.contact .lede { margin: 0 auto 40px; }
.contact-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  color: var(--ink-dim);
  font-size: 14px;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand .brand-wordmark {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  line-height: 1.15;
}
.footer-brand .brand-sub {
  color: var(--ink-dim);
  font-size: 10px;
  letter-spacing: 0.26em;
  font-weight: 500;
}
.footer-tag { color: var(--ink-dim); font-size: 12.5px; font-style: italic; opacity: 0.75; }
.footer-tag sup { font-size: 0.7em; vertical-align: super; line-height: 0; margin-left: 1px; }
.footer a { color: var(--ink-dim); }
.footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 24px; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- team page ---------- */
.team-hero {
  padding: 200px 0 80px;
  text-align: center;
  position: relative;
}
.team-hero .eyebrow { margin-bottom: 24px; }
.team-hero h1 { margin-bottom: 24px; }
.team-hero .lede { margin: 0 auto; }

.team-list { padding: 60px 0 var(--rhythm); }
.team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.team-member:last-child { border-bottom: 1px solid var(--border); }
.team-member .avatar { margin: 0; }
.team-member .role {
  color: var(--accent);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 20px;
}
.team-member h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 6px; }
.team-member p { color: var(--ink-dim); max-width: 62ch; margin-bottom: 16px; font-size: 17px; }
.team-member .contact-links {
  display: flex; gap: 24px; margin-top: 24px;
  font-size: 14px;
  flex-wrap: wrap;
}
.team-member .contact-links a { color: var(--accent); }
.team-member .contact-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .team-member { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
}

.placeholder-note {
  margin: 60px auto 0;
  max-width: 720px;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(107, 95, 255, 0.22);
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
}
.placeholder-note strong { color: var(--ink); font-weight: 600; }
