/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --navy:       #1a3c6b;
  --navy-dark:  #0d1f3c;
  --navy-deep:  #0d2545;
  --blue:       #4a90d9;
  --blue-mid:   #2d5f9e;
  --gold:       #f0c040;
  --bg-light:   #f7f9fc;
  --bg-panel:   #f0f4fa;
  --border:     #e8ecf0;
  --text-dark:  #0d1f3c;
  --text-mid:   #555;
  --text-light: #666;
  --text-muted: #888;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; color: var(--text-mid); background: #fff; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── UTILITIES ──────────────────────────────────────────── */
.section       { padding: 72px 48px; }
.section-eyebrow { color: var(--blue); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 16px; }
.section-text  { font-size: 15px; color: var(--text-mid); line-height: 1.75; max-width: 560px; margin-bottom: 40px; }
.btn-primary   { display: inline-block; background: var(--navy); color: #fff; padding: 14px 28px; font-size: 14px; font-weight: 600; border: none; }
.btn-secondary { display: inline-block; border: 1.5px solid #ccd5e0; color: #444; padding: 14px 28px; font-size: 14px; background: none; }

/* ─── NAV ────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 38px; height: 38px;
  background: #fff;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: 4px; bottom: 4px;
  border: 2px solid var(--blue);
}
.logo-mark span {
  color: var(--navy);
  font-size: 13px; font-weight: 800;
  position: relative; z-index: 1;
  letter-spacing: -0.5px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { color: #fff; font-size: 15px; font-weight: 700; line-height: 1; }
.logo-sub  { color: var(--blue); font-size: 8px; letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #aac4e8; font-size: 13px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
  background: var(--blue); color: #fff !important;
  padding: 9px 20px; font-size: 13px; font-weight: 600;
}
.nav-hamburger {
  display: none;
  background: none; border: none;
  color: #fff; font-size: 22px; padding: 8px;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero { display: flex; min-height: 520px; }
.hero-content {
  flex: 1; padding: 72px 48px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-eyebrow {
  display: inline-block;
  background: #eef4ff; color: var(--navy);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px; margin-bottom: 20px; font-weight: 600;
}
.hero-title {
  font-size: 46px; font-weight: 800; color: var(--text-dark);
  line-height: 1.1; margin-bottom: 16px; letter-spacing: -1px;
}
.hero-divider { width: 48px; height: 4px; background: var(--blue); margin-bottom: 20px; }
.hero-text    { font-size: 16px; color: var(--text-mid); line-height: 1.7; max-width: 420px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel {
  width: 280px; background: var(--bg-panel);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px 32px; gap: 10px;
}
.hero-panel-label { color: var(--text-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; font-weight: 600; }
.hero-pill   { padding: 12px 16px; font-size: 13px; font-weight: 600; color: #fff; }
.pill-navy   { background: var(--navy); }
.pill-mid    { background: var(--blue-mid); }
.pill-blue   { background: var(--blue); }
.pill-gold   { background: #1a5c8a; border-left: 3px solid var(--gold); }

/* ─── TRUST BAR ──────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-light);
  border-top: 1px solid var(--border); border-bottom: 2px solid #e0e8f0;
  padding: 14px 48px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
}
.trust-label  { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; white-space: nowrap; }
.trust-market { color: #b0bec5; font-size: 13px; font-weight: 700; }

/* ─── WHAT WE DO ─────────────────────────────────────────── */
.what-we-do { background: #fff; border-bottom: 1px solid var(--border); }
.pillars { display: flex; gap: 20px; }
.pillar {
  flex: 1; border: 1px solid var(--border);
  padding: 28px; border-top: 3px solid var(--navy);
}
.pillar:nth-child(2) { border-top-color: var(--blue); }
.pillar:nth-child(3) { border-top-color: var(--blue-mid); }
.pillar:nth-child(4) { border-top-color: var(--gold); }
.pillar h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.pillar p  { font-size: 13px; color: var(--text-light); line-height: 1.65; }

/* ─── WHO WE SERVE ───────────────────────────────────────── */
.who-we-serve { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service-card {
  background: #fff; border: 1px solid var(--border);
  padding: 28px 24px; display: flex; gap: 20px; align-items: flex-start;
}
.service-icon { flex-shrink: 0; width: 32px; padding-top: 2px; }
.service-icon svg { width: 32px; height: 32px; }
.service-body h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.service-body p  { font-size: 13px; color: var(--text-light); line-height: 1.65; }

/* ─── CONNECTX NETWORK ───────────────────────────────────── */
.cx-network {
  background: linear-gradient(135deg, #0d2545 0%, var(--navy) 100%);
  padding: 72px 48px;
  border-bottom: 1px solid #0a1830;
}
.network-eyebrow { color: var(--gold); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.network-title   { color: #fff; font-size: 32px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.network-subtitle { color: #7a9ab8; font-size: 15px; line-height: 1.75; max-width: 600px; margin-bottom: 48px; }
.network-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.network-card {
  border: 1px solid rgba(240,192,64,0.3);
  background: rgba(240,192,64,0.04);
  padding: 32px 28px;
}
.network-card-icon { margin-bottom: 20px; }
.network-card-icon svg { width: 36px; height: 36px; }
.network-tag {
  display: inline-block;
  background: rgba(240,192,64,0.15); color: var(--gold);
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; padding: 3px 10px; margin-bottom: 14px;
  border: 1px solid rgba(240,192,64,0.25);
}
.network-card h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.network-card p  { color: #7a9ab8; font-size: 13px; line-height: 1.7; }
.network-bullets { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.network-bullet  { display: flex; align-items: flex-start; gap: 10px; }
.network-bullet-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }
.network-bullet span { color: #9ab4cc; font-size: 12px; line-height: 1.5; }

/* ─── HOW WE WORK ────────────────────────────────────────── */
.how-we-work { background: #fff; border-bottom: 1px solid var(--border); }
.steps { display: flex; position: relative; margin-top: 16px; }
.steps::before {
  content: ''; position: absolute;
  top: 20px; left: 20px; right: 20px; height: 1px; background: #e0e8f0;
}
.step { flex: 1; text-align: center; padding: 0 16px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 15px; font-weight: 700; color: #fff;
  position: relative; z-index: 1;
}
.step:nth-child(1) .step-num { background: var(--navy); }
.step:nth-child(2) .step-num { background: var(--blue-mid); }
.step:nth-child(3) .step-num { background: var(--blue); }
.step:nth-child(4) .step-num { background: var(--navy); }
.step h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step p  { font-size: 12px; color: var(--text-light); line-height: 1.6; }

/* ─── STATS ──────────────────────────────────────────────── */
.stats { background: var(--navy); padding: 48px; display: flex; }
.stat { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat:last-child { border-right: none; }
.stat-num   { color: #fff; font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 8px; letter-spacing: -1px; }
.stat-label { color: var(--blue); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

/* ─── WHY CONNECTX ───────────────────────────────────────── */
.why { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.advantages { display: flex; gap: 20px; }
.advantage { flex: 1; background: #fff; border: 1px solid var(--border); padding: 24px; }
.adv-bar { width: 3px; height: 28px; margin-bottom: 16px; }
.advantage:nth-child(1) .adv-bar { background: var(--navy); }
.advantage:nth-child(2) .adv-bar { background: var(--blue-mid); }
.advantage:nth-child(3) .adv-bar { background: var(--blue); }
.advantage:nth-child(4) .adv-bar { background: var(--gold); }
.advantage h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.advantage p  { font-size: 12px; color: var(--text-light); line-height: 1.65; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact { background: #fff; border-bottom: 1px solid var(--border); }
.contact-inner { display: flex; gap: 64px; }
.contact-info { flex: 1; }
.contact-info h2 { font-size: 28px; font-weight: 700; color: var(--text-dark); margin: 10px 0 16px; line-height: 1.2; }
.contact-info p  { font-size: 14px; color: var(--text-mid); line-height: 1.75; margin-bottom: 24px; }
.contact-detail  { font-size: 14px; color: #333; margin-bottom: 10px; }
.contact-address { font-size: 13px; color: var(--text-muted); margin-top: 16px; line-height: 1.7; }
.contact-form    { flex: 1; background: var(--bg-light); padding: 36px; border: 1px solid var(--border); }
.form-row        { display: flex; gap: 12px; margin-bottom: 14px; }
.form-group      { flex: 1; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%; background: #fff; border: 1px solid #dde3ea;
  padding: 10px 12px; font-size: 13px; color: #333; font-family: inherit;
}
.form-group textarea { height: 90px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; }
.btn-submit {
  width: 100%; background: var(--navy); color: #fff; border: none;
  padding: 14px; font-size: 14px; font-weight: 600; margin-top: 4px;
}
.btn-submit:hover { background: var(--navy-dark); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-dark);
  padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-left  { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo  { display: flex; align-items: center; gap: 8px; }
.footer-mark  {
  width: 26px; height: 26px;
  background: rgba(255,255,255,0.08);
  position: relative; display: flex; align-items: center; justify-content: center;
}
.footer-mark::before {
  content: ''; position: absolute;
  top: -2px; left: -2px; right: 2px; bottom: 2px;
  border: 1px solid var(--blue);
}
.footer-mark span { color: #fff; font-size: 9px; font-weight: 800; position: relative; z-index: 1; }
.footer-brand { color: #607080; font-size: 12px; font-weight: 600; }
.footer-copy  { color: #607080; font-size: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #607080; font-size: 12px; transition: color 0.2s; }
.footer-links a:hover { color: #aac4e8; }

/* ─── LEGAL PAGES ────────────────────────────────────────── */
.legal-content {
  max-width: 800px; margin: 0 auto;
  padding: 60px 48px;
}
.legal-meta {
  color: var(--text-muted); font-size: 13px;
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 18px; font-weight: 700; color: var(--text-dark);
  margin: 32px 0 12px;
}
.legal-content p  { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 12px 0 12px 24px; }
.legal-content ul li { font-size: 15px; color: #444; line-height: 2; }
.legal-content a  { color: var(--blue); }
.cookie-type-card {
  border: 1px solid var(--border); padding: 20px 24px;
  margin: 16px 0;
}
.cookie-type-card.essential  { border-left: 3px solid var(--navy); }
.cookie-type-card.analytics  { border-left: 3px solid var(--blue); }
.cookie-type-card.preference { border-left: 3px solid var(--blue-mid); }
.cookie-type-card strong { color: var(--text-dark); display: block; margin-bottom: 6px; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav { padding: 0 20px; }
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 20px 24px;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); color: #aac4e8; }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; }

  .hero { flex-direction: column; }
  .hero-content { padding: 48px 20px; }
  .hero-title { font-size: 32px; }
  .hero-panel { width: 100%; padding: 24px 20px; }
  .trust-bar { padding: 12px 20px; gap: 16px; }

  .pillars { flex-direction: column; }
  .services-grid { grid-template-columns: 1fr; }

  .cx-network { padding: 48px 20px; }
  .network-cards { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }
  .step { text-align: left; display: flex; gap: 16px; align-items: flex-start; padding: 0; }
  .step-num { flex-shrink: 0; margin: 0; }
  .stats { flex-wrap: wrap; padding: 32px 20px; }
  .stat { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }

  .advantages { flex-direction: column; }
  .contact-inner { flex-direction: column; gap: 32px; }
  .form-row { flex-direction: column; }
  .contact-form { padding: 24px; }

  .footer { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 20px; }
  .legal-content { padding: 32px 20px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .network-cards { grid-template-columns: 1fr 1fr; }
}

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--navy-dark);
  border-top: 2px solid var(--blue);
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-banner p { color: #aac4e8; font-size: 13px; line-height: 1.6; flex: 1; }
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-banner-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-accept {
  background: var(--blue); color: #fff;
  border: none; padding: 10px 22px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.cookie-decline {
  background: none; color: #aac4e8;
  border: 1px solid #2a4a6a; padding: 10px 18px;
  font-size: 13px; cursor: pointer;
}
.cookie-banner.hidden { display: none; }

@media (max-width: 767px) {
  .cookie-banner { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
  .cookie-banner-buttons { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-section { background: var(--bg-light); }
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  font-size: 16px;
  font-weight: 300;
  transition: transform 0.25s ease;
}
details[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 720px;
  padding-bottom: 24px;
}

/* ─── FORM SUCCESS ───────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  line-height: 56px;
  margin: 0 auto 20px;
}
.form-success h3 {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.6;
}
