/* Shared stylesheet for all Inova Studio pages */

:root {
  --bg:      oklch(99% 0.002 240);
  --surface: oklch(100% 0 0);
  --fg:      oklch(18% 0.012 250);
  --muted:   oklch(54% 0.012 250);
  --border:  oklch(92% 0.005 250);
  --accent:  oklch(58% 0.18 255);
  --accent-soft: color-mix(in oklch, var(--accent), white 86%);
  --shadow: color-mix(in oklch, var(--fg), transparent 93%);
  --focus: color-mix(in oklch, var(--accent), transparent 84%);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:      oklch(16% 0.012 250);
  --surface: oklch(20% 0.014 250);
  --fg:      oklch(94% 0.006 250);
  --muted:   oklch(70% 0.012 250);
  --border:  oklch(31% 0.014 250);
  --accent:  oklch(70% 0.16 245);
  --accent-soft: color-mix(in oklch, var(--accent), black 78%);
  --shadow: color-mix(in oklch, black, transparent 45%);
  --focus: color-mix(in oklch, var(--accent), transparent 72%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 180ms ease, color 180ms ease;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.page { min-height: 100vh; overflow: hidden; }
.wrap { width: min(1180px, calc(100vw - 48px)); margin: 0 auto; }
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in oklch, var(--border), transparent 18%);
  background: color-mix(in oklch, var(--bg), transparent 10%);
  backdrop-filter: blur(18px);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo { width: 144px; height: auto; display: block; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: color-mix(in oklch, var(--fg), var(--muted) 28%);
  font-size: 14px;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--fg); }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}
.theme-toggle:hover { border-color: color-mix(in oklch, var(--accent), var(--border) 42%); }
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.button:focus-visible,
.tab-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.theme-toggle svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  transition: opacity 160ms ease, transform 160ms ease;
}
.theme-toggle .moon-icon { opacity: 1; transform: scale(1); }
.theme-toggle .sun-icon { opacity: 0; transform: scale(0.7) rotate(-45deg); }
:root[data-theme="dark"] .theme-toggle .moon-icon { opacity: 0; transform: scale(0.7) rotate(45deg); }
:root[data-theme="dark"] .theme-toggle .sun-icon { opacity: 1; transform: scale(1); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--fg);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: currentColor;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.button.primary { background: var(--accent); color: white; }
:root[data-theme="dark"] .button.primary { color: oklch(12% 0.02 250); }
.button.secondary { background: var(--surface); border-color: var(--border); color: var(--fg); }
.button svg { width: 16px; height: 16px; }
.hero {
  padding: clamp(76px, 9vw, 128px) 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: end;
}
h1 {
  margin: 18px 0 0;
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(56px, 8.2vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.accent-text { color: var(--accent); }
.lede {
  max-width: 590px;
  margin: 28px 0 0;
  color: color-mix(in oklch, var(--fg), var(--muted) 30%);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.signal-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 60px var(--shadow);
  overflow: hidden;
}
.panel-head {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(68% 0.16 145);
  box-shadow: 0 0 0 4px color-mix(in oklch, oklch(68% 0.16 145), transparent 86%);
}
.signal-list { padding: 18px; display: grid; gap: 12px; }
.signal {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg), var(--surface) 62%);
}
.signal-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.signal h3 { margin: 0; font-size: 14px; letter-spacing: -0.01em; }
.signal p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.signal code {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.proof {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.proof-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
.proof .eyebrow { text-align: center; }
.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 18px;
  align-items: center;
}
.logo-strip img {
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
}
:root[data-theme="dark"] .logo-strip img {
  filter: grayscale(1) invert(1);
  opacity: 0.82;
}
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(28px, 6vw, 88px);
  margin-bottom: 38px;
}
.section h2 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.section-intro {
  margin: 18px 0 0;
  max-width: 650px;
  color: color-mix(in oklch, var(--fg), var(--muted) 36%);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.audience-card {
  padding: 28px;
  min-height: 300px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.audience-card:first-child { border-left: 0; }
.audience-card .num {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.audience-card h3 {
  margin: 28px 0 12px;
  font-size: 26px;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.audience-card p { margin: 0; color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.card-foot {
  margin-top: auto;
  padding-top: 28px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 650;
}
.opportunity {
  background: var(--fg);
  color: var(--bg);
}
.opportunity .eyebrow,
.opportunity .section-intro { color: color-mix(in oklch, var(--bg), transparent 28%); }
.opportunity-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.tab-list {
  display: grid;
  gap: 8px;
}
.tab-button {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid color-mix(in oklch, var(--bg), transparent 84%);
  border-radius: 8px;
  background: transparent;
  color: color-mix(in oklch, var(--bg), transparent 34%);
  text-align: left;
  cursor: pointer;
}
.tab-button[aria-selected="true"] {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--bg);
}
.tab-title { display: block; font-weight: 700; letter-spacing: -0.015em; }
.tab-sub { display: block; margin-top: 3px; font-size: 13px; opacity: 0.78; }
.opportunity-card {
  border: 1px solid color-mix(in oklch, var(--bg), transparent 84%);
  border-radius: 8px;
  background: color-mix(in oklch, var(--fg), black 16%);
  overflow: hidden;
}
.opportunity-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid color-mix(in oklch, var(--bg), transparent 84%);
}
.opportunity-card header span {
  color: color-mix(in oklch, var(--bg), transparent 30%);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.opportunity-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.opportunity-copy { padding: 32px; border-right: 1px solid color-mix(in oklch, var(--bg), transparent 84%); }
.opportunity-copy h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.opportunity-copy p {
  margin: 18px 0 0;
  color: color-mix(in oklch, var(--bg), transparent 24%);
  line-height: 1.6;
  max-width: 48ch;
}
.deliverables { padding: 32px; display: grid; gap: 14px; }
.deliverable {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: color-mix(in oklch, var(--bg), transparent 18%);
  line-height: 1.45;
}
.deliverable::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: oklch(72% 0.16 190);
  flex: 0 0 auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}
.product-visual {
  height: 96px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px),
    color-mix(in oklch, var(--accent), var(--surface) 88%);
  background-size: 18px 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.product-card h3 {
  margin: 22px 0 8px;
  font-size: 24px;
  letter-spacing: -0.035em;
}
.product-card p { margin: 0; color: var(--muted); line-height: 1.52; }
.product-card a {
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.contact {
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 20%, color-mix(in oklch, var(--accent), transparent 86%), transparent 32rem),
    var(--surface);
}
.contact .section { padding: clamp(72px, 9vw, 120px) 0; }
.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}
.contact h2 { max-width: 760px; }
.contact-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  padding: 12px 13px;
  outline: none;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.form-note { min-height: 20px; color: var(--muted); font-size: 13px; }
footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 40px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  margin: 18px 0 0;
  max-width: 300px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h3 {
  margin: 0 0 14px;
  color: var(--fg);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .hero-grid,
  .section-head,
  .opportunity-layout,
  .contact-box { grid-template-columns: 1fr; }
  .signal-panel { max-width: 560px; }
  .audience-grid,
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .audience-card { border-left: 0; border-top: 1px solid var(--border); min-height: 0; }
  .audience-card:first-child { border-top: 0; }
  .opportunity-body { grid-template-columns: 1fr; }
  .opportunity-copy { border-right: 0; border-bottom: 1px solid color-mix(in oklch, var(--bg), transparent 84%); }
}
@media (max-width: 720px) {
  .wrap { width: min(100vw - 32px, 1180px); }
  .nav-inner { height: 64px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 64px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 50px var(--shadow);
  }
  .nav-actions { gap: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px; border-radius: 6px; }
  .nav-links .button { margin-top: 8px; }
  .hero { padding-top: 58px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .signal { grid-template-columns: 38px 1fr; }
  .signal code { grid-column: 2; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .opportunity-copy,
  .deliverables { padding: 22px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

/* ===== Subpages: blog & glossary ===== */
.page-head { padding: clamp(56px, 7vw, 88px) 0 12px; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); }
.post-list { display: grid; gap: 16px; max-width: 760px; }
a.post-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  text-decoration: none;
  transition: border-color 140ms ease;
}
a.post-card:hover { border-color: var(--accent); }
.post-meta { color: var(--muted); font-size: 13px; }
.post-meta a { color: inherit; }
a.post-card h2 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
a.post-card p {
  margin: 0;
  color: color-mix(in oklch, var(--fg), var(--muted) 36%);
  font-size: 15px;
  line-height: 1.55;
}
.prose { max-width: 720px; }
.prose h1 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
}
.prose h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.7;
  color: color-mix(in oklch, var(--fg), var(--muted) 18%);
}
.prose h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.prose ul, .prose ol { margin: 16px 0; padding-left: 22px; }
.prose li { margin: 6px 0; }
.post-hero {
  width: 100%;
  height: auto;
  margin: 18px 0 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.glossary-list { max-width: 760px; margin: 0; }
.glossary-list > div { padding: 24px 0; border-bottom: 1px solid var(--border); }
.glossary-list dt {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.glossary-list dd {
  margin: 0;
  max-width: 65ch;
  color: color-mix(in oklch, var(--fg), var(--muted) 24%);
  font-size: 16px;
  line-height: 1.65;
}

/* ===== Developer tools plugin grid ===== */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 900px;
}
.plugin-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
  font-size: 15px;
}
@media (max-width: 720px) {
  .plugin-grid { grid-template-columns: 1fr; }
}
