:root {
  --bg: #edf3ff;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --text: #102347;
  --text-muted: #3e5786;
  --brand: #1957d3;
  --brand-2: #3f7dff;
  --accent: #0f3ea3;
  --line: #d3e0ff;
  --shadow: 0 12px 30px rgba(25, 87, 211, 0.16);
  --radius: 18px;
  --max: 1320px;
  --header-offset: 88px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(25, 87, 211, 0.24) 0%, transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(79, 136, 255, 0.2) 0%, transparent 44%),
    radial-gradient(circle at 50% 100%, rgba(25, 87, 211, 0.09) 0%, transparent 46%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 62%, #e6eeff 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(var(--max), calc(100% - 10rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(211, 224, 255, 0.95);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  height: 72px;
  width: auto;
  display: block;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}


nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

nav a:hover {
  color: var(--brand);
}

nav a.active {
  color: var(--brand);
  background: rgba(25, 87, 211, 0.12);
  border-color: rgba(25, 87, 211, 0.22);
}

nav a:focus-visible {
  outline: none;
  color: var(--brand);
  border-color: rgba(25, 87, 211, 0.4);
  box-shadow: 0 0 0 3px rgba(25, 87, 211, 0.16);
}

.hero {
  padding: 5.2rem 0 3.4rem;
  position: relative;
  scroll-margin-top: var(--header-offset);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 1rem;
  background: rgba(25, 87, 211, 0.1);
  border: 1px solid rgba(25, 87, 211, 0.26);
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  width: fit-content;
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero p {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 1.6rem;
  font-size: 1.04rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 12px 20px rgba(29, 78, 216, 0.25);
}

.btn.secondary {
  background: #fff;
  border-color: rgba(25, 87, 211, 0.25);
  color: var(--brand);
}

.btn:hover {
  transform: translateY(-2px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 0.75rem;
  max-width: 640px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  backdrop-filter: blur(6px);
  transform: translateY(8px);
  opacity: 0;
  animation: reveal 660ms ease forwards;
}

.metric-card:nth-child(2) {
  animation-delay: 120ms;
}

.metric-card:nth-child(3) {
  animation-delay: 240ms;
}

.metric-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.1;
}

.metric-label {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f1f6ff 100%);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  min-height: 340px;
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  animation: reveal 720ms ease 220ms forwards;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f3ea3;
  background: rgba(25, 87, 211, 0.14);
  border: 1px solid rgba(25, 87, 211, 0.26);
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
}

.mini-map {
  height: 170px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(25, 87, 211, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(25, 87, 211, 0.08) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(135deg, #edf3ff, #f8fbff);
  border: 1px solid rgba(25, 87, 211, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 6px rgba(25, 87, 211, 0.2);
  animation: pulse 1700ms ease infinite;
}

.pin.a { top: 28%; left: 26%; }
.pin.b { top: 58%; left: 55%; animation-delay: 320ms; }
.pin.c { top: 43%; left: 76%; animation-delay: 640ms; }

.log {
  display: grid;
  gap: 0.5rem;
}

.log-item {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.48rem 0.6rem;
}

.section {
  padding: 2rem 0;
  scroll-margin-top: var(--header-offset);
}

.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  margin-bottom: 0.58rem;
  letter-spacing: -0.018em;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.04rem;
  font-family: "Space Grotesk", sans-serif;
}

.card p,
.card li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.feature-list li::before {
  content: "\2022";
  color: var(--brand);
  font-weight: 800;
  margin-right: 0.52rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 0.58rem;
  margin-top: 0.6rem;
}

.timeline li {
  padding: 0.54rem 0.7rem;
  border-radius: 12px;
  border: 1px dashed rgba(25, 87, 211, 0.3);
  background: #f8fbff;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.highlight {
  border: 1px solid rgba(25, 87, 211, 0.34);
  background: linear-gradient(135deg, rgba(25, 87, 211, 0.1), rgba(63, 125, 255, 0.1));
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  scroll-margin-top: var(--header-offset);
}

.highlight-title {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.35rem;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.testimonials-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.testimonials-track {
  display: flex;
  transition: transform 320ms ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(25, 87, 211, 0.22);
  background: linear-gradient(135deg, #e8f1ff, #f7faff);
}

.testimonial-quote {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.testimonial-meta {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(25, 87, 211, 0.26);
  background: #fff;
  color: var(--brand);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.carousel-btn:hover {
  background: rgba(25, 87, 211, 0.1);
  transform: translateY(-1px);
}

.carousel-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 87, 211, 0.16);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.carousel-footer .carousel-dots {
  margin-top: 0;
}

.carousel-pause-btn {
  border: 1px solid rgba(25, 87, 211, 0.26);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.72rem;
  cursor: pointer;
}

.carousel-pause-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 87, 211, 0.16);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(25, 87, 211, 0.35);
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--brand);
  border-color: var(--brand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.contact-info p,
.contact-form-wrap p {
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.contact-list a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(25, 87, 211, 0.14);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 0.4rem;
  width: fit-content;
}

.contact-form .btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.contact-status {
  min-height: 1.4rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-status.success {
  color: #0f3ea3;
}

.contact-status.error {
  color: #b42318;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

@keyframes pulse {
  0% { transform: scale(1); }
  55% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes reveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .container {
    width: calc(100% - 4rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-carousel {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .carousel-btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 2rem);
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0;
  }

  .brand-logo {
    height: 28px;
  }

  .brand-icon {
    height: 32px;
  }

  nav ul {
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
  }
}

.sub-section {
  padding-bottom: 0.8rem;
}
