/* ============================================================
   SpaceMine — Marketing Website (rev. 3)
   Multi-page, screenshot-driven, anti-slop.
   Pure black, real logo, real panel shots, no invented UI.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&family=Kode+Mono:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  line-height: 1.55;
  font-family: 'Outfit', sans-serif;
  background: #000000;
  color: #f5f5f5;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code, pre { font-family: 'Kode Mono', monospace; }

:root {
  --c-ink:        #000000;
  --c-ink-1:      #0a0a0a;
  --c-ink-2:      #111111;
  --c-ink-3:      #1a1a1a;
  --c-line:       #222222;
  --c-line-soft:  rgba(34, 34, 34, 0.5);

  --c-amber:      #f59e0b;
  --c-amber-dim:  #d97706;
  --c-teal:       #14b8a6;
  --c-teal-dim:   #0d9488;
  --c-danger:     #ef4444;
  --c-success:    #22c55e;

  --c-text-primary:   #f5f5f5;
  --c-text-secondary: #a3a3a3;
  --c-text-muted:     #525252;
  --c-text-dim:       #404040;

  --font-display: 'Syne', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'Kode Mono', monospace;

  color-scheme: dark;
}

/* ── Typography helpers ── */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.eyebrow-amber {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-amber);
}

/* ── Layout primitives ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--c-line);
}
.section-header {
  margin-bottom: 3rem;
  max-width: 46rem;
}
.section-header h1, .section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--c-text-secondary);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--c-amber);
  color: var(--c-ink);
}
.btn-primary:hover { background: var(--c-amber-dim); }
.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border-color: var(--c-line);
}
.btn-ghost:hover { color: var(--c-text-primary); border-color: var(--c-text-muted); }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 0.9375rem; }
.link-action {
  color: var(--c-amber);
  font-weight: 500;
  transition: color 0.2s;
}
.link-action:hover { color: var(--c-amber-dim); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid var(--c-line);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--c-text-primary);
}
.nav-brand .icon-mark { color: var(--c-amber); height: 20px; width: auto; }
.nav-brand .icon-wordmark { height: 16px; width: auto; color: var(--c-text-primary); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: 1rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--c-text-primary); }
.nav-links a.active { border-bottom-color: var(--c-amber); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 0.875rem; }
.nav-login {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  transition: color 0.2s;
}
.nav-login:hover { color: var(--c-text-primary); }
.nav-menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 2px;
  color: var(--c-text-secondary); border: 1px solid var(--c-line);
}
.nav-mobile {
  display: none;
  background: var(--c-ink-1);
  border-bottom: 1px solid var(--c-line);
  padding: 1rem 1.5rem;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-secondary);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--c-line);
}
.nav-mobile a:hover { color: var(--c-text-primary); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: inline-flex; }
  .nav-login { display: none; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.04) 0%, transparent 35%);
  pointer-events: none;
}
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  background: rgba(255,255,255,0.55);
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-brand .icon-mark { color: var(--c-amber); height: 28px; width: auto; }
.hero-brand .icon-wordmark { height: 20px; width: auto; color: var(--c-text-primary); }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 26rem;
}
.hero h1 span { display: block; }
.hero-sub {
  font-size: 1.125rem;
  color: var(--c-text-secondary);
  max-width: 26rem;
  margin: 1.25rem 0 2rem;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--c-ink-2);
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}

/* ── Screenshot cards ── */
.shot-card {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-ink-1);
  overflow: hidden;
}
.shot-card img {
  width: 100%;
  height: auto;
  display: block;
}
.shot-caption {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .shot-grid { grid-template-columns: 1fr; }
}

/* ── Feature rows ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.feature-copy p {
  color: var(--c-text-secondary);
  font-size: 1rem;
  max-width: 32rem;
}
.feature-media img {
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: 3px;
}
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-row.reverse .feature-copy, .feature-row.reverse .feature-media { order: unset; }
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.price-card {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-ink-1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--c-amber);
  background: rgba(245, 158, 11, 0.04);
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem;
}
.price-card .interval {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-bottom: 1.25rem;
}
.price-card ul {
  flex: 1;
  margin-bottom: 1.25rem;
}
.price-card li {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--c-line);
}
.price-card li:last-child { border-bottom: none; }
.price-note {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-ink-1);
  color: var(--c-text-muted);
  font-size: 0.875rem;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Technology capability cards ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.tech-card {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-ink-1);
  overflow: hidden;
}
.tech-card header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--c-line);
}
.tech-card header h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}
.tech-card header p {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin-top: 0.25rem;
}
.tech-card .tech-body {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--c-text-secondary);
  background: var(--c-ink-2);
}
@media (max-width: 760px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ── AI roadmap ── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.roadmap-card {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-ink-1);
  padding: 1.25rem;
}
.roadmap-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-teal);
  border: 1px solid var(--c-line);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}
.roadmap-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.roadmap-card p {
  font-size: 0.9375rem;
  color: var(--c-text-secondary);
}
@media (max-width: 760px) {
  .roadmap-grid { grid-template-columns: 1fr; }
}

/* ── Status placeholder ── */
.status-box {
  border: 1px solid var(--c-line);
  border-radius: 3px;
  background: var(--c-ink-1);
  padding: 2.5rem;
  text-align: center;
}
.status-box h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.status-box p {
  color: var(--c-text-secondary);
  max-width: 36rem;
  margin: 0 auto;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--c-line);
  padding: 3rem 0;
  background: var(--c-ink-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.footer-brand .icon-mark { color: var(--c-amber); height: 18px; width: auto; }
.footer-brand .icon-wordmark { height: 14px; width: auto; color: var(--c-text-primary); }
.footer-copy {
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  max-width: 16rem;
}
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.875rem;
}
.footer-links a {
  display: block;
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  padding: 0.25rem 0;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-text-primary); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .star { animation: none; opacity: 0.35; }
}

/* ── Page hero (compact) ── */
.page-hero {
  padding: 8rem 0 3.5rem;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 28rem;
}
.page-hero p {
  font-size: 1.0625rem;
  color: var(--c-text-secondary);
  max-width: 36rem;
  margin-top: 1rem;
}

/* ── Panel gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.gallery .shot-card:first-child {
  grid-column: 1 / -1;
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot-card:first-child { grid-column: auto; }
}

/* ── Utility ── */
.text-muted { color: var(--c-text-muted); }
.text-secondary { color: var(--c-text-secondary); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
