:root {
  --bg: #001f54;
  --bg-soft: #0a2f7a;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #d6def5;
  --brand: #6495ed;
  --brand-dark: #4c7ed9;
  --accent: #6495ed;
  --ring: rgba(100, 149, 237, 0.32);
  --radius: 18px;
  --shadow: 0 18px 45px rgba(41, 31, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #edf3ff;
  background:
    radial-gradient(circle at 8% 10%, #1f3d8f 0 18%, transparent 19%),
    radial-gradient(circle at 90% 2%, #3158b8 0 14%, transparent 15%),
    linear-gradient(160deg, var(--bg), var(--bg-soft));
  line-height: 1.55;
}

h1,
h2,
h3,
.tag,
.eyebrow,
.btn,
.chip {
  font-family: "Space Grotesk", sans-serif;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.045) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

.topbar {
  width: min(1120px, 92vw);
  margin: 1.2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-text strong {
  font-weight: 700;
  color: var(--brand);
}

.logo-sub {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.eyebrow {
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  text-decoration: none;
  color: #eff4ff;
  border: 1px solid #7e9edf;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(11, 36, 92, 0.78);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  background: rgba(30, 60, 140, 0.9);
  border-color: var(--brand);
}

.chip-cta {
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  border-color: var(--brand);
  color: #fff;
}

.topbar-links {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

main {
  width: min(1120px, 92vw);
  margin: 1rem auto 4rem;
}

section {
  margin-top: 2.8rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.offer,
.proof-grid article,
.timeline article,
.lead-form,
.funnel-copy {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.funnel-copy,
.lead-form {
  background: var(--surface);
  color: var(--ink);
  padding: 1.8rem;
}

.tag {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}

.tag.alt {
  color: var(--brand-dark);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(10, 47, 122, 0.3);
}

.btn-ghost {
  background: #f0f4ff;
  color: var(--ink);
  border-color: rgba(100, 149, 237, 0.3);
}

.hero-card h2 {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92) 30%, rgba(237, 243, 255, 0.85)),
    url('images/software-developer.png') center / cover no-repeat;
}

.hero-card .metric-grid {
  position: relative;
  z-index: 1;
}

.metric-grid {
  display: grid;
  gap: 0.8rem;
}

.metric-grid article {
  background: rgba(237, 243, 255, 0.88);
  border-radius: 12px;
  padding: 0.9rem;
  backdrop-filter: blur(4px);
}

.metric {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.metric::after {
  content: "%";
  font-size: 1rem;
}

.offer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  background: linear-gradient(130deg, #0f3f9b, #2f67d1 65%, #6495ed);
  padding: 1.5rem;
  align-items: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.6rem;
  text-align: center;
  color: #000;
}

.countdown div {
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
}

.countdown span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.countdown small {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #000;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.proof-grid article {
  background: #fff;
  padding: 1.2rem;
  border: 1px solid rgba(100, 149, 237, 0.2);
  position: relative;
  overflow: hidden;
}

.proof-grid article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.service-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 31, 84, 0.18);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(100, 149, 237, 0.15), rgba(100, 149, 237, 0.05));
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.5;
}

.hero-card,
.metric-grid article,
.proof-grid article,
.timeline article,
.service-card {
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.fly-card {
  --fly-x: 0px;
  --fly-y: 0px;
  --fly-z: 0px;
  --fly-rx: 0deg;
  --fly-ry: 0deg;
  --fly-rz: 0deg;
  --fly-scale: 1;
  color: #0a1128;
  transform:
    translate3d(var(--fly-x), var(--fly-y), var(--fly-z))
    rotateX(var(--fly-rx))
    rotateY(var(--fly-ry))
    rotateZ(var(--fly-rz))
    scale(var(--fly-scale));
}

.fly-card:hover {
  --fly-z: 18px;
  --fly-scale: 1.02;
}

.process .timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}

.timeline article {
  background: #fff;
  padding: 1rem;
  border: 1px solid rgba(100, 149, 237, 0.18);
}

.timeline span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.funnel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.benefits {
  margin: 1rem 0 0;
  padding-left: 1rem;
}

.benefits li {
  margin-bottom: 0.45rem;
}

.progress-wrap {
  margin-bottom: 1rem;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e4eaf8;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 33.3%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  transition: width 0.2s ease;
}

#stepLabel {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.lead-form label {
  display: block;
  font-weight: 700;
  margin: 0.75rem 0 0.35rem;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(100, 149, 237, 0.25);
  border-radius: 11px;
  padding: 0.7rem;
  font-size: 0.95rem;
  background: #f8faff;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

.step {
  display: none;
  animation: fadeInUp 0.32s ease;
}

.step.active {
  display: block;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

#submitBtn,
#prevBtn {
  display: none;
}

.form-error {
  min-height: 1rem;
  margin: 0.8rem 0 0;
  color: #9f1c1c;
  font-size: 0.9rem;
}

.success {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #e7f8ef;
  border: 1px solid #84d3ad;
  border-radius: 12px;
  display: none;
}

.footer {
  width: min(1120px, 92vw);
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  text-align: center;
}

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

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .funnel,
  .offer {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .topbar {
    flex-direction: column;
    gap: 0.7rem;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  main {
    width: min(1120px, 94vw);
  }

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

  .hero-copy,
  .hero-card,
  .funnel-copy,
  .lead-form,
  .offer {
    padding: 1.2rem;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    flex: 1;
  }
}
