/* ThinkingOLabs — cleaner, faster design system */

:root {
  --ink: #0a0b0d;
  --panel: #101216;
  --panel-2: #14171c;
  --border: #1c1f25;
  --border-strong: #262a32;
  --fg: #f1f2f4;
  --fg-dim: #c4c8d0;
  --muted: #858a94;
  --muted-2: #555a64;
  --accent: #e85a2c;
  --accent-2: #ff7a4d;
  --accent-glow: rgba(232, 90, 44, 0.28);
  --accent-soft: rgba(232, 90, 44, 0.07);
  --good: #5fd9a0;
  --warn: #ffb347;

  --font-sans: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --container: 1200px;
  --rail: 56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
.eyebrow .dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--fg);
}
h1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -0.014em; }

p { color: var(--fg-dim); line-height: 1.6; margin: 0; font-size: 15px; }
.lede { font-size: 17px; color: var(--fg-dim); max-width: 60ch; line-height: 1.55; }
/* Consistent reading-text scale used across pages */
.text-body { font-size: 15px; line-height: 1.6; }
.text-sm { font-size: 13px; line-height: 1.55; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 13, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.brand-mark { width: 22px; height: 22px; }
.brand-name { font-size: 14.5px; letter-spacing: -0.005em; }
.brand-name .o { color: var(--accent); }

.nav-links { display: flex; gap: 2px; margin-left: 20px; }
.nav-link {
  padding: 7px 11px;
  font-size: 13px;
  color: var(--fg-dim);
  border-radius: var(--radius-sm);
  transition: color 0.12s, background 0.12s;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }
.nav-link.active::before {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 6px; align-items: center; }

/* Burger — hidden on desktop */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: rgba(10, 11, 13, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 76px 24px 40px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 48;
  overflow-y: auto;
}
.nav-mobile.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-mobile-links { display: flex; flex-direction: column; }
.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--border);
  transition: color 0.12s, padding 0.15s;
}
.nav-mobile-link:hover, .nav-mobile-link:active { color: var(--fg); padding-left: 12px; }
.nav-mobile-link.active { color: var(--fg); }
.nav-mobile-link.active .nav-mobile-arrow { color: var(--accent); }
.nav-mobile-arrow { color: var(--muted-2); font-size: 18px; }
.nav-mobile-cta { margin-top: 28px; justify-content: center; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.btn-ghost { color: var(--fg-dim); }
.btn-ghost:hover { color: var(--fg); }
.btn-secondary { border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--panel); border-color: var(--muted-2); }
.btn-primary {
  background: var(--accent);
  color: #1a0d05;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--accent);
}
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.btn-lg { padding: 12px 18px; font-size: 14px; }

.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(2px); }

/* CARDS */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--border-strong); }

/* SECTIONS */
.section { padding: 80px 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 20px;
  margin-bottom: 44px;
  align-items: start;
}
.section-index {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  padding-top: 6px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--fg-dim);
  transition: color 0.12s;
}
.footer-col a:hover { color: var(--fg); }
.footer-col .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 14.5px;
  color: var(--fg);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

/* PILL */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--fg-dim);
}
.pill .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* PAGE HERO */
.page-hero { padding: 80px 0 40px; border-bottom: 1px solid var(--border); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 11px 20px; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  h1 { font-size: clamp(34px, 9vw, 48px); }
}
