/* OmniKog company site — shared stylesheet.
   Derived from the Crucible v4 landing (crucible-site/index.html), with the
   accent switched from product emerald to OmniKog brand purple. Products keep
   their own accent; the company site keeps brand-600. */

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

:root {
  --accent: #7C3AED;          /* brand-600 */
  --accent-light: #F5F3FF;    /* brand-50 */
  --accent-deep: #6D28D9;     /* brand-700 */
  --text-primary: #1E1B4B;    /* brand-950 */
  --text-secondary: #4b5563;
  --border: rgba(30,27,75,0.10);
  --border-strong: rgba(30,27,75,0.20);
  --bg-secondary: #F5F3FF;
  --white: #ffffff;

  /* Per-product accents, used for product/project cards */
  --crucible: #059669;
  --runway: #0891B2;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.serif { font-weight: 800; }

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text-primary);
}
.logo .accent { color: var(--accent); }
.logo .sub {
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* ── Hero ── */
.hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

/* Project pages: left-aligned hero whose gutter matches the sections below it,
   so the eyebrow label lines up with the section labels further down the page. */
.hero.hero-project {
  text-align: left;
  max-width: 1100px;
  margin: 0;
  padding: 4rem 2.5rem 3rem;
}
.hero.hero-project p {
  margin-left: 0;
  max-width: 680px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-project .hero-btns { justify-content: flex-start; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  padding: 12px 28px;
  border-radius: 4px;
  border: 0.5px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--bg-secondary); }

/* ── Dividers & tagline ── */
hr.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0 2.5rem;
}

.tagline-bar {
  text-align: center;
  padding: 2rem;
  font-size: 20px;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.tagline-bar strong {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ── Sections ── */
section { padding: 4rem 2.5rem; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  max-width: 640px;
}

.section-shaded {
  background: var(--bg-secondary);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

/* ── Product cards (Crucible, Runway) ── */
.products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.product-card {
  border: 0.5px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.product-card.crucible { border-top-color: var(--crucible); }
.product-card.runway { border-top-color: var(--runway); }

.product-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.product-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 13px;
}
.product-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.product-links a:hover { text-decoration: underline; }
.product-card.crucible .product-links a { color: var(--crucible); }
.product-card.runway .product-links a { color: var(--runway); }

/* ── Research portfolio cards ── */
.portfolio {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.proj-card {
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, transform 0.15s;
}
.proj-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.proj-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.proj-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 0.9rem;
}

/* ── Status pill ── */
.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 0.5px solid var(--border-strong);
  color: var(--text-secondary);
}
.status.live { border-color: var(--crucible); color: var(--crucible); }
.status.build { border-color: var(--accent); color: var(--accent); }

/* ── Feature / detail grid (project pages) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.feat {
  border-top: 2px solid var(--border);
  padding-top: 1.25rem;
}
.feat.accent { border-top-color: var(--accent); }

.feat-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.feat-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* ── Definition rows (project metadata) ── */
.meta-rows {
  border-top: 0.5px solid var(--border);
  margin-top: 2.5rem;
}
.meta-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 14px;
}
.meta-key {
  font-weight: 500;
  color: var(--text-primary);
}
.meta-val {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}
.meta-val a { color: var(--accent); text-decoration: none; }
.meta-val a:hover { text-decoration: underline; }

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 5rem 2.5rem;
}

.cta-section h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-section h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta-section p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}
.footer-logo .accent { color: var(--accent); }
.footer-logo .sub {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-left: 4px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-primary); }

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

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  hr.divider { margin: 0 1.25rem; }
  section { padding: 3rem 1.25rem; }
  .products { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .meta-row { grid-template-columns: 1fr; gap: 0.25rem; }
  footer { flex-direction: column; align-items: flex-start; }
}

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