:root {
  --navy-950: #03081f;
  --navy-900: #06146b;
  --navy-800: #0a1f7a;
  --steel-600: #2457d6;
  --steel-400: #5b8def;
  --ink: #0f172a;
  --ink-muted: #475569;
  --paper: #f4f7fb;
  --paper-bright: #ffffff;
  --line: rgba(6, 20, 107, 0.12);
  --hero-veil: linear-gradient(
    105deg,
    rgba(3, 8, 31, 0.92) 0%,
    rgba(6, 20, 107, 0.78) 48%,
    rgba(3, 8, 31, 0.55) 100%
  );
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 68rem;
  --header-h: auto;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--steel-600);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy-900);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--paper-bright);
  color: var(--navy-900);
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #030a2f;
  border-bottom: 1px solid rgba(91, 141, 239, 0.22);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(2.75rem, 7vw, 4.5rem);
  max-width: min(100%, calc(100% - 7rem));
}

.site-header__github {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.4rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #c9d7f5;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.25rem;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-header__github:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header__github-icon {
  display: block;
}

/* —— Hero: full-bleed product visual —— */
.hero {
  position: relative;
  min-height: calc(100vh - 7rem);
  min-height: calc(100dvh - 7rem);
  display: flex;
  align-items: center;
  padding-bottom: 16vh;
  overflow: hidden;
  color: #e8eefc;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-veil);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
}

.hero__motto {
  margin: 0 0 1rem;
  max-width: 28ch;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #c9d7f5;
}

.hero__tagline {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(232, 238, 252, 0.88);
}

.hero__docs-invite {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.02rem;
  color: rgba(232, 238, 252, 0.82);
}

.hero__docs-invite a {
  color: #c9d7f5;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hero__docs-invite a:hover {
  color: #ffffff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 0.2rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: #ffffff;
  color: var(--navy-900);
}

.btn--primary:hover {
  background: #dbe7ff;
  color: var(--navy-900);
}

.btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* —— Sections —— */
.section {
  padding: 4.5rem 0;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-600);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.section__lead {
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--ink-muted);
}

.section p {
  max-width: 40rem;
}

.section__links {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-weight: 600;
}

.section--cast {
  background: var(--paper-bright);
}

.section--capabilities {
  background: linear-gradient(180deg, #eef3fa 0%, var(--paper) 100%);
}

.section--contact {
  background: var(--navy-950);
  color: #d7e2f8;
}

.section--contact .section__eyebrow {
  color: var(--steel-400);
}

.section--contact h2 {
  color: #ffffff;
}

.section--contact .section__lead {
  color: rgba(215, 226, 248, 0.85);
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid var(--steel-400);
}

.contact-email:hover {
  color: #c9d7f5;
}

.contact-address {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.05rem;
  color: rgba(215, 226, 248, 0.85);
}

.capability-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 720px) {
  .capability-list {
    grid-template-columns: 1fr 1fr;
  }
}

.capability-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
}

.capability-list p {
  margin: 0;
  color: var(--ink-muted);
}

.product-figure {
  margin: 2.25rem 0 0;
  padding: 0;
}

.product-figure img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(6, 20, 107, 0.1);
}

.product-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(215, 226, 248, 0.7);
  font-size: 0.92rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer__motto {
  font-style: italic;
}

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

@media (max-width: 640px) {
  .hero__content {
    padding-top: 3rem;
    padding-bottom: 2.75rem;
  }
}
