*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

:root {
  --bg: #0b0c10;
  --bg-alt: #14161c;
  --text: #e8e6e1;
  --text-muted: #a9a7a2;
  --accent: #e8a03c;
  --accent-dim: #b97e2c;
  --border: #23262e;
  --radius: 12px;
  --container: 1120px;
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg);
}

.btn-accent:hover { background: var(--accent-dim); }

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

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.02em;
}

.primary-nav {
  display: flex;
  gap: 28px;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
}

.primary-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background: var(--text);
  content: "";
}

.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

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

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .primary-nav.is-open { max-height: 240px; }

  .primary-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
}

.hero {
  padding: 96px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-graphic svg { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { max-width: 320px; margin: 0 auto; }
}

.features {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.features h2 {
  max-width: 20ch;
  margin-bottom: 40px;
}

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

.feature-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card p { margin-bottom: 0; }

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

.story {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-list li {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.stat-list strong {
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

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

@media (max-width: 860px) {
  .story-inner { grid-template-columns: 1fr; }
}

.product {
  padding: 80px 0;
}

.product-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.product-graphic svg { width: 100%; height: auto; }

.product-sub { font-size: 1.05rem; max-width: 44ch; }

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0 0 16px;
}

.spec-list dt {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-list dd {
  margin: 4px 0 0;
  font-family: var(--font-heading);
  font-weight: 600;
}

.spec-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .product-inner { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr 1fr; }
}

.mission {
  padding: 72px 0;
  text-align: center;
}

.mission .container > div {
  max-width: 64ch;
  margin: 0 auto;
}

.capabilities {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.capabilities h2 {
  max-width: 20ch;
  margin-bottom: 40px;
}

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

.capability-tile {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.capability-tile svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 12px;
}

.capability-tile p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

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

.cta-band {
  padding: 88px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
}

.cta-band .container { max-width: 640px; }

.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-disclaimer {
  font-size: 0.85rem;
  margin-top: 12px;
  max-width: 32ch;
}

.site-footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
}

.newsletter-status {
  font-size: 0.85rem;
  color: var(--accent);
  min-height: 1.2em;
  margin: 0 0 16px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  text-decoration: none;
  color: var(--text-muted);
}

.social-links a:hover { color: var(--accent); border-color: var(--accent); }

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

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

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
