@import "tailwindcss";

:root {
  --bg: #f8fbff;
  --card: #ffffff;
  --ink: #10172a;
  --muted: #60708a;
  --line: #dfe7f3;
  --blue: #155cff;
  --blue-2: #0f4de0;
  --soft-blue: #edf4ff;
  --shadow: 0 18px 48px rgba(24, 48, 92, 0.12);
}

@theme inline {
  --color-background: var(--bg);
  --color-foreground: var(--ink);
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 20% 10%, #eef5ff 0, transparent 28rem), var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg, video { display: block; max-width: 100%; }

.section-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 56px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 950;
}

.brand span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #6aa2ff, var(--blue));
  color: white;
  font-size: 14px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.site-header nav,
.header-actions,
.hero-actions,
.proof-chips,
.bottom-cta > div:last-child,
.site-footer nav,
.site-footer > div {
  display: flex;
  align-items: center;
}

.site-header nav {
  gap: 28px;
  color: #30405d;
  font-size: 13px;
  font-weight: 800;
}

.header-actions {
  justify-self: end;
  gap: 18px;
  font-size: 14px;
  font-weight: 900;
}

.header-actions button,
.hero-actions button,
.lead-form button,
.case-intro a,
.bottom-cta button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(21, 92, 255, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-actions button { padding: 0 22px; }

.header-actions button:hover,
.hero-actions button:hover,
.lead-form button:hover,
.case-intro a:hover,
.bottom-cta button:hover {
  background: var(--blue-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(21, 92, 255, 0.2);
}

.hero {
  display: grid;
  grid-template-columns: 0.78fr 1.02fr;
  gap: 44px;
  align-items: center;
  padding: 54px 0 32px;
}

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e9f1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(46px, 6.2vw, 76px);
  font-weight: 950;
  line-height: 0.96;
}

.hero h1 b {
  display: block;
  color: var(--blue);
}

.hero p {
  max-width: 520px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  gap: 18px;
  margin-top: 26px;
}

.hero-actions button,
.bottom-cta button {
  padding: 0 28px;
  font-size: 15px;
}

.hero-actions a,
.bottom-cta a {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 26px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 950;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 18px;
}

.hero-visual > img {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
  animation: imageFloat 6s ease-in-out infinite;
}

.lead-form {
  position: absolute;
  right: -26px;
  top: 64px;
  width: min(330px, 80%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: formFloat 5s ease-in-out infinite;
}

.lead-form h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  outline: 0;
  padding: 12px;
  font-size: 12px;
}

.lead-form textarea {
  min-height: 82px;
  margin-top: 10px;
  resize: vertical;
}

.lead-form button {
  width: 100%;
  margin-top: 10px;
}

.lead-form p {
  display: none;
  margin: 10px 0 0;
  color: #0c9968;
  font-size: 12px;
  font-weight: 900;
}

.lead-form.sent p { display: block; }

.proof-chips {
  grid-column: 1 / -1;
  gap: 0;
  margin-top: -16px;
  padding: 0;
}

.proof-chips article {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 210px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

.proof-chips article:first-child { padding-left: 0; }
.proof-chips .icon {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px;
  background: var(--blue);
  color: white;
}

.proof-chips strong {
  font-size: 13px;
  line-height: 1.25;
}

.services {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  padding: 22px 0;
}

.services article,
.case-card,
.process-card,
.pricing-card,
.testimonials article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(24, 48, 92, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.services article:hover,
.case-card:hover,
.testimonials article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.services article {
  min-height: 132px;
  padding: 16px 12px;
  text-align: center;
}

.icon {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  color: var(--blue);
}

.services h3 {
  margin: 12px 0 7px;
  font-size: 12px;
  font-weight: 950;
}

.services p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.cases {
  display: grid;
  grid-template-columns: 0.9fr repeat(3, 1fr);
  gap: 16px;
  padding: 18px 0;
}

.case-intro {
  padding: 24px 20px;
}

.case-intro span,
.process-card > span,
.testimonial-intro span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.case-intro h2,
.process-card h2,
.testimonial-intro h2,
.bottom-cta h2 {
  margin: 12px 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  line-height: 1;
}

.case-intro p,
.bottom-cta p {
  color: var(--muted);
  line-height: 1.55;
}

.case-intro a {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  margin-top: 14px;
  padding: 0 18px;
  border: 2px solid var(--blue);
  background: white;
  color: var(--blue);
  box-shadow: none;
}

.case-card {
  overflow: hidden;
}

.case-card.active {
  outline: 2px solid rgba(21, 92, 255, 0.16);
}

.case-card img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.case-card > div {
  padding: 16px;
}

.case-card h3 {
  margin: 0 0 7px;
  font-size: 15px;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.metrics span {
  color: var(--muted);
  font-size: 11px;
}

.metrics b {
  display: block;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.1;
}

.process-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 18px 0;
}

.process-card,
.pricing-card {
  padding: 24px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: #b8c9f0;
}

.timeline article {
  position: relative;
  text-align: center;
}

.timeline b {
  display: grid;
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 12px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.pricing-card table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  font-size: 12px;
}

.pricing-card th,
.pricing-card td {
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
}

.pricing-card thead th:nth-child(2) {
  background: var(--blue);
  color: white;
}

.pricing-card tbody th {
  background: linear-gradient(135deg, #3f79ff, var(--blue));
  color: white;
  text-align: left;
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr repeat(5, 1fr);
  gap: 14px;
  padding: 18px 0;
}

.testimonial-intro {
  padding: 14px 0;
}

.testimonials article {
  min-height: 160px;
  padding: 16px;
}

.testimonials article b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
}

.testimonials article p {
  color: #273653;
  font-size: 11px;
  line-height: 1.45;
}

.testimonials article strong,
.testimonials article span {
  display: block;
  font-size: 11px;
}

.testimonials article span {
  color: var(--blue);
  font-weight: 900;
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f309d, var(--blue));
  color: white;
  box-shadow: var(--shadow);
}

.stats article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 22px 26px;
}

.stats .icon {
  color: white;
  opacity: 0.9;
}

.stats strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.stats span {
  font-size: 12px;
}

.bottom-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 34px 0;
}

.bottom-cta p {
  max-width: 560px;
  margin: 0;
}

.bottom-cta > div:last-child {
  gap: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line);
}

.site-footer nav,
.site-footer > div {
  gap: 18px;
  color: #33445f;
  font-size: 12px;
  font-weight: 800;
}

.site-footer > div {
  justify-self: end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 23, 42, 0.64);
}

.modal-panel {
  position: relative;
  width: min(420px, 100%);
}

.modal-panel .lead-form {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  animation: modalIn 0.25s ease both;
}

.modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes imageFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.015); }
}

@keyframes formFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .site-header nav { display: none; }
  .hero,
  .cases,
  .process-pricing,
  .bottom-cta,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .services,
  .testimonials,
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .lead-form {
    right: 18px;
  }
}

@media (max-width: 680px) {
  .section-wrap { width: min(100% - 20px, 1120px); }
  .header-actions a { display: none; }
  .hero { padding-top: 34px; gap: 24px; }
  .hero h1 { font-size: 44px; }
  .hero-actions,
  .proof-chips,
  .bottom-cta > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-visual > img { height: 260px; }
  .lead-form {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 14px;
  }
  .form-grid,
  .services,
  .testimonials,
  .stats,
  .timeline {
    grid-template-columns: 1fr;
  }
  .proof-chips article {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .site-footer > div {
    justify-self: start;
    flex-direction: column;
    align-items: flex-start;
  }
}
