:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --phone: #111216;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.12);
  --text: #fbf4ea;
  --muted: #a79f96;
  --gold: #efb761;
  --green: #9ed7aa;
  --blue: #70cfe2;
  --red: #ed776f;
  font-family:
    "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(112, 207, 226, 0.16), transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(239, 183, 97, 0.15), transparent 24%),
    linear-gradient(145deg, #07080a, #151312 62%, #090a0c);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(320px, 500px);
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding: 32px;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: min(920px, calc(100vh - 34px));
  min-height: 720px;
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 18%),
    var(--phone);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.phone::-webkit-scrollbar {
  display: none;
}

.phone::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 6;
  display: block;
  height: 10px;
  background: linear-gradient(180deg, rgba(17, 18, 22, 0.98), transparent);
}

.app-top,
.insight-strip,
.data-card,
.profile-card,
.keyword-panel,
.choice-panel,
.compare-panel,
.scene-panel,
.map-card,
.value-card,
.prep-card,
.habit-card {
  margin-inline: 16px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 2px 16px;
}

.city-line,
.label {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  font-size: 24px;
}

.insight-strip {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(112, 207, 226, 0.08);
}

.insight-strip p:last-child {
  margin: 4px 0 0;
  color: #d8d2ca;
  font-size: 13px;
  line-height: 1.55;
}

.data-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(112, 207, 226, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(112, 207, 226, 0.12), rgba(239, 183, 97, 0.06)),
    rgba(255, 255, 255, 0.06);
}

.data-card h3 {
  margin: 5px 0 5px;
  font-size: 15px;
  line-height: 1.25;
}

.data-card p:last-child {
  margin: 0;
  color: #cfc7bd;
  font-size: 12px;
  line-height: 1.5;
}

#data-mode {
  display: grid;
  min-width: 52px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(158, 215, 170, 0.32);
  border-radius: 999px;
  color: #dff5e3;
  background: rgba(158, 215, 170, 0.14);
  font-size: 11px;
  font-weight: 850;
}

.profile-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(239, 183, 97, 0.17);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(239, 183, 97, 0.11), rgba(237, 119, 111, 0.07)),
    rgba(255, 255, 255, 0.055);
}

.profile-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.profile-card h3 {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.28;
}

#profile-confidence {
  display: grid;
  min-width: 54px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(239, 183, 97, 0.34);
  border-radius: 999px;
  color: #ffe4b8;
  background: rgba(239, 183, 97, 0.13);
  font-size: 12px;
  font-weight: 850;
}

.activity-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 13px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.activity-strip::-webkit-scrollbar {
  display: none;
}

.activity-strip span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #e8ded1;
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
}

#profile-signal {
  margin: 10px 0 0;
  color: #cfc7bd;
  font-size: 12px;
  line-height: 1.55;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(158, 215, 170, 0.13);
}

.hero-card {
  position: relative;
  min-height: 430px;
  margin: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #171717;
}

.hero-image {
  position: absolute;
  inset: 0;
  background: var(--hero-image) center / cover;
  transform: scale(1.03);
  transition: background 250ms ease, transform 500ms ease;
}

.hero-card:hover .hero-image {
  transform: scale(1.07);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2) 30%, rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 60% 22%, rgba(239, 183, 97, 0.24), transparent 32%);
}

.hero-content {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
}

.hero-meta,
.quick-facts,
.action-row,
.scene-scroller {
  display: flex;
  align-items: center;
}

.hero-meta {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta span,
.quick-facts span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.hero-meta span {
  padding: 7px 10px;
  color: #fff5e8;
  font-size: 12px;
  font-weight: 760;
}

.hero-content h2 {
  max-width: 320px;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-content p {
  margin-bottom: 16px;
  color: #e6ddd1;
  font-size: 14px;
  line-height: 1.68;
}

.quick-facts {
  flex-wrap: wrap;
  gap: 8px;
}

.quick-facts span {
  padding: 8px 10px;
  font-size: 12px;
}

.action-row {
  gap: 10px;
  padding: 0 16px 16px;
}

.action-row button,
.scene-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
}

.action-row button {
  flex: 1;
  min-width: 0;
  height: 42px;
  font-size: 13px;
}

.action-row button:active,
.scene-pill.active {
  border-color: rgba(239, 183, 97, 0.8);
  background: rgba(239, 183, 97, 0.18);
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  margin: 0 16px 14px;
}

.main-cta,
.ghost-cta,
.close-flow {
  border: 1px solid var(--line);
  cursor: pointer;
}

.main-cta,
.ghost-cta {
  height: 48px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 780;
}

.main-cta {
  color: #17110a;
  border-color: transparent;
  background: var(--gold);
}

.ghost-cta {
  background: var(--panel);
}

.scene-panel,
.keyword-panel,
.choice-panel,
.compare-panel,
.map-card,
.value-card,
.prep-card,
.habit-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.scene-panel,
.map-card,
.value-card,
.prep-card,
.keyword-panel,
.choice-panel,
.compare-panel {
  margin-bottom: 14px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.section-title strong {
  font-size: 14px;
}

.scene-scroller {
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.keyword-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.keyword-row::-webkit-scrollbar {
  display: none;
}

.keyword-chip {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #e9dfd3;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  cursor: pointer;
}

.keyword-chip.active {
  border-color: rgba(112, 207, 226, 0.7);
  color: #e8fbff;
  background: rgba(112, 207, 226, 0.16);
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: inherit;
  background: rgba(0, 0, 0, 0.15);
  text-align: left;
  cursor: pointer;
}

.choice-item.active {
  border-color: rgba(239, 183, 97, 0.62);
  background: rgba(239, 183, 97, 0.12);
}

.choice-rank {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  color: #17110a;
  background: var(--gold);
  font-weight: 850;
}

.choice-item h4 {
  margin: 0 0 5px;
  font-size: 14px;
}

.choice-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.choice-score {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.compare-grid::-webkit-scrollbar {
  display: none;
}

.compare-card {
  min-width: 118px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
}

.compare-card.active {
  border-color: rgba(112, 207, 226, 0.52);
  background: rgba(112, 207, 226, 0.1);
}

.compare-card h4 {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.3;
}

.compare-metric {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 11px;
}

.compare-metric strong {
  color: #f5eadc;
  font-size: 11px;
  text-align: right;
}

.scene-scroller::-webkit-scrollbar {
  display: none;
}

.scene-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: #e9dfd3;
  font-size: 13px;
}

.map-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  align-items: stretch;
}

.mini-map {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  border-radius: 20px;
  background: #1a2022;
}

.map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.river {
  position: absolute;
  width: 170px;
  height: 42px;
  left: -16px;
  top: 54px;
  border-radius: 999px;
  background: rgba(112, 207, 226, 0.32);
  transform: rotate(-22deg);
}

.route {
  position: absolute;
  left: 38px;
  top: 88px;
  width: 74px;
  border-top: 3px dashed var(--gold);
  transform: rotate(-28deg);
}

.map-pin {
  position: absolute;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.map-pin.restaurant {
  right: 18px;
  top: 38px;
  background: var(--red);
}

.map-pin.parking {
  left: 20px;
  bottom: 20px;
  color: #071113;
  background: var(--blue);
}

.map-copy h3,
.value-card h3 {
  margin: 5px 0 7px;
  font-size: 18px;
  line-height: 1.24;
}

.map-copy p:last-child,
.value-card p,
.prep-card li {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.value-card {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 16px;
  align-items: center;
}

.value-ring {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 7px solid rgba(239, 183, 97, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 22px;
  font-weight: 850;
}

.prep-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prep-card li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prep-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.habit-card {
  margin-bottom: 92px;
}

.flow-panel {
  display: none;
  margin: 0 16px 92px;
  padding: 16px;
  border: 1px solid rgba(239, 183, 97, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(239, 183, 97, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.08);
}

.flow-panel.open {
  display: block;
}

.flow-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.flow-head h3 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.18;
}

.close-flow {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item,
.permission-item,
.saved-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.16);
}

.step-dot {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #17110a;
  background: var(--gold);
  font-weight: 850;
}

.timeline-item h4,
.permission-item h4,
.saved-item h4 {
  margin: 0 0 5px;
  font-size: 15px;
}

.timeline-item p,
.permission-item p,
.saved-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.permission-list {
  display: grid;
  gap: 10px;
}

.permission-item {
  grid-template-columns: 1fr auto;
}

.switch {
  position: relative;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(158, 215, 170, 0.22);
}

.switch::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
}

.saved-list {
  display: grid;
  gap: 10px;
}

.habit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.habit-grid div {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.habit-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.habit-grid strong {
  font-size: 15px;
}

.bottom-nav {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 16px 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.86);
  backdrop-filter: blur(24px);
}

.bottom-nav a {
  padding: 10px 6px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.bottom-nav a.active {
  color: #15110c;
  background: var(--gold);
  font-weight: 800;
}

.desktop-notes {
  max-width: 500px;
}

.desktop-notes h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.desktop-notes p:not(.label) {
  color: #c6bcb1;
  font-size: 18px;
  line-height: 1.85;
}

.note-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.note-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e6ddd1;
}

@media (max-width: 900px) {
  .stage {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: var(--phone);
  }

  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .desktop-notes {
    display: none;
  }
}

@media (max-width: 380px) {
  .hero-content h2 {
    font-size: 30px;
  }

  .map-card {
    grid-template-columns: 1fr;
  }

  .mini-map {
    min-height: 156px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }
}
