/* ===================================================================
   ClearCheck Data — Main Stylesheet
   =================================================================== */

/* ─── CSS Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0F172A;
  --navy-deep:   #1E293B;
  --blue:        #1E3A8A;
  --blue-light:  #3B82F6;
  --orange:      #F97316;
  --orange-dark: #EA580C;
  --bg-light:    #F8FAFC;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
  --text:        #334155;
  --muted:       #64748B;
  --green:       #16A34A;
  --amber:       #F59E0B;
  --red:         #DC2626;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(15,23,42,.08);
  --shadow-lg:   0 8px 40px rgba(15,23,42,.14);
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem;    font-weight: 600; }
p  { max-width: 68ch; }

/* ─── Layout Utilities ───────────────────────────────────────────── */
.container {
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 24px;
}
.section { padding: 80px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--gray { background: var(--bg-light); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* ─── Badges & Labels ────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 999px; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge--orange { background: rgba(249,115,22,.15); color: var(--orange); }
.badge--blue   { background: rgba(30,58,138,.12);  color: var(--blue-light); }
.badge--green  { background: rgba(22,163,74,.12);  color: var(--green); }
.badge--white  { background: rgba(255,255,255,.15); color: var(--white); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
  transition: all .2s ease; border: none;
  text-decoration: none; line-height: 1.4;
}
.btn--primary {
  background: var(--orange); color: var(--white);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline-dark {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline-dark:hover { border-color: var(--text); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Section Heading Block ──────────────────────────────────────── */
.section-head { margin-bottom: 48px; }
.section-head .badge { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 1.0625rem; }
.section--dark .section-head p { color: #94A3B8; }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow); transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-lg); }
.card--dark {
  background: var(--navy-deep); border-color: rgba(255,255,255,.08);
  color: var(--white);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 16px;
  background: rgba(249,115,22,.12);
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .9375rem; color: var(--muted); }
.card--dark p { color: #94A3B8; }

/* ─── HEADER ─────────────────────────────────────────────────────── */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.site-logo { display: flex; align-items: center; }
.site-logo svg, .site-logo img { height: 38px; width: auto; }
.logo-text {
  font-size: 1.125rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.logo-check {
  width: 30px; height: 30px; background: var(--orange);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
}

/* Primary nav */
#primary-nav { display: flex; align-items: center; gap: 6px; }
#primary-nav ul { display: flex; align-items: center; gap: 4px; }
#primary-nav ul li { position: relative; }
#primary-nav ul li a {
  display: block; padding: 8px 14px;
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500;
  border-radius: 6px; transition: all .15s;
  white-space: nowrap;
}
#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a,
#primary-nav ul li.current-menu-parent > a {
  color: var(--white); background: rgba(255,255,255,.08);
}

/* Dropdown */
#primary-nav ul li ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 210px; padding: 6px; flex-direction: column; gap: 0;
}
#primary-nav ul li:hover > ul { display: flex; }
#primary-nav ul li ul li a {
  color: var(--text); padding: 8px 12px;
  font-size: .875rem; border-radius: 4px;
}
#primary-nav ul li ul li a:hover {
  background: var(--bg-light); color: var(--navy);
}

/* Header CTAs */
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 9px 20px; font-size: .875rem; }

/* Mobile toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--white); font-size: 1.5rem; line-height: 1;
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  #primary-nav { display: none; }
  #primary-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy); padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  #primary-nav.open ul { flex-direction: column; width: 100%; }
  #primary-nav.open ul li ul {
    position: static; box-shadow: none; border: none;
    background: rgba(255,255,255,.04); margin-top: 4px;
  }
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  background: var(--navy); color: var(--white);
  padding: 96px 0 80px;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }
.hero-sub { font-size: 1.125rem; color: #94A3B8; margin-bottom: 32px; max-width: 52ch; }
.hero-bullets { margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.hero-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9375rem; color: rgba(255,255,255,.85);
}
.hero-bullets li::before {
  content: '✓'; color: var(--orange);
  font-weight: 700; flex-shrink: 0;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}

/* Hero demo card */
.demo-card {
  background: var(--navy-deep); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px; max-width: 380px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.demo-card-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #64748B; margin-bottom: 16px; }
.demo-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .875rem;
}
.demo-row:last-child { border-bottom: none; }
.demo-label { color: #94A3B8; }
.demo-value { color: var(--white); font-weight: 600; }
.demo-status { padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.demo-status.ok   { background: rgba(22,163,74,.2); color: #4ADE80; }
.demo-status.warn { background: rgba(245,158,11,.2); color: #FCD34D; }
.demo-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 20px;
}
.demo-stat { text-align: center; }
.demo-stat strong { display: block; font-size: 1.25rem; font-weight: 700; color: var(--orange); }
.demo-stat span   { font-size: .7rem; color: #64748B; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ─── FEATURE CARDS (Overview section) ──────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ─── STEP LIST ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.step { position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .9375rem; color: #94A3B8; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ─── CODE BLOCK ─────────────────────────────────────────────────── */
.code-wrap {
  background: #0D1117; border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.code-bar {
  background: #161B22; padding: 10px 20px;
  display: flex; align-items: center; gap: 8px;
}
.code-bar span { font-size: .8rem; color: #64748B; }
.code-bar .method { color: var(--orange); font-weight: 700; }
.code-bar .lang   { background: rgba(249,115,22,.12); color: var(--orange); padding: 2px 8px; border-radius: 4px; font-size: .7rem; }
pre {
  padding: 24px; overflow-x: auto; margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .8125rem; line-height: 1.75; color: #E2E8F0;
}
.kw  { color: #FF7B72; }
.str { color: #A5D6FF; }
.cmt { color: #8B949E; }
.num { color: #79C0FF; }
.key { color: #C9D1D9; }

/* ─── SIGNAL PILLS ───────────────────────────────────────────────── */
.signal-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.signal {
  padding: 5px 14px; border-radius: 999px;
  font-size: .8125rem; font-weight: 500;
  background: rgba(249,115,22,.1); color: var(--orange);
  border: 1px solid rgba(249,115,22,.2);
}

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--white); cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--navy);
  text-align: left; border: none;
}
.faq-q .icon { transition: transform .25s; font-size: 1.2rem; flex-shrink: 0; }
.faq-q.open .icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 20px; color: var(--muted); font-size: .9375rem; }
.faq-a.open { display: block; }

/* ─── CTA BANNER ─────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
  color: var(--white); text-align: center; padding: 80px 0;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { color: #94A3B8; margin: 0 auto 36px; max-width: 52ch; }
.cta-banner .btn-group { justify-content: center; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy); color: var(--white);
  padding-top: 64px;
}
.footer-top {
  display: grid; grid-template-columns: 240px repeat(5, 1fr); gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: .875rem; color: #64748B; margin-top: 16px; max-width: 22ch;
}
.footer-col h4 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #64748B; margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .875rem; color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: .8125rem; color: #475569;
  flex-wrap: wrap; gap: 8px;
}
.responsible-use {
  font-size: .8rem; color: #475569; margin-top: 12px; padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ─── RESPONSIVE UTILITIES ───────────────────────────────────────── */
@media (max-width: 600px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
}

/* ─── Use-case / industry card hover arrow ───────────────────────── */
.use-card h3 { margin-bottom: 8px; }
.use-card p { font-size: .9375rem; color: var(--muted); }
.use-card a {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: .875rem; font-weight: 600;
  color: var(--orange);
}
.use-card a:hover { gap: 8px; }

/* ─── Integration logos row ──────────────────────────────────────── */
.integration-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.integration-chip {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--border); font-size: .875rem;
  color: var(--text); font-weight: 500; background: var(--white);
  transition: all .15s;
}
.integration-chip:hover {
  border-color: var(--orange); color: var(--orange);
}

/* ─── Stat bar ───────────────────────────────────────────────────── */
.stat-bar {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin: 48px 0;
}
.stat-item {
  flex: 1 1 150px; text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-size: 2rem; font-weight: 800; color: var(--orange); }
.stat-item span { font-size: .8125rem; color: #64748B; text-transform: uppercase; letter-spacing: .06em; }

/* ─── Output signal table ────────────────────────────────────────── */
.signal-table { width: 100%; border-collapse: collapse; }
.signal-table th {
  text-align: left; padding: 12px 16px;
  background: var(--bg-light); font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.signal-table td {
  padding: 16px; border-bottom: 1px solid var(--border);
  font-size: .9375rem; vertical-align: top;
}
.signal-table td code {
  background: rgba(249,115,22,.08); color: var(--orange);
  padding: 2px 8px; border-radius: 4px; font-family: monospace; font-size: .875rem;
}
.signal-table td p { color: var(--muted); font-size: .875rem; margin-top: 4px; max-width: 50ch; }
