:root {
  --primary: #1d4ed8;
  --primary-dark: #123c9c;
  --secondary: #0f172a;
  --accent: #38bdf8;
  --text: #334155;
  --muted: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

.top-bar {
  background: var(--secondary);
  color: #cbd5e1;
  font-size: 14px;
  padding: 10px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar a {
  color: #e2e8f0;
}

.top-bar a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.55);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, -webkit-backdrop-filter 0.28s ease, backdrop-filter 0.28s ease;
}

header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.09);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.03em;
  font-size: 22px;
}

.brand-logo {
  height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.26), transparent 32%),
    radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 88px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  color: var(--secondary);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 19px;
  color: #475569;
  max-width: 640px;
  margin-bottom: 32px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.stat strong {
  display: block;
  color: var(--secondary);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.hero-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.dashboard-title strong {
  display: block;
  color: var(--secondary);
  font-size: 19px;
}

.dashboard-title span {
  font-size: 13px;
  color: var(--muted);
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #047857;
  background: #ecfdf5;
  font-size: 13px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1px solid #edf2f7;
}

.check {
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.feature-row strong {
  color: var(--secondary);
  display: block;
  margin-bottom: 3px;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

section {
  padding: 88px 0;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.eyebrow {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  color: var(--secondary);
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

.section-heading p {
  font-size: 17px;
  color: var(--muted);
}

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

.service-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #eff6ff;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--secondary);
  font-size: 21px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.service-card li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  margin-right: 8px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-box {
  background: var(--secondary);
  color: var(--white);
  border-radius: 32px;
  padding: 34px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-box::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.24);
  right: -80px;
  bottom: -90px;
}

.about-box h3 {
  font-size: 34px;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
}

.about-box p {
  color: #cbd5e1;
  position: relative;
  z-index: 2;
  max-width: 420px;
}

.about-content h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  color: var(--secondary);
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 16px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.process-card::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 20px;
}

.process-card h3 {
  color: var(--secondary);
  font-size: 19px;
  margin-bottom: 8px;
}

.process-card p {
  color: var(--muted);
  font-size: 14px;
}

.cta {
  background: var(--secondary);
  color: var(--white);
  padding: 78px 0;
}

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

.cta-inner {
  flex: 1;
  min-width: 0;
}

.cta .btn {
  flex-shrink: 0;
  align-self: center;
  text-decoration: none;
  white-space: nowrap;
}

.cta a.btn.btn-primary {
  color: var(--white);
}

.cta a.btn.btn-primary:hover {
  color: var(--white);
}

.cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}

.cta p {
  color: #cbd5e1;
  max-width: 680px;
  font-size: 17px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
}

.contact-card,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contact-card-intro {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 16px;
}

.contact-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

.contact-form form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contact-form form .btn {
  margin-top: auto;
  align-self: flex-start;
}

.contact-card h3,
.contact-form h3 {
  color: var(--secondary);
  font-size: 25px;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.form-success {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  outline: none;
}

.form-error {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  outline: none;
}

.form-error a {
  color: #1d4ed8;
  font-weight: 700;
}

.form-error a:hover {
  text-decoration: underline;
}

.contact-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
  color: var(--muted);
}

.contact-item a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  color: var(--secondary);
  outline: none;
  background: #f8fafc;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
  background: var(--white);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

footer {
  background: #020617;
  color: #94a3b8;
  padding: 36px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-content strong {
  color: var(--white);
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta .btn {
    align-self: flex-start;
  }
}

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

  .top-bar {
    display: none;
  }

  .nav {
    height: 70px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-logo {
    height: 36px;
    max-width: 160px;
  }

  .hero {
    padding: 58px 0 48px;
  }

  .hero p {
    font-size: 17px;
  }

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

  section {
    padding: 64px 0;
  }

  .hero-card,
  .contact-card,
  .contact-form {
    padding: 22px;
  }
}
