*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 1.5rem;
  --radius-md: 0.75rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --container: 1120px;
  --transition: all 0.2s ease;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.center {
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

/* Top bar */
.top-bar {
  background: #020617;
  color: #e5e7eb;
  font-size: 0.875rem;
  padding: 0.4rem 0;
}

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

.top-bar .badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-bar .divider {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* Nav */
.nav {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0%, #4f46e5, #0ea5e9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #f9fafb;
  font-size: 1.1rem;
}

.logo-text {
  color: #f9fafb;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #e5e7eb;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.8);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: #0f172a;
  color: #f9fafb;
  border-color: transparent;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 4rem 0 4.5rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 50%);
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  color: #0f172a;
}

.hero-highlights li {
  margin-bottom: 0.4rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 0.5rem;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 420px;
}

/* Cards & forms */
.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-card {
  align-self: center;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card-footnote {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  display: grid;
  gap: 0.35rem;
}

input,
select,
textarea {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  font: inherit;
  outline: none;
  transition: var(--transition);
}

textarea {
  border-radius: var(--radius-md);
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.step-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -50px;
  height: 90px;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.4), transparent 65%);
  opacity: 0.7;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.step-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.step-card p {
  font-size: 0.9rem;
  color: #cbd5f5;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: #f9fafb;
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  border: 1px solid var(--border);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.service-card li {
  margin-bottom: 0.35rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.pricing-card .price span {
  font-size: 1.5rem;
  font-weight: 700;
}

.price {
  margin: 0.6rem 0 0;
}

.price-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-card li {
  margin-bottom: 0.4rem;
}

.pricing-card.featured {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.pricing-card .pill {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.testimonial-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.3rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  font-size: 4.5rem;
  color: rgba(148, 163, 184, 0.35);
  top: -1.6rem;
  left: 0.6rem;
}

.testimonial-card .quote {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.testimonial-card .name {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.faq-item h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.portal-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
}

.portal-links .link {
  font-size: 0.9rem;
  color: var(--primary);
}

.portal-links .link:hover {
  text-decoration: underline;
}

.contact-card {
  margin-top: 0.6rem;
}

/* Footer */
.footer {
  background: #020617;
  color: #e5e7eb;
  padding-top: 3rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-text {
  font-size: 0.9rem;
  color: #9ca3af;
  max-width: 320px;
}

.footer-text.small {
  font-size: 0.8rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #e5e7eb;
}

.footer-bottom {
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.9rem 0;
}

.footer-bottom .small {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Small disclaimer text */
.disclaimer-small {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.3rem;
}

/* Mobile nav */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    padding-top: 3.2rem;
  }
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    position: sticky;
  }
  .nav-links {
    position: absolute;
    inset: 100% 0 auto;
    background: #020617;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.5rem 1.2rem;
    max-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle-label {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: #e5e7eb;
    height: 2px;
    width: 18px;
    border-radius: 999px;
    position: relative;
    transition: var(--transition);
  }
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav-toggle-label span::before {
    top: -5px;
  }
  .nav-toggle-label span::after {
    top: 5px;
  }
  .nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
  }
  .nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: 400px;
  }
  .top-bar {
    display: none;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-grid,
  .services-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}