:root {
  --navy:   #1A4F6B;
  --navy2:  #132E40;
  --mid:    #2471A3;
  --accent: #AECDE0;
  --light:  #EAF2F8;
  --grey:   #F5F8FA;
  --white:  #FFFFFF;
  --text:   #1C2A34;
  --muted:  #5A7A8E;
  --border: #D8E8F2;
  --green:  #0D7A5F;
  --green-light: #E6F5F1;
  --orange-light: #FDF3E7;
  --orange: #C47A1A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--grey); -webkit-font-smoothing: antialiased; }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(26,79,107,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(174,205,224,0.15); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { text-decoration: none; display: flex; flex-direction: column; gap: 1px; }
.nav-logo-top { display: none; }
.nav-logo-sub { display: none; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,0.7); text-decoration: none; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { background: var(--mid); color: var(--white) !important; padding: 8px 18px; border-radius: 6px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #1c5c8a !important; }

/* FOOTER */
footer { background: var(--navy2); padding: 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--accent); text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.footer-legal { font-size: 12px; color: rgba(174,205,224,0.4); }

/* PAGE HEADER (inner pages) */
.page-hero { background: var(--navy); padding: 130px 32px 72px; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.page-title { font-family: 'DM Serif Display', serif; font-size: clamp(32px, 4vw, 52px); color: var(--white); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 18px; }
.page-sub { font-size: 17px; color: rgba(174,205,224,0.8); line-height: 1.75; max-width: 640px; }

/* SECTIONS */
section { padding: 88px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; display: block; }
.section-title { font-family: 'DM Serif Display', serif; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin-bottom: 16px; }
.section-title.white { color: var(--white); }
.section-intro { font-size: 16px; line-height: 1.8; color: var(--muted); max-width: 660px; margin-bottom: 52px; }
.section-intro.white { color: rgba(174,205,224,0.8); }

/* BUTTONS */
.btn-primary { background: var(--mid); color: var(--white); padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; transition: background 0.2s, transform 0.15s; }
.btn-primary:hover { background: #1c5c8a; transform: translateY(-1px); }
.btn-ghost { color: rgba(255,255,255,0.7); font-size: 15px; text-decoration: none; padding: 13px 0; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.btn-ghost:hover { color: var(--white); }
.btn-white { background: var(--white); color: var(--mid); padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; display: inline-block; transition: transform 0.15s; }
.btn-white:hover { transform: translateY(-1px); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.4); color: var(--white); padding: 13px 26px; border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none; display: inline-block; transition: border-color 0.2s; }
.btn-outline-white:hover { border-color: var(--white); }
.btn-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* STACK CARDS */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stack-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 28px 30px; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s; }
.stack-card:hover { border-color: var(--mid); box-shadow: 0 6px 24px rgba(26,79,107,0.1); }
.stack-card.featured { grid-column: span 3; border-left: 4px solid var(--mid); flex-direction: row; gap: 40px; }
.stack-card-left { flex: 1; }
.stack-card-right { width: 300px; flex-shrink: 0; }
.stack-num { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.stack-tool { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.stack-role { font-size: 12px; font-weight: 500; color: var(--mid); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.stack-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; flex: 1; }
.kpi-list { background: var(--grey); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.kpi-header { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kpi-item { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.kpi-item:last-child { border-bottom: none; }
.kpi-name { font-size: 13px; color: #4A6070; }
.kpi-value { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
.stack-price { font-size: 13px; font-weight: 600; color: var(--navy); padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }
.badge-opex { display: inline-block; background: var(--green-light); color: var(--green); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.06em; margin-right: 6px; }
.badge-acq { display: inline-block; background: var(--orange-light); color: var(--orange); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.06em; margin-right: 6px; }

/* AGENT CARDS */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(174,205,224,0.15); border-radius: 10px; padding: 24px 26px; transition: background 0.2s, border-color 0.2s; }
.agent-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(174,205,224,0.35); }
.agent-card.light { background: var(--white); border-color: var(--border); }
.agent-card.light:hover { border-color: var(--mid); box-shadow: 0 4px 20px rgba(26,79,107,0.08); }
.agent-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.agent-name.dark { color: var(--navy); }
.agent-kpi { font-size: 12px; font-weight: 600; color: #5DD6B0; letter-spacing: 0.06em; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.agent-kpi.dark { color: var(--green); }
.agent-kpi::before { content: '↑'; font-size: 14px; }
.agent-desc { font-size: 14px; color: rgba(174,205,224,0.7); line-height: 1.7; }
.agent-desc.dark { color: var(--muted); }

/* PRICING */
.pricing-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--white); }
.pricing-card-header { padding: 20px 24px; background: var(--grey); border-bottom: 1px solid var(--border); }
.pricing-card-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.pricing-card-tag.acq { color: var(--orange); }
.pricing-card-tag.lic { color: var(--green); }
.pricing-card-tag.agt { color: var(--mid); }
.pricing-card-tag.mnt { color: var(--navy); }
.pricing-card-title { font-size: 17px; font-weight: 700; color: var(--navy); }
.pricing-card-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.pricing-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
.pricing-row:last-child { border-bottom: none; }
.pricing-row.total { background: var(--grey); border-top: 2px solid var(--navy); border-bottom: none; }
.pr-label { font-size: 14px; color: var(--text); }
.pr-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pr-val { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; text-align: right; }
.pricing-row.total .pr-label { font-weight: 700; font-size: 15px; }
.pricing-row.total .pr-val { font-size: 16px; color: var(--mid); }

/* CTA BAND */
.cta-band { background: var(--mid); padding: 72px 32px; text-align: center; }
.cta-band h2 { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--white); margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* PROBLEM CARDS */
.problems-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.problem-card { border: 1px solid var(--border); border-radius: 10px; padding: 26px 28px; background: var(--grey); transition: border-color 0.2s; }
.problem-card:hover { border-color: var(--mid); }
.problem-icon { width: 38px; height: 38px; background: var(--light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 14px; }
.problem-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 9px; }
.problem-body { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .stack-card.featured { flex-direction: column; grid-column: span 1; }
  .stack-card.featured .stack-card-right { width: 100%; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .stack-card.featured { grid-column: span 2; }
  .agents-grid { grid-template-columns: 1fr 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stack-grid, .agents-grid { grid-template-columns: 1fr; }
  .stack-card.featured { grid-column: span 1; }
}

/* SCHEMAS */
.schema-section { background: var(--navy2); }
.schema-wrap { background: rgba(255,255,255,0.03); border: 1px solid rgba(174,205,224,0.12); border-radius: 12px; padding: 32px; overflow-x: auto; }
.schema-caption { font-size: 13px; color: rgba(174,205,224,0.5); text-align: center; margin-top: 16px; font-style: italic; }
.reporting-distinct { background: var(--navy2); border-radius: 12px; padding: 28px 32px; margin-top: 28px; border: 1px solid rgba(174,205,224,0.2); }
.rd-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.rd-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.rd-body { font-size: 14px; color: rgba(174,205,224,0.7); line-height: 1.7; }

/* LOGO IMAGE */
.nav-logo-img { height: 56px; width: auto; display: block; }
.footer-logo-img { height: 36px; width: auto; opacity: 0.85; }

/* FIXES v2 */
.nav-logo-img { height: 56px !important; }
.footer-logo-img { height: 36px !important; }
section { padding: 100px 32px !important; }
.section-title { margin-bottom: 22px !important; }
.section-intro { margin-bottom: 60px !important; }
.page-hero { padding: 140px 32px 80px !important; }
.nav-links { gap: 24px !important; }
.nav-links a { font-size: 13px !important; }

/* MOBILE MENU */
.nav-hamburger { display: none; background: none; border: 1px solid rgba(174,205,224,0.3); cursor: pointer; padding: 10px 12px; border-radius: 6px; -webkit-tap-highlight-color: transparent; }
.nav-hamburger span { display: block; width: 24px; height: 3px; background: var(--white); margin: 4px 0; border-radius: 2px; transition: 0.3s; }
@media (max-width: 900px) {
  nav { z-index: 1000; }
  .nav-hamburger { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
  .nav-links { display: none !important; position: absolute; top: 72px; left: 0; right: 0; background: rgba(19,46,64,0.99); flex-direction: column; padding: 16px 24px 24px; gap: 0; border-bottom: 2px solid rgba(174,205,224,0.2); z-index: 999; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
  .nav-links.open { display: flex !important; }
  .nav-links li { padding: 14px 0; border-bottom: 1px solid rgba(174,205,224,0.1); list-style: none; }
  .nav-links li:last-child { border-bottom: none; padding-top: 18px; }
  .nav-links a { font-size: 16px !important; color: rgba(255,255,255,0.85) !important; }
  .nav-cta { display: inline-block !important; text-align: center !important; background: var(--mid) !important; color: var(--white) !important; padding: 12px 24px !important; border-radius: 8px !important; margin-top: 4px; }
  .hero-metrics { grid-template-columns: 1fr 1fr !important; }
}
