:root {
  color-scheme: light;
  --ink: #0a1733;
  --muted: #60708a;
  --line: #dce5f2;
  --paper: #ffffff;
  --soft: #f4f8fd;
  --blue: #1257ff;
  --cyan: #10bcd7;
  --green: #20b486;
  --red: #ff5a6a;
  --navy: #07142e;
  --shadow: 0 24px 70px rgba(8, 24, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 20, 46, 0.45);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  box-shadow: 0 14px 42px rgba(11, 30, 70, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(18, 87, 255, 0.28);
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  font-weight: 700;
  font-size: 0.92rem;
}

.main-nav a,
.header-cta,
.text-link {
  transition: color 160ms ease, transform 160ms ease;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--cyan);
}

.header-cta {
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 96px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 20, 46, 0.96) 0%, rgba(7, 20, 46, 0.72) 48%, rgba(7, 20, 46, 0.36) 100%),
    radial-gradient(circle at 80% 20%, rgba(16, 188, 215, 0.28), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(4.8rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions,
.contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(18, 87, 255, 0.24);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-soft {
  color: var(--blue);
  background: #eaf1ff;
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(560px, calc(100% - 48px));
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
}

.hero-panel span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

section {
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
}

.band {
  background: var(--soft);
}

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

.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 48px;
  max-width: none;
}

.section-head h2,
.feature-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p:last-child,
.feature-copy > p,
.contact-panel > div > p {
  color: var(--muted);
  line-height: 1.75;
}

.intro-grid,
.services-grid,
.pricing-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intro-grid article,
.service-card,
.price-card,
.blog-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 42px rgba(8, 24, 58, 0.07);
}

.intro-grid article {
  padding: 34px;
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--blue);
  background: #eaf1ff;
  font-weight: 900;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
}

article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  position: relative;
  min-height: 310px;
  padding: 30px;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.accent-blue { --accent: var(--blue); }
.accent-cyan { --accent: var(--cyan); }
.accent-green { --accent: var(--green); }
.accent-red { --accent: var(--red); }

.service-card a {
  position: absolute;
  left: 30px;
  bottom: 30px;
  color: var(--blue);
  font-weight: 900;
}

.solutions {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 58px;
  align-items: center;
}

.feature-media {
  min-height: 560px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-media img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.solution-list {
  display: grid;
  gap: 12px;
  margin: 30px 0;
}

.solution-item {
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.solution-item span {
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}

.solution-item small {
  color: var(--muted);
  line-height: 1.5;
}

.solution-item.is-active {
  border-color: rgba(18, 87, 255, 0.38);
  box-shadow: 0 14px 34px rgba(18, 87, 255, 0.12);
  transform: translateX(4px);
}

.solution-output {
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
}

.solution-output strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.solution-output p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline article {
  padding: 34px 28px;
  background: #fff;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

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

.project-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 24, 58, 0.1);
}

.project-card img {
  height: 250px;
  object-fit: cover;
}

.project-card div {
  padding: 24px;
}

.project-card span,
.blog-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.pricing-grid {
  align-items: stretch;
}

.price-card {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.price-card strong {
  font-size: 1.8rem;
}

.price-card.featured {
  color: #fff;
  background: var(--navy);
  transform: translateY(-12px);
}

.price-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.blog-grid article {
  padding: 30px;
}

.contact {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #102f75);
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 54px;
  align-items: start;
}

.contact-panel > div > p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.contact-methods a {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #243756;
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #f9fbfe;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 42px max(24px, calc((100vw - 1180px) / 2));
  color: #fff;
  background: #050d20;
}

.site-footer p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.66);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .services-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .project-grid,
  .pricing-grid,
  .blog-grid,
  .solutions,
  .contact-panel,
  .section-head.split {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .main-nav.is-open {
    position: fixed;
    top: 78px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 14px;
  }

  .hero .eyebrow {
    max-width: 300px;
    font-size: 0.68rem;
    line-height: 1.7;
  }

  .hero {
    min-height: 860px;
    padding-top: 132px;
    align-items: start;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    left: 24px;
    right: 24px;
    bottom: 24px;
    width: auto;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .feature-media,
  .feature-media img {
    min-height: 360px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 3.95rem;
  }

  .hero-actions,
  .contact-methods {
    display: grid;
  }

  .btn,
  .contact-methods a {
    width: 100%;
  }
}
