:root {
  --blue: #1f7bf2;
  --blue-dark: #0d3f8f;
  --ink: #1f2328;
  --muted: #626b78;
  --light: #f4f7fb;
  --white: #ffffff;
  --line: rgba(31, 35, 40, 0.12);
  --shadow: 0 24px 70px rgba(15, 34, 68, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(1240px, calc(100% - 32px));
  height: 90 px; /*86px;*/
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  width: 188px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 650;
  color: #333b46;
}

.nav-links a:not(.btn):hover {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(31, 123, 242, 0.24);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(31, 123, 242, 0.34);
  background: #126ee5;
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
}

.btn-secondary {
  background: white;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-secondary:hover {
  background: var(--light);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-light {
  background: white;
  color: var(--blue-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 86px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 72% 35%, rgba(31,123,242,.20), transparent 32%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 55%, #eef5ff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,123,242,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,123,242,.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 860px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
}

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

h3 {
  font-size: 1.45rem;
}

.lead {
  max-width: 680px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 1.22rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  padding: 38px;
  border: 1px solid rgba(31,123,242,.16);
  border-radius: 34px;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.card-kicker {
  color: var(--blue);
  font-weight: 850;
  margin-bottom: 14px;
}

.hero-card h2 {
  font-size: 2.1rem;
  margin-bottom: 26px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-card li {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--light);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 80px;
  align-items: start;
}

.split p:last-child {
  color: var(--muted);
  font-size: 1.18rem;
}

.services {
  background: var(--light);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  min-height: 285px;
  padding: 30px;
  border-radius: 30px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(15, 34, 68, 0.06);
  transition: transform .25s ease, border-color .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31,123,242,.35);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--blue);
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 16px;
}

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

.why-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.why p {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 22px 0 30px;
}

.metrics {
  display: grid;
  gap: 18px;
}

.metrics div {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #f6f9ff);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(15, 34, 68, 0.06);
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.projects {
  background: #0e1726;
  color: white;
}

.projects .section-heading p:not(.eyebrow) {
  color: rgba(255,255,255,.68);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

.project-image {
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.img-1 {
  background-image: linear-gradient(135deg, rgba(31,123,242,.74), rgba(14,23,38,.55)), url("https://images.unsplash.com/photo-1581092918056-0c4c3acd3789?auto=format&fit=crop&w=1200&q=80");
}

.img-2 {
  background-image: linear-gradient(135deg, rgba(31,123,242,.74), rgba(14,23,38,.55)), url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=1200&q=80");
}

.img-3 {
  background-image: linear-gradient(135deg, rgba(31,123,242,.74), rgba(14,23,38,.55)), url("https://images.unsplash.com/photo-1518709268805-4e9042af2176?auto=format&fit=crop&w=1200&q=80");
}

.project-content {
  padding: 28px;
}

.project-content p {
  color: rgba(255,255,255,.72);
  margin: 14px 0 20px;
}

.project-content small {
  color: rgba(255,255,255,.52);
}

.cta {
  padding: 80px 0;
  background: var(--blue);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
}

.cta-box p {
  margin-top: 14px;
  color: rgba(255,255,255,.78);
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.contact p {
  color: var(--muted);
  margin: 22px 0 30px;
  font-size: 1.12rem;
}

.contact-info {
  padding: 24px;
  border-radius: 24px;
  background: var(--light);
}

.contact-info strong,
.contact-info a {
  display: block;
}

.contact-info a {
  color: var(--blue);
  font-weight: 800;
  margin-top: 6px;
}

.contact-form {
  padding: 34px;
  border-radius: 34px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #303844;
  font-weight: 750;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus, textarea:focus {
  border-color: rgba(31,123,242,.55);
  box-shadow: 0 0 0 5px rgba(31,123,242,.10);
}

textarea {
  resize: vertical;
}

.footer {
  padding: 50px 0;
  background: #0b1220;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer img {
  width: 180px;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
}

.footer p,
.footer a {
  color: rgba(255,255,255,.65);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 6px auto;
  background: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    background: white;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.active {
    display: flex;
  }

  .hero-grid,
  .split,
  .why-grid,
  .contact-grid,
  .cta-box {
    grid-template-columns: 1fr;
  }

  .cards,
  .project-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .navbar {
    width: min(100% - 22px, 1240px);
  }

  .brand img {
    width: 150px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-card,
  .contact-form {
    padding: 24px;
    border-radius: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
