/* ============================================================
   Stella Space — one-page site
   Plain CSS, no dependencies. Dark hero, light body.
   ============================================================ */

:root {
  --gold: #febd02;
  --gold-soft: #ffd23f;
  --space: #070b18;      /* deep space */
  --space-2: #0d1428;    /* lifted panel */
  --ink: #101623;        /* body text on light */
  --muted: #5b6577;      /* secondary text */
  --line: #e7e9ef;       /* hairline on light */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.accent { color: var(--gold); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 .6rem;
}
.eyebrow--light { color: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: var(--pad-y) 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--primary {
  background: var(--gold);
  color: #1a1400;
  box-shadow: 0 8px 24px -8px rgba(254, 189, 2, .6);
}
.btn--primary:hover { background: var(--gold-soft); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--icon svg { width: 20px; height: 20px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 24, .72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { width: 34px; height: auto; }
.brand__name {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 1.05rem;
  color: #fff;
}
.brand__name-accent { color: var(--gold); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__menu a {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  font-size: .96rem;
  transition: color .2s var(--ease);
}
.nav__menu a:hover { color: #fff; }
.nav__cta {
  padding: .5rem 1.15rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold) !important;
}
.nav__cta:hover { background: var(--gold); color: #1a1400 !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #16204a 0%, var(--space-2) 38%, var(--space) 72%);
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(5rem, 14vh, 9rem);
  isolation: isolate;
}
.hero__inner { position: relative; z-index: 2; }

/* starfield made from layered radial gradients (no images, no deps) */
.hero__stars, .contact__stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 75% 20%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 30% 12%, rgba(255,255,255,.6), transparent);
  background-repeat: no-repeat;
  opacity: .9;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: .55; }
  to   { opacity: 1; }
}

/* gold aura behind the logo */
.hero__glow {
  position: absolute;
  z-index: 1;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 90vw);
  height: 620px;
  background: radial-gradient(closest-side, rgba(254,189,2,.28), rgba(254,189,2,0) 70%);
  filter: blur(6px);
  pointer-events: none;
}

.hero__logo {
  width: clamp(96px, 16vw, 150px);
  height: auto;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 6px 30px rgba(254, 189, 2, .35));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero__title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: .02em;
}
.hero__tagline {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: #dfe4f2;
  margin: 1rem auto .4rem;
  max-width: 40ch;
}
.hero__sub {
  color: #97a1bb;
  max-width: 52ch;
  margin: 0 auto 2.2rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 20px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3.5rem, 9vh, 6.5rem) 0;
}
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.section__head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}
.section__head--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 3.2rem);
}
.section__lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: .9rem;
}
.section__body p { margin: 0 0 1.1rem; color: #39424f; font-size: 1.06rem; }
.section__body p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -20px rgba(16, 22, 35, .35);
  border-color: rgba(254, 189, 2, .5);
}
.card__icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff6da, #ffe89a);
  color: #8a6a00;
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #16204a 0%, var(--space-2) 45%, var(--space) 85%);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.contact__inner { position: relative; z-index: 2; max-width: 680px; margin-inline: auto; }
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.contact__lead { color: #aab4cd; margin: 1rem auto 2.2rem; max-width: 46ch; }
.contact__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact form ---------- */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  text-align: left;
  margin: 2.4rem auto 0;
  max-width: 620px;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #c3cbe0;
}
.field input,
.field textarea {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  padding: .8rem .9rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: #6f7a93; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(254, 189, 2, .18);
}

/* honeypot — hidden from humans */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__submit-row {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .3rem;
}
.btn[data-submit].is-loading {
  opacity: .7;
  pointer-events: none;
}
.btn[data-submit].is-loading .btn__label::after {
  content: "…";
}
.form__status {
  margin: 0;
  font-size: .92rem;
  font-weight: 500;
}
.form__status.is-error { color: #ff9a8b; }
.form__status.is-success { color: #7ee0a8; }

.contact__or {
  margin: 2.4rem auto 1.6rem;
  text-align: center;
}
.contact__or span {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: #8792a8;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.contact__or span::before,
.contact__or span::after {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, .16);
}

@media (max-width: 620px) {
  .contact__form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--space);
  color: #fff;
  padding: 2.2rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__meta { color: #8792a8; font-size: .9rem; margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(9, 14, 30, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: .5rem 0 1rem;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .3s var(--ease);
    pointer-events: none;
  }
  .nav__menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
  .nav__menu li { width: 100%; text-align: center; }
  .nav__menu a { display: block; padding: .9rem 0; }
  .nav__cta { display: inline-block; margin-top: .4rem; }

  .section__grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__logo, .hero__stars, .contact__stars, .hero__scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
