/* ========= STELLAR SYSTEMS — INDEX.CSS (PAGE-SPECIFIC; NO NAV RULES) ========= */
/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Theme Tokens + Alignment ===== */
:root{
  /* layout */
  --container: 1200px;      /* shared width across pages */
  --gutter: 24px;           /* side padding */
  --radius: 14px;

  /* spacing scale */
  --s-1: 12px;
  --s-2: 20px;
  --s-3: 32px;
  --s-4: 48px;
  --s-5: 64px;
  --s-6: 100px;

  /* colors */
  --bg: #0b0b13;
  --ink: #ffffff;
  --ink-2: #e2e2f0;
  --muted: #c8c5e0;

  --purple: #8f5fff;        /* core purple */
  --purple-2: #b68aff;      /* lighter accent */
  --purple-3: #7429c6;      /* deep glow */
  --blue: #3b82f6;

  /* effects */
  --glass: rgba(15,15,25,.6);
  --border: rgba(255,255,255,.05);
  --elev-1: 0 8px 18px rgba(0,0,0,.15);
  --elev-2: 0 8px 24px rgba(0,0,0,.25);
}

/* ===== Base ===== */
html, body{
  font-family: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
}
html { overflow-x: clip; }
body { overflow-x: hidden; }

/* starfield / nebula background */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, #3c1a77 0%, var(--bg) 100%),
    url('../images/nebula.png') repeat;
  background-size: cover;
  opacity: .06;
  z-index: 0;
  animation: scrollStars 90s linear infinite;
}
@keyframes scrollStars{
  0%{ background-position: 0 0; }
  100%{ background-position: 0 1000px; }
}

/* universal container + section rhythm */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section{ position: relative; z-index: 2; padding: var(--s-6) 0; }

.section-title{
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--s-5);
  color: var(--ink);
}

/* ===== Hero ===== */
.hero-section{
  position: relative;
  text-align: center;
  padding: calc(var(--s-6) + 120px) 0 var(--s-5); /* clears fixed nav + tidy bottom */
  background: radial-gradient(circle at center, #3d1a78 0%, var(--bg) 90%);
  box-shadow: inset 0 -80px 80px -60px rgba(143,95,255,.18);
}
.hero-section::after{ content: none; }

.gradient-bg{
  position: absolute;
  top: -30%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(ellipse at center, var(--purple-3), #111827);
  filter: blur(140px);
  opacity: .35;
  z-index: 0;
}
.hero-content{ position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero-content h1{
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.subtitle{
  font-size: 1.15rem;
  color: #c5c5df;
  margin-bottom: 40px;
  line-height: 1.65;
}

/* unified buttons */
.btn-primary,
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  line-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(139,92,246,.3);
  transition: transform .3s ease, box-shadow .3s ease, filter .2s ease;
}
.btn-primary:hover{
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px rgba(139,92,246,.45);
  filter: brightness(1.05);
}
.btn-secondary{
  border: 1px solid rgba(143,95,255,.5);
  color: var(--purple-2);
  background: rgba(143,95,255,.08);
  transition: .3s ease;
}
.btn-secondary:hover{ background: rgba(143,95,255,.14); }
.btn-secondary.inline{ height: 44px; line-height: 44px; }

.hero-actions{ display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

.trust-bullets{
  list-style: none;
  margin-top: 12px;
  gap: 16px;
  opacity: .9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  color: #b9b5d6;
  font-size: .95rem;
}
.trust-bullets li{ display: inline-flex; align-items: center; }
.trust-bullets li+li::before{
  content: "•";
  display: inline-block;
  margin: 0 14px;
  opacity: .35;
}

/* ===== Proof Strip ===== */
.proof-strip{
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: var(--s-5);
  padding-bottom: var(--s-4);
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
}
.proof-strip .container{ padding-left: var(--gutter); padding-right: var(--gutter); }

.metrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: var(--s-4);
  align-items: end;
  text-align: center;
}
.metric .num{
  font-size: clamp(2rem, 1.4rem + 1.2vw, 2.6rem);
  font-weight: 700;
  color: var(--purple-2);
  margin-bottom: 6px;
}
.metric .label{ font-size: .96rem; color: var(--muted); }

.logo-row{
  margin-top: var(--s-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip{
  background: rgba(143,95,255,.12);
  border: 1px solid rgba(143,95,255,.35);
  color: #d5c7ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .85rem;
}

/* No global seams between sections */
section::before{ content: none !important; }

/* ===== Services preview (cards) ===== */
.service-cards{ padding-top: var(--s-5); }
.service-cards .card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
@media (max-width: 1024px){
  .service-cards .card-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .service-cards .card-grid{ grid-template-columns: 1fr; }
}

.service-card{
  background: rgba(255,255,255,.02);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  transition: .3s ease;
  box-shadow: var(--elev-2);
  height: 100%;
}
.service-card:hover{ transform: translateY(-4px) scale(1.02); }
.service-card .icon{ color: var(--purple); margin-bottom: 18px; }
.service-card h3{ margin-bottom: 10px; font-size: 1.22rem; color: var(--ink); }
.service-card p{ font-size: 1rem; color: #ccc; line-height: 1.6; }

.center-more{ text-align: center; margin-top: 28px; }
.btn-link{
  color: var(--purple-2);
  text-decoration: none;
  font-weight: 600;
}
.btn-link:hover{ text-decoration: underline; }

/* ===== Method / Reasons ===== */
.why-stellaris{ padding-top: var(--s-5); }
.why-stellaris h2{
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 56px;
}
.reasons{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 1024px){
  .reasons{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .reasons{ grid-template-columns: 1fr; }
}
.reason{
  background: rgba(255,255,255,.02);
  padding: 28px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  height: 100%;
}
.reason h4{ font-size: 1.05rem; color: #bfaaff; margin-bottom: 10px; }
.reason p{ color: #ccc; line-height: 1.55; }

/* ===== Final CTA ===== */
.final-cta{
  margin-top: var(--s-5);
  text-align: center;
  background: linear-gradient(145deg, #6f2bd5, #3b1b75);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(139,92,246,.25);
}
.final-cta .container{
  display: grid;
  place-items: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--gutter);
}
.final-cta h2{ font-size: 2.3rem; }
.btn-secondary.inline{ margin-left: 12px; }

/* ===== Footer ===== */
.footer{
  text-align: center;
  padding: 40px var(--gutter);
  font-size: .9rem;
  color: #888;
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: var(--s-6);
}

/* ===== Responsive Tweaks (page-only) ===== */
@media (max-width: 900px){
  .metrics{ grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (max-width: 768px){
  .hero-content h1{ font-size: 2.6rem; }
  .subtitle{ font-size: 1rem; }
  .section-title{ font-size: 2.2rem; }
  .reason, .service-card{ padding: 24px; }
}
