/* Fonts loaded via <link> tags in HTML head for proper preload behaviour. */

/* Disable synthetic bold/italic — browsers can stretch fallback fonts to fake
   bold weights when the actual font face fails to load. We always want real
   font weights, never browser-synthesised ones. */
* { font-synthesis: none; }

:root {
  --navy:    #050D1A;
  --navy2:   #0A1628;
  --navy3:   #0F2040;
  --navy4:   #142849;
  --blue:    #1A6BF0;
  --blue2:   #0F4FBB;
  --blue-l:  #4F8DF5;
  --blue-lt: #E8F0FE;
  --teal:    #0E6B55;
  --teal-l:  #1A9B7F;
  --teal-lt: #E1F4EE;
  --purple:  #5146B8;
  --purple-l:#7C6FF0;
  --purple-lt:#EDEAFD;
  --orange:  #D9803A;
  --orange-l:#E89C5C;
  --amber:   #D97706;
  --green:   #16A34A;
  --red:     #EF4444;
  --white:   #FFFFFF;
  --off:     #F7F6F2;
  --gray:    #8A8A8A;
  --gray2:   #BDBDBD;
  --border:  rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --border-light: #E2E0D8;
  --text:    #FFFFFF;
  --text-muted: rgba(255,255,255,0.6);
  --text-dim: rgba(255,255,255,0.45);
  /* Display stack now leads with Inter — matches the cleaner, less-stretched
     bold-sans look the team approved. Syne is kept as a secondary option
     in case it loads. Body uses the same clean fallback chain. */
  --font-display: 'Inter', 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --audit-color: #1A6BF0;
  --content-color: #0E6B55;
  --agent-color: #5146B8;
  --workspace-color: #D9803A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none; font-size: 14px; font-weight: 400;
  padding: 6px 12px; border-radius: 6px; transition: all 0.15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' \2193'; font-size: 10px; opacity: 0.5; }

.dropdown-menu {
  /* Always rendered, but hidden via opacity/visibility so the hover area
     remains continuous between the trigger and the menu. Critical: no
     vertical gap between trigger and menu. */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
  position: absolute;
  top: 100%;
  left: 0;
  /* Top padding gives visual breathing space while keeping the entire
     vertical run hoverable. */
  padding-top: 8px;
  min-width: 280px;
  z-index: 200;
}
.dropdown-menu-inner {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.12s ease;
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px !important;
  border-radius: 6px; font-size: 13px !important;
}
.dropdown-menu a .dd-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dropdown-menu a .dd-text { display: flex; flex-direction: column; gap: 2px; }
.dropdown-menu a .dd-text small { color: var(--text-dim); font-size: 11px; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 6px; }

/* SECTIONS */
section { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.section-full { max-width: 100%; padding-left: 0; padding-right: 0; }
.section-full .section-inner { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }

.label-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26, 107, 240, 0.1);
  border: 1px solid rgba(26, 107, 240, 0.2);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.label-tag.teal    { color: var(--teal-l); background: rgba(14,107,85,0.12); border-color: rgba(14,107,85,0.25); }
.label-tag.purple  { color: var(--purple-l); background: rgba(81,70,184,0.12); border-color: rgba(81,70,184,0.25); }
.label-tag.orange  { color: var(--orange-l); background: rgba(217,128,58,0.12); border-color: rgba(217,128,58,0.25); }
.label-tag.amber   { color: #FCD34D; background: rgba(217,119,6,0.12); border-color: rgba(217,119,6,0.25); }
.label-tag.white   { color: var(--white); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-wrap: break-word;
  text-wrap: balance;
}

.hero-headline { font-size: clamp(36px, 4.8vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); }
.d1 { font-size: clamp(36px, 4.8vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--white); }
.section-headline { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: -0.015em; line-height: 1.15; }
.section-sub { font-size: 18px; color: var(--text-muted); font-weight: 300; line-height: 1.65; max-width: 700px; }

.body-lg { font-size: 18px; color: var(--text-muted); line-height: 1.65; }

/* CARDS */
.card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-strong); }

.card-blue   { border-top: 3px solid var(--blue); }
.card-teal   { border-top: 3px solid var(--teal-l); }
.card-purple { border-top: 3px solid var(--purple-l); }
.card-orange { border-top: 3px solid var(--orange-l); }

/* PRODUCT TILE GRID (4-up) */
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid-4 { grid-template-columns: 1fr; } }

.product-tile {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 0.2s;
}
.product-tile:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.product-tile.tile-blue   { border-top-color: var(--blue); }
.product-tile.tile-teal   { border-top-color: var(--teal-l); }
.product-tile.tile-purple { border-top-color: var(--purple-l); }
.product-tile.tile-orange { border-top-color: var(--orange-l); }

.product-tile h3 { font-size: 22px; font-weight: 700; }
.product-tile .product-price { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-muted); }
.product-tile .product-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.product-tile a.tile-link {
  margin-top: auto;
  font-size: 13px; color: var(--blue-l);
  text-decoration: none; font-weight: 500;
}
.product-tile a.tile-link:hover { text-decoration: underline; }

/* THREE LAYER VISUAL */
.three-layer {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  margin: 32px 0;
}
@media (max-width: 800px) { .three-layer { grid-template-columns: 1fr; gap: 12px; }
  .three-layer .layer-plus { display: none; }
}
.layer-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  border-top: 3px solid var(--blue);
}
.layer-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.layer-card .layer-num { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue-l); margin-bottom: 8px; }
.layer-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.layer-card.l1 { border-top-color: var(--blue); }
.layer-card.l1 .layer-num { color: var(--blue-l); }
.layer-card.l2 { border-top-color: var(--teal-l); }
.layer-card.l2 .layer-num { color: var(--teal-l); }
.layer-card.l3 { border-top-color: var(--orange-l); }
.layer-card.l3 .layer-num { color: var(--orange-l); }
.layer-plus {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; color: var(--text-dim); font-weight: 300;
}

/* STAT BLOCK */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr; } }
.stat {
  background: var(--navy2); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 28px 22px;
  border-left: 3px solid var(--blue);
}
.stat .stat-value { font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--blue); }
.stat .stat-label { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.5; }
.stat .stat-source { margin-top: 6px; font-size: 11px; color: var(--text-dim); font-style: italic; letter-spacing: 0.04em; }

.stat.amber { border-left-color: var(--amber); }
.stat.amber .stat-value { color: var(--amber); }
.stat.green { border-left-color: var(--green); }
.stat.green .stat-value { color: var(--green); }
.stat.purple { border-left-color: var(--purple-l); }
.stat.purple .stat-value { color: var(--purple-l); }

/* CALLOUT */
.callout {
  background: linear-gradient(180deg, var(--navy2) 0%, rgba(217,119,6,0.05) 100%);
  border: 1px solid rgba(217,119,6,0.25);
  border-left: 4px solid var(--amber);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
}
.callout h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.callout p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* FEATURE LIST */
.feature-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.feature {
  display: grid; grid-template-columns: 24px 1fr; gap: 16px;
  align-items: start;
}
.feature-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(26,107,240,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-l); font-size: 12px; font-weight: 700;
  margin-top: 2px;
}
.feature h5 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.feature p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* COMPARISON TABLE */
.comparison-table {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0;
}
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th {
  background: var(--navy3);
  padding: 14px 18px; text-align: left;
  font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-l);
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 14px 18px; font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.comparison-table td:first-child { color: var(--white); font-weight: 600; }
.comparison-table tr:last-child td { border-bottom: none; }

/* HERO LARGE STAT */
.hero-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center;
  margin-top: 64px;
}
@media (max-width: 800px) { .hero-stat-grid { grid-template-columns: 1fr; } }
.hero-stat-big {
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px); font-weight: 700;
  line-height: 1; letter-spacing: -0.02em;
  color: var(--amber);
}

/* PRICING TABLE */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 32px 0;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-tile {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.pricing-tile.featured { border-color: var(--blue); border-width: 2px; box-shadow: 0 0 0 4px rgba(26,107,240,0.15); }
.pricing-tile h3 { font-size: 22px; font-weight: 700; }
.pricing-tile .pricing-price { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.pricing-tile .pricing-price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.pricing-tile .pricing-desc { font-size: 13px; color: var(--text-muted); }
.pricing-tile ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.pricing-tile li { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: start; }
.pricing-tile li::before { content: '\2713'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* FOOTER */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 32px;
  margin-top: 96px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h6 {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-col a {
  display: block; color: var(--text-muted); text-decoration: none;
  font-size: 14px; padding: 6px 0;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-dim);
}

/* FORM STYLES */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.form-row input, .form-row select, .form-row textarea {
  background: var(--navy);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--white);
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--blue); }

/* FADE UP */
.fade-up { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

/* HERO BG glow */
.hero-glow {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 25% 30%, rgba(26,107,240,0.18) 0%, transparent 50%);
  z-index: -1; pointer-events: none;
}
