:root {
  --bg: #f7f8fb;
  --bg-2: #edf1f7;
  --card: #ffffff;
  --card-strong: #ffffff;
  --text: #16202f;
  --muted: #5f6c7b;
  --line: rgba(22, 32, 47, 0.09);
  --accent: #2f6fd6;
  --accent-2: #ff8a3d;
  --shadow: 0 8px 24px rgba(32, 49, 72, 0.07);
  --shadow-strong: 0 18px 42px rgba(32, 49, 72, 0.11);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  max-width: calc(var(--container) + 48px);
  margin: 20px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 32, 47, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--accent) 0%, #245bb0 100%);
  box-shadow: 0 12px 24px rgba(47, 111, 214, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--muted);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav a:hover {
  background: rgba(22, 32, 47, 0.05);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  background: rgba(47, 111, 214, 0.08);
  color: var(--accent) !important;
}

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 24px 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  min-height: 760px;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 214, 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1,
.section-head h2,
.cta h2 {
  margin: 20px 0 0;
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 0.97;
  letter-spacing: -0.05em;
}

.section-head h2,
.cta h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
}

.lead,
.section-head p,
.cta p,
.project-card p,
.service-card p,
.timeline-item p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  margin: 20px 0 0;
  max-width: 64ch;
  font-size: 18px;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #245bb0 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(47, 111, 214, 0.24);
}

.btn-secondary {
  background: #fff;
  border: 1px solid rgba(22, 32, 47, 0.1);
  color: var(--text);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills span {
  padding: 9px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(22, 32, 47, 0.08);
  color: var(--muted);
  box-shadow: 0 6px 16px rgba(32, 49, 72, 0.04);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.visual-card {
  width: min(100%, 560px);
  padding: 18px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid rgba(22, 32, 47, 0.08);
  box-shadow: var(--shadow-strong);
}

.visual-hero {
  position: relative;
  min-height: 370px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 247, 251, 0.98), rgba(236, 241, 248, 0.95));
  border: 1px solid rgba(22, 32, 47, 0.05);
}

.visual-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(47, 111, 214, 0.06) 0 24%, transparent 24% 100%),
    linear-gradient(180deg, transparent 0 58%, rgba(255, 255, 255, 0.72) 58% 100%);
}

.visual-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 32, 47, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.visual-figure {
  position: absolute;
  inset: 64px 44px 38px 44px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 138, 61, 0.24), transparent 18%),
    linear-gradient(180deg, rgba(47, 111, 214, 0.18), rgba(47, 111, 214, 0.06)),
    linear-gradient(135deg, #ffffff 0%, #eef3f9 100%);
  border: 1px solid rgba(22, 32, 47, 0.08);
}

.visual-figure::before,
.visual-figure::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.visual-figure::before {
  inset: 24px 28px auto;
  height: 12px;
  background: linear-gradient(90deg, rgba(47, 111, 214, 0.7), rgba(255, 138, 61, 0.65));
}

.visual-figure::after {
  inset: auto 30px 26px 30px;
  height: 84px;
  background:
    linear-gradient(180deg, rgba(22, 32, 47, 0.16), rgba(22, 32, 47, 0.04)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(234, 240, 247, 0.95));
  border-radius: 20px;
}

.visual-panel {
  position: absolute;
  z-index: 2;
  padding: 14px 16px;
  min-width: 160px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 32, 47, 0.08);
  box-shadow: 0 12px 22px rgba(32, 49, 72, 0.08);
}

.visual-panel strong,
.visual-mini strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
}

.visual-panel span,
.visual-mini span {
  color: var(--muted);
  font-size: 12px;
}

.visual-panel-top {
  top: 52px;
  right: 28px;
}

.visual-panel-bottom {
  left: 28px;
  bottom: 26px;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.visual-mini {
  padding: 16px 16px 15px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(22, 32, 47, 0.08);
  box-shadow: 0 10px 18px rgba(32, 49, 72, 0.05);
}

.visual-mini strong {
  margin-bottom: 4px;
}

.panel-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.stat-card {
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(22, 32, 47, 0.08);
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 10px;
}

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

.section {
  margin-top: 96px;
}

.section-head {
  max-width: 760px;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.service-card,
.project-card,
.timeline-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 32, 47, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.service-card {
  padding: 22px;
}

.service-card.accent {
  background: linear-gradient(180deg, rgba(47, 111, 214, 0.05), #fff);
  border-color: rgba(47, 111, 214, 0.16);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(47, 111, 214, 0.08);
  font-weight: 800;
}

.service-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 16px 0 10px;
  font-size: 20px;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.narrow p {
  max-width: 42ch;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 20px;
  align-items: start;
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 138, 61, 0.12);
  color: var(--accent-2);
  font-weight: 800;
}

.showcase {
  padding-bottom: 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.project-card {
  padding: 24px;
  min-height: 220px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 214, 0.08), transparent 65%);
}

.cta {
  margin-top: 96px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(47, 111, 214, 0.1), rgba(255, 138, 61, 0.09)),
    rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 32, 47, 0.08);
  box-shadow: var(--shadow-strong);
}

.cta p {
  max-width: 56ch;
}

.footer {
  max-width: calc(var(--container) + 48px);
  margin: 0 auto 24px;
  padding: 0 24px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

.footer strong {
  color: var(--text);
  font-size: 18px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .cta {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    justify-content: stretch;
  }

  .visual-card {
    width: 100%;
  }

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

@media (max-width: 780px) {
  .header {
    border-radius: 22px;
    padding: 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    justify-content: flex-start;
  }

  main {
    padding-inline: 16px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .stats,
  .service-grid,
  .project-grid,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .cta,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item span {
    width: 48px;
    height: 48px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
