:root {
  --deep-ink: #0f172a;
  --jade-route: #14b8a6;
  --signal-red: #e53935;
  --cloud: #f8fafc;
  --steel: #475569;
  --glass: rgba(248, 250, 252, 0.08);
  --line: rgba(248, 250, 252, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--cloud);
  background: radial-gradient(circle at 10% 0%, #19395b 0%, var(--deep-ink) 42%, #0a1022 100%);
  scroll-behavior: smooth;
}

main,
.site-footer {
  padding: 0 1rem;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p,
li,
a,
small,
span {
  color: rgba(248, 250, 252, 0.9);
}

a {
  text-decoration: none;
}

.preloader {
  position: fixed;
  inset: 0;
  background: #040916;
  display: grid;
  place-items: center;
  z-index: 2000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: min(70vw, 420px);
  overflow: visible;
}

.route-path {
  fill: none;
  stroke: var(--jade-route);
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.8));
}

.route-dot {
  fill: var(--signal-red);
  animation: moveDot 1.3s ease-in-out infinite;
}

@keyframes moveDot {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(270px, 0);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.56);
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 700;
}

.brand-mark {
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--signal-red);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.2);
}

.desktop-nav,
.header-ctas {
  display: none;
}

.menu-toggle {
  background: transparent;
  color: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.4rem 0.7rem;
}

.mobile-menu {
  position: fixed;
  inset: 4rem 1rem auto;
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(10, 16, 34, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1200;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 1rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(20, 184, 166, 0.5);
  border-radius: 999px;
  font-size: 0.8rem;
  color: #99f6e4;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.8rem);
  margin: 0 0 1rem;
}

.hero p {
  color: #cbd5e1;
  max-width: 65ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(100deg, #2dd4bf, #14b8a6);
  color: #042f2e;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
}

.text-link {
  align-self: center;
  color: #99f6e4;
}

.hero-copy ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1rem;
  color: #e2e8f0;
}

.hero-art {
  position: relative;
  min-height: 460px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(20, 184, 166, 0.08), rgba(15, 23, 42, 0.4));
}

.route-glow {
  position: absolute;
  inset: 10% 12%;
  border-radius: 30% 70% 60% 40%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
  filter: blur(10px);
}

.mockup {
  position: absolute;
  border-radius: 1.1rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  background: rgba(15, 23, 42, 0.8);
  padding: 0.95rem;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
}

.phone {
  width: 48%;
  left: 5%;
  top: 11%;
}

.phone.second {
  top: 48%;
  left: 10%;
}

.web {
  width: 52%;
  right: 4%;
  top: 25%;
}

.mini-grid {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.floating-card {
  position: absolute;
  top: 8%;
  right: 8%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 184, 166, 0.16);
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
}

.floating-card.red {
  top: auto;
  bottom: 8%;
  right: 16%;
  background: rgba(229, 57, 53, 0.2);
}

.section {
  padding: 4.2rem 0;
}

.section-head {
  max-width: 70ch;
  margin-bottom: 1.4rem;
}

.section-head p {
  color: #cbd5e1;
}

.chaos-grid,
.split {
  display: grid;
  gap: 1rem;
}

.chaos-side,
.feature-card,
.screen,
.audience-grid article,
.roadmap-grid article {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 1.2rem;
  padding: 1rem;
}

.organized {
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.25) inset;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips span {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.cards-grid,
.showcase-grid,
.audience-grid,
.roadmap-grid {
  display: grid;
  gap: 0.9rem;
}

.feature-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.6);
}

.workflow ol {
  list-style: none;
  margin: 0;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(20, 184, 166, 0.6);
  background: rgba(20, 184, 166, 0.08);
  display: grid;
  gap: 0.65rem;
  counter-reset: steps;
}

.workflow li::before {
  counter-increment: steps;
  content: counter(steps);
  margin-right: 0.6rem;
  background: var(--signal-red);
  color: #fff;
  display: inline-grid;
  place-items: center;
  width: 1.4rem;
  border-radius: 999px;
}

.compare ul {
  display: grid;
  gap: 0.6rem;
  padding-left: 1rem;
}

.sync-cards {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.sync-line {
  position: absolute;
  left: 50%;
  top: 20%;
  width: 2px;
  height: 60%;
  background: linear-gradient(var(--jade-route), var(--signal-red));
  filter: drop-shadow(0 0 6px rgba(20, 184, 166, 0.6));
}

.final-cta {
  margin: 2rem 0 4rem;
  padding: 2rem 1rem;
  text-align: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(20, 184, 166, 0.45);
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.85));
}

.site-footer {
  padding-bottom: 6rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.mobile-sticky-cta {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 950;
  text-align: center;
  background: var(--jade-route);
  color: #032726;
  font-weight: 700;
  padding: 0.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  main,
  .site-footer,
  .site-header {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .desktop-nav,
  .header-ctas {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
  }

  .menu-toggle,
  .mobile-menu,
  .mobile-sticky-cta {
    display: none;
  }

  .hero,
  .split {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

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

  .showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (min-width: 1100px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .audience-grid,
  .roadmap-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-art {
    min-height: 560px;
  }
}
