:root {
  color-scheme: light;
  --brand-red: #ed1b24;
  --brand-red-dark: #c9161e;
  --green: #21b14b;
  --ink: #0e0e10;
  --muted: #626269;
  --surface: #f6f5f4;
  --line: #e4e3e3;
  --white: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  padding-bottom: 82px;
  color: var(--ink);
  background: var(--surface);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 5vw, 72px);
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px #0e0e1008;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 2px;
  letter-spacing: 0.1em;
}

.brand-copy strong {
  font-size: 13px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 9px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.privacy-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.privacy-link:hover {
  color: var(--brand-red);
}

.demo-badge,
.eyebrow {
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.demo-badge span,
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 46px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(10px, 2vw, 24px);
  min-height: 340px;
  align-items: center;
  overflow: hidden;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 50%, #2c2c2f 0, #1a1a1c 30%, transparent 54%),
    linear-gradient(118deg, #0e0e10 0%, #242426 100%);
  box-shadow: 0 18px 45px #0e0e1020;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
}

.hero .eyebrow,
.catalog .eyebrow,
.role-row .eyebrow,
.screen-toolbar .eyebrow,
.booking-panel .eyebrow,
.dialog .eyebrow {
  margin: 0 0 10px;
  color: #ff6269;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 540px;
  margin-bottom: 14px;
  font-size: clamp(35px, 5.4vw, 60px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 span {
  color: #ff6269;
}

.hero-copy {
  max-width: 450px;
  margin-bottom: 22px;
  color: #d6d6d8;
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:active,
.quick-card:active,
.screen-card:active {
  transform: translateY(1px);
}

.button-primary {
  color: var(--white);
  background: var(--brand-red);
}

.button-primary:hover {
  background: var(--brand-red-dark);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  background: #fff0f1;
}

.button-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.topbar .button-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.topbar .button-outline:hover {
  background: #fff0f1;
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #d6d6d8;
  font-size: 11px;
}

.hero-art {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(220px, 27vw, 300px);
  place-items: center;
  background: radial-gradient(ellipse, #ffffff10 0%, transparent 70%);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 190px;
  border: 1px solid #ed1b2440;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-17deg);
}

.orbit-two {
  width: 230px;
  height: 290px;
  transform: translate(-50%, -50%) rotate(54deg);
}

.hero-car {
  position: relative;
  display: block;
  width: min(390px, 100%);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px #36bdf45c) drop-shadow(0 2px 5px #ffffff38);
}

.hero-art .orbit,
.hero-art .shine,
.hero-art .hero-spark {
  display: none;
}

.shine {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffccd0;
  filter: blur(1px);
  opacity: 0.8;
}

.shine-one {
  top: 24%;
  right: 24%;
  transform: scale(0.13);
}

.shine-two {
  right: 13%;
  bottom: 26%;
  transform: scale(0.2);
}

.hero-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6269;
  box-shadow: 0 0 18px #ed1b24;
}

.spark-one {
  top: 22%;
  left: 20%;
}

.spark-two {
  right: 7%;
  bottom: 18%;
}

.role-row,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 38px 0 18px;
}

.role-row .eyebrow,
.catalog .eyebrow,
.screen-toolbar .eyebrow,
.booking-panel .eyebrow,
.dialog .eyebrow {
  color: var(--brand-red);
}

.role-row h2,
.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.role-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.role-button {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.role-button.active {
  color: var(--white);
  background: var(--brand-red);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  box-shadow: 0 4px 14px #0e0e1007;
}

.quick-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.quick-card strong {
  font-size: 13px;
}

.quick-card small {
  color: var(--muted);
  font-size: 11px;
}

.quick-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  font-size: 20px;
  font-weight: 800;
}

.icon-blue {
  color: #ed1b24;
  background: #fde9ea;
}

.icon-green {
  color: #17652b;
  background: #d8f3df;
}

.icon-purple {
  color: #0e0e10;
  background: #e8e7e7;
}

.arrow {
  margin-left: auto;
  color: var(--brand-red);
}

.booking-panel {
  margin-top: 14px;
}

.booking-card,
.empty-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffffc9;
}

.booking-card h3,
.empty-booking h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 15px;
}

.booking-card p,
.empty-booking p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.booking-actions .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 99px;
  color: #17652b;
  background: #d8f3df;
  font-size: 10px;
  font-weight: 800;
}

.catalog {
  margin-top: 48px;
}

.section-heading {
  align-items: end;
  margin-bottom: 20px;
}

.section-heading .muted {
  max-width: 520px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.search-box {
  display: flex;
  width: min(280px, 100%);
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
}

.search-icon {
  color: var(--muted);
  font-size: 21px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
}

.catalog-filters {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-chip {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: var(--white);
  font-size: 10px;
  font-weight: 700;
}

.filter-chip.active {
  border-color: var(--brand-red);
  color: var(--white);
  background: var(--brand-red);
}

.screen-count {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.screen-card {
  display: grid;
  min-height: 104px;
  align-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  box-shadow: 0 4px 14px #0e0e1005;
}

.screen-card:hover {
  border-color: #f7c5c7;
  box-shadow: 0 8px 20px #0e0e1010;
}

.screen-card strong {
  font-size: 12px;
  line-height: 1.45;
}

.screen-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}

.screen-role {
  color: var(--brand-red);
  font-weight: 700;
}

.loading,
.empty-state {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.screen-view {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.screen-toolbar {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.screen-toolbar .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}

.screen-title-wrap {
  min-width: 0;
  text-align: center;
}

.screen-title-wrap .eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
}

.screen-title-wrap h2 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screenFrame {
  display: block;
  width: 100%;
  height: min(78vh, 880px);
  min-height: 580px;
  border: 0;
  background: #fff;
}

.bottom-nav {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  min-height: 65px;
  justify-content: space-around;
  padding: 7px 8px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #ffffffed;
  backdrop-filter: blur(12px);
}

.nav-button {
  display: grid;
  min-width: 55px;
  justify-items: center;
  gap: 1px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}

.nav-button span {
  font-size: 20px;
  line-height: 24px;
}

.nav-button.active {
  color: var(--brand-red);
  font-weight: 800;
}

.dialog {
  width: min(420px, calc(100% - 30px));
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  box-shadow: 0 24px 70px #0e0e1050;
}

.dialog::backdrop {
  background: #0e0e1080;
  backdrop-filter: blur(3px);
}

.dialog form {
  display: grid;
  gap: 10px;
}

.dialog h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
}

.dialog .muted {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.dialog-close {
  justify-self: end;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 24px;
}

.field-label {
  font-size: 11px;
  font-weight: 800;
}

.text-input {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline-color: var(--brand-red);
}

.dialog-submit {
  margin-top: 7px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 86px;
  max-width: min(380px, calc(100% - 36px));
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 8px 28px #0e0e1038;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 74px;
  }

  .topbar {
    height: 62px;
    padding: 0 14px;
  }

  .demo-badge {
    display: none;
  }

  main {
    width: calc(100% - 22px);
    margin: 13px auto 26px;
  }

  .hero {
    min-height: 400px;
    grid-template-columns: minmax(0, 1.12fr) minmax(180px, 0.88fr);
    gap: 12px;
    padding: 27px 22px;
    border-radius: 20px;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    max-width: 390px;
    font-size: 41px;
  }

  .hero-copy {
    max-width: 340px;
    font-size: 13px;
  }

  .hero-art {
    height: 220px;
    align-self: end;
  }

  .hero-footnote {
    max-width: 280px;
    margin-top: 14px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .hero-art {
    width: min(100%, 340px);
    height: 190px;
    justify-self: center;
  }

  .role-row,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 28px;
  }

  .role-switch {
    width: 100%;
  }

  .role-button {
    flex: 1;
    padding: 9px 5px;
    font-size: 10px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quick-card {
    min-height: 70px;
    padding: 12px;
  }

  .booking-card,
  .empty-booking {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-actions {
    justify-content: flex-start;
  }

  .section-heading {
    gap: 13px;
  }

  .search-box {
    width: 100%;
  }

  .catalog-filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-chips {
    max-height: 75px;
    overflow: auto;
  }

  .screen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .screen-card {
    min-height: 98px;
    padding: 11px;
  }

  .screen-toolbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  .screen-title-wrap {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #backButton {
    grid-column: 1;
    grid-row: 2;
  }

  #fullScreenButton {
    grid-column: 2;
    grid-row: 2;
  }

  #screenFrame {
    height: 74vh;
    min-height: 500px;
  }

  .bottom-nav {
    display: flex;
  }

  .toast {
    bottom: 77px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .screen-grid {
    grid-template-columns: 1fr;
  }
}
