:root {
  --navy: #020919;
  --bg: #101419;
  --blue: #0d4fba;
  --blue-light: #78b8ff;
  --cta-blue: #0066ff;
  --ink: #081426;
  --muted-ink: #516174;
  --text: #e0e2eb;
  --text-muted: #c2c6d8;
  --text-faint: #8c90a1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

@media (min-width: 700px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1100px) {
  .container {
    padding: 0 64px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 78% 10%,
    rgba(0, 86, 210, 0.18) 0%,
    transparent 55%
  );
}

.site-header {
  position: relative;
  z-index: 2;
  background: rgba(16, 20, 25, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  height: 50px;
  width: auto;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #c2c6d8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 759px) {
  .nav-links {
    display: none;
  }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 80px 24px 128px;
}

@media (max-width: 699px) {
  .hero {
    padding: 52px 20px 80px;
  }
}

.hero-copy {
  max-width: 600px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin: 0 0 22px;
}

.accent {
  color: var(--blue-light);
}

.hero-lead {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-hint {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--cta-blue);
  color: #f8f8ff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-header-enter {
  background: var(--cta-blue);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.9rem;
}

.principles {
  padding-bottom: 128px;
}

@media (max-width: 699px) {
  .principles {
    padding-bottom: 88px;
  }
}

.principles-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}

@media (max-width: 759px) {
  .principles-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

.eyebrow {
  color: var(--blue-light);
  font-weight: 800;
  letter-spacing: 1.2px;
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.principles-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.principles-description {
  max-width: 390px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1079px) {
  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.principle-card {
  min-height: 212px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(0, 86, 210, 0.06);
  display: flex;
  flex-direction: column;
}

.principle-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 102, 255, 0.13);
  border: 1px solid rgba(120, 184, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  margin-bottom: auto;
}

.principle-card h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.principle-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.tech-statement {
  min-height: 420px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #060b14;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 128px;
}

@media (max-width: 699px) {
  .tech-statement {
    margin-bottom: 88px;
  }
}

.tech-statement-overlay {
  background: rgba(6, 11, 20, 0.78);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.tech-statement-overlay > * {
  max-width: 680px;
  text-align: center;
}

.tech-statement h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  color: #fff;
  margin: 0 0 20px;
}

.tech-statement p {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #d7dae3;
  margin: 0;
}

.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(11, 14, 20, 0.82);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-row .wordmark {
  height: 40px;
  width: 156px;
  object-fit: contain;
}

.footer-copy {
  flex: 1;
  min-width: 200px;
  color: var(--text-faint);
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

@media (max-width: 699px) {
  .footer-row {
    justify-content: center;
    text-align: center;
  }
  .footer-copy {
    order: 3;
    flex-basis: 100%;
    text-align: center;
  }
  .footer-links {
    order: 4;
    flex-basis: 100%;
    justify-content: center;
  }
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(2, 6, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dialog-backdrop[hidden] {
  display: none;
}

.dialog {
  background: #1d2022;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
}

.dialog h3 {
  margin: 0 0 12px;
}

.dialog p {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 20px;
}
