:root {
  color-scheme: light;
  --navy-950: #050b18;
  --navy-900: #0a1428;
  --navy-800: #0f1f3d;
  --navy-700: #16294f;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --cyan-400: #22d3ee;
  --cyan-300: #67e8f9;
  --cyan-500: #06b6d4;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--gray-50);
  color: var(--navy-900);
  line-height: 1.5;
}

h1, h2, h3, h4,
.font-display {
  font-family: "Sora", "Inter", sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.nav-toggle {
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.mobile-nav.is-open {
  display: block;
}

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

/* ---------- Hero carousel ---------- */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: stretch;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  grid-row: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
}

.hero-slide > * {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-slide-1::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.22), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.35), transparent 42%),
    radial-gradient(circle at 75% 85%, rgba(34, 211, 238, 0.12), transparent 40%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
}

.hero-slide-2::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.24), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.3), transparent 45%),
    radial-gradient(circle at 70% 88%, rgba(45, 212, 191, 0.14), transparent 40%),
    linear-gradient(160deg, var(--navy-950) 0%, #0c1c33 50%, #10233f 100%);
}

.hero-slide-3::before {
  background:
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.26), transparent 42%),
    radial-gradient(circle at 12% 15%, rgba(34, 211, 238, 0.28), transparent 40%),
    radial-gradient(circle at 25% 88%, rgba(167, 139, 250, 0.12), transparent 40%),
    linear-gradient(160deg, var(--navy-950) 0%, #101a33 50%, #17203f 100%);
}

.hero-slide-4::before {
  background:
    radial-gradient(circle at 88% 80%, rgba(251, 191, 36, 0.2), transparent 42%),
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.32), transparent 42%),
    radial-gradient(circle at 70% 10%, rgba(251, 191, 36, 0.1), transparent 38%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-slider-arrow:hover {
  background: rgba(34, 211, 238, 0.35);
  border-color: rgba(147, 197, 253, 0.6);
}

.hero-slider-prev {
  left: 1rem;
}

.hero-slider-next {
  right: 1rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-slider-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-slider-dot.is-active {
  width: 1.5rem;
  background: #fff;
}

@media (max-width: 767px) {
  .hero-slider-arrow {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.9rem;
  }
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.glow-badge {
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 8px 24px rgba(34, 211, 238, 0.08);
}

/* Floating mock dashboard card in hero */

.hero-visual {
  position: relative;
}

.float-card {
  position: absolute;
  border-radius: 1rem;
  background: rgba(10, 20, 40, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  animation: float 6s ease-in-out infinite;
}

.float-card.delay-1 {
  animation-delay: 1.2s;
}

.float-card.delay-2 {
  animation-delay: 2.4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

/* ---------- Subpage hero ---------- */

.subpage-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  isolation: isolate;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.22), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(37, 99, 235, 0.3), transparent 45%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 30%, transparent 90%);
}

.subpage-hero > * {
  position: relative;
  z-index: 1;
}

/* ---------- Service cards ---------- */

.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(34, 211, 238, 0.1));
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

/* ---------- Stats counter ---------- */

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ---------- FAQ ---------- */

.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.active {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.active .faq-answer {
  max-height: 260px;
}

.faq-toggle-icon {
  transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* ---------- Why choose us ---------- */

.feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

/* ---------- Social links ---------- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(103, 232, 249, 0.7);
  color: #67e8f9;
  transform: translateY(-2px);
}

.social-link i {
  font-size: 0.95rem;
}

/* ---------- Contact form status ---------- */

.form-status {
  display: none;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.form-status.is-visible {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.form-status.is-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #047857;
}

.form-status.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.map-shell {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 1rem;
  background: #f8fafc;
}

.map-shell iframe {
  display: block;
  width: 100%;
  min-height: 18rem;
  border: 0;
}

/* ---------- Top info bar ---------- */

.top-bar {
  background: var(--navy-950);
}
