/* ===== InfraGen shared site styles ===== */
:root {
  --bg: #05070a;
  --bg-alt: #0b0f0c;
  --panel: #0f1410;
  --panel-border: #1e2a1e;
  --text: #eef2ee;
  --text-dim: #a8b3a8;
  --text-faint: #6b756b;
  --green-dark: #2f5d24;
  --green: #5a9c3c;
  --green-bright: #8cc63f;
  --green-glow: rgba(140, 198, 63, 0.35);
  --radius: 10px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.logo-lockup svg { height: 34px; width: 34px; flex-shrink: 0; }

nav.main-nav { display: flex; align-items: center; gap: 30px; }

nav.main-nav > a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

nav.main-nav > a:hover, nav.main-nav > a.active { color: var(--green-bright); }

/* ---------- Nav dropdowns (Platform / Company) ---------- */
.nav-item { position: relative; }

.nav-trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s ease;
}
.nav-trigger:hover, .nav-trigger.active { color: var(--green-bright); }
.nav-trigger .caret { font-size: 10px; margin-top: 1px; opacity: 0.7; }

/* .dropdown is the hoverable hit-region: it starts flush against the
   trigger (top:100%, no margin) so the mouse never crosses a dead gap.
   The visible 14px gap is padding-top *inside* this hoverable box, and
   the actual card look lives on .dropdown-inner nested inside it. */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  min-width: 210px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 60;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-inner {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.dropdown a {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dim);
  white-space: nowrap;
}
.dropdown a:hover, .dropdown a.active { background: rgba(140,198,63,0.08); color: var(--green-bright); }

/* ---------- Powered-by-InspectAI ingredient badge ---------- */
.powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-bright);
  background: rgba(140,198,63,0.08);
  border: 1px solid rgba(140,198,63,0.25);
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
}
.powered-badge svg { width: 15px; height: 15px; }
.product-card .powered-badge { margin: -6px 0 -4px; align-self: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  color: #08110a;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn-primary:hover { box-shadow: 0 4px 22px var(--green-glow); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }

.btn-sm { padding: 8px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-bright);
  background: rgba(140, 198, 63, 0.09);
  border: 1px solid rgba(140, 198, 63, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 800;
  position: relative;
}

.hero h1 span.grad {
  background: linear-gradient(120deg, var(--green-bright), #c9e8a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 38px;
  position: relative;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; position: relative; flex-wrap: wrap; }

/* page hero (smaller, non-index) */
.page-hero { padding: 72px 0 56px; text-align: left; }
.page-hero h1 { font-size: 40px; }
.page-hero p.lead { margin: 0; max-width: 720px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin: 0 0 44px; text-align: left; max-width: 680px; }
.section-head h2 { font-size: 33px; margin: 0 0 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-dim); font-size: 16.5px; margin: 0; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--green-dark); transform: translateY(-2px); }

.card .icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(140,198,63,0.1);
  border: 1px solid rgba(140,198,63,0.25);
  color: var(--green-bright);
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}
.card .icon svg { width: 60%; height: 60%; }
.card h3 { font-size: 17.5px; margin: 0 0 10px; }
.card p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ---------- Product cards (home) ---------- */
.product-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.product-card.pm { border-color: rgba(140,198,63,0.3); }
.product-tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.product-tag.live { background: rgba(140,198,63,0.15); color: var(--green-bright); border: 1px solid rgba(140,198,63,0.35); }
.product-tag.soon { background: rgba(255,255,255,0.06); color: var(--text-dim); border: 1px solid var(--panel-border); }
.product-card h3 { font-size: 24px; margin: 4px 0 0; }
.product-card p.sub { color: var(--green-bright); font-weight: 600; font-size: 14px; margin: -10px 0 0; }
.product-card p.desc { color: var(--text-dim); font-size: 15px; margin: 0; }
.product-card ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-dim); font-size: 14px; }
.product-card ul li { margin-bottom: 6px; }
.product-card .cta-row { margin-top: 10px; display: flex; gap: 12px; }

/* ---------- Blurred mockup placeholder ---------- */
.mockup {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  background: linear-gradient(160deg, #10160f, #0a0d0a);
  aspect-ratio: 16 / 10;
}
.mockup .blur-layer {
  position: absolute; inset: 0;
  filter: blur(9px);
  transform: scale(1.06);
  opacity: 0.85;
}
.mockup .blur-layer .row { display: flex; gap: 10px; padding: 18px; }
.mockup .blur-layer .col { flex: 1; }
.mockup .bar { height: 12px; border-radius: 4px; background: rgba(140,198,63,0.35); margin-bottom: 10px; }
.mockup .bar.short { width: 60%; }
.mockup .bar.dim { background: rgba(255,255,255,0.08); }
.mockup .block { height: 90px; border-radius: 6px; background: rgba(255,255,255,0.05); margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.06); }
.mockup .block.green { background: rgba(140,198,63,0.12); border-color: rgba(140,198,63,0.2); }
.mockup .overlay-note {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--panel-border);
}

/* ---------- Workflow steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex; gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--panel-border);
}
.step:first-child { border-top: none; }
.step .num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--green-dark);
  color: var(--green-bright);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.step h4 { margin: 0 0 6px; font-size: 16.5px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ---------- Table ---------- */
table.compare { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td {
  text-align: left; padding: 14px 16px; font-size: 14.5px;
  border-bottom: 1px solid var(--panel-border);
}
table.compare th { color: var(--text-dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; }
table.compare td.check { color: var(--green-bright); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #0d1a0b, #0a0d0a);
  border: 1px solid rgba(140,198,63,0.2);
  border-radius: 16px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { font-size: 28px; margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); margin: 0 0 28px; }

/* ---------- Forms ---------- */
form.contact-form { display: grid; gap: 18px; max-width: 560px; }
.form-row { display: grid; gap: 8px; }
.form-row.two { grid-template-columns: 1fr 1fr; display: grid; gap: 18px; }
label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
input, select, textarea {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { resize: vertical; min-height: 110px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--panel-border);
  padding: 50px 0 34px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 34px;
}
.footer-grid h5 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); margin: 0 0 14px;
}
.footer-grid a, .footer-grid p { font-size: 14px; color: var(--text-dim); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a:hover { color: var(--green-bright); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--panel-border);
  font-size: 13px; color: var(--text-faint); flex-wrap: wrap; gap: 12px;
}

/* ---------- Badge / pill list ---------- */
.pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.pill {
  font-size: 13px; padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--panel-border);
  color: var(--text-dim);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.scope-note {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  padding: 22px 26px;
  font-size: 14px;
  color: var(--text-dim);
}
.scope-note strong { color: var(--text); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 13px; color: var(--text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .hero h1, .page-hero h1 { font-size: 34px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 36px 24px; }
  .form-row.two { grid-template-columns: 1fr; }
}
