:root {
  --paper: #f5f5f2;
  --ink: #11120f;
  --muted: #65675f;
  --line: rgba(17, 18, 15, 0.12);
  --acid: #b9ff66;
  --night: #151714;
  --night-muted: #9b9f94;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hero {
  --pointer-x: 72%;
  --pointer-y: 32%;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: 0 clamp(1.25rem, 4vw, 5rem);
  background:
    radial-gradient(circle at 80% 38%, rgba(185, 255, 102, 0.1), transparent 28%),
    linear-gradient(135deg, #fafaf8 0%, var(--paper) 52%, #eeeeea 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: var(--pointer-y);
  left: var(--pointer-x);
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(185, 255, 102, 0.11);
  filter: blur(70px);
  transform: translate(-50%, -50%);
  transition: top 0.8s var(--ease), left 0.8s var(--ease);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 90rem);
  height: 5.5rem;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand__logo {
  width: 8.25rem;
  height: 2rem;
  object-fit: contain;
}

.nav__link {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0;
  font-size: 0.84rem;
  font-weight: 650;
}

.nav__link svg,
.button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover svg,
.button--primary:hover svg {
  transform: translateX(0.2rem);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(28rem, 0.88fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  width: min(100%, 90rem);
  min-height: calc(100svh - 10rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 7rem) 0 clamp(5rem, 10vh, 8rem);
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0 0 1.75rem;
  color: #3f413b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow__pulse {
  width: 0.52rem;
  height: 0.52rem;
  border: 0.12rem solid var(--paper);
  border-radius: 50%;
  background: #59b727;
  box-shadow: 0 0 0 0.2rem rgba(89, 183, 39, 0.16);
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3.3rem, 6.2vw, 6.8rem);
  font-weight: 620;
  line-height: 0.93;
  letter-spacing: -0.072em;
}

h1 span {
  color: #777a71;
  font-weight: 500;
}

.hero__description {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.6;
  letter-spacing: -0.018em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 650;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-0.12rem);
}

.button--primary {
  gap: 0.65rem;
  background: var(--ink);
  color: white;
  box-shadow: 0 0.75rem 2rem rgba(17, 18, 15, 0.14);
}

.button--primary:hover {
  background: #292b26;
}

.button:focus-visible,
.nav__link:focus-visible,
.brand:focus-visible {
  outline: 0.18rem solid #4f941f;
  outline-offset: 0.25rem;
}

.hero__note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero__visual {
  position: relative;
  min-height: 37rem;
  perspective: 1000px;
}

.product-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(100%, 34rem);
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  padding: 1.5rem;
  background: var(--night);
  color: white;
  box-shadow: 0 2.5rem 6rem rgba(28, 30, 26, 0.24);
  transform: translate(-50%, -50%) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.7s var(--ease);
}

.hero__visual:hover .product-card {
  transform: translate(-50%, -51%) rotateY(-1deg) rotateX(0deg);
}

.product-card::after {
  position: absolute;
  top: -12rem;
  right: -12rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: rgba(185, 255, 102, 0.08);
  content: "";
  filter: blur(1rem);
}

.product-card__header,
.route,
.route-list__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__header p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.product-card__header div > span,
.route-list__label,
.route div span {
  color: var(--night-muted);
  font-size: 0.68rem;
}

.live-status {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  border: 1px solid rgba(185, 255, 102, 0.15);
  border-radius: 999px;
  padding: 0.42rem 0.65rem;
  background: rgba(185, 255, 102, 0.06);
  color: #caff8d;
  font-size: 0.62rem;
}

.live-status span {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0.55rem var(--acid);
}

.metric {
  position: relative;
  z-index: 1;
  margin-top: 2.35rem;
}

.metric p {
  margin: 0 0 0.5rem;
  color: var(--night-muted);
  font-size: 0.72rem;
}

.metric__value {
  display: inline-flex;
  align-items: flex-start;
}

.metric__value strong {
  font-size: 3.7rem;
  font-weight: 520;
  line-height: 1;
  letter-spacing: -0.07em;
}

.metric__value > span {
  margin: 0.34rem 0 0 0.25rem;
  color: var(--night-muted);
  font-size: 1.1rem;
}

.metric__trend {
  margin-left: 1rem;
  color: #b9ff66;
  font-size: 0.68rem;
}

.chart {
  height: 8rem;
  margin: 1rem -1.5rem 0;
}

.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart__area {
  fill: url("#area");
}

.chart__line {
  fill: none;
  stroke: var(--acid);
  stroke-linecap: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw-line 1.8s 0.5s var(--ease) forwards;
}

.route-list {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.route-list__label {
  margin-bottom: 0.7rem;
}

.route-list__label span:first-child {
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.8rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.route__icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  color: #151714;
  font-size: 0.57rem;
  font-weight: 750;
  place-items: center;
}

.route__icon--a {
  background: var(--acid);
}

.route__icon--b {
  background: #deded8;
}

.route div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.route div strong {
  font-size: 0.7rem;
  font-weight: 580;
}

.route__share {
  font-size: 0.72rem;
  font-weight: 650;
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  border: 1px solid rgba(17, 18, 15, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1rem 3rem rgba(30, 32, 28, 0.15);
  backdrop-filter: blur(1rem);
  animation: float 5s ease-in-out infinite;
}

.floating-card--payment {
  right: -1rem;
  bottom: 2.5rem;
  gap: 0.7rem;
  border-radius: 1rem;
  padding: 0.8rem 1rem;
}

.floating-card__check {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #e8fbd8;
  place-items: center;
}

.floating-card__check svg {
  width: 1rem;
  fill: none;
  stroke: #448f1a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.floating-card--payment div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.floating-card--payment div span {
  color: var(--muted);
  font-size: 0.61rem;
}

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

.floating-card--routing {
  top: 3.6rem;
  left: -1.25rem;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  font-size: 0.64rem;
  font-weight: 650;
  animation-delay: -2.5s;
}

.routing-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #65bb37;
  box-shadow: 0 0 0 0.2rem rgba(101, 187, 55, 0.14);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  border: 1px solid rgba(17, 18, 15, 0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit--one {
  width: 39rem;
  height: 39rem;
}

.orbit--two {
  width: 47rem;
  height: 47rem;
  border-style: dashed;
}

.hero__footer {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  gap: 2rem;
  width: min(calc(100% - 2.5rem), 90rem);
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  list-style: none;
  transform: translateX(-50%);
}

.hero__footer li:not(:last-child)::after {
  margin-left: 2rem;
  color: #c4c5bf;
  content: "•";
}

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

.is-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.is-ready .hero__visual {
  transition-delay: 0.12s;
}

.is-ready .hero__footer {
  transform: translateX(-50%) translateY(0);
  transition-delay: 0.25s;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.45rem);
  }
}

@media (max-width: 64rem) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 4.5rem;
  }

  .hero__copy {
    text-align: center;
  }

  .eyebrow,
  .hero__actions {
    justify-content: center;
  }

  h1,
  .hero__description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__visual {
    width: min(100%, 38rem);
    margin: 0 auto 3rem;
  }

  .hero__footer {
    position: relative;
    bottom: auto;
    left: auto;
    justify-content: center;
    padding-bottom: 1.5rem;
    transform: none;
  }

  .is-ready .hero__footer {
    transform: none;
  }
}

@media (max-width: 40rem) {
  .hero {
    padding: 0 1rem;
  }

  .nav {
    height: 4.5rem;
  }

  .nav__link {
    font-size: 0.76rem;
  }

  .nav__link svg {
    display: none;
  }

  .hero__content {
    padding: 3.25rem 0 4rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero__description {
    font-size: 0.98rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero__visual {
    min-height: 31rem;
  }

  .product-card {
    width: 94%;
    min-height: 30rem;
    border-radius: 1.25rem;
    padding: 1.15rem;
    transform: translate(-50%, -50%);
  }

  .hero__visual:hover .product-card {
    transform: translate(-50%, -50%);
  }

  .metric {
    margin-top: 1.75rem;
  }

  .metric__value strong {
    font-size: 3rem;
  }

  .chart {
    margin-right: -1.15rem;
    margin-left: -1.15rem;
  }

  .floating-card--payment {
    right: -0.4rem;
    bottom: 0.8rem;
  }

  .floating-card--routing {
    top: 1rem;
    left: -0.35rem;
  }

  .orbit--one {
    width: 32rem;
    height: 32rem;
  }

  .orbit--two {
    display: none;
  }

  .hero__footer {
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
  }

  .hero__footer li:not(:last-child)::after {
    margin-left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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