:root {
  --color-bg: #040c0f;
  --color-surface: transparent;
  --color-section-accent: rgba(0, 200, 83, 0.12);
  --color-text: #e7fff4;
  --color-text-muted: #98bdb4;
  --color-text-inverted: #040c0f;
  --color-brand: #00c853;
  --color-brand-alt: #00bfa5;
  --color-brand-highlight: #64ffda;
  --color-border: rgba(100, 255, 218, 0.25);
  --color-line: rgba(100, 255, 218, 0.14);
  --color-positive: #00e676;
  --color-error: #ff5252;
  --font-heading: "Manrope", "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(48% 52% at 12% 18%, rgba(0, 200, 83, 0.18), transparent 60%),
    radial-gradient(54% 48% at 88% 12%, rgba(0, 191, 165, 0.2), transparent 70%),
    radial-gradient(60% 60% at 50% 90%, rgba(1, 28, 24, 0.8), transparent 80%),
    var(--color-bg);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

.page-background,
.page-overlay {
  display: none;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--color-brand);
  color: #012b16;
  font-weight: 600;
  transition: top 0.2s ease;
  z-index: 1100;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(4, 12, 15, 0.9);
backdrop-filter: blur(1px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  padding: 10px 0;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--color-brand-highlight);
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav__logo {
  display: block;
  height: 36px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-brand-highlight);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-brand-highlight);
  transition: transform 0.2s ease;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav__toggle-line {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav.is-open .nav__links {
  display: flex;
}

main {
  display: block;
}

.hero {
  padding: clamp(72px, 12vw, 120px) clamp(16px, 6vw, 64px);
}

.hero__layout {
  max-width: var(--max-width);

  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
}

.hero__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 8vw, 48px);
  padding: clamp(24px, 5vw, 32px) clamp(14px, 4vw, 22px);
  border-right: 1px solid var(--color-line);
}

.hero__wordmark {
  display: block;
  width: clamp(140px, 18vw, 180px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.hero__qr-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero__qr-card img {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.hero__qr-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__content {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  align-content: start;
}

.hero__content > div:last-child {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.14);
  color: var(--color-brand-highlight);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand-highlight);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.7rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.hero__content p {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--color-text-muted);
}

.hero__bullets {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  color: var(--color-text-muted);
}

.hero__bullets li {
  list-style: square;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  line-height: 0;
  transition: transform 0.2s ease;
}

.store-link:hover,
.store-link:focus-visible {
  transform: translateY(-2px);
  text-decoration: none;
}

.store-link:focus-visible {
  outline: 2px solid var(--color-brand-highlight);
  outline-offset: 4px;
}

.store-link img {
  display: block;
  width: auto;
  height: 50px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-brand-highlight);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.link-button:hover,
.link-button:focus-visible {
  background: rgba(100, 255, 218, 0.12);
  text-decoration: none;
}

.link-button--filled {
  background: var(--color-brand);
  color: #012b16;
  border-color: transparent;
}

.link-button--filled:hover,
.link-button--filled:focus-visible {
  background: var(--color-brand-alt);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-brand-highlight);
}

.hero__stars {
  letter-spacing: 4px;
  color: #ffd740;
}

.hero__press {
  color: var(--color-text-muted);
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero figure {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__device {
  position: relative;
  width: clamp(240px, 28vw, 320px);
  aspect-ratio: 10 / 20;
  border-radius: 32px;
  border: 2px solid var(--color-border);
  padding: 18px;
  background: rgba(0, 200, 83, 0.08);
  transform: rotateY(-8deg) rotateZ(3deg);
}

.hero__device-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  border-radius: 999px;
  background: rgba(6, 20, 18, 0.8);
}

.hero__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(4, 12, 12, 0.92);
}

.hero__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: clamp(72px, 12vw, 120px) clamp(16px, 6vw, 64px);
}

.section__layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: clamp(32px, 5vw, 48px);
}

.section__header {
  display: grid;
  gap: 16px;
  max-width: 720px;
}

.section__header p {
  margin: 0;
  color: var(--color-text-muted);
}

.section--accent {
  background: rgba(0, 200, 83, 0.04);
}

.section--muted {
  background: rgba(0, 191, 165, 0.04);
}

.section--inverted {
  background: #ffffff;
  color: var(--color-text-inverted) !important;
}

.section--inverted * {
  color: var(--color-text-inverted) !important;
}

/* Legal content container: white background with dark text for readability */
.legal {
  background: #ffffff;
  color: #111111;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 28px);
}

.legal h1,
.legal h2,
.legal h3,
.legal h4,
.legal h5,
.legal h6 {
  color: #000000;
}

.legal p,
.legal li,
.legal ul,
.legal ol {
  color: #111111;
}

.legal a {
  color: #0645ad;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 4vw, 32px);
}

.feature-card {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  border-left: 3px solid rgba(100, 255, 218, 0.45);
}

.feature-card__tag {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand-highlight);
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
}

.journey__layout {
  gap: clamp(28px, 5vw, 48px);
}

.journey__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 1fr);
  gap: clamp(28px, 6vw, 56px);
  align-items: start;
}

.journey__copy {
  display: grid;
  gap: 24px;
  
}

.journey__step {
  padding: 10vh 18px 40vh 18px;
  /* border-left: 2px solid rgba(100, 255, 218, 0.2); */
  transform-origin: left center;
  transform: scale(1);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.journey__step h3 {
  margin-bottom: 8px;
}

.journey__step p {
  margin: 0;
  color: var(--color-text-muted);
}

.journey__step-image {
  display: none;
  width: 100%;
  height: auto;
}

.journey__step.is-active {
  color: #ffffff;
  transform: scale(1.3);
  padding: 10vh 10vh 40vh 18px;
  transition: transform 0.3s ease;
}

.journey__device {
  position: sticky;
  top: 120px;
  display: flex;
  justify-content: center;
}



.journey__device-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  transition: all 0.35s ease, opacity 0.35s ease;
}

.journey__device-content.is-refreshing {
  animation: journeyContentPop 0.45s ease;
}

.journey__device-image {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;

  /* border-radius: 18px; */
  /* box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32); */
}

@keyframes journeyContentPop {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  55% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey__step {
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    transform: none;
  }

  .journey__step.is-active {
    transform: none;
  }

  .journey__device-content {
    transition: none;
  }

  .journey__device-content.is-refreshing {
    animation: none;
  }
}

.install__layout {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.install__copy {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

.install__copy p {
  margin: 0;
  color: var(--color-text-muted);
}

.install__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.install__qr-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.install__stats {
  display: grid;
  gap: 20px;
}

.stat-card {
  padding-left: 18px;
  border-left: 3px solid rgba(0, 200, 83, 0.4);
}

.stat-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brand-highlight);
  margin-bottom: 12px;
}

.contact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact__form {
  display: grid;
  gap: 20px;
}

.form__field {
  display: grid;
  gap: 8px;
}

label,
legend {
  font-weight: 600;
  color: var(--color-text);
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(100, 255, 218, 0.28);
  background: rgba(3, 14, 14, 0.65);
  color: var(--color-text);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(100, 255, 218, 0.5);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.form__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--color-text-muted);
}

.form__consent {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form__feedback {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
}

.contact__details {
  display: grid;
  gap: 12px;
  color: var(--color-text-muted);
}

.site-footer {
  margin: clamp(48px, 10vw, 80px) clamp(16px, 6vw, 64px) clamp(32px, 6vw, 48px);
  padding: clamp(24px, 4vw, 36px) 0;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  border-top: 1px solid var(--color-line);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  font-weight: 600;
  color: var(--color-text-muted);
}

.footer__meta {
  margin: 0;
  color: rgba(231, 255, 244, 0.7);
  font-size: 0.92rem;
}

.consent-banner {
  position: fixed;
  inset: auto clamp(16px, 6vw, 64px) clamp(16px, 6vw, 64px);
  max-width: 420px;
  background: rgba(4, 20, 24, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.consent-banner.is-active {
  opacity: 1;
  pointer-events: auto;
}

.consent-banner__content {
  display: grid;
  gap: 16px;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.consent-banner__settings {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(100, 255, 218, 0.4);
}

@media (max-width: 960px) {
  .nav {
    align-items: flex-start;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    right: clamp(16px, 6vw, 64px);
    width: min(280px, calc(100vw - 32px));
    background: rgba(4, 18, 18, 0.96);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 16px 20px;
    display: none;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    align-items: stretch;
  }

  .nav__link {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
  }

  .hero__layout {
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
    grid-template-areas:
      "rail content"
      "rail media";
  }

  .hero__rail {
    grid-area: rail;
    align-self: stretch;
  }

  .hero__content {
    grid-area: content;
  }

  .hero__visual {
    grid-area: media;
  }

  .hero__content > div:last-child {
    flex-direction: column;
    gap: 20px;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .journey__step {
    border-left: none;
    border-bottom: 1px solid var(--color-line);
    padding: 16px 0;
  }

  .journey__step:last-child {
    border-bottom: none;
  }

  .journey__step.is-active {
    border-bottom-color: var(--color-brand-highlight);
    transform: scale(1);
  }

  .journey__device {
    position: relative;
    top: auto;
    margin-top: 24px;
  }

  .journey__step-image {
    display: block;
  }
  .journey__device {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__rail {
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--color-line);
    justify-content: space-between;
    gap: 20px;
  }

  .hero__wordmark {
    width: 120px;
  }

  .hero__content > div:last-child {
    flex-direction: column;
    gap: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
  }

  .hero__content {
    text-align: center;
    align-items: center;
  }

  .section__layout {
    gap: 32px;
  }

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

  .install__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .consent-banner {
    inset: auto 16px 16px;
    max-width: calc(100% - 32px);
  }

  .journey__step,
  .journey__step.is-active {
  padding: 18px 18px 18px 18px;
  transition: transform 0.3s ease;
  
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
