:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: #101017;
  --panel-2: #171720;
  --ink: #f7f1ea;
  --muted: #a9a1ad;
  --dim: #726b78;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #b983ff;
  --rose: #ff8a9a;
  --gold: #f5b76b;
  --teal: #6bd6c9;
  --danger: #ff6d77;
  --radius: 8px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(185, 131, 255, 0.13), transparent 34%),
    linear-gradient(255deg, rgba(107, 214, 201, 0.08), transparent 32%),
    #050507;
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.phone {
  width: min(100%, 402px);
  height: min(860px, calc(100vh - 40px));
  min-height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background: #050507;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

#app,
.screen {
  height: 100%;
  min-height: 100%;
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 18% 8%, rgba(185, 131, 255, 0.18), transparent 28%),
    radial-gradient(circle at 100% 16%, rgba(245, 183, 107, 0.1), transparent 25%),
    #07070a;
}

.screen-main {
  flex: 1;
  overflow: auto;
  padding: 18px 18px 94px;
  scrollbar-width: none;
}

.screen-main::-webkit-scrollbar {
  display: none;
}

.full-main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 0;
  flex: 0 0 auto;
}

.topbar h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 20px;
}

.brand-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, var(--rose), var(--violet) 48%, var(--teal)),
    #fff;
  box-shadow: 0 0 28px rgba(185, 131, 255, 0.42);
}

.hero-media {
  min-height: 310px;
  border-radius: 0;
  margin: -20px -20px 0;
  background-image:
    linear-gradient(180deg, rgba(7, 7, 10, 0.03), #07070a 94%),
    url("https://images.unsplash.com/photo-1529333166437-7750a6dd5a70?auto=format&fit=crop&w=900&q=85");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-media.love {
  background-image:
    linear-gradient(180deg, rgba(7, 7, 10, 0), #07070a 94%),
    url("https://images.unsplash.com/photo-1516589178581-6cd7833ae3b2?auto=format&fit=crop&w=900&q=85");
}

.hero-media.share {
  background-image:
    linear-gradient(180deg, rgba(7, 7, 10, 0.04), #07070a 94%),
    url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=900&q=85");
}

.hero-copy {
  margin-top: auto;
  padding-top: 26px;
}

.hero-copy h1,
.splash-title {
  margin: 0;
  font-size: 43px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p,
.muted {
  color: var(--muted);
  line-height: 1.5;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 52px;
  border-radius: var(--radius);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  font-weight: 760;
  color: #100d15;
}

.primary-btn {
  background: linear-gradient(135deg, #f7efe7, #f0b77a 52%, #c79dff);
  box-shadow: 0 16px 40px rgba(199, 157, 255, 0.2);
}

.secondary-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.ghost-btn {
  min-height: 44px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
}

.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.progress-dots {
  display: flex;
  gap: 7px;
  margin: 18px 0 8px;
}

.progress-dots span {
  height: 5px;
  width: 24px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.17);
}

.progress-dots .active {
  background: var(--gold);
}

.splash {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.16), #050507 90%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=85");
  background-size: cover;
  background-position: center;
}

.splash-center {
  margin-top: auto;
  padding-bottom: 34px;
}

.splash-title {
  font-size: 56px;
}

.tagline {
  max-width: 270px;
  color: rgba(247, 241, 234, 0.78);
  line-height: 1.45;
  margin: 12px 0 0;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(247, 241, 234, 0.86);
  font-size: 13px;
}

.auth-panel {
  padding: 22px 0 4px;
}

.input {
  width: 100%;
  min-height: 52px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.input::placeholder {
  color: var(--dim);
}

.home-hero {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(7, 7, 10, 0.91)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=85");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.home-hero h1 {
  margin: 0;
  max-width: 270px;
  font-size: 31px;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 16px;
}

.section-title button {
  color: var(--gold);
  background: transparent;
  border: 0;
  font-weight: 740;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tile,
.memory-card,
.space-card,
.notification,
.profile-row,
.story-scene,
.style-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.065);
}

.tile {
  min-height: 102px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: var(--ink);
}

.tile strong {
  font-size: 15px;
}

.tile span {
  color: var(--muted);
  font-size: 12px;
}

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.h-scroll::-webkit-scrollbar {
  display: none;
}

.memory-card {
  min-height: 180px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.memory-card div {
  width: 100%;
  padding: 44px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.83));
}

.memory-card strong,
.memory-card span {
  display: block;
}

.memory-card span,
.small {
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(14, 14, 19, 0.86);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 5px;
  z-index: 10;
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  border-radius: 15px;
}

.nav-btn.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

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

.choice {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  text-align: left;
}

.choice.active {
  border-color: rgba(245, 183, 107, 0.8);
  background: rgba(245, 183, 107, 0.12);
}

.choice i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--gold);
}

.upload-zone {
  min-height: 160px;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.media-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 7px;
}

.story-card {
  border-radius: var(--radius);
  border: 1px solid rgba(245, 183, 107, 0.22);
  background: rgba(245, 183, 107, 0.08);
  padding: 15px;
}

.story-card h3 {
  margin: 0 0 8px;
  line-height: 1.15;
}

.story-scene {
  padding: 13px;
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.story-scene strong {
  font-size: 14px;
}

.style-grid {
  display: grid;
  gap: 10px;
}

.style-card {
  min-height: 116px;
  padding: 12px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
}

.style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.style-card div {
  position: relative;
}

.render-orbit {
  width: 210px;
  height: 210px;
  margin: 42px auto 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  position: relative;
}

.render-orbit::before,
.render-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245, 183, 107, 0.34);
}

.render-orbit::before {
  inset: 28px;
}

.render-orbit::after {
  inset: 64px;
  background:
    linear-gradient(135deg, rgba(255, 138, 154, 0.25), rgba(107, 214, 201, 0.17)),
    #14131c;
  box-shadow: 0 0 50px rgba(185, 131, 255, 0.22);
}

.render-orbit strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
}

.progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 76%;
  background: linear-gradient(90deg, var(--gold), var(--rose), var(--teal));
}

.video-preview {
  min-height: 410px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=85");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid var(--line);
}

.video-preview h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1;
}

.space-card,
.notification,
.profile-row {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-stack {
  display: flex;
  flex: 0 0 auto;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #101017;
  margin-left: -8px;
  background-size: cover;
  background-position: center;
}

.avatar:first-child {
  margin-left: 0;
}

.grow {
  flex: 1;
}

.profile-head {
  text-align: center;
  padding: 24px 0 10px;
}

.profile-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background-image: url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=400&q=85");
  background-size: cover;
  background-position: center;
  border: 3px solid rgba(255, 255, 255, 0.18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 20px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
}

.stat strong,
.stat span {
  display: block;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.notes {
  max-width: 430px;
}

.notes .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 780;
}

.notes h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.9;
}

.notes p {
  color: var(--muted);
  line-height: 1.65;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.note-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: rgba(247, 241, 234, 0.86);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 860px) {
  .stage {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .notes {
    display: none;
  }

  .phone {
    height: calc(100vh - 28px);
    min-height: 660px;
    margin: 0 auto;
  }
}

@media (max-width: 430px) {
  .stage {
    padding: 0;
  }

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