:root {
  --color-background: #e7f3ff;
  --color-surface: #ffffff;
  --color-accent: #2563eb;
  --color-accent-light: #dbeafe;
  --color-deep: #1d4ed8;
  --color-text: #13203f;
  --color-text-muted: #4a5774;
  --shadow-soft: 0 22px 40px rgba(37, 99, 235, 0.16);
  --shadow-card: 0 18px 38px rgba(13, 24, 48, 0.18);
  --radius-large: 26px;
  --radius-medium: 18px;
  --radius-small: 12px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 50%),
    radial-gradient(circle at bottom right, rgba(14, 116, 200, 0.2), transparent 38%),
    var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

section {
  scroll-margin-top: 100px;
}

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

main {
  padding-top: 0;
  position: relative;
  z-index: 1;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(240, 247, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.3);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-muted);
}

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

.cta-button {
  padding: 10px 24px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: var(--color-surface);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

body.hero-intro-active .top-nav {
  background: rgba(10, 26, 61, 0);
  border-bottom-color: transparent;
  box-shadow: none;
  color: #f8fbff;
}

body.hero-intro-active .brand-name,
body.hero-intro-active .nav-links a {
  color: rgba(248, 251, 255, 0.92);
}

body.hero-intro-active .nav-links a:hover {
  color: #ffffff;
}

main > *:not(.hero-banner),
.site-footer {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.hero-intro-active main > *:not(.hero-banner),
body.hero-intro-active .site-footer {
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
}

.hero-banner {
  position: relative;
  height: 220vh;
  min-height: 520px;
  overflow: visible;
  --hero-progress: 0;
}

.hero-banner__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 26, 61, 0.35) 0%, rgba(10, 26, 61, 0.75) 100%);
  z-index: -1;
}

.hero-banner__pin {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner__content {
  text-align: center;
  color: #ffffff;
  padding: 0 6vw;
  max-width: 780px;
  position: relative;
  transform: translateY(calc(var(--hero-progress, 0) * -160px));
  opacity: clamp(0, 1 - (var(--hero-progress, 0) * 1.15), 1);
  transition: opacity 0.08s linear;
  will-change: transform, opacity;
}

.hero-banner__headline {
  font-size: clamp(3rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

.hero-banner__subline {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  opacity: 0.92;
}

.hero {
  position: relative;
  padding: 120px 6vw 90px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.08), rgba(14, 116, 200, 0.1));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content h1,
.hero-content h2 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 18px;
  line-height: 1.15;
  color: var(--color-text);
}

.hero-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(14, 116, 200, 0.12));
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-large);
  min-height: 360px;
  overflow: hidden;
}

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

.content-panel {
  background: var(--color-surface);
  border-radius: var(--radius-large);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(29, 78, 216, 0.12);
}

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

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

  .hero {
    padding: 90px 6vw 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-image {
    min-height: 260px;
    padding: 36px;
  }
}

@media (max-width: 600px) {
  main {
    padding-top: 90px;
  }
  .hero-banner {
    height: 150vh;
    min-height: 480px;
  }
  .hero-banner__content {
    padding: 0 10vw;
  }

  .content-panel {
    padding: 28px;
  }

  .hero {
    padding: 70px 5vw 60px;
  }

  .hero-image {
    min-height: 200px;
    padding: 28px;
  }

  .hero-grid {
    gap: 22px;
  }
}

.how-it-works,
.contact {
  padding: 90px 6vw;
}

.section-title {
  display: block;
  font-size: clamp(2.4rem, 3vw, 2.9rem);
  text-align: center;
  margin-bottom: 42px;
  position: sticky;
  top: 120px;
  z-index: 2;
  mix-blend-mode: normal;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.75));
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 18px 28px;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.feature-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-grid article {
  background: var(--color-surface);
  padding: 32px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: grid;
  gap: 16px;
}

.feature-grid h3 {
  font-size: 1.3rem;
}

.feature-grid p {
  color: var(--color-text-muted);
}

.how-it-works {
  background: linear-gradient(120deg, rgba(219, 234, 254, 0.65), rgba(255, 255, 255, 0.94));
  border-top: 1px solid rgba(37, 99, 235, 0.14);
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
}

.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  list-style: none;
  margin-top: 20px;
}

.steps li {
  background: var(--color-surface);
  padding: 28px;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(37, 99, 235, 0.18);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 14px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.16);
  color: var(--color-deep);
  font-weight: 600;
}

.steps p {
  color: var(--color-text-muted);
}


.contact {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.contact-card {
  background: var(--color-surface);
  padding: 46px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 18px;
  text-align: left;
}

.contact-card h3 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.contact-card p {
  color: var(--color-text-muted);
}

.contact-card .primary {
  width: fit-content;
  padding: 12px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: var(--color-surface);
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.metrics {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.metrics .metric-card {
  background: rgba(219, 234, 254, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-medium);
  padding: 26px 30px;
  min-width: 190px;
  display: grid;
  gap: 10px;
}

.metrics strong {
  font-size: 2.2rem;
  color: var(--color-deep);
}

.metrics span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 42px 6vw;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(37, 99, 235, 0.14);
  background: rgba(235, 244, 255, 0.92);
}

.footer-tagline {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-accent);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes wave {
  0%, 100% { height: 28%; }
  50% { height: 100%; }
}
