:root {
  --navy: #09223f;
  --blue: #0c5aa6;
  --sky: #e9f4ff;
  --gold: #f6b334;
  --ink: #132235;
  --muted: #64748b;
  --line: #dbe4ee;
  --card: #ffffff;
  --bg: #f7fafc;
  --radius: 22px;
  --shadow: 0 22px 50px rgba(9, 34, 63, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 228, 238, 0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center;
  font-weight: 900; color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #ffe39a);
  box-shadow: 0 8px 22px rgba(246,179,52,0.35);
}
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 0.78rem; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; color: #334155; }
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--blue); }
.nav-toggle { display: none; border: 0; background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 13px; font-size: 1.25rem; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(246,179,52,0.4), transparent 28%),
    linear-gradient(135deg, #07182e 0%, #09223f 52%, #0c5aa6 100%);
}
.hero-pattern {
  position: absolute; inset: 0;
  opacity: 0.13;
  background-image: linear-gradient(30deg, transparent 35%, #fff 36%, transparent 37%), linear-gradient(120deg, transparent 35%, #fff 36%, transparent 37%);
  background-size: 90px 90px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 54px; padding: 92px 0; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; font-size: 0.78rem; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 0.98; letter-spacing: -0.06em; max-width: 770px; }
.lead { margin: 24px 0 0; color: rgba(255,255,255,0.82); font-size: 1.15rem; max-width: 670px; }
.hero-actions { display: flex; gap: 14px; margin: 34px 0 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; min-height: 48px; padding: 0 22px; font-weight: 900; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 12px 26px rgba(246,179,52,0.25); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-row span { border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 7px 13px; color: rgba(255,255,255,0.82); font-weight: 700; font-size: 0.88rem; }

.hero-card { position: relative; min-height: 470px; border-radius: 32px; padding: 28px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow); overflow: hidden; }
.meter-card { position: relative; z-index: 2; background: #fff; color: var(--ink); border-radius: 24px; padding: 22px; max-width: 350px; box-shadow: 0 20px 45px rgba(0,0,0,0.18); }
.meter-card p { margin: 0 0 4px; color: var(--muted); font-weight: 800; }
.meter-card strong { font-size: 1.22rem; }
.status-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #28d17c; box-shadow: 0 0 0 7px rgba(40,209,124,0.15); margin-bottom: 18px; }
.circuit-illustration { position: absolute; inset: 100px 35px 112px 35px; border: 2px solid rgba(255,255,255,0.3); border-radius: 28px; }
.circuit-illustration:before, .circuit-illustration:after { content: ""; position: absolute; background: rgba(255,255,255,0.25); }
.circuit-illustration:before { width: 2px; top: 0; bottom: 0; left: 48%; }
.circuit-illustration:after { height: 2px; left: 0; right: 0; top: 52%; }
.circuit-illustration span { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 8px rgba(246,179,52,0.15); }
.circuit-illustration span:nth-child(1){ left: 16%; top: 18%; }
.circuit-illustration span:nth-child(2){ right: 16%; top: 18%; }
.circuit-illustration span:nth-child(3){ left: 18%; bottom: 16%; }
.circuit-illustration span:nth-child(4){ right: 17%; bottom: 16%; }
.quick-services { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-services div { background: rgba(255,255,255,0.92); color: var(--ink); border-radius: 18px; padding: 15px; display: grid; gap: 3px; }
.quick-services strong { color: var(--blue); }
.quick-services span { color: var(--muted); font-weight: 800; }

.section { padding: 86px 0; }
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.05; letter-spacing: -0.04em; color: var(--navy); }
.intro p:not(.eyebrow), .contact p { font-size: 1.04rem; color: #42526a; }
.muted { color: var(--muted)!important; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading.compact { max-width: 600px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 32px rgba(9,34,63,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); color: var(--blue); font-size: 1.45rem; font-weight: 900; }
.service-card h3 { margin: 22px 0 10px; color: var(--navy); font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--muted); }



.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-details { margin-top: 28px; display: grid; gap: 16px; }
.contact-details p { margin: 0; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.contact-details a { color: var(--blue); font-weight: 800; }
.contact-form { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 900; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font: inherit; color: var(--ink); background: #fbfdff; }
input:focus, textarea:focus { outline: 3px solid rgba(12,90,166,0.14); border-color: var(--blue); }
.form-note { margin: 0; font-size: 0.9rem!important; color: var(--muted)!important; }
.bot-field { display: none; }
.success-card { background: #fff; border-radius: 28px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 760px; margin: 0 auto; text-align: center; }
.success-card p { color: var(--muted); font-size: 1.05rem; }
.success-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


.footer { background: #061528; color: #fff; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.6fr 1fr; gap: 34px; }
.footer a { display: block; color: rgba(255,255,255,0.76); margin: 8px 0; }
.footer h4 { margin: 0 0 14px; color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,0.65); }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 22px; color: rgba(255,255,255,0.62); font-size: 0.92rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: absolute; top: 78px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px; color: var(--navy); }
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .container { width: min(100% - 28px, 1140px); }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
  .brand-text small { display: none; }
  .hero-grid { padding: 64px 0; }
  .hero h1 { font-size: 2.55rem; }
  .hero-card { min-height: 420px; }
  .quick-services { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .cards-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-note.error {
  color: #b42318;
}

/* Mobile hero-card layout fix: prevent the Site readiness card from overlapping service items. */
@media (max-width: 580px) {
  .hero-card {
    min-height: auto;
    padding: 20px;
    display: grid;
    gap: 18px;
    overflow: visible;
  }

  .meter-card {
    max-width: none;
    width: 100%;
    padding: 18px;
  }

  .meter-card strong {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .circuit-illustration {
    display: none;
  }

  .quick-services {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
