:root {
  --ink: #0c1830;
  --muted: #52617a;
  --line: rgba(30, 58, 103, 0.14);
  --blue: #1478ff;
  --cyan: #39d5ff;
  --green: #2ee58d;
  --stage: #071224;
  --stage-2: #0c1f3b;
  --shadow: 0 28px 90px rgba(14, 34, 69, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ag-flowtron-hero,
.ag-flowtron-hero * {
  box-sizing: border-box;
}

.ag-flowtron-hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 16%, rgba(20, 120, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 86% 20%, rgba(46, 229, 141, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.ag-flowtron-hero a {
  color: inherit;
  text-decoration: none;
}

.ag-flowtron-hero {
  width: min(1500px, 100%);
  min-height: calc(100svh - 4.5rem);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 4rem) 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(20rem, 0.86fr) minmax(38rem, 1.14fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - 6rem);
  padding-top: clamp(2.5rem, 5.6vh, 4.25rem);
}

.hero-copy {
  max-width: 38rem;
  padding-block: 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #0d60c8;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.ag-flowtron-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 3.9vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.subheading {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 0.55rem;
  padding: 0.78rem 1rem;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #096eff, #1d9bff);
  box-shadow: 0 14px 36px rgba(20, 120, 255, 0.26);
}

.button.secondary {
  color: #0e2447;
  border: 1px solid rgba(14, 36, 71, 0.2);
  background: rgba(255, 255, 255, 0.66);
}

.audience-links {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.65rem;
  color: #253a58;
  font-weight: 700;
}

.audience-links a {
  width: fit-content;
  color: color-mix(in srgb, #253a58 82%, #1478ff 18%);
}

.audience-links a:hover {
  color: #0d60c8;
}

.stage-wrap {
  position: relative;
}

.flowtron-stage {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 1.65rem;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 42%),
    radial-gradient(circle at 28% 56%, rgba(46,229,141,0.12), transparent 13rem),
    radial-gradient(circle at 78% 26%, rgba(57,213,255,0.2), transparent 14rem),
    linear-gradient(145deg, var(--stage), var(--stage-2));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.12);
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 48% 48%, black, transparent 76%);
}

.stage-strip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.85rem;
  padding: 0.62rem 0.75rem;
  color: rgba(255,255,255,0.58);
  background: rgba(3, 13, 28, 0.38);
  backdrop-filter: blur(14px);
  font-size: 0.76rem;
  font-weight: 750;
}

.stage-strip strong {
  color: rgba(255,255,255,0.9);
}

.stage-body {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(25rem, 1fr) 15.6rem;
  gap: 0.25rem;
  align-items: center;
  min-height: 27.8rem;
  padding: 4.55rem 2.05rem 3.35rem 2rem;
}

.demo-panel {
  position: relative;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
    rgba(4, 15, 31, 0.72);
  box-shadow: 0 18px 52px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.1);
}

.panel-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem 0.65rem;
  color: rgba(255,255,255,0.68);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-status {
  color: rgba(255,255,255,0.86);
  letter-spacing: 0;
  text-transform: none;
}

.target-panel {
  min-height: 22.7rem;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s ease;
}

.target-viewport {
  position: relative;
  height: 18.6rem;
  margin: 0 0.9rem 0.95rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.82rem;
  background: #24272a;
}

.target-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 42%, rgba(5,13,25,0.16) 58%, rgba(5,13,25,0.7) 100%);
}

.vtad-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100%, 25rem);
  height: auto;
  aspect-ratio: 1448 / 1086;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.45s ease, filter 0.45s ease;
}

.vtad-off {
  opacity: 1;
}

.device-display {
  position: absolute;
  left: 36.2%;
  top: 24.2%;
  z-index: 3;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.09rem;
  width: 27.6%;
  min-height: 19.5%;
  border-radius: 0.45rem;
  padding: 0.38rem 0.24rem;
  color: #10203a;
  background: rgba(245,251,255,0.92);
  box-shadow: inset 0 0 16px rgba(255,255,255,0.5), 0 8px 20px rgba(0,0,0,0.12);
}

.device-code {
  color: #0d60c8;
  font-size: 0.52rem;
  font-weight: 900;
}

.device-display strong {
  color: #071324;
  font-size: 0.66rem;
  line-height: 1.1;
}

.device-detail,
.device-outcome {
  max-width: 100%;
  overflow: hidden;
  color: #1c2f4a;
  font-size: 0.42rem;
  font-weight: 850;
  line-height: 1.08;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-outcome {
  margin-top: 0.05rem;
  color: #0a4f31;
}

.mobile-verified {
  display: none;
}

.phone-panel {
  display: grid;
  min-height: 20.7rem;
  width: 14.6rem;
  justify-self: start;
  margin-left: -0.85rem;
  justify-items: center;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.phone-panel .panel-label {
  width: 100%;
  justify-content: center;
  padding-inline: 0.25rem;
  font-size: 0.66rem;
}

.phone-panel .panel-status {
  display: none;
}

.phone-shell {
  position: relative;
  width: min(21.9rem, 150%);
  aspect-ratio: 1;
  margin-top: -0.15rem;
  margin-inline: auto;
  transform: translateX(-4.25rem);
  filter: drop-shadow(0 22px 38px rgba(0,0,0,0.34));
}

.phone-screen-viewport {
  position: absolute;
  left: 31.15%;
  top: 11.05%;
  z-index: 1;
  width: 37.8%;
  height: 77.6%;
  overflow: hidden;
  border-radius: 0.32rem;
  background:
    radial-gradient(circle at 50% 22%, rgba(57,213,255,0.2), transparent 5.6rem),
    rgba(7, 18, 36, 0.9);
}

.phone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.phone-ui {
  display: grid;
  align-content: start;
  gap: 0.66rem;
  min-height: 100%;
  padding: 1rem 0.74rem;
}

.phone-appbar {
  color: rgba(255,255,255,0.92);
  font-size: 0.78rem;
  font-weight: 900;
}

.transaction-card {
  display: grid;
  gap: 0.22rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.58rem;
  padding: 0.62rem;
  background: rgba(255,255,255,0.055);
}

.transaction-label {
  color: rgba(255,255,255,0.48);
  font-size: 0.52rem;
  font-weight: 850;
  text-transform: uppercase;
}

.transaction-card strong {
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.15;
}

.transaction-card span:last-child {
  color: rgba(255,255,255,0.62);
  font-size: 0.62rem;
  font-weight: 750;
}

.phone-state {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  color: #d9f7ff;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 850;
}

.state-dot {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(57,213,255,0.7);
}

.active-step {
  position: absolute;
  left: 1rem;
  bottom: 0.88rem;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.52rem 0.72rem 0.52rem 0.55rem;
  color: rgba(255,255,255,0.82);
  background: rgba(3, 13, 28, 0.44);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 850;
}

.active-step-index {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: #071324;
  background: var(--green);
  font-size: 0.72rem;
}

.step-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.43rem;
  z-index: 7;
  display: flex;
  gap: 0.42rem;
}

.step-dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.flowtron-stage[data-step="0"] [data-step-dot="0"],
.flowtron-stage[data-step="1"] [data-step-dot="1"],
.flowtron-stage[data-step="2"] [data-step-dot="2"],
.flowtron-stage[data-step="3"] [data-step-dot="3"],
.flowtron-stage[data-step="4"] [data-step-dot="4"],
.flowtron-stage[data-step="5"] [data-step-dot="5"] {
  background: var(--green);
  box-shadow: 0 0 12px rgba(46,229,141,0.76);
}

.flowtron-stage[data-step="1"] .vtad-off,
.flowtron-stage[data-step="2"] .vtad-off,
.flowtron-stage[data-step="3"] .vtad-off {
  opacity: 0;
}

.flowtron-stage[data-step="1"] .vtad-blue,
.flowtron-stage[data-step="2"] .vtad-blue,
.flowtron-stage[data-step="3"] .vtad-blue {
  opacity: 1;
}

.flowtron-stage[data-step="4"] .vtad-off,
.flowtron-stage[data-step="5"] .vtad-off {
  opacity: 0;
}

.flowtron-stage[data-step="4"] .vtad-green,
.flowtron-stage[data-step="5"] .vtad-green {
  opacity: 1;
  filter: saturate(1.08) brightness(1.04);
}

.flowtron-stage[data-step="4"] .target-panel,
.flowtron-stage[data-step="5"] .target-panel {
  border-color: rgba(46,229,141,0.42);
  box-shadow: 0 18px 52px rgba(0,0,0,0.24), 0 0 48px rgba(46,229,141,0.18), inset 0 1px 0 rgba(255,255,255,0.1);
}

.flowtron-stage[data-step="4"] .device-display,
.flowtron-stage[data-step="5"] .device-display {
  color: #0a3b27;
  background: rgba(220,255,236,0.94);
  box-shadow: inset 0 0 18px rgba(46,229,141,0.22), 0 8px 22px rgba(46,229,141,0.16);
}

.flowtron-stage[data-scenario="vending"] {
  --scenario-glow: rgba(57, 213, 255, 0.2);
}

.flowtron-stage[data-scenario="pos"] {
  --scenario-glow: rgba(46, 229, 141, 0.17);
}

.flowtron-stage[data-scenario="parking"] {
  --scenario-glow: rgba(120, 165, 255, 0.19);
}

.flowtron-stage::after {
  content: "";
  position: absolute;
  inset: auto 12% -18% 12%;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--scenario-glow), transparent 70%);
  pointer-events: none;
}

@media (min-width: 1051px) and (max-width: 1350px) {
  .ag-flowtron-hero {
    padding-inline: clamp(1.25rem, 2.2vw, 2rem);
  }

  .hero-grid {
    grid-template-columns: minmax(20rem, 0.74fr) minmax(36rem, 1.26fr);
    gap: clamp(1.2rem, 2vw, 2rem);
    padding-top: clamp(2.1rem, 5vh, 3.2rem);
  }

  .hero-copy {
    max-width: 34rem;
  }

  .ag-flowtron-hero h1 {
    font-size: clamp(2.35rem, 3.55vw, 3.2rem);
  }

  .subheading {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .flowtron-stage {
    min-height: 31.5rem;
  }

  .stage-body {
    grid-template-columns: minmax(21.5rem, 1fr) 12.9rem;
    gap: 0;
    min-height: 26rem;
    padding: 4.3rem 1.35rem 3rem 1.45rem;
  }

  .target-panel {
    min-height: 20.8rem;
  }

  .target-viewport {
    height: 16.8rem;
  }

  .phone-panel {
    width: 12.9rem;
    margin-left: -0.95rem;
  }

  .phone-shell {
    width: min(18.8rem, 146%);
    transform: translateX(-4.5rem);
  }
}

@media (max-width: 1050px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .hero-copy {
    max-width: 44rem;
    padding-block: 1.5rem 0.5rem;
  }

  .flowtron-stage {
    min-height: 33.5rem;
  }
}

@media (max-width: 680px) {
  .ag-flowtron-hero {
    padding: 0.75rem 0.9rem 1.5rem;
  }

  .hero-grid {
    display: block;
    min-height: auto;
    padding-top: 0;
  }

  .hero-copy {
    padding-block: 1.55rem 0;
  }

  .ag-flowtron-hero h1 {
    font-size: clamp(2.45rem, 12.7vw, 3.6rem);
  }

  .subheading {
    font-size: 1rem;
  }

  .hero-actions,
  .audience-links {
    width: 100%;
  }

  .button,
  .audience-links a {
    width: 100%;
  }

  .stage-wrap {
    display: none;
  }
}

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