:root {
  --void: #0A0C10;
  --scale: #122A24;
  --scale-line: #1E2A28;
  --glow: #3CFFB0;
  --amber: #E8A855;
  --bone: #ECEAE2;
  --bone-dim: #A9B0AC;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Starfields */
#starfield-far, #starfield-near {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#starfield-far { opacity: 0.5; }
#starfield-near { opacity: 0.85; }

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--scale-line);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 15px;
  color: var(--bone-dim);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__cta {
  font-size: 14px;
  padding: 9px 18px;
  border: 1px solid var(--scale-line);
  border-radius: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav__cta:hover { border-color: var(--glow); color: var(--glow); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 3px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--glow);
  color: var(--void);
}
.btn--primary:hover { transform: translateY(-1px); background: #5cffc0; }
.btn--ghost {
  border: 1px solid var(--scale-line);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--bone-dim); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 0 28px;
}
.hero__scene {
  position: absolute;
  top: 50%;
  right: -6%;
  transform: translateY(-50%);
  width: min(58vw, 760px);
  height: min(58vw, 760px);
  z-index: 0;
}
@media (max-width: 900px) {
  .hero__scene {
    width: 120vw;
    height: 120vw;
    right: -20vw;
    top: 62%;
    opacity: 0.55;
  }
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding-left: max(0px, calc((100% - var(--max-w)) / 2));
}
.hero__title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08;
  color: var(--bone);
}
.hero__sub {
  margin-top: 26px;
  max-width: 480px;
  font-size: 18px;
  color: var(--bone-dim);
  line-height: 1.65;
}
.hero__actions {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: max(28px, calc((100% - var(--max-w)) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--bone-dim);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--glow), transparent);
}

/* Manifesto */
.manifesto {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 160px 28px;
}
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.5;
  color: var(--bone);
  margin: 0;
}
.manifesto__text em {
  font-style: normal;
  color: var(--glow);
}

/* Section head */
.section-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  margin-bottom: 46px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--bone);
}

/* Capabilities */
.capabilities {
  position: relative;
  z-index: 1;
  padding: 60px 0 140px;
}
.capability-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 28px;
  max-width: var(--max-w);
  border-top: 1px solid var(--scale-line);
}
.capability-item {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--scale-line);
  transition: background 0.3s ease;
}
.capability-item:hover { background: rgba(60, 255, 176, 0.03); }
.capability-item__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--bone);
}
.capability-item__desc {
  color: var(--bone-dim);
  max-width: 46ch;
}
@media (max-width: 700px) {
  .capability-item { grid-template-columns: 1fr; gap: 10px; }
}

/* Process */
.process {
  position: relative;
  z-index: 1;
  padding: 40px 0 150px;
  background: linear-gradient(180deg, transparent, var(--scale) 18%, var(--scale) 82%, transparent);
}
.process-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 28px;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-step { border-top: 1px solid var(--scale-line); padding-top: 26px; margin-top: 26px; }
  .process-step:first-child { border-top: none; margin-top: 0; padding-top: 0; }
}
.process-step__index {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--glow);
  margin-bottom: 18px;
}
.process-step__body h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--bone);
}
.process-step__body p {
  color: var(--bone-dim);
  font-size: 15px;
  margin: 0;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 28px 120px;
  text-align: center;
}
.cta__title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--bone);
  line-height: 1.25;
}
.cta__email {
  display: inline-block;
  margin-top: 22px;
  font-size: 18px;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--scale-line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cta__email:hover { color: var(--glow); border-color: var(--glow); }
.cta__actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--scale-line);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--bone-dim);
}
