:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #12263a;
  --muted: #4b5f77;
  --primary: #0f62fe;
  --primary-dark: #0b4ecc;
  --border: #d8e1ea;
  --radius: 16px;
  --shadow: 0 12px 36px rgba(18, 38, 58, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

section[id] {
  scroll-margin-top: 88px;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #0b4ecc;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0.8rem;
  z-index: 50;
  background: #0b4ecc;
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.8rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(244, 247, 251, 0.9);
  border-bottom: 1px solid rgba(216, 225, 234, 0.7);
  z-index: 10;
}

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

.brand {
  font-weight: 800;
  font-size: 1.1rem;
}

.brand span {
  color: var(--primary);
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-sm {
  padding: 0.55rem 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(15, 98, 254, 0.08);
}

.hero {
  padding: 4rem 0 2.5rem;
  background: radial-gradient(80% 60% at 80% 10%, rgba(15, 98, 254, 0.1), rgba(15, 98, 254, 0) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.eyebrow-note {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.85;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  margin: 1.35rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.check-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-media {
  position: relative;
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  background: rgba(18, 38, 58, 0.85);
  color: #fff;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.33rem 0.7rem;
}

.hero-schematic {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.hero-schematic .ridge-back {
  fill: url(#ridge-back-fill);
  animation: ridgeDrift 10s ease-in-out infinite alternate;
}

.hero-schematic .ridge-front {
  fill: url(#ridge-front-fill);
  animation: ridgeDrift 7s ease-in-out infinite alternate-reverse;
}

.hero-schematic .route {
  fill: none;
  stroke: rgba(162, 211, 255, 0.92);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 12 14;
  animation: routeFlow 5s linear infinite;
}

.hero-schematic .beacon {
  fill: rgba(170, 222, 255, 0.9);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  transform-origin: center;
  animation: beaconPulse 2.4s ease-out infinite;
}

.hero-schematic .beacon-two {
  animation-delay: 0.65s;
}

.hero-schematic .beacon-three {
  animation-delay: 1.3s;
}

@keyframes ridgeDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(3px);
  }
}

@keyframes routeFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes beaconPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  35% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.stat-grid article {
  padding: 0.9rem;
  text-align: center;
}

.stat-grid article + article {
  border-left: 1px solid var(--border);
}

.stat-number {
  margin: 0;
  font-weight: 800;
  font-size: 1.25rem;
}

.stat-label {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 4.3rem 0;
}

.section-muted {
  background: #edf3fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.carousel-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
}

.carousel-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1rem) / 2);
  gap: 1rem;
  overflow-x: auto;
  margin-top: 0.9rem;
  padding-bottom: 0.45rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #9eb5ce #dbe6f2;
}

.carousel-track .project {
  scroll-snap-align: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.about-portrait {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 0.45rem 0 0.9rem;
}

.project {
  overflow: hidden;
  padding: 0;
}

.project img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project h3,
.project p {
  padding: 0 1.1rem;
}

.project h3 {
  margin-top: 1rem;
}

.project p {
  margin-bottom: 1.1rem;
  color: var(--muted);
}

.section-note {
  margin: 0.35rem 0 0.15rem;
  color: var(--muted);
}

.pricing-card {
  position: relative;
}

.price {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.4rem 0 0.8rem;
}

.price span {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.featured {
  border-color: var(--primary);
  box-shadow: 0 14px 28px rgba(15, 98, 254, 0.18);
}

.badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  background: var(--primary);
  color: #fff;
  margin: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.3rem 0.65rem;
}

.pricing-card.featured {
  padding-bottom: 3rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}

.process-list {
  margin: 0;
  padding-left: 1.1rem;
}

.process-list li + li {
  margin-top: 0.7rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.faq-card {
  position: relative;
  border-left: 4px solid #8db8ff;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-card::before {
  content: "Q";
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0b4ecc;
  background: rgba(15, 98, 254, 0.1);
}

.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 38, 58, 0.08);
  border-left-color: #0f62fe;
}

.section-cta {
  padding-top: 0;
}

.cta-block {
  background: linear-gradient(130deg, #0d2f66, #0f62fe);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.2rem;
  text-align: center;
}

.cta-block p {
  max-width: 700px;
  margin: 0.5rem auto 1.3rem;
  color: rgba(255, 255, 255, 0.85);
}

.cta-block .btn {
  background: #fff;
  color: #0d2f66;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-note {
  margin-top: 1rem;
  margin-bottom: 0;
}

.contact-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-wrap {
  min-height: 68px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

  .nav-wrap {
    min-height: 62px;
  }

  .hero {
    padding: 0.9rem 0 2.2rem;
  }

  .hero-grid,
  .three-up,
  .process-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    grid-auto-columns: 100%;
  }

  .carousel-controls {
    justify-content: flex-start;
  }

  .section {
    padding: 2.8rem 0;
  }

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

  .stat-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-schematic .ridge-back,
  .hero-schematic .ridge-front,
  .hero-schematic .route,
  .hero-schematic .beacon {
    animation: none;
  }
}
