:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-soft: #edf3fb;
  --ink: #0d1b2c;
  --muted: #5f6f85;
  --line: #d6e1ee;
  --brand: #1f6fff;
  --brand-strong: #184fc7;
  --accent: #ff6a2a;
  --accent-soft: #ffd8c6;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 18px 48px rgba(13, 27, 44, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.page-glow {
  position: fixed;
  inset: -10% 0 auto;
  height: 620px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 106, 42, 0.2), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(31, 111, 255, 0.2), transparent 45%),
    linear-gradient(180deg, #f9fbff 0%, rgba(249, 251, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

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

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 252, 0.74);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-color: rgba(214, 225, 238, 0.95);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(145deg, var(--brand), var(--accent));
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.82rem 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(24, 79, 199, 0.24);
}

.button-small {
  padding: 0.68rem 1rem;
}

.button-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  box-shadow: 0 10px 24px rgba(13, 27, 44, 0.08);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  padding: 4.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-strong);
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.05;
  max-width: 13ch;
}

.hero-text {
  margin: 1.3rem 0 0;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 56ch;
}

.hero-actions {
  margin: 1.8rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-meta span {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-panel {
  padding: 1.15rem;
  background: linear-gradient(165deg, #ffffff 0%, #eef4fe 100%);
  border: 1px solid rgba(214, 225, 238, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: panel-float 4.5s ease-in-out infinite;
}

@keyframes panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.panel-head p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.panel-head span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.panel-graph {
  height: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 0.8rem;
  display: flex;
  align-items: flex-end;
  gap: 0.62rem;
}

.bar {
  flex: 1;
  height: var(--h);
  border-radius: 10px 10px 6px 6px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
}

.panel-stats {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, 1fr);
}

.panel-stats article {
  padding: 0.8rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.panel-stats p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.panel-stats strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.06rem;
}

.proof {
  padding: 1rem 0 0;
}

.proof-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.proof p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.proof ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.proof li {
  padding: 0.36rem 0.62rem;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 1.6rem;
}

.section-title h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  max-width: 20ch;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  min-height: 180px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(13, 27, 44, 0.08);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
}

.feature-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.workflow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(31, 111, 255, 0.05) 100%),
    #f8fbff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.95rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.timeline span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(155deg, var(--accent-soft), rgba(31, 111, 255, 0.15));
  color: var(--ink);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
}

.timeline h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta {
  padding-top: 2rem;
}

.cta-box {
  background: linear-gradient(155deg, #102036 0%, #1c3f6f 70%, #1f6fff 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4.5vw, 3rem);
  box-shadow: var(--shadow);
}

.cta-box .eyebrow {
  color: #a9d0ff;
}

.cta-box h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3.7vw, 2.7rem);
}

.cta-box p {
  margin: 0.95rem 0 1.3rem;
  max-width: 58ch;
  color: rgba(234, 242, 255, 0.88);
}

.site-footer {
  padding: 2rem 0 2.5rem;
}

.footer-grid {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

@media (max-width: 1020px) {
  .hero-grid,
  .workflow-grid,
  .feature-grid,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-grid > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(1120px, calc(100% - 1.4rem));
  }

  .nav-shell {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.55rem;
    display: grid;
    gap: 0.3rem;
    justify-self: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    z-index: 30;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.68rem 0.72rem;
    border-radius: 10px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--surface-soft);
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-shell .button-small {
    display: none;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-grid,
  .proof-grid,
  .feature-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 17ch;
  }

  .panel-stats {
    grid-template-columns: 1fr;
  }
}
