/* ─── TOKENS ─────────────────────────────────────────────────────────────── */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;

  --color-accent:          #6B7C40;
  --color-accent-light:    #8A9E52;
  --color-accent-muted:    rgba(107, 124, 64, 0.18);
  --color-accent-border:   rgba(107, 124, 64, 0.35);

  --color-bg:              #000000;
  --color-bg-grouped:      #1C1C1E;
  --color-bg-tertiary:     #2C2C2E;
  --color-bg-elevated:     #3A3A3C;

  --color-text-primary:    #FFFFFF;
  --color-text-secondary:  rgba(255, 255, 255, 0.55);
  --color-text-tertiary:   rgba(255, 255, 255, 0.35);

  --color-separator:       rgba(255, 255, 255, 0.08);
  --color-border:          rgba(255, 255, 255, 0.12);

  --color-status-good:     #30D158;
  --color-good-fill:       rgba(48, 209, 88, 0.15);
  --color-status-moderate: #FFD60A;
  --color-moderate-fill:   rgba(255, 214, 10, 0.15);

  --nav-height: 60px;
  --max-width: 1080px;
  --section-pad: 96px;
}

/* ─── RESET ──────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
ul { list-style: none; }

/* ─── NAV ─────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-separator);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--color-text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
  letter-spacing: -0.1px;
}

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

/* ─── BUTTONS ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 1.5px solid transparent;
}

.btn-primary:hover { background: var(--color-accent-light); }

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  border-color: rgba(255,255,255,0.3);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 8px;
}

/* ─── BADGES ─────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.badge-good {
  color: var(--color-status-good);
  background: var(--color-good-fill);
}

.badge-moderate {
  color: var(--color-status-moderate);
  background: var(--color-moderate-fill);
}

/* ─── SECTION BASE ───────────────────────────────────────────────────────── */

.section { padding: var(--section-pad) 24px; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 48px;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 48px) 24px 80px;
  overflow: hidden;
}

/* Topographic line texture background */
.hero-topo {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(107, 124, 64, 0.04) 39px,
      rgba(107, 124, 64, 0.04) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(107, 124, 64, 0.025) 39px,
      rgba(107, 124, 64, 0.025) 40px
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--color-text-primary);
  max-width: 700px;
  margin-bottom: 24px;
  text-wrap: pretty;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

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

.hero-crosshair {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: min(520px, 50vw);
  height: min(520px, 50vw);
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  animation: rotate-slow 60s linear infinite;
}

@keyframes rotate-slow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* ─── PRODUCTS ───────────────────────────────────────────────────────────── */

.products {
  background: var(--color-bg-grouped);
  border-top: 1px solid var(--color-separator);
  border-bottom: 1px solid var(--color-separator);
}

.product-card {
  display: flex;
  gap: 40px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  align-items: flex-start;
}

.product-card-icon img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
}

.product-card-body {
  flex: 1;
  min-width: 0;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.product-platform {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  letter-spacing: 0.2px;
}

.product-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.product-tagline {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  letter-spacing: -0.1px;
}

.product-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  max-width: 600px;
  text-wrap: pretty;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.feature-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
  line-height: 1.6;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.more-products {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px dashed var(--color-border);
  border-radius: 12px;
  text-align: center;
}

.more-text {
  font-size: 13px;
  color: var(--color-text-tertiary);
  letter-spacing: 0.1px;
}

/* ─── ABOUT ──────────────────────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  margin-bottom: 56px;
  align-items: start;
}

.about-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.about-body p + p {
  margin-top: 16px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-tile {
  background: var(--color-bg-grouped);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-primary);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  letter-spacing: 0.1px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--color-separator);
  padding-top: 48px;
}

.pillar {
  padding: 24px;
  background: var(--color-bg-grouped);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pillar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

/* ─── CONTACT ────────────────────────────────────────────────────────────── */

.contact {
  background: var(--color-bg-grouped);
  border-top: 1px solid var(--color-separator);
  border-bottom: 1px solid var(--color-separator);
}

.contact-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-top: -32px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 540px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.contact-card:hover {
  border-color: var(--color-accent-border);
  background: rgba(107, 124, 64, 0.05);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.contact-card-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.contact-card-arrow {
  font-size: 18px;
  color: var(--color-text-tertiary);
  transition: color 0.15s ease, transform 0.15s ease;
}

.contact-card:hover .contact-card-arrow {
  color: var(--color-accent);
  transform: translateX(3px);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.footer {
  padding: 48px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-radius: 7px;
}

.footer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--color-text-tertiary);
  transition: color 0.15s ease;
}

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

.footer-sep {
  height: 1px;
  background: var(--color-separator);
  margin: 24px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom span {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

/* ─── TYPE UTILITY ───────────────────────────────────────────────────────── */

.type-numeric {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────────── */

.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
}

.revealed {
  animation: reveal-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Active nav link */
.nav-links a.active { color: var(--color-text-primary); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  :root {
    --section-pad: 64px;
  }

  .nav-logo-name { display: none; }

  .hero-crosshair { display: none; }

  .hero-headline { font-size: 38px; }

  .product-card {
    flex-direction: column;
    gap: 24px;
  }

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

  .about-stats {
    flex-direction: row;
    gap: 8px;
  }

  .stat-tile { flex: 1; }

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

  .section-title { font-size: 26px; }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav { gap: 14px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo { gap: 6px; }
  .nav-logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .nav-links { gap: 9px; }
  .nav-links a { font-size: 12px; }

  .hero-headline { font-size: 32px; }
  .hero-actions { flex-direction: column; }
  .about-stats { flex-direction: column; }
}

@media (max-width: 360px) {
  .nav-inner { padding: 0 12px; }
  .nav-links { gap: 8px; }
}
