/* =====================================================
   OntoRisk — Stylesheet
   ===================================================== */

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

:root {
  --black:      #060b14;
  --dark:       #0f1b2d;
  --dark-card:  #16243b;
  --teal:       #14b8a6;
  --teal-light: #2dd4bf;
  --amber:      #f59e0b;
  --violet:     #7c3aed;
  --red:        #dc2626;
  --blue:       #2563eb;
  --blue-light: #3b82f6;
  --text:       #1e293b;
  --text-muted: #64748b;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow:     0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
  --radius:     10px;
  --radius-lg:  18px;
  --nav-h:      68px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Utility ─────────────────────────────────────── */
.container  { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  background: var(--teal); color: #fff;
  margin-bottom: 14px;
}
.tag.blue   { background: var(--blue-light); color: #fff; }
.tag.amber  { background: var(--amber);       color: var(--black); }
.tag.violet { background: var(--violet);      color: #fff; }
.tag.red    { background: var(--red);         color: #fff; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 11, 20, .97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.01em; text-decoration: none;
}
.nav-logo .logo-mark {
  background: var(--teal);
  color: var(--black);
  padding: 2px 8px; border-radius: 6px;
  font-size: .95rem;
}
.nav-links {
  display: flex; gap: 6px; list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.75);
  font-size: .875rem; font-weight: 500;
  padding: 7px 13px; border-radius: 7px;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.nav-cta {
  background: var(--teal) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--teal-light) !important; }
.nav-burger { display: none; }

/* ── Hero ────────────────────────────────────────── */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 100px 0 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(20,184,166,.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(37,99,235,.16) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-light);
  border: 1px solid rgba(20,184,166,.4);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 span { color: var(--teal-light); }
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.7);
  max-width: 520px; margin-bottom: 36px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary {
  background: var(--teal); color: var(--black);
  box-shadow: 0 4px 16px rgba(20,184,166,.35);
}
.btn-primary:hover { background: var(--teal-light); box-shadow: 0 6px 24px rgba(20,184,166,.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-outline:hover { background: rgba(255,255,255,.08); }
.btn-blue {
  background: var(--blue-light); color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,.35);
}
.btn-blue:hover { background: var(--blue); }

.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 22px 18px;
  backdrop-filter: blur(8px);
}
.hero-stat-num {
  font-size: 1.7rem; font-weight: 900; color: var(--teal-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: .8rem; color: rgba(255,255,255,.6);
  margin-top: 6px; line-height: 1.4;
}

/* ── Mission ──────────────────────────────────────── */
.mission { background: var(--white); }
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.mission-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; margin-bottom: 16px; line-height: 1.25;
}
.mission-text p { color: var(--text-muted); margin-bottom: 14px; }
.mission-points { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.mission-point {
  display: flex; gap: 14px; align-items: flex-start;
}
.mission-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  background: var(--teal); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}
.mission-point h4 { font-weight: 700; margin-bottom: 2px; }
.mission-point p  { font-size: .9rem; color: var(--text-muted); margin: 0; }
.mission-quote {
  background: var(--dark);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 40px; position: relative; overflow: hidden;
}
.mission-quote::before {
  content: "\201C";
  position: absolute; top: -10px; left: 20px;
  font-size: 8rem; color: var(--teal-light); opacity: .2;
  line-height: 1; font-family: Georgia, serif;
}
.mission-quote blockquote {
  font-size: 1.15rem; font-style: italic;
  color: rgba(255,255,255,.9); line-height: 1.8;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.mission-quote cite { color: var(--teal-light); font-size: .85rem; font-style: normal; }

/* ── Pillars ─────────────────────────────────────── */
.pillars { background: var(--bg); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800; margin-bottom: 10px;
}
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none; color: var(--text); display: block;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
  text-decoration: none; color: var(--text);
}
.pillar-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.pillar-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.pillar-card p  { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.pillar-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600; margin-top: 14px;
  color: var(--blue-light);
}
.pillar-link::after { content: " →"; }

/* ── Compare (ontology vs. spreadsheet) ──────────── */
.compare { background: var(--dark); color: var(--white); }
.compare .section-header h2 { color: var(--white); }
.compare .section-header p  { color: rgba(255,255,255,.6); }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card {
  border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden;
}
.compare-card.pro    { background: rgba(20,184,166,.16); border: 1px solid rgba(20,184,166,.4); }
.compare-card.legacy { background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.3); }
.compare-card h3 {
  font-size: 1.15rem; font-weight: 800; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.compare-card ul li {
  font-size: .9rem; color: rgba(255,255,255,.8);
  padding-left: 20px; position: relative;
}
.compare-card ul li::before { content: "•"; position: absolute; left: 0; color: var(--teal-light); }

/* ── Blog ─────────────────────────────────────────── */
.blog-section { background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: block; text-decoration: none; color: var(--text);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.blog-card-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 22px; }
.blog-card-body .tag { margin-bottom: 10px; }
.blog-card-body h3 {
  font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4;
}
.blog-card-body p { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.blog-card-meta {
  display: flex; gap: 12px; align-items: center;
  font-size: .78rem; color: var(--text-muted);
}
.blog-card-meta span::before { content: "· "; }
.blog-card-meta span:first-child::before { content: ""; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 600; color: var(--blue-light);
}

/* ── Stats bar ────────────────────────────────────── */
.stats-bar { background: var(--teal); padding: 36px 0; }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; text-align: center;
}
.stat-item-num {
  font-size: 2.2rem; font-weight: 900; color: var(--black);
  line-height: 1;
}
.stat-item-label { font-size: .85rem; color: rgba(0,0,0,.65); margin-top: 4px; }

/* ── CTA ──────────────────────────────────────────── */
.cta-section { background: var(--bg); }
.cta-box {
  background: var(--dark-card);
  border-radius: var(--radius-lg); padding: 60px 48px;
  text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(20,184,166,.14) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; }
.cta-box p  { color: rgba(255,255,255,.65); margin-bottom: 32px; font-size: 1.05rem; }
.cta-btns   { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────── */
.footer { background: var(--black); color: rgba(255,255,255,.55); padding: 52px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white); font-size: .875rem; font-weight: 700;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .05em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: rgba(255,255,255,.55); font-size: .875rem;
  text-decoration: none; transition: color .15s;
}
.footer-col a:hover { color: var(--teal-light); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--teal-light); }

/* ── Page hero (inner pages) ─────────────────────── */
.page-hero {
  background: var(--dark); color: var(--white);
  padding: 60px 0 52px;
}
.page-hero .tag { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 640px; }

/* ── Article list ─────────────────────────────────── */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none; color: var(--text);
}
.article-item:hover {
  box-shadow: var(--shadow); border-color: var(--blue-light); text-decoration: none; color: var(--text);
}
.article-emoji { font-size: 2.5rem; flex-shrink: 0; }
.article-meta  { font-size: .78rem; color: var(--text-muted); margin-bottom: 6px; }
.article-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.article-item p  { font-size: .875rem; color: var(--text-muted); }

/* ── Breadcrumb ───────────────────────────────────── */
.breadcrumb {
  font-size: .8rem; color: var(--text-muted);
  padding: 12px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 6px; align-items: center;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-light); }
.breadcrumb span { color: var(--text-muted); }

/* ── Article page ────────────────────────────────── */
.article-page { max-width: 760px; margin: 0 auto; padding: 52px 24px; }
.article-page h1 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; margin-bottom: 16px; }
.article-page h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
.article-page h3 { font-size: 1.1rem; font-weight: 700; margin: 28px 0 8px; }
.article-page p  { margin-bottom: 16px; }
.article-page ul, .article-page ol { padding-left: 24px; margin-bottom: 16px; }
.article-page li { margin-bottom: 6px; }
.article-page blockquote {
  border-left: 4px solid var(--teal); margin: 24px 0;
  padding: 12px 20px; background: var(--bg); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-muted);
}
.article-page .article-meta-bar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-muted);
  padding: 16px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 32px;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-visual     { display: none; }
  .mission-grid    { grid-template-columns: 1fr; }
  .pillars-grid    { grid-template-columns: 1fr 1fr; }
  .compare-grid    { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: 1fr 1fr; }
  .stats-inner     { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section         { padding: 52px 0; }
  .pillars-grid    { grid-template-columns: 1fr; }
  .blog-grid       { grid-template-columns: 1fr; }
  .stats-inner     { grid-template-columns: 1fr 1fr; }
  .nav-links       { display: none; }
  .nav-burger      { display: flex; }
  .footer-grid     { grid-template-columns: 1fr; }
  .cta-box         { padding: 40px 24px; }
}
