:root {
  --bg: #f6f1ea;
  --panel: #fffdf8;
  --panel-soft: #fbf5eb;
  --line: rgba(52, 39, 29, 0.1);
  --text: #16110d;
  --muted: #74665b;
  --accent: #cf171d;
  --accent-deep: #a91017;
  --gold: #ffcf43;
  --dark: #17120f;
  --shadow: 0 28px 80px rgba(28, 21, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 213, 84, 0.5), transparent 22%),
    linear-gradient(180deg, #fffaf3 0%, #f4ece1 100%);
}

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

.hub-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: grid;
  gap: 24px;
}

.hero-shell,
.route-card,
.table-panel {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
  box-shadow: var(--shadow);
}

.hero-shell {
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 84%, rgba(255, 214, 102, 0.34), transparent 20%),
    linear-gradient(180deg, #fffdfa 0%, #fbf5ec 100%);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 34px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  background: var(--accent);
  color: transparent;
  font-family: "Syne", sans-serif;
  font-size: 0;
}

.brand-name {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.topnav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.topnav a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff7f1;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(169, 16, 23, 0.22);
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  gap: 8px;
  align-items: center;
  padding: 18px 34px 34px;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.eyebrow,
.card-kicker,
.mini-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b7766;
}

.hero-copy h1 {
  margin: 0;
  max-width: 8ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(3.4rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.lede {
  margin: 0;
  max-width: 42ch;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta,
.card-link,
.table-chip,
.topbar-cta {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.cta.primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8f3;
  box-shadow: 0 18px 34px rgba(169, 16, 23, 0.24);
}

.cta.ghost {
  border: 1px solid rgba(70, 54, 39, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.visual-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 205, 72, 0.24) 0%, rgba(255, 205, 72, 0.04) 58%, rgba(255, 205, 72, 0) 70%);
}

.hero-orbit-inner {
  width: 320px;
  height: 320px;
  background: transparent;
  border: 1px dashed rgba(206, 23, 29, 0.18);
}

.plate-placeholder {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0%, rgba(251, 244, 233, 0.96) 66%, rgba(238, 224, 202, 0.82) 100%);
  box-shadow:
    0 30px 60px rgba(31, 24, 18, 0.12),
    inset 0 0 0 16px rgba(255, 255, 255, 0.76);
  z-index: 1;
}

.plate-placeholder span {
  max-width: 16ch;
  text-align: center;
  color: #9b8b7d;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.device {
  position: absolute;
  border-radius: 34px;
  background: #13100e;
  box-shadow: 0 26px 56px rgba(24, 18, 13, 0.24);
}

.device-screen {
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 244, 233, 0.96) 100%);
  z-index: 2;
}

.device-desktop {
  width: min(100%, 520px);
  height: 330px;
  left: 28px;
  top: 36px;
}

.device-tablet {
  width: 182px;
  height: 270px;
  right: 10px;
  top: 52px;
  z-index: 3;
}

.device-mobile {
  width: 112px;
  height: 210px;
  left: 220px;
  bottom: 20px;
  z-index: 4;
}

.ui-shell {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 240, 229, 0.98) 100%);
}

.ui-shell.tablet,
.ui-shell.mobile {
  padding: 10px;
}

.ui-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #605349;
}

.ui-topbar span:last-child {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff7f1;
}

.ui-stage {
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 201, 67, 0.18), transparent 34%),
    linear-gradient(180deg, #fffdfa 0%, #f6eee4 100%);
  border: 1px solid rgba(70, 54, 39, 0.08);
  position: relative;
}

.ui-stage::before,
.ui-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.ui-stage::before {
  width: 34%;
  height: 10px;
  left: 12px;
  top: 12px;
  background: rgba(31, 24, 18, 0.08);
}

.ui-stage::after {
  width: 22%;
  height: 36px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(180deg, #ef242d 0%, #d71821 100%);
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.route-card {
  border-radius: 32px;
  padding: 30px;
  overflow: hidden;
}

.customer-card {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 103, 0.46), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #fff7ea 100%);
}

.admin-card {
  background:
    radial-gradient(circle at top right, rgba(255, 207, 67, 0.16), transparent 26%),
    linear-gradient(180deg, #261b15 0%, #17110e 100%);
  color: #fff4e3;
}

.admin-card .card-kicker,
.admin-card p {
  color: rgba(255, 241, 220, 0.75);
}

.route-card h2,
.section-heading h2 {
  margin: 8px 0 10px;
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.route-card p,
.section-heading p {
  margin: 0;
  max-width: 34ch;
  line-height: 1.7;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(21, 16, 14, 0.08);
  font-weight: 800;
}

.admin-card .card-link {
  background: rgba(255, 255, 255, 0.1);
}

.table-panel {
  border-radius: 32px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 217, 112, 0.38), transparent 22%),
    rgba(255, 252, 246, 0.92);
}

.section-heading {
  display: grid;
  gap: 8px;
}

.table-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 14px;
}

.table-chip {
  padding: 16px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(70, 54, 39, 0.08);
  display: grid;
  gap: 4px;
  text-align: center;
}

.table-chip span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-chip strong {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
}

.cta:hover,
.cta:focus-visible,
.card-link:hover,
.card-link:focus-visible,
.table-chip:hover,
.table-chip:focus-visible,
.topbar-cta:hover,
.topbar-cta:focus-visible {
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topnav {
    justify-self: start;
    flex-wrap: wrap;
  }

  .hero-stage {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .visual-stage {
    min-height: 420px;
  }

  .device-desktop {
    width: min(100%, 420px);
    height: 270px;
    left: 50%;
    top: 52px;
    transform: translateX(-50%);
  }

  .device-tablet {
    right: 26px;
    top: 62px;
  }

  .device-mobile {
    left: 62px;
    bottom: 12px;
  }
}

@media (max-width: 760px) {
  .hub-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 10px;
    gap: 18px;
  }

  .hero-shell,
  .route-card,
  .table-panel {
    border-radius: 26px;
  }

  .topbar,
  .hero-stage,
  .route-card,
  .table-panel {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topnav {
    display: none;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 3.35rem;
  }

  .lede,
  .route-card p,
  .section-heading p {
    max-width: none;
  }

  .visual-stage {
    min-height: 300px;
  }

  .device-desktop {
    width: min(100%, 290px);
    height: 188px;
    top: 24px;
  }

  .device-tablet {
    width: 108px;
    height: 158px;
    top: 40px;
    right: 6px;
  }

  .device-mobile {
    width: 70px;
    height: 126px;
    left: 22px;
    bottom: 8px;
  }

  .plate-placeholder {
    width: 168px;
    height: 168px;
  }

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

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