:root {
  --bg: #050506;
  --surface: #0d0d10;
  --surface-2: #151518;
  --surface-3: #1d1d22;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f5f8;
  --muted: rgba(247, 245, 248, 0.64);
  --pink: #ff7bc8;
  --pink-strong: #ff4fb6;
  --cyan: #62dcf5;
  --violet: #8a5bff;
  --lime: #9eff74;
  --yellow: #ffe57a;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(255, 123, 200, 0.08), transparent 26rem),
    radial-gradient(circle at 90% 38%, rgba(98, 220, 245, 0.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 28px;
  background: rgba(5, 5, 6, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-cta,
.app-store-button,
.button,
.pink-pill {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.app-icon {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.header-cta:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 38px;
  padding: 0 16px;
  color: #120b10;
  background: var(--pink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: 46px;
  width: calc(100% - 48px);
  max-width: var(--max);
  min-height: 780px;
  margin: 0 auto;
  padding: 56px 0 70px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1 {
  max-width: 600px;
  margin-bottom: 22px;
  font-size: 72px;
  line-height: 0.95;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 880;
}

.hero-lede,
.section-heading p,
.download-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.app-store-button {
  border-radius: 8px;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 18px;
  color: #ffffff;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.app-store-button:hover {
  border-color: rgba(255, 255, 255, 0.46);
}

.app-store-button small {
  display: block;
  margin-bottom: 1px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
}

.apple-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: 0 0 auto;
}

.hero-device-wall {
  position: relative;
  min-height: 665px;
}

.phone {
  position: absolute;
  width: 260px;
  padding: 9px;
  background: #07070a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.phone::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  z-index: 3;
  width: 76px;
  height: 18px;
  transform: translateX(-50%);
  background: #050506;
  border-radius: 999px;
}

.phone-screen {
  min-height: 540px;
  overflow: hidden;
  background: #111114;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 25px;
}

.phone-main {
  top: 18px;
  right: 140px;
  z-index: 3;
  width: 304px;
}

.phone-main .phone-screen {
  min-height: 618px;
}

.phone-library {
  top: 92px;
  right: 0;
  z-index: 2;
  width: 228px;
  transform: rotate(3deg);
}

.phone-builder {
  left: 22px;
  bottom: 10px;
  z-index: 1;
  width: 218px;
  transform: rotate(-3deg);
  opacity: 0.96;
}

.phone-status {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  padding: 22px 18px 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 850;
}

.app-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 16px 14px;
}

.mini-app-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.app-topbar strong,
.screen-title strong {
  display: block;
  font-size: 16px;
}

.app-topbar span,
.screen-title span,
.label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.hero-wallpaper {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 318px;
  margin: 0 16px;
  padding-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.hero-wallpaper::before,
.theme-preview::before,
.builder-preview::before {
  content: "";
  position: absolute;
  inset: 0;
}

.wallpaper-sakura::before {
  background:
    radial-gradient(circle at 28% 23%, rgba(255, 229, 122, 0.94) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 34%, rgba(98, 220, 245, 0.94) 0 10%, transparent 11%),
    radial-gradient(circle at 45% 72%, rgba(255, 123, 200, 0.8) 0 13%, transparent 14%),
    linear-gradient(145deg, #7a4bff, #ff6fc6 52%, #58d8ef);
}

.wallpaper-aurora::before {
  background:
    radial-gradient(circle at 78% 24%, rgba(158, 255, 116, 0.84) 0 12%, transparent 13%),
    radial-gradient(circle at 20% 72%, rgba(255, 123, 200, 0.84) 0 12%, transparent 13%),
    linear-gradient(145deg, #10131d, #4079ef 46%, #5df0cc);
}

.wallpaper-noir::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #08080a, #373740 50%, #111114);
  background-size: 24px 24px, 24px 24px, auto;
}

.lock-time,
.lock-date {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.36);
}

.lock-time {
  font-size: 56px;
  line-height: 1;
  font-weight: 950;
}

.lock-date {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 850;
}

.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 16px;
  padding: 13px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-card strong {
  display: block;
  margin-top: 4px;
}

.app-card button,
.pink-pill {
  min-height: 38px;
  padding: 0 16px;
  color: #140811;
  background: var(--pink);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.thumb-row,
.palette-row {
  display: flex;
  gap: 9px;
  margin: 0 16px;
}

.thumb-row span {
  display: block;
  flex: 1;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.screen-title {
  margin: 12px 14px 14px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 12px;
}

.collection-grid span {
  display: block;
  min-height: 106px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.wallpaper-a {
  background: linear-gradient(135deg, #7b4cff, #ff6fc6);
}

.wallpaper-b {
  background: linear-gradient(135deg, #111a22, #62dcf5);
}

.wallpaper-c {
  background: linear-gradient(135deg, #ffe57a, #ff7bc8);
}

.wallpaper-d {
  background: linear-gradient(135deg, #17171b, #9eff74);
}

.wallpaper-e {
  background: linear-gradient(135deg, #2c2c33, #ececf0);
}

.wallpaper-f {
  background: linear-gradient(135deg, #62dcf5, #ff7bc8 54%, #ffe57a);
}

.bottom-tabbar {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  display: flex;
  justify-content: space-around;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.bottom-tabbar span {
  width: 18px;
  height: 4px;
  background: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
}

.bottom-tabbar .is-active {
  background: var(--pink);
}

.builder-screen {
  padding-bottom: 18px;
}

.builder-preview {
  position: relative;
  min-height: 132px;
  margin: 0 14px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.control-lines {
  display: grid;
  gap: 9px;
  margin: 0 14px 14px;
}

.control-lines span {
  height: 36px;
  background: #dedee3;
  opacity: 0.9;
  border-radius: 5px;
}

.swatch {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.swatch-pink {
  background: var(--pink);
}

.swatch-violet {
  background: var(--violet);
}

.swatch-blue {
  background: var(--cyan);
}

.swatch-yellow {
  background: var(--yellow);
}

.pink-pill {
  width: calc(100% - 28px);
  margin: 18px 14px 0;
}

.section {
  padding: 88px 0;
}

.section-dark,
.app-flow-section {
  background: #101013;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.theme-showcase,
.flow-panel,
.download-section {
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
  text-align: center;
}

.theme-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.theme-card,
.flow-step-card,
.download-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.theme-card {
  overflow: hidden;
}

.theme-preview {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.theme-preview::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.theme-meta {
  padding: 22px;
}

.theme-meta span,
.flow-step-card span,
.download-label {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.theme-meta strong,
.flow-step-card strong {
  display: block;
  margin: 9px 0 10px;
  font-size: 22px;
}

.theme-meta p,
.flow-step-card p,
.download-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flow-step-card {
  min-height: 220px;
  padding: 26px;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: 42px;
}

.download-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 28px;
}

.download-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.download-card .app-store-button {
  margin-top: 14px;
}

.legal-date {
  margin-bottom: 22px;
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: calc(100% - 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.legal-page {
  width: calc(100% - 48px);
  max-width: 880px;
  margin: 0 auto;
  padding: 88px 0 120px;
}

.legal-content {
  padding: 34px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-content h1 {
  font-size: 56px;
}

.legal-content h2 {
  margin-top: 36px;
  font-size: 28px;
}

.legal-content p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

@media (max-width: 1040px) {
  .hero-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-device-wall {
    min-height: 690px;
  }

  .phone-main {
    right: 50%;
    transform: translateX(44%);
  }

  .phone-library {
    right: 74px;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 18px;
  }

  .site-nav {
    display: none;
  }

  .hero-section,
  .section-heading,
  .theme-showcase,
  .flow-panel,
  .download-section,
  .site-footer {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .hero-copy,
  .hero-lede,
  .hero-actions {
    width: 100%;
    max-width: calc(100vw - 32px);
  }

  .hero-lede {
    max-width: 32ch;
  }

  h1 {
    max-width: 8ch;
    font-size: 50px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede,
  .section-heading p,
  .download-copy p {
    font-size: 17px;
  }

  .hero-actions .app-store-button,
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-device-wall {
    min-height: 640px;
  }

  .phone-main {
    right: auto;
    left: 50%;
    width: 286px;
    transform: translateX(-46%);
  }

  .phone-main .phone-screen {
    min-height: 590px;
  }

  .phone-library {
    display: none;
  }

  .phone-builder {
    left: -2px;
    bottom: 2px;
    width: 170px;
  }

  .theme-showcase,
  .flow-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header-cta {
    display: none;
  }

  .hero-section {
    padding-top: 38px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-device-wall {
    min-height: 600px;
  }

  .phone-main {
    width: 254px;
    transform: translateX(-42%);
  }

  .phone-main .phone-screen {
    min-height: 536px;
  }

  .hero-wallpaper {
    min-height: 270px;
  }

  .lock-time {
    font-size: 48px;
  }

  .phone-builder {
    width: 150px;
  }

  .theme-preview {
    min-height: 300px;
  }

  .section {
    padding: 64px 0;
  }

  .download-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .legal-page {
    width: calc(100% - 32px);
    padding-top: 54px;
  }

  .legal-content {
    padding: 20px;
  }

  .legal-content h1 {
    font-size: 40px;
  }

  .site-footer {
    flex-direction: column;
  }
}
