:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-600: #4f46e5;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--white);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

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

/* Containers */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .container-narrow {
    padding: 0 2rem;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  border-bottom: 1px solid var(--gray-100);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 2rem;
  width: 2rem;
  margin-right: 0.75rem;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--blue-600), var(--indigo-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  color: var(--gray-600);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--blue-600);
}

.nav-link-desktop {
  display: none;
}

.nav-cta {
  background-color: var(--blue-600);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.nav-cta:hover {
  background-color: var(--blue-700);
}

@media (min-width: 640px) {
  .nav-links {
    gap: 1.5rem;
  }

  .nav-link-desktop {
    display: inline-block;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding: 12rem 0 8rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

@media (min-width: 640px) {
  .hero-content {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
  }

  .hero-content {
    grid-column: span 6 / span 6;
    text-align: left;
    max-width: none;
    margin: 0;
  }

  .hero-media {
    grid-column: span 6 / span 6;
    display: flex;
    align-items: center;
  }
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--gray-900);
}

.hero-title span {
  display: block;
}

.hero-title-accent {
  color: var(--blue-600);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-lead {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-500);
}

@media (min-width: 640px) {
  .hero-lead {
    margin-top: 1.25rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-lead {
    font-size: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .hero-lead {
    font-size: 1.25rem;
  }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-actions {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: var(--white);
  background-color: var(--blue-600);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--blue-700);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gray-100);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: var(--gray-900);
  background-color: var(--white);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--gray-50);
  border-color: var(--blue-100);
  color: var(--blue-600);
}

.hero-image-card {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 28rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: var(--gray-100);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Helpers */
.section {
  padding: 5rem 0;
  scroll-margin-top: 4rem;
}

.section-muted {
  background-color: var(--gray-50);
}

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

.section-header {
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.section-subtitle {
  margin: 1rem auto 0;
  max-width: 42rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--gray-500);
}

/* Features Grid */
.features-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: box-shadow 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--blue-100);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.625;
}

/* Process Section */
.process-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
}

.process-line {
  display: none;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-line {
    display: block;
    position: absolute;
    top: 2rem;
    left: 16.666%;
    right: 16.666%;
    height: 2px;
    background-color: var(--blue-100);
    z-index: 0;
  }
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-badge {
  width: 4rem;
  height: 4rem;
  background-color: var(--blue-600);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25), 0 4px 6px -4px rgba(37, 99, 235, 0.2);
}

.process-step h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.process-step p {
  color: var(--gray-600);
  line-height: 1.625;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background-color: var(--blue-600);
  text-align: center;
  scroll-margin-top: 4rem;
}

.cta-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: var(--white);
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.cta-subtitle {
  margin: 1rem auto 0;
  max-width: 44rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--blue-100);
}

.cta-actions {
  margin-top: 2.5rem;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: var(--blue-600);
  background-color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.15s ease;
}

.btn-white:hover {
  background-color: var(--blue-50);
}

/* Legal Pages */
.legal-main {
  padding: 8rem 0 5rem;
}

.legal-title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 2rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.legal-content h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.legal-content p + p {
  margin-top: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.legal-content li + li {
  margin-top: 0.25rem;
}

.legal-content a {
  color: var(--blue-600);
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
  padding: 3rem 0;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-brand-col {
    grid-column: span 2 / span 2;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  margin-top: 1rem;
  max-width: 20rem;
  line-height: 1.6;
}

.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-list a {
  transition: color 0.15s ease;
}

.footer-list a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  font-size: 0.875rem;
  text-align: center;
}
