:root {
  --ink: #0e1f3a;
  --ink-soft: #30456a;
  --surface: #f5f9ff;
  --card: #ffffff;
  --line: #d5e3f8;
  --primary: #0f6dff;
  --primary-strong: #0b53c5;
  --accent: #ff8a35;
  --ok: #0e7a3f;
  --shadow: 0 18px 50px rgba(10, 34, 74, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 0%, #e8f0ff 0%, #f5f9ff 48%, #f2f7ff 100%);
  scroll-behavior: smooth;
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(245, 249, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 68px;
  height: auto;
  display: block;
}

.footer-logo {
  width: 60px;
  height: auto;
  display: block;
  margin-bottom: 0.55rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2rem;
  padding: 4.2rem 0 2.4rem;
  align-items: start;
}

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

.hero-sub {
  color: var(--ink-soft);
  max-width: 58ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-points {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-points span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.lead-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.lead-card h2 {
  margin: 0.2rem 0 0.2rem;
}

.lead-card p {
  margin-top: 0;
  color: var(--ink-soft);
}

label {
  display: block;
  font-size: 0.86rem;
  margin-top: 0.75rem;
  font-weight: 500;
}

.lead-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.service-dropdown {
  position: relative;
  margin-top: 0.35rem;
}

.service-trigger {
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #cddaf0;
  font: inherit;
  background: #fdfefe;
  color: #4b5f82;
  cursor: pointer;
}

.service-trigger.has-selection {
  color: var(--ink);
}

.service-trigger:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(15, 109, 255, 0.16);
}

.service-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 25;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #cddaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(10, 34, 74, 0.12);
  padding: 0.35rem;
}

.service-dropdown.open .service-options {
  display: block;
}

.service-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
}

.service-options label:hover {
  background: #f3f7ff;
}

.service-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-modal.open {
  display: flex;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 42, 0.58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.contact-modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 24px 70px rgba(4, 18, 40, 0.35);
  padding: 1.4rem;
}

.contact-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal-kicker {
  margin: 0 0 0.25rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.contact-modal h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-detail-box {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  margin-top: 0.9rem;
}

.contact-detail-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-detail-value {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2;
  color: var(--ink);
  word-break: break-word;
}

.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.contact-modal-actions .btn {
  flex: 1 1 180px;
}

body.modal-open {
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #cddaf0;
  font: inherit;
  background: #fdfefe;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(15, 109, 255, 0.16);
}

.form-status {
  min-height: 20px;
  font-size: 0.88rem;
  margin-top: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), #2a80ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 109, 255, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary-strong), var(--primary));
}

.btn-outline {
  border-color: #b6c9e8;
  background: #fff;
  color: var(--ink);
}

.btn-full {
  margin-top: 0.9rem;
  width: 100%;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #edf4ff 0%, #eaf2ff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 0.2rem;
}

.section-head .eyebrow {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 0.35rem;
}

.cards-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(5, 44, 97, 0.08);
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.timeline {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: flex;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
}

.timeline-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #ff9833, #ff7b22);
  color: #fff;
  font-weight: 700;
  display: grid;
  place-content: center;
  flex-shrink: 0;
}

.timeline-item h3 {
  margin: 0;
}

.timeline-item p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial {
  margin: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(10, 34, 74, 0.07);
}

.testimonial p {
  margin: 0;
  color: var(--ink-soft);
}

.testimonial cite {
  display: block;
  margin-top: 0.8rem;
  font-style: normal;
  font-weight: 600;
}

.cta-block {
  padding-top: 1rem;
}

.cta-inner {
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #0f6dff, #0a4cb0);
  border-radius: 24px;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.cta-inner p {
  color: #eaf3ff;
}

.cta-inner .btn-outline {
  border-color: #a7cafc;
  background: transparent;
  color: #fff;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  background: #e9f2ff;
}

.footer-grid {
  padding-top: 1.35rem;
  padding-bottom: 1rem;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr;
  gap: 1.3rem;
  color: var(--ink-soft);
}

.footer-col h3 {
  margin: 0 0 0.55rem;
  color: var(--ink);
}

.footer-col p {
  margin: 0.35rem 0;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a,
.footer-col a {
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-col a:hover {
  color: var(--primary);
}

.footer-meta {
  min-height: 56px;
  display: flex;
  align-items: center;
  border-top: 1px solid #c7d9f3;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.bg-blur {
  position: fixed;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.bg-blur-1 {
  background: #84b8ff;
  left: -110px;
  top: -80px;
}

.bg-blur-2 {
  background: #ffd0a8;
  right: -120px;
  top: 170px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .brand-logo {
    width: 62px;
  }

  .footer-logo {
    width: 56px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0.8rem;
  }

  .footer-meta {
    min-height: 46px;
  }
}
