/* Stella SRE — site styles */
:root {
  --bg: #070c16;
  --bg-soft: #0a1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: #0e192b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eff8;
  --muted: #9aabc3;
  --muted-strong: #b9c6d8;
  --accent: #4fe3c1;
  --accent-soft: rgba(79, 227, 193, 0.12);
  --accent-2: #86a8ff;
  --warning: #f2c94c;
  --max: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(79, 227, 193, 0.13), transparent 62%),
    radial-gradient(900px 520px at -5% 8%, rgba(134, 168, 255, 0.11), transparent 58%),
    var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: 1.18rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  color: #04110d;
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  color: #04110d;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 650;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.muted {
  color: var(--muted);
}

.grad {
  background: linear-gradient(100deg, var(--accent) 5%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 12, 22, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.site-nav a:not(.btn):hover {
  color: var(--text);
}

.site-nav .btn {
  margin-left: 4px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: #04110d;
  background: var(--accent);
}

.btn-primary:hover {
  background: #6cf0d4;
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* Hero */
.hero {
  padding: clamp(64px, 10vw, 118px) 0 clamp(48px, 7vw, 82px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
}

.hero h1 {
  max-width: 12ch;
}

.lede {
  max-width: 55ch;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 320px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 227, 193, 0.16), transparent 68%);
  filter: blur(8px);
}

.orbit {
  width: min(100%, 430px);
  height: auto;
  overflow: visible;
}

.orbit-rings {
  transform-origin: 200px 200px;
  animation: spin 46s linear infinite;
}

.orbit-rings-reverse {
  transform-origin: 200px 200px;
  animation: spin 64s linear infinite reverse;
}

.orbit-node {
  animation: pulse 4s ease-in-out infinite;
}

.orbit-node:nth-child(2) {
  animation-delay: -1.4s;
}

.orbit-node:nth-child(3) {
  animation-delay: -2.8s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* Stats */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 30px 0;
}

.stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 0.84rem;
}

/* Sections */
.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: rgba(79, 227, 193, 0.34);
  background: linear-gradient(180deg, rgba(79, 227, 193, 0.06), rgba(255, 255, 255, 0.015));
  transform: translateY(-3px);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 227, 193, 0.18);
  border-radius: 12px;
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Quote */
.quote {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  align-items: start;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 46px);
  background: linear-gradient(135deg, rgba(79, 227, 193, 0.08), rgba(134, 168, 255, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote-mark {
  color: var(--accent);
  font-size: 4rem;
  line-height: 0.85;
  font-family: Georgia, "Times New Roman", serif;
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: -0.015em;
}

.quote cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px);
  background:
    radial-gradient(600px 260px at 85% 15%, rgba(79, 227, 193, 0.16), transparent 65%),
    linear-gradient(135deg, #0c1728, #0a1322);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
}

.cta h2 {
  max-width: 18ch;
}

.cta p {
  max-width: 52ch;
  color: var(--muted-strong);
}

.cta .hero-actions {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 54px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 32ch;
  margin-top: 14px;
}

.footer-col h4 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col li + li {
  margin-top: 9px;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(79, 227, 193, 0.12);
}

/* Subpage hero */
.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(34px, 5vw, 54px);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-hero .lede {
  margin-top: 6px;
}

/* Prose */
.prose {
  max-width: 760px;
  padding-bottom: 40px;
}

.prose h2 {
  margin-top: 2.2em;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose p,
.prose li {
  color: var(--muted-strong);
}

.prose li {
  margin-bottom: 0.55rem;
  padding-left: 1.2rem;
  position: relative;
}

.prose li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.prose code {
  padding: 0.12em 0.38em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.86em;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.value {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
  padding-bottom: 40px;
}

.form-card {
  padding: clamp(24px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(4, 9, 17, 0.55);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 227, 193, 0.12);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(79, 227, 193, 0.22);
  border-radius: 10px;
  font-size: 0.88rem;
}

.form-status.is-visible {
  display: block;
}

.contact-aside h2 {
  font-size: 1.3rem;
}

.contact-aside p {
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.contact-list li:first-child {
  border-top: 1px solid var(--border);
}

.contact-list svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

/* 404 */
.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 80px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.error-page h1 {
  margin-top: 14px;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.error-page p {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 420px;
    min-height: 260px;
    margin-inline: auto;
  }

  .cards,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    background: rgba(8, 14, 25, 0.97);
    border: 1px solid var(--border-strong);
    border-radius: 16px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .site-nav a:not(.btn):hover {
    background: var(--surface);
  }

  .site-nav .btn {
    margin: 6px 0 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 18px;
  }

  .cards,
  .steps,
  .values {
    grid-template-columns: 1fr;
  }

  .quote {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quote-mark {
    font-size: 3rem;
  }

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

@media (max-width: 460px) {
  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
