:root {
  --bg: #f7f8fb;
  --ink: #1d2733;
  --muted: #556273;
  --panel: #ffffff;
  --line: #dce3ec;
  --brand: #2f5bdb;
  --brand-deep: #2548ad;
  --brand-soft: #eaf0ff;
  --warm: #6f8fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  overflow-x: hidden;
}

.noise {
  display: none;
}

.site-header,
main {
  width: min(1040px, 92vw);
  margin: 0 auto;
}

.site-header {
  margin-top: 0.7rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  position: sticky;
  top: 0.4rem;
  z-index: 6;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.02rem;
}

.brand span {
  color: var(--brand);
}

.top-nav {
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: #2b3744;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.top-nav a:hover {
  border-color: var(--line);
  background: #fff;
}

.cta-link {
  color: #20303b;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  margin-top: 0.8rem;
  border-radius: 0;
  padding: clamp(1.2rem, 3.2vw, 2rem) 0;
  background: transparent;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  letter-spacing: 0.02em;
  font-size: 0.84rem;
  font-weight: 700;
  color: #3a4f78;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1,
h2 {
  line-height: 1.06;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 4rem);
  max-width: 15ch;
  margin-top: 0.55rem;
  font-weight: 800;
}

.sub {
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.58;
  color: var(--muted);
  margin-top: 0.9rem;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 0.74rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 8px 16px rgba(37, 72, 173, 0.24);
}

.btn-ghost {
  color: #233442;
  border: 1px solid var(--line);
  background: #fff;
}

.feature {
  margin: 1.7rem 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.feature h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2.9vw, 1.8rem);
  font-weight: 800;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

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

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid article {
  background: var(--panel);
  border: 1px solid #edf1f6;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(21, 30, 40, 0.04);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.grid article:hover {
  box-shadow: 0 8px 16px rgba(15, 30, 36, 0.08);
  border-color: #dbe4ee;
}

.grid p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
}

.flow {
  display: grid;
  gap: 0.62rem;
}

.flow div {
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #1f3340;
  position: relative;
  padding-left: 1rem;
}

.flow div::before {
  content: none;
}

.contact {
  border-radius: 18px;
  padding: clamp(1.4rem, 3.5vw, 2.3rem);
  margin: 2.4rem 0 4rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 20px rgba(12, 30, 38, 0.06);
}

.contact h2 {
  max-width: 30ch;
  margin-bottom: 0.65rem;
}

.contact p {
  margin-top: 0;
  margin-bottom: 1.2rem;
  max-width: 68ch;
  line-height: 1.55;
  color: #40535f;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
}

.reveal.in {
  animation: rise 560ms cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    top: 0;
  }

  .top-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

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

  .two-up {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main {
    width: 94vw;
  }

  .hero {
    padding: 1.5rem;
  }

  .sub {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .feature {
    padding: 0;
  }

  .contact {
    border-radius: 14px;
    margin-top: 1.6rem;
  }
}