/* ── Reset & Variables ─────────────────────────────────────── */
:root {
  --bg:        #0a0a0a;
  --surface:   #111111;
  --border:    rgba(255,255,255,0.08);
  --border-md: rgba(255,255,255,0.15);
  --text:      #ffffff;
  --text-2:    rgba(255,255,255,0.50);
  --text-3:    rgba(255,255,255,0.25);
  --text-4:    rgba(255,255,255,0.12);
  --radius:    8px;
  --px:        32px;
}

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

html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

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

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

section { border-bottom: 0.5px solid var(--border); }

.label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 32px;
}

em { font-style: normal; color: rgba(255,255,255,0.30); }


/* ── Nav ───────────────────────────────────────────────────── */
nav { border-bottom: 0.5px solid var(--border); }

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

.nav-logo img { display: block; }

.nav-links { list-style: none; display: flex; gap: 24px; }

.nav-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color .15s;
}

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

.nav-cta {
  font-size: 13px;
  border: 0.5px solid var(--border-md);
  padding: 7px 16px;
  border-radius: var(--radius);
  transition: background .15s;
}

.nav-cta:hover { background: rgba(255,255,255,0.06); }


/* ── Footer ────────────────────────────────────────────────── */
footer { border-top: 0.5px solid var(--border); padding: 28px 0; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 12px; color: var(--text-4); }

.footer-links { display: flex; gap: 20px; }

.footer-links a {
  font-size: 12px;
  color: var(--text-3);
  transition: color .15s;
}

.footer-links a:hover { color: var(--text-2); }


/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  font-size: 13px;
  background: #fff;
  color: #0a0a0a;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: opacity .15s;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  font-size: 13px;
  color: var(--text-2);
  border: 0.5px solid var(--border-md);
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: color .15s, border-color .15s;
  display: inline-block;
}

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


/* ══════════════════════════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════════════════════════ */

/* Hero */
.hero { padding: 80px 0 72px; }

.hero h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 560px;
  margin: 0 0 20px;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 420px;
  line-height: 1.65;
  margin: 0 0 32px;
}

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


/* Features */
.features { padding: 56px 0; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.feat-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background .15s;
}

.feat-card:hover { background: var(--surface); }

.feat-icon {
  width: 32px;
  height: 32px;
  border: 0.5px solid var(--border-md);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feat-card h3 { font-size: 14px; font-weight: 500; margin: 0 0 8px; }

.feat-card p { font-size: 13px; color: var(--text-3); line-height: 1.6; margin: 0; }


/* Projects strip */
.projects-strip { padding: 56px 0; }

.prod-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: opacity .15s;
}

.prod-row:last-child { border-bottom: none; }

.prod-row:hover { opacity: 0.75; }

.prod-left { display: flex; align-items: center; gap: 16px; }

.prod-num { font-size: 11px; color: var(--text-4); min-width: 18px; }

.prod-name { font-size: 15px; font-weight: 500; color: var(--text); margin: 0; }

.prod-desc { font-size: 13px; color: var(--text-3); margin: 2px 0 0; }

.prod-right { display: flex; align-items: center; gap: 12px; }

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 0.5px solid;
  letter-spacing: 0.04em;
}

.badge.live  { color: var(--text-2);  border-color: var(--border-md); }
.badge.beta  { color: var(--text-3);  border-color: rgba(255,255,255,0.10); }
.badge.dev   { color: var(--text-4);  border-color: rgba(255,255,255,0.07); }

.arrow { font-size: 14px; color: var(--text-4); }


/* About strip */
.about-strip { padding: 56px 0; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 48px;
  align-items: start;
}

.about-quote {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.stats { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }

.stat-label { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }


/* ══════════════════════════════════════════════════════════════
   HOME — PHILOSOPHY + TECHNICAL APPROACH
══════════════════════════════════════════════════════════════ */
.philosophy { padding: 56px 0; }

.phil-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 64px;
  align-items: start;
}

.phil-left h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.phil-right p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.phil-right p:last-child { margin-bottom: 0; }

.tech-approach { padding: 56px 0; }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.approach-card {
  background: var(--bg);
  padding: 28px 28px 32px;
}

.approach-num {
  display: block;
  font-size: 11px;
  color: var(--text-4);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.approach-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.4;
}

.approach-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   PRODUCTS PAGE
══════════════════════════════════════════════════════════════ */
.page-header { padding: 64px 0 56px; }

.page-header h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.65;
}

.product-section { padding: 56px 0; }

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.product-title-block { display: flex; flex-direction: column; gap: 8px; }

.product-title-block h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

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

.product-meta .badge { margin: 0; }

.product-stack { font-size: 12px; color: var(--text-4); letter-spacing: 0.04em; }

.product-links { display: flex; gap: 12px; flex-shrink: 0; }

.product-link {
  font-size: 12px;
  color: var(--text-3);
  border: 0.5px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color .15s, border-color .15s;
}

.product-link:hover { color: var(--text); border-color: var(--border-md); }

.product-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 48px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.product-features h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 16px;
}

.product-features ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.product-features li {
  font-size: 13px;
  color: var(--text-3);
  padding-left: 16px;
  position: relative;
}

.product-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-4);
}


/* Product callout boxes */
.product-callout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
}

.callout-col {
  background: var(--surface);
  padding: 24px 28px;
}

.callout-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
}

.callout-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   DOCS PAGE
══════════════════════════════════════════════════════════════ */
.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr);
  gap: 0;
  min-height: calc(100vh - 60px - 85px);
}

.docs-sidebar {
  border-right: 0.5px solid var(--border);
  padding: 40px 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

.sidebar-nav { padding: 0 24px; }

.sidebar-group { margin-bottom: 28px; }

.sidebar-group-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
  display: block;
}

.sidebar-group ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.sidebar-group li a {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 0;
  display: block;
  transition: color .15s;
}

.sidebar-group li a:hover,
.sidebar-group li a.active { color: var(--text); }

.sidebar-top-link {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 0;
  display: block;
  margin-bottom: 16px;
  transition: color .15s;
}

.sidebar-top-link:hover,
.sidebar-top-link.active { color: var(--text); }

.docs-content { padding: 40px 56px 80px; }

.docs-section { margin-bottom: 56px; }

.docs-section h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  padding-top: 8px;
}

.docs-section h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
  margin-top: 32px;
}

.docs-section h3:first-child { margin-top: 0; }

.docs-section p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.docs-section p:last-child { margin-bottom: 0; }

pre {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 16px 0;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.docs-divider {
  height: 0.5px;
  background: var(--border);
  margin: 40px 0;
}

.docs-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.docs-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.65;
}

.docs-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-4);
}




/* ══════════════════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════════════════ */
.about-hero { padding: 64px 0 56px; }

.about-hero h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 28px;
}

.about-intro {
  font-size: 16px;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.7;
}

.about-intro p { margin-bottom: 16px; }
.about-intro p:last-child { margin-bottom: 0; }

.how-we-work { padding: 56px 0; }

.how-we-work h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.work-card {
  background: var(--bg);
  padding: 28px 24px;
}

.work-card h3 { font-size: 14px; font-weight: 500; margin: 0 0 10px; }

.work-card p { font-size: 13px; color: var(--text-3); line-height: 1.6; margin: 0; }

.principles { padding: 56px 0; }

.principles h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
}

.principle-list { list-style: none; display: flex; flex-direction: column; }

.principle-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.06);
  font-size: 15px;
  color: var(--text-2);
}

.principle-list li:last-child { border-bottom: none; }

.principle-num {
  font-size: 11px;
  color: var(--text-4);
  min-width: 20px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.about-cta { padding: 56px 0; }

.about-cta p {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: -0.01em;
  line-height: 1.5;
  max-width: 500px;
  margin-bottom: 28px;
}

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


/* About extended section */
.about-extended { padding: 0 0 56px; border-bottom: 0.5px solid var(--border); }

.about-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 64px;
}

.about-two-col h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  line-height: 1.35;
}

.about-two-col p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-two-col p:last-child { margin-bottom: 0; }

.about-two-col .label { margin-bottom: 12px; }

/* Engineering standards */
.eng-standards { padding: 56px 0; }

.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.standard-item {
  background: var(--bg);
  padding: 28px 28px 32px;
}

.standard-item h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
}

.standard-item p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════════
   BLOG PAGE
══════════════════════════════════════════════════════════════ */
.blog-page { max-width: 680px; margin: 0 auto; padding: 0 var(--px); }

.blog-header { padding: 64px 0 48px; }

.blog-header h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.blog-header p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}

.blog-list { padding-bottom: 80px; }

.post-row {
  padding: 20px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-row:last-child { border-bottom: none; }

.post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-4); }

.post-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color .15s;
}

.post-row:hover .post-title { color: var(--text-2); }

.post-summary { font-size: 13px; color: var(--text-3); line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   BLOG POST PAGE
══════════════════════════════════════════════════════════════ */
.post-page { max-width: 680px; margin: 0 auto; padding: 0 var(--px); }

.post-back {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  padding: 28px 0 0;
  transition: color .15s;
}

.post-back:hover { color: var(--text-2); }

.post-header { padding: 32px 0 40px; border-bottom: 0.5px solid var(--border); }

.post-header .label { margin-bottom: 16px; }

.post-header h1 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.post-body { padding: 40px 0 80px; }

.post-body p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
}

.post-body p:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --px: 20px; }

  .nav-links { display: none; }

  .hero h1 { font-size: 32px; }

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

  .product-body { grid-template-columns: 1fr; }

  .product-header { flex-direction: column; }

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

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

  .docs-layout { grid-template-columns: 1fr; }

  .docs-sidebar { display: none; }

  .docs-content { padding: 32px 0 60px; }

  .page-header h1 { font-size: 32px; }

  .phil-grid { grid-template-columns: 1fr; gap: 32px; }

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

  .product-callout { grid-template-columns: 1fr; }

  .about-two-col { grid-template-columns: 1fr; gap: 40px; }

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

  .about-hero h1 { font-size: 32px; }

  .blog-header h1 { font-size: 32px; }

  .post-header h1 { font-size: 26px; }
}
