:root {
  --bg: #090912;
  --panel: rgba(20, 19, 31, 0.82);
  --panel-solid: #151421;
  --ink: #fbfaff;
  --muted: #b1aebf;
  --soft: #7f7891;
  --line: rgba(228, 225, 255, 0.17);
  --line-strong: rgba(228, 225, 255, 0.32);
  --blue: #9aa6d8;
  --rose: #d4a1ad;
  --copper: #b98b79;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  background:
    radial-gradient(circle at 72% 14%, rgba(154, 166, 216, 0.28), transparent 30%),
    radial-gradient(circle at 20% 92%, rgba(212, 161, 173, 0.18), transparent 28%),
    linear-gradient(135deg, #090912 0%, #12111f 52%, #08080e 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.72), transparent);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 42%, rgba(228, 225, 255, 0.055) 42% 42.1%, transparent 42.1%),
    linear-gradient(68deg, transparent 0 62%, rgba(212, 161, 173, 0.07) 62% 62.12%, transparent 62.12%);
}

a,
button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

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

.preview-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(380px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
}

.preview-copy {
  position: relative;
  z-index: 2;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  background: rgba(251, 250, 255, 0.05);
}

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

.brand-mark {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.eyebrow,
.section-title p,
.app-top p,
.points-panel span,
.mini-metrics span,
.privacy-card p,
.ambient-card span {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 16px;
  border: 1px solid rgba(154, 166, 216, 0.24);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(154, 166, 216, 0.08);
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 0.88;
}

.preview-copy > p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.72;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 900;
}

.primary-action {
  color: #0c0b13;
  background: var(--ink);
  box-shadow: 0 20px 50px rgba(251, 250, 255, 0.16);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(251, 250, 255, 0.05);
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 760px;
}

.ambient-card {
  position: absolute;
  z-index: 1;
  width: 170px;
  border: 1px solid rgba(228, 225, 255, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: rgba(15, 14, 24, 0.72);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.ambient-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1;
}

.top-card {
  top: 88px;
  left: 18px;
}

.bottom-card {
  right: 22px;
  bottom: 92px;
}

.phone-shell {
  position: relative;
  z-index: 2;
  width: min(396px, 100%);
  border: 1px solid rgba(228, 225, 255, 0.34);
  border-radius: 48px;
  padding: 12px;
  background:
    linear-gradient(142deg, rgba(228, 225, 255, 0.22), transparent 34%),
    linear-gradient(318deg, rgba(212, 161, 173, 0.18), transparent 36%),
    #0b0a12;
  box-shadow:
    0 44px 120px rgba(0, 0, 0, 0.58),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease;
}

.phone-hardware {
  position: relative;
  border-radius: 38px;
  padding: 14px;
  background: #05050a;
}

.speaker {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 4;
  width: 82px;
  height: 24px;
  border: 1px solid rgba(228, 225, 255, 0.14);
  border-radius: 999px;
  background: #080812;
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 784px;
  overflow: hidden;
  border: 1px solid rgba(228, 225, 255, 0.18);
  border-radius: 30px;
  padding: 18px 16px 82px;
  background:
    linear-gradient(155deg, rgba(154, 166, 216, 0.18), transparent 32%),
    linear-gradient(24deg, rgba(212, 161, 173, 0.15), transparent 34%),
    #10101a;
}

.phone-screen::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.42), transparent);
}

.phone-screen > * {
  position: relative;
  z-index: 1;
}

.mobile-topbar,
.app-top,
.section-title,
.privacy-card,
.tab-bar,
.mobile-task {
  display: flex;
  align-items: center;
}

.mobile-topbar {
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-glyphs {
  display: flex;
  gap: 5px;
  align-items: end;
}

.status-glyphs i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: rgba(251, 250, 255, 0.72);
}

.status-glyphs i:nth-child(1) {
  height: 8px;
}

.status-glyphs i:nth-child(2) {
  height: 11px;
}

.status-glyphs i:nth-child(3) {
  width: 16px;
  height: 8px;
  border: 1px solid rgba(251, 250, 255, 0.6);
  background: transparent;
}

.app-top {
  gap: 12px;
  margin-bottom: 10px;
}

.app-top img {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  object-fit: cover;
}

.app-top div {
  min-width: 0;
  flex: 1;
}

.app-top p,
.app-top h2,
.section-title p,
.section-title h3,
.privacy-card p,
.privacy-card strong {
  margin: 0;
}

.app-top h2 {
  margin-top: 3px;
  font-size: 1.45rem;
  line-height: 1;
}

.app-top button,
.section-title button,
.claim-button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #0b0a12;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.app-top button {
  min-width: 46px;
  min-height: 34px;
}

.app-top button.paused {
  background: #ff786f;
}

.points-panel,
.mission-card,
.privacy-card,
.mini-metrics article {
  border: 1px solid rgba(228, 225, 255, 0.15);
  border-radius: 22px;
  background: rgba(12, 12, 20, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.points-panel {
  overflow: hidden;
  margin-bottom: 10px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(251, 250, 255, 0.96), rgba(154, 166, 216, 0.92) 58%, rgba(212, 161, 173, 0.88)),
    #fff;
  color: #11111f;
}

.points-panel span {
  color: rgba(17, 17, 31, 0.62);
}

.points-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: 0.8;
}

.points-panel p {
  margin: 8px 0 0;
  color: rgba(17, 17, 31, 0.72);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(17, 17, 31, 0.16);
}

.progress-track span {
  display: block;
  width: 9%;
  height: 100%;
  border-radius: inherit;
  background: #11111f;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.mini-metrics article {
  min-width: 0;
  padding: 10px;
}

.mini-metrics span {
  display: block;
  color: var(--soft);
  font-size: 0.62rem;
}

.mini-metrics strong {
  display: block;
  margin-top: 7px;
  font-size: 1.16rem;
  line-height: 1;
}

.mission-card {
  padding: 12px;
}

.section-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-title h3 {
  margin-top: 4px;
  font-size: 1.14rem;
}

.section-title button {
  min-height: 36px;
  padding: 0 12px;
  background: var(--rose);
}

.section-title button:disabled,
.claim-button:disabled {
  cursor: default;
  background: rgba(251, 250, 255, 0.12);
  color: var(--muted);
}

.mobile-task-list {
  display: grid;
  gap: 7px;
}

.mobile-task {
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(228, 225, 255, 0.12);
  border-radius: 16px;
  padding: 8px 10px;
  background: rgba(251, 250, 255, 0.045);
}

.mobile-task div {
  min-width: 0;
}

.mobile-task span {
  color: var(--rose);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-task h4 {
  margin: 3px 0 0;
  font-size: 0.86rem;
  line-height: 1.12;
}

.claim-button {
  min-width: 58px;
  min-height: 34px;
  padding: 0 10px;
}

.privacy-card {
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 12px;
}

.privacy-card strong {
  display: block;
  margin-top: 5px;
}

.toggle-list {
  display: grid;
  gap: 5px;
}

.toggle-list label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.toggle-list input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.tab-bar {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  justify-content: space-between;
  border: 1px solid rgba(228, 225, 255, 0.14);
  border-radius: 22px;
  padding: 7px;
  background: rgba(7, 7, 13, 0.82);
  backdrop-filter: blur(18px);
}

.tab-bar a {
  display: inline-flex;
  min-height: 38px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 900;
}

.tab-bar a.active {
  color: #0b0a12;
  background: var(--ink);
}

@media (max-width: 930px) {
  .preview-page {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .preview-copy {
    max-width: 720px;
  }

  .phone-stage {
    min-height: auto;
    padding-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .preview-page {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 3rem;
  }

  .preview-copy > p {
    font-size: 1rem;
  }

  .ambient-card {
    display: none;
  }

  .phone-shell {
    border-radius: 36px;
    padding: 8px;
  }

  .phone-hardware {
    border-radius: 30px;
    padding: 10px;
  }

  .phone-screen {
    height: 704px;
    border-radius: 24px;
    padding: 18px 12px 74px;
  }

  .points-panel strong {
    font-size: 4rem;
  }

  .mini-metrics strong {
    font-size: 1.05rem;
  }
}
