/* =====================================================================
   Stellaris-ModelScope marketing — landing page styles.
   Layout pattern: split hero, zigzag feature sections, banded sections,
   capabilities grid, use-cases grid, multi-column footer.
   ===================================================================== */

:root {
  --bg:           #0a0e1a;
  --bg-band:      #0d1220;        /* alternating section background */
  --bg-elev:      #131826;        /* card / nav surface */
  --bg-soft:      #1a2032;
  --border:       #232a3d;
  --border-soft:  #1a2032;
  --text:         #f5f6f8;
  --text-mid:     #c5cbdc;
  --text-muted:   #7a839c;
  --accent:       #dc2626;
  --accent-hi:    #ef4444;
  --accent-cool:  #7dcfff;
  --grad-1:       #ef4444;
  --grad-2:       #f97316;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow-card:  0 1px 0 rgba(255,255,255,0.04) inset,
                  0 10px 30px -12px rgba(0,0,0,0.55);
  --shadow-surface:
                  0 1px 0 rgba(255,255,255,0.06) inset,
                  0 24px 60px -20px rgba(0,0,0,0.7),
                  0 12px 40px -10px rgba(220,38,38,0.15);
  --max-w:        1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =====================================================================
   Starfield + glow orbs
   ===================================================================== */

.starfield {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.stars { position: absolute; inset: 0; background-repeat: repeat; }
.stars-near {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 15%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 72% 32%, rgba(255,255,255,0.7),  transparent 60%),
    radial-gradient(1.5px 1.5px at 38% 78%, rgba(255,255,255,0.9),  transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 64%, rgba(255,255,255,0.7),  transparent 60%),
    radial-gradient(1.5px 1.5px at 28% 42%, rgba(255,255,255,0.8),  transparent 60%);
  background-size: 1400px 900px;
  animation: twinkle 6s ease-in-out infinite;
}
.stars-mid {
  background-image:
    radial-gradient(1px 1px at 22% 20%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 65% 55%, rgba(255,255,255,0.5),  transparent 60%),
    radial-gradient(1px 1px at 84% 18%, rgba(255,255,255,0.5),  transparent 60%),
    radial-gradient(1px 1px at 8%  70%, rgba(255,255,255,0.5),  transparent 60%),
    radial-gradient(1px 1px at 50% 88%, rgba(255,255,255,0.5),  transparent 60%);
  background-size: 1100px 700px;
  animation: twinkle 9s ease-in-out infinite;
  animation-delay: -3s;
}
.stars-far {
  background-image:
    radial-gradient(0.7px 0.7px at 18% 30%, rgba(255,255,255,0.4),  transparent 60%),
    radial-gradient(0.7px 0.7px at 48% 12%, rgba(255,255,255,0.4),  transparent 60%),
    radial-gradient(0.7px 0.7px at 75% 70%, rgba(255,255,255,0.4),  transparent 60%),
    radial-gradient(0.7px 0.7px at 32% 60%, rgba(255,255,255,0.4),  transparent 60%);
  background-size: 800px 500px;
  animation: twinkle 12s ease-in-out infinite;
  animation-delay: -6s;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 0.35; }
}

.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; pointer-events: none; }
.glow-red  {
  width: 520px; height: 520px; top: -10vh; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(220,38,38,0.55), transparent 60%);
}
.glow-blue {
  width: 600px; height: 600px; top: 40vh; left: -10vw;
  background: radial-gradient(circle, rgba(56,102,214,0.32), transparent 60%);
}

/* =====================================================================
   Top nav
   ===================================================================== */

.site-nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 26, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; gap: 24px;
}
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: var(--text-mid); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--text); background: rgba(255, 255, 255, 0.04);
}

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-lg { font-size: 15px; padding: 13px 24px; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent));
  color: #ffffff; border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 6px 20px -6px rgba(220, 38, 38, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 30px -8px rgba(220, 38, 38, 0.65);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--text-muted); }

/* =====================================================================
   Reusable bits
   ===================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 12px var(--accent);
}
.grad-text {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  background-clip: text; -webkit-background-clip: text; color: transparent;
}
.dot-sep { color: var(--text-muted); margin: 0 8px; }
.muted   { color: var(--text-muted); }

/* =====================================================================
   HERO — split layout
   ===================================================================== */

.hero {
  padding: 100px 28px 80px;
  max-width: var(--max-w); margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 60px; align-items: center;
}
.hero-text { max-width: 560px; }
.hero-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 24px;
}
.hero-sub {
  font-size: 17px; line-height: 1.65; color: var(--text-mid);
  margin: 0 0 32px; max-width: 540px;
}
.hero-ctas {
  display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap;
}
.hero-meta {
  font-size: 13px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 4px;
}

/* Hero mock — represents the in-app constellation/dim layer view */
.hero-visual { position: relative; }
.hero-mock {
  background: linear-gradient(180deg, #0e1422, #0a0e1a);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-surface);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
}
.hero-mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ef4444; } .dot-y { background: #facc15; } .dot-g { background: #22c55e; }
.hero-mock-label {
  margin-left: 10px; font-size: 11px; color: var(--text-muted);
  font-family: "Inter", monospace; letter-spacing: 0.04em;
}
.hero-mock-canvas { width: 100%; display: block; }
.hero-mock-strip {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 14px;
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border-soft);
}
.strip-cell {
  height: 22px; border-radius: 3px; background: rgba(255,255,255,0.05);
}
.strip-cool { background: rgba(125,207,255,0.35); }
.strip-mid  { background: rgba(220, 38, 38, 0.35); }
.strip-hot  { background: rgba(220, 38, 38, 0.85); box-shadow: 0 0 12px rgba(220,38,38,0.5); }

/* =====================================================================
   STATS BAND
   ===================================================================== */

.stats-band {
  background:
    linear-gradient(180deg, rgba(220,38,38,0.04), transparent),
    var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 38px 28px;
}
.stats-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat-num {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; font-size: 38px; line-height: 1;
  background: linear-gradient(135deg, var(--accent-hi), var(--accent));
  background-clip: text; -webkit-background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}

/* =====================================================================
   ZIGZAG FEATURE ROWS
   ===================================================================== */

.feature-row {
  padding: 90px 28px;
}
.feature-row.alt-bg {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.row-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.row-grid.reverse > .row-visual { order: -1; }
.row-text { max-width: 480px; }
.row-text h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.015em; margin: 0 0 16px;
  font-weight: 700; line-height: 1.15;
}
.row-text p {
  font-size: 16px; line-height: 1.7; color: var(--text-mid); margin: 0 0 22px;
}
.row-list {
  list-style: none; padding: 0; margin: 0;
}
.row-list li {
  font-size: 14px; color: var(--text-mid); line-height: 1.5;
  padding: 8px 0 8px 24px; position: relative;
  border-top: 1px solid var(--border-soft);
}
.row-list li:first-child { border-top: 0; }
.row-list li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Visual surfaces shared by the zigzag rows */
.surface {
  background: linear-gradient(180deg, #0e1422, #0a0e1a);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-surface);
  overflow: hidden;
}
.surface-tilt   { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg); }
.surface-tilt-r { transform: perspective(1400px) rotateY( 3deg) rotateX(2deg); }
.surface-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-soft);
}
.surface-tab {
  margin-left: 10px; font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Heatmap (forward-pass capture visual) */
.heatmap-grid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; padding: 22px;
}
.hm-cell { aspect-ratio: 1; border-radius: 4px; }
.hm-cell.h0 { background: rgba(125,207,255,0.06); }
.hm-cell.h1 { background: rgba(125,207,255,0.18); }
.hm-cell.h2 { background: rgba(125,207,255,0.35); }
.hm-cell.h3 { background: rgba(220, 38,38, 0.30); }
.hm-cell.h4 { background: rgba(220, 38,38, 0.55); }
.hm-cell.h5 {
  background: rgba(220, 38, 38, 0.90);
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.5);
}

.attr-graph, .dim-canvas { width: 100%; display: block; padding: 12px; }

/* =====================================================================
   CAPABILITIES (cards grid)
   ===================================================================== */

.capabilities {
  max-width: var(--max-w); margin: 90px auto; padding: 0 28px;
}
.section-head {
  text-align: center; max-width: 640px; margin: 0 auto 50px;
}
.section-head h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 700;
}
.section-sub {
  font-size: 16px; color: var(--text-mid); line-height: 1.65; margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4; transition: opacity 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 38, 38, 0.25);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset,
              0 18px 50px -15px rgba(220, 38, 38, 0.25);
}
.feature-card:hover::before { opacity: 0.9; }

.feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18), rgba(220, 38, 38, 0.05));
  color: var(--accent-hi); margin-bottom: 18px;
  border: 1px solid rgba(220, 38, 38, 0.25);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 17px; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.005em;
}
.feature-card p {
  font-size: 14px; line-height: 1.6; color: var(--text-mid); margin: 0;
}

/* =====================================================================
   USE CASES
   ===================================================================== */

.use-cases {
  max-width: var(--max-w); margin: 80px auto; padding: 0 28px;
}
.use-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.use-card {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.use-card:hover { transform: translateY(-2px); border-color: rgba(220,38,38,0.3); }
.use-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 18px; margin: 0 0 12px; font-weight: 600;
}
.use-card p { color: var(--text-mid); font-size: 14px; line-height: 1.65; margin: 0; }

/* =====================================================================
   CTA BAND (self-host)
   ===================================================================== */

.cta-band { padding: 0 28px; margin: 100px auto 60px; max-width: var(--max-w); }
.cta-inner {
  padding: 56px 48px;
  background:
    radial-gradient(ellipse at top right, rgba(220,38,38,0.15), transparent 60%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-text { flex: 1; min-width: 320px; }
.cta-text h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px;
  font-weight: 700; letter-spacing: -0.015em;
}
.cta-text p {
  color: var(--text-mid); font-size: 15px; line-height: 1.65; margin: 0;
}

/* =====================================================================
   END CTA — "Get started in under a minute"
   ===================================================================== */

.end-cta {
  padding: 100px 28px 80px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-band);
}
.end-inner h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px;
  font-weight: 700; letter-spacing: -0.015em;
}
.end-inner p {
  color: var(--text-mid); font-size: 16px; margin: 0 0 28px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 28px 40px;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); margin: 0 0 14px; font-weight: 600;
}
.footer-col a, .footer-col span {
  display: block; color: var(--text-muted); font-size: 13px;
  padding: 4px 0; transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-brand-col img { height: 36px; margin-bottom: 14px; }
.footer-tag { color: var(--text-muted); font-size: 13px; margin: 0; max-width: 280px; }

/* =====================================================================
   MOBILE
   ===================================================================== */

@media (max-width: 960px) {
  .hero-grid       { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual     { max-width: 540px; margin: 0 auto; }
  .hero-mock,
  .surface         { transform: none !important; }

  .row-grid        { grid-template-columns: 1fr; gap: 40px; }
  .row-grid.reverse > .row-visual { order: 0; }
  .row-text        { max-width: none; }
  .row-visual      { max-width: 540px; margin: 0 auto; }

  .stats-inner     { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .use-grid        { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .nav-inner { padding: 12px 18px; }
  .brand img { height: 32px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.btn { padding: 8px 12px; font-size: 13px; }

  .hero { padding: 60px 18px 50px; }
  .hero-title { font-size: clamp(34px, 9vw, 48px); }
  .hero-meta .dot-sep { display: none; }

  .feature-row { padding: 70px 18px; }
  .capabilities { padding: 0 18px; margin: 70px auto; }
  .use-cases { padding: 0 18px; margin: 60px auto; }
  .cta-band { padding: 0 18px; }
  .cta-inner { padding: 36px 24px; }
  .end-cta { padding: 80px 18px 60px; }

  .stats-band { padding: 28px 18px; }
  .stat-num { font-size: 30px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
