:root {
  --paper: #fff7e8;
  --paper-strong: #f8edd8;
  --surface: #ffffff;
  --ink: #22172e;
  --muted: #6d6477;
  --line: rgba(34, 23, 46, 0.12);
  --line-strong: rgba(34, 23, 46, 0.22);
  --purple: #6d56e8;
  --purple-deep: #2b214f;
  --coral: #c7653a;
  --green: #159a72;
  --gold: #d8c92d;
  --blue: #2563eb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(34, 23, 46, 0.18);
  --font: "Outfit", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
}

img,
video {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, min-height 0.2s ease, top 0.2s ease;
}

.site-header.is-scrolled {
  top: 12px;
  min-height: 60px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.82);
  box-shadow: 0 18px 50px rgba(34, 23, 46, 0.12);
  backdrop-filter: blur(16px);
  color: var(--ink);
}

.brand,
.header-cta,
.primary-action,
.secondary-action,
.copy-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  background: #b7acf4;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.site-header.is-scrolled .nav-links {
  color: var(--muted);
}

.nav-links a:hover,
.text-link:hover {
  color: var(--purple);
}

.header-cta {
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.header-cta svg,
.primary-action svg,
.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-section {
  position: relative;
  min-height: 86svh;
  padding: 116px max(16px, calc((100vw - 1220px) / 2)) 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 58px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}


.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(34, 23, 46, 0.82) 0%, rgba(34, 23, 46, 0.66) 42%, rgba(34, 23, 46, 0.26) 78%, rgba(34, 23, 46, 0.14) 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--paper));
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--coral);
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  color: var(--white);
  font-size: 76px;
  line-height: 0.92;
  font-weight: 800;
}

.hero-lede {
  max-width: 620px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.42;
  font-weight: 500;
}

.hero-actions,
.beta-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action,
.copy-link {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-action {
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.primary-action:hover,
.secondary-action:hover,
.copy-link:hover {
  transform: translateY(-1px);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.hero-device {
  position: relative;
  min-height: 520px;
}

.phone-shell {
  position: absolute;
  overflow: hidden;
  border: 8px solid #181223;
  border-radius: 26px;
  background: #181223;
  box-shadow: var(--shadow);
}

.phone-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-main {
  z-index: 3;
  left: 52px;
  top: 8px;
  width: 285px;
  aspect-ratio: 390 / 844;
  transform: rotate(-5deg);
}

.phone-side {
  z-index: 2;
  right: 18px;
  bottom: 18px;
  width: 225px;
  aspect-ratio: 390 / 844;
  transform: rotate(7deg);
  opacity: 0.95;
}

.hero-note {
  position: absolute;
  z-index: 5;
  left: 8px;
  bottom: 78px;
  width: 188px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-note strong {
  font-size: 17px;
}

.hero-note span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.signal-strip {
  width: min(1220px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-strip span {
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.signal-strip span + span {
  border-left: 1px solid var(--line);
}

.intro-section,
.features-section,
.media-section,
.tracks-section,
.install-section,
.beta-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.intro-section,
.tracks-section,
.media-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 58px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.section-heading,
.intro-copy,
.tracks-copy,
.media-copy {
  max-width: 760px;
}

.section-heading h2,
.intro-copy h2,
.tracks-copy h2,
.media-copy h2,
.beta-copy h2 {
  margin-top: 14px;
  font-size: 48px;
  line-height: 1;
  font-weight: 800;
}

.section-lede,
.intro-text p,
.tracks-copy p,
.media-copy p,
.beta-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-lede {
  max-width: 700px;
  margin-top: 16px;
}

.intro-text {
  display: grid;
  gap: 18px;
  padding-top: 34px;
}

.feature-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.media-tile,
.install-card,
.beta-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.feature-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-index {
  width: fit-content;
  margin-bottom: auto;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.feature-card h3,
.install-card h3,
.track-card h3 {
  font-size: 24px;
  line-height: 1.05;
}

.feature-card p,
.track-card p,
.install-card li,
.media-tile figcaption {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.feature-card p {
  margin-top: 12px;
}

.media-copy {
  position: sticky;
  top: 118px;
}

.media-copy p {
  margin-top: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(118px, 1fr));
  gap: 14px;
  align-items: start;
}

.media-tile {
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(34, 23, 46, 0.08);
}

.media-tile img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.media-tile figcaption {
  min-height: 58px;
  padding: 14px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.track-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.track-card {
  position: relative;
  min-height: 238px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.track-card span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(199, 101, 58, 0.12);
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.track-card h3 {
  color: var(--ink);
}

.track-card p {
  margin-top: 8px;
  color: var(--muted);
}

.install-section {
  border-bottom: 1px solid var(--line);
}

.install-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.install-card {
  padding: 26px;
}

.install-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.platform-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.platform-dot.ios {
  background: var(--blue);
}

.platform-dot.android {
  background: var(--green);
}

.install-card ol {
  margin-top: 22px;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.install-card strong {
  color: var(--ink);
}

.beta-section {
  min-height: 370px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  background: linear-gradient(135deg, #20162f, #6d56e8 58%, #c7653a);
  color: var(--white);
}

.beta-copy p {
  max-width: 640px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.beta-copy strong {
  color: var(--white);
}

.beta-section .copy-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
}

.copy-link.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ===== Feedback ===== */
.feedback-section {
  border-bottom: 1px solid var(--line);
}

.feedback-layout {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.feedback-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(34, 23, 46, 0.06);
}

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

.field label,
.field-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 86, 232, 0.18);
}

.field-hint {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.star-rating {
  display: inline-flex;
  gap: 4px;
}

.star {
  padding: 2px 2px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  color: var(--line-strong);
  transition: color 0.14s ease, transform 0.14s ease;
}

.star:hover {
  transform: translateY(-1px);
}

.star.is-active {
  color: var(--gold);
}

.form-error {
  margin-top: -6px;
  color: var(--coral);
  font-size: 14px;
  font-weight: 700;
}

.feedback-submit {
  cursor: pointer;
  border: none;
  width: 100%;
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(109, 86, 232, 0.28);
}

.feedback-submit.is-sent {
  background: var(--green);
  box-shadow: 0 18px 42px rgba(21, 154, 114, 0.28);
}

.feedback-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.feedback-list-wrap {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.feedback-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.feedback-list-head h3 {
  font-size: 20px;
  font-weight: 800;
}

.feedback-count {
  min-width: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(109, 86, 232, 0.12);
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.feedback-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  max-height: 460px;
  overflow-y: auto;
}

.feedback-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  animation: fb-in 0.4s ease;
}

@keyframes fb-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-item-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.feedback-item-stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 1px;
}

.feedback-item-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.feedback-item-message {
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.feedback-empty {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.feedback-empty[hidden] {
  display: none;
}

/* Floating button — always visible */
.feedback-fab {
  position: fixed;
  z-index: 60;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(109, 86, 232, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(109, 86, 232, 0.5);
}

.feedback-fab svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

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

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

@media (max-width: 1040px) {
  .hero-section,
  .intro-section,
  .tracks-section,
  .media-section,
  .beta-section {
    grid-template-columns: 1fr;
  }

  .hero-device {
    min-height: 460px;
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .media-copy {
    position: static;
  }

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

  .beta-actions {
    margin-top: 0;
  }

  .feedback-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    width: calc(100% - 24px);
    min-height: 68px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero-section {
    min-height: 88svh;
    padding: 98px 12px 34px;
    gap: 24px;
  }


  .hero-video-bg {
    object-position: center 44%;
  }

  .hero-section::before {
    background: linear-gradient(180deg, rgba(34, 23, 46, 0.84) 0%, rgba(34, 23, 46, 0.66) 54%, rgba(34, 23, 46, 0.44) 100%);
  }

  h1 {
    font-size: 48px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .hero-actions,
  .beta-actions {
    align-items: stretch;
  }

  .primary-action,
  .secondary-action,
  .copy-link {
    width: 100%;
  }

  .hero-device {
    display: none;
  }

  .signal-strip {
    width: calc(100% - 24px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font-size: 12px;
  }

  .signal-strip span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .signal-strip span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .intro-section,
  .features-section,
  .media-section,
  .tracks-section,
  .install-section,
  .beta-section,
  .site-footer {
    width: calc(100% - 24px);
  }

  .intro-section,
  .features-section,
  .media-section,
  .tracks-section,
  .install-section,
  .beta-section {
    padding: 62px 0;
  }

  .section-heading h2,
  .intro-copy h2,
  .tracks-copy h2,
  .media-copy h2,
  .beta-copy h2 {
    font-size: 34px;
  }

  .intro-text {
    padding-top: 0;
  }

  .feature-grid,
  .track-gallery,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 224px;
  }

.media-grid {
    grid-template-columns: repeat(3, 74vw);
    overflow-x: auto;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
  }

  .media-tile {
    scroll-snap-align: start;
  }

  .media-tile:nth-child(2),
  .media-tile:nth-child(3) {
    transform: none;
  }

  .track-card {
    min-height: 210px;
  }

  .beta-section {
    min-height: auto;
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }

  .feedback-fab {
    right: 14px;
    bottom: 14px;
    padding: 13px;
  }

  .feedback-fab span {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: 44px;
  }

  .hero-lede,
  .section-lede,
  .intro-text p,
  .tracks-copy p,
  .media-copy p,
  .beta-copy p {
    font-size: 17px;
  }

  .feature-card h3,
  .install-card h3,
  .track-card h3 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-bg {
    display: none;
  }

  .hero-section {
    background: url("assets/hero-bia-bus.png") center 42% / cover no-repeat;
  }


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

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