@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=DM+Sans:wght@400;500;600&display=swap");

:root {
  --bg: #f8fafc;
  --bg-soft: #eff4ff;
  --fg: #0f172a;
  --muted: #64748b;
  --line: #dbe3f0;
  --card: rgba(255, 255, 255, 0.8);
  --brand: #1d4ed8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(circle at 8% 10%, rgba(29, 78, 216, 0.11), transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(14, 165, 233, 0.14), transparent 35%),
    var(--bg);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transition: all 0.4s ease;
}

.site-header .container {
  margin-top: 14px;
}

.header-row {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: all 0.35s ease;
}

.site-header.scrolled .header-row {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-image {
  height: 34px;
  width: auto;
  display: block;
}

.nav-desktop {
  display: none;
  gap: 22px;
  align-items: center;
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--fg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.22s ease;
}

.btn-primary {
  background: var(--fg);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #0b1224;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: rgba(15, 23, 42, 0.2);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  transition: all 0.22s ease;
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

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

.nav-mobile .nav-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 120px;
  text-align: center;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 540px;
  height: 540px;
  right: -140px;
  top: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(56, 189, 248, 0.22), rgba(29, 78, 216, 0.11), transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 7.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.subtitle {
  color: var(--muted);
  line-height: 1.75;
  font-size: clamp(1.04rem, 2.2vw, 1.25rem);
  margin: 0 auto 34px;
  max-width: 690px;
  text-align: center;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.scroll-indicator {
  margin-top: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.35rem;
}

.section {
  padding: 92px 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 40px;
}

h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.section-desc {
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--card);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 26px;
  transition: all 0.24s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 78, 216, 0.35);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  color: var(--brand);
}

.service-card p {
  color: var(--muted);
  line-height: 1.75;
}

.about,
.contact {
  background: linear-gradient(180deg, rgba(236, 242, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.about-content,
.contact-wrap {
  max-width: 910px;
  margin: 0 auto;
}

.about-divider {
  width: 82px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0f172a, #3b82f6);
  margin: 0 auto 20px;
}

.about-content p {
  color: #334155;
  line-height: 1.8;
}

.stats {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.stat {
  text-align: center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
}

.stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
}

.faq-question {
  font-weight: 600;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.contact-form {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.35);
  border-color: #2563eb;
}

.field-error {
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 6px;
}

.form-alert {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid;
  border-radius: 10px;
  display: none;
}

.form-alert.success {
  display: block;
  border-color: #0d8f3a;
  background: #f0fff4;
  color: #0d8f3a;
}

.form-alert.error {
  display: block;
  border-color: #b00020;
  background: #fff1f3;
  color: #b00020;
}

.contact-info {
  text-align: center;
  margin-top: 24px;
  color: var(--muted);
}

.site-footer {
  background: #0b1020;
  color: #f8fafc;
  padding: 64px 0 32px;
}

.site-footer h3,
.site-footer h4 {
  font-family: "Space Grotesk", sans-serif;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: #94a3b8;
}

.footer-grid a:hover {
  color: #dbeafe;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  color: #94a3b8;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  width: min(520px, 100%);
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

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

@media (min-width: 992px) {
  .services-grid,
  .stats,
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-orb {
    width: 740px;
    height: 740px;
    right: -210px;
    top: 4%;
  }
}
