:root {
  --navy-deep: #021c4d;
  --navy: #04275e;
  --blue: #0055e3;
  --blue-bright: #2f7dff;
  --gold: #eaac19;
  --gold-light: #f4c14a;
  --ink: #e9edf5;
  --ink-dim: #a9b4cc;
  --bg: #0d1b3f;
  --bg-panel: #12234c;
  --radius: 18px;
  --container: 1160px;
  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

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

ul { list-style: none; }

/* ---------- Background network canvas ---------- */
#net-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  z-index: 999;
  transition: width 0.1s ease-out;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 27, 63, 0.85);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #ffffff, #eef2fa);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.6) inset;
  transition: padding 0.3s var(--ease), border-radius 0.3s var(--ease);
}
.logo-badge-header { padding: 8px 16px; }
.site-header.scrolled .logo-badge-header { padding: 6px 14px; }
.logo-badge-footer { padding: 12px 22px; margin-bottom: 20px; }

.brand-logo { height: 68px; width: auto; display: block; transition: height 0.3s var(--ease); }
.site-header.scrolled .brand-logo { height: 52px; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-phone:hover { color: var(--blue-bright); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  padding: 10px 20px;
  border-radius: 100px;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0,85,227,0.4);
}
.nav-cta:hover { box-shadow: 0 6px 26px rgba(0,85,227,0.6); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 101; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,85,227,0.25), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(234,172,25,0.15), transparent 40%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
  z-index: 1;
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; }

.logo-badge-hero {
  padding: 22px 40px;
  margin-bottom: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.7) inset,
              0 0 60px rgba(0,85,227,0.35), 0 0 90px rgba(234,172,25,0.2);
  animation: logoFloat 5s ease-in-out infinite;
}
.hero-logo {
  height: clamp(70px, 9vw, 120px);
  width: auto;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(234,172,25,0.35);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  background: rgba(234,172,25,0.06);
}

.hero-title {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--blue-bright), var(--gold-light) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.motif { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.motif-word {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  padding: 8px 4px;
  border-bottom: 3px solid var(--gold);
  opacity: 0.25;
  transition: opacity 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.motif-word.active { opacity: 1; color: var(--gold-light); border-color: var(--blue-bright); }

.hero-sub {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 620px;
  margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,85,227,0.4);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(0,85,227,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-full { width: 100%; }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.6s infinite;
}
@keyframes scrollcue {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Trust strip ---------- */
.trust-strip {
  position: relative;
  z-index: 2;
  padding: 8px 0 46px;
}
.trust-line {
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 26px;
  border: 1px solid rgba(234,172,25,0.25);
  border-radius: 100px;
  background: rgba(234,172,25,0.05);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  position: relative;
  z-index: 2;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.stat-card { text-align: center; }
.stat-number {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--ink-dim); line-height: 1.5; }
.stats-footnote { text-align: center; margin-top: 30px; font-size: 12px; color: #5c6785; }

/* ---------- Services ---------- */
.services { position: relative; z-index: 2; padding: 120px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
}
.section-sub {
  text-align: center;
  color: var(--ink-dim);
  max-width: 620px;
  margin: 0 auto 60px;
  font-size: 16px;
}
.section-title.light, .section-sub.light { color: inherit; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pillar-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-8px);
  border-color: rgba(234,172,25,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.pillar-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0,85,227,0.18), rgba(234,172,25,0.12));
  color: var(--gold-light);
  margin-bottom: 22px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.pillar-tag { color: var(--blue-bright); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; }
.pillar-card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 14.5px;
  color: var(--ink-dim);
}
.pillar-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- SEO Lab ---------- */
.seo-lab {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,85,227,0.12), transparent 60%), var(--bg-panel);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lab-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.lab-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #333;
  border-radius: 100px;
  padding: 14px 22px;
  font-size: 15px;
  margin-bottom: 34px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.lab-search-bar svg { color: #888; flex-shrink: 0; }

.lab-slider-wrap { margin-bottom: 34px; }
.lab-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #3a4360, var(--gold));
  outline: none;
}
.lab-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.lab-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--gold);
  cursor: pointer;
}
.lab-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  margin-top: 10px;
}

.lab-results { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.lab-result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 20px;
  transition: border-color 0.3s, background 0.3s;
}
.lab-result-card.is-you { border-color: rgba(234,172,25,0.5); background: rgba(234,172,25,0.07); }
.lab-rank {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.lab-result-card.is-you .lab-rank { background: var(--gold); color: #16150f; }
.lab-result-name { font-weight: 700; font-size: 15px; }
.lab-result-meta { font-size: 12.5px; color: var(--ink-dim); }

.lab-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.lab-metric-label { font-size: 13px; color: var(--ink-dim); display: block; margin-bottom: 8px; }
.lab-bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.lab-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 0.25s var(--ease);
}
.lab-footnote { text-align: center; color: #5c6785; font-size: 12.5px; margin-top: 26px; }

/* ---------- How We Work ---------- */
.how-we-work { position: relative; z-index: 2; padding: 120px 0; }
.timeline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 90px; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 23px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
  opacity: 0.35;
}
.timeline-item { display: flex; gap: 26px; padding: 22px 0; }
.timeline-marker {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 0 6px var(--bg), 0 6px 20px rgba(0,85,227,0.4);
  position: relative;
  z-index: 1;
}
.timeline-content h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.timeline-content p { color: var(--ink-dim); font-size: 15px; max-width: 560px; }

.why-us { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 28px 24px;
}
.why-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.why-item p { font-size: 15px; color: var(--ink-dim); }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  z-index: 2;
  padding: 120px 0 100px;
  background: radial-gradient(ellipse at 50% 100%, rgba(234,172,25,0.08), transparent 55%);
}
.contact-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
  align-items: start;
}
.contact-form { text-align: left; margin-top: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-direct {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: fit-content;
}
.contact-direct h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-dim);
  margin-bottom: 16px;
  transition: color 0.2s;
}
a.contact-line:hover { color: var(--gold-light); }
.contact-line svg { flex-shrink: 0; color: var(--blue-bright); }
.contact-note { font-size: 13px; color: #5c6785; margin-bottom: 0; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,0.1); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-dim); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(255,255,255,0.06);
}
.form-note { text-align: center; margin-top: 16px; font-size: 14px; color: var(--gold-light); min-height: 20px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}
.footer-logo { height: 50px; width: auto; display: block; }
.footer-inner p { color: var(--ink-dim); font-size: 14px; margin-bottom: 6px; }
.footer-fine { font-size: 12.5px; color: #5c6785; margin-top: 6px; }
.footer-fine a { color: var(--gold-light); font-weight: 700; transition: color 0.2s; }
.footer-fine a:hover { color: var(--blue-bright); }
.footnotes { margin-top: 30px; max-width: 640px; margin-left: auto; margin-right: auto; }
.footnotes p { font-size: 11px; color: #47517a; margin-bottom: 4px; }
.footnote-caveat { margin-top: 8px; font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .why-us { grid-template-columns: 1fr; }
  .lab-metrics { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 260px;
    background: rgba(13,27,63,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid rgba(255,255,255,0.08);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
