:root {
  color-scheme: dark;
  --bg: #06101f;
  --panel: rgba(13, 24, 42, 0.78);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #9aa8bd;
  --blue: #00c8ff;
  --mint: #18ddb3;
  --amber: #f59e0b;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 200, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(24, 221, 179, 0.16), transparent 26rem),
    linear-gradient(180deg, #040a14 0%, var(--bg) 48%, #071729 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(#000, transparent 78%);
}

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

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

.progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--mint), var(--amber));
}

.mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    conic-gradient(from 180deg at 15% 20%, rgba(0, 200, 255, 0.24), transparent 30%, rgba(24, 221, 179, 0.12), transparent 65%),
    conic-gradient(from 20deg at 86% 15%, rgba(245, 158, 11, 0.14), transparent 32%, rgba(0, 200, 255, 0.1), transparent 70%);
}

.nav,
main,
footer {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.92), rgba(4, 10, 20, 0.26));
  backdrop-filter: blur(18px);
}

.brand img {
  width: 11.5rem;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.62);
}

.nav nav a,
.nav-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 900;
}

.nav nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-button {
  border: 1px solid rgba(0, 200, 255, 0.42);
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1fr);
  align-items: center;
  gap: 4rem;
  min-height: calc(100vh - 6rem);
  padding: 4rem 0 3rem;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.2rem, 7vw, 6.7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: 1.25rem;
}

.lede,
.section-heading p,
.info-band p,
.flow-grid p,
.screen-grid p,
.cta p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 42rem;
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.button.primary {
  color: #04111f;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  box-shadow: 0 18px 50px rgba(0, 200, 255, 0.23);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.hero-metrics article,
.info-band article,
.workflow,
.screens,
.cta,
.flow-grid article,
.screen-grid article {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.hero-metrics article {
  min-height: 8.5rem;
  padding: 1rem;
  border-radius: 1.1rem;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  min-height: 43rem;
  perspective: 1200px;
}

.orbit {
  position: absolute;
  inset: 12% 5%;
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-24deg);
  animation: orbit 10s linear infinite;
}

.orbit-b {
  inset: 20% 15%;
  border-color: rgba(24, 221, 179, 0.18);
  animation-direction: reverse;
}

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 25rem);
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-15deg) rotateZ(3deg);
  transform-style: preserve-3d;
  animation: phoneFloat 7s ease-in-out infinite;
}

.phone-shell {
  position: relative;
  padding: 0.75rem;
  border-radius: 2.4rem;
  background: linear-gradient(145deg, #1e293b, #020617);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-shell::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.62rem;
  z-index: 3;
  width: 5rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.94);
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 720 / 1640;
  border-radius: 1.8rem;
  background: #020617;
}

.phone-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 700ms ease, transform 900ms ease;
}

.phone-shot.active {
  opacity: 1;
  transform: scale(1);
}

.floating-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 0.25rem;
  width: 11rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgba(13, 24, 42, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
  animation: cardFloat 6s ease-in-out infinite;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.floating-card strong {
  font-size: 1.45rem;
}

.card-one {
  left: 2%;
  top: 25%;
}

.card-two {
  right: 0;
  bottom: 22%;
  animation-delay: -2s;
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0 5rem;
}

.info-band article {
  min-height: 17rem;
  padding: 1.35rem;
  border-radius: 1.45rem;
  transition: transform 240ms ease, border-color 240ms ease;
}

.info-band article:hover,
.flow-grid article:hover,
.screen-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 200, 255, 0.45);
}

.info-band span {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 1.25rem;
  border-radius: 0.85rem;
  color: #06101f;
  background: linear-gradient(135deg, var(--mint), var(--amber));
  font-weight: 950;
}

.info-band h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.workflow,
.screens,
.cta {
  margin: 5rem 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.8rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.flow-grid article {
  min-height: 13rem;
  padding: 1.1rem;
  border-radius: 1.2rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.flow-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 4.2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  color: #06101f;
  background: var(--blue);
  font-weight: 950;
}

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

.screen-grid article {
  overflow: hidden;
  border-radius: 1.25rem;
  transition: transform 220ms ease, border-color 220ms ease;
}

.screen-grid img {
  width: 100%;
  aspect-ratio: 720 / 1040;
  object-fit: cover;
  object-position: top center;
}

.screen-grid h3,
.screen-grid p {
  padding: 0 1rem;
}

.screen-grid h3 {
  margin-top: 1rem;
}

.screen-grid p {
  padding-bottom: 1rem;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(24, 221, 179, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(0, 200, 255, 0.12), rgba(13, 24, 42, 0.78));
}

.cta h2 {
  max-width: 24ch;
}

.cta-actions {
  display: grid;
  gap: 0.8rem;
  min-width: 13rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

footer span {
  color: var(--text);
  font-weight: 950;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible,
.hero .reveal {
  opacity: 1;
  transform: none;
}

@keyframes phoneFloat {
  0%, 100% {
    transform: translate(-50%, -50%) rotateX(8deg) rotateY(-15deg) rotateZ(3deg);
  }
  50% {
    transform: translate(-50%, -53%) rotateX(10deg) rotateY(-8deg) rotateZ(-1deg);
  }
}

@keyframes orbit {
  to {
    transform: rotateX(68deg) rotateZ(336deg);
  }
}

@keyframes cardFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.75rem;
  }
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1rem;
    padding-top: 3rem;
  }

  .hero-visual {
    min-height: 38rem;
  }

  .hero-metrics,
  .info-band,
  .flow-grid,
  .screen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav,
  main,
  footer {
    width: min(var(--max), calc(100% - 2rem));
  }

  .brand img {
    width: 9.5rem;
  }

  .nav-button {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10.2vw, 2.85rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .lede {
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero-copy,
  .actions,
  .hero-metrics,
  .hero-metrics article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .hero-metrics,
  .info-band,
  .flow-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 32rem;
  }

  .phone {
    width: min(76vw, 18rem);
  }

  .floating-card {
    display: none;
  }

  .workflow,
  .screens,
  .cta {
    margin: 3rem 0;
    border-radius: 1.35rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
