:root {
  --bg: #f3fbff;
  --surface: #ffffff;
  --surface-soft: #ecf8ff;
  --text: #143047;
  --muted: #51718a;
  --primary: #11926b;
  --primary-2: #17b98a;
  --accent: #1da8dd;
  --border: #d8e7f0;
  --shadow: 0 20px 50px rgba(17, 146, 107, 0.15);
}

body.dark {
  --bg: #10202b;
  --surface: #1a2f3d;
  --surface-soft: #20394b;
  --text: #e6f3fb;
  --muted: #b6cfdf;
  --primary: #34d8a8;
  --primary-2: #2bc9d9;
  --accent: #5dd7ff;
  --border: #335469;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(29, 168, 221, 0.1), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(23, 185, 138, 0.16), transparent 35%),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 40%, transparent);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.97rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.58rem 0.9rem;
}

.search-wrap i {
  color: var(--muted);
}

.search-wrap input {
  width: 165px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.section {
  padding: 4.2rem 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.2rem;
  align-items: center;
}

.hero-copy,
.hero-image,
.service-card,
.cta-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 1.5rem;
}

.hero-copy h1,
.section h2,
.service-card h3 {
  font-family: "Poppins", sans-serif;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 4.1vw, 2.8rem);
  line-height: 1.2;
  margin: 0.5rem 0 0.8rem;
}

.hero-copy p,
.section-sub,
.service-card p,
.cta-card p {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: color-mix(in srgb, var(--primary) 14%, #fff);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  margin-top: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.btn-soft {
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.service-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.service-card i {
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  margin-bottom: 0.75rem;
}

.service-card .btn-soft {
  margin-top: auto;
}

.cta-card {
  margin-top: 1.1rem;
  padding: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
}

.footer-row {
  min-height: 74px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .navbar {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: min(1120px, 92vw);
    margin-inline: auto;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .navbar {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "actions actions";
    row-gap: 0.65rem;
    padding: 0.7rem 0;
  }

  .brand {
    grid-area: brand;
    font-size: 0.95rem;
  }

  .menu-toggle {
    grid-area: toggle;
    justify-self: end;
  }

  .nav-actions {
    grid-area: actions;
    width: 100%;
    justify-content: space-between;
  }

  .search-wrap {
    flex: 1;
  }

  .search-wrap input {
    width: 100%;
  }

  .section {
    padding: 3.4rem 0;
  }

  .footer-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0;
  }
}
