:root {
  color-scheme: dark;
  --ink: #f8f7f2;
  --muted: #c8c1b7;
  --dim: #8f8a82;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(15, 16, 20, 0.72);
  --blue: #60a5fa;
  --cyan: #7ddbd0;
  --coral: #ff7a59;
  --amber: #f4c95d;
  --violet: #a78bfa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090a0e;
  color: var(--ink);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.82), rgba(7, 8, 12, 0));
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 900;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  gap: clamp(12px, 3vw, 28px);
  color: rgba(248, 247, 242, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.landing {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 104px clamp(20px, 6vw, 96px) 58px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.94) 0%, rgba(7, 8, 12, 0.68) 48%, rgba(7, 8, 12, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 8, 12, 0.94) 0%, rgba(7, 8, 12, 0.16) 56%, rgba(7, 8, 12, 0.52) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 26px;
  color: #ffffff;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
  max-width: 780px;
}

h1 span {
  display: block;
}

.lead {
  width: 100%;
  max-width: 640px;
  margin-bottom: 0;
  color: #f1eadf;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: break-word;
}

.hero-actions,
.signal-strip {
  display: flex;
  flex-wrap: wrap;
}

.hero-actions {
  gap: 10px;
  margin-top: 32px;
}

.hero-actions span {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(9, 10, 14, 0.54);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.hero-actions .primary-pill {
  border-color: rgba(125, 219, 208, 0.58);
  color: #fafffc;
}

.app-stage {
  position: absolute;
  right: clamp(18px, 7vw, 112px);
  bottom: clamp(30px, 8vw, 112px);
  width: min(36vw, 420px);
  min-width: 290px;
  height: min(58vw, 640px);
  max-height: 650px;
  pointer-events: none;
}

.phone {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 78px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #08090d;
  z-index: 2;
}

.phone-main {
  right: 0;
  bottom: 0;
  width: 68%;
  aspect-ratio: 9 / 19.5;
  transform: rotate(4deg);
}

.phone-side {
  left: 0;
  top: 8%;
  width: 48%;
  aspect-ratio: 9 / 19.5;
  transform: rotate(-8deg);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  background: #12131a;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-panel {
  position: absolute;
  right: 12px;
  bottom: 14px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(9, 10, 14, 0.56);
  backdrop-filter: blur(18px);
}

.screen-panel span,
.screen-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.screen-panel strong,
.studio-screen strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 0.94rem;
  line-height: 1.2;
}

.studio-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px 18px 20px;
  background:
    linear-gradient(155deg, rgba(96, 165, 250, 0.34), transparent 46%),
    linear-gradient(22deg, rgba(255, 122, 89, 0.36), transparent 54%),
    #11131a;
}

.generation-bars {
  display: grid;
  gap: 6px;
}

.generation-bars span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

.generation-bars span:nth-child(2) {
  width: 74%;
}

.generation-bars span:nth-child(3) {
  width: 48%;
}

.signal-strip {
  min-height: 12svh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101116;
}

.signal-strip div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 22px clamp(18px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.metric {
  color: #ffffff;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 950;
}

.signal-strip span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 96px);
  background: #f6f2ea;
  color: #151414;
}

.section h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section p:not(.eyebrow) {
  max-width: 560px;
  color: #57514b;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.65;
  font-weight: 650;
}

.section .eyebrow {
  color: #3b7d78;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  min-height: 440px;
}

.wallpaper-tile {
  min-height: 380px;
  border-radius: 8px;
  background-image: url("/hero.png");
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(28, 22, 16, 0.16);
}

.tile-one {
  background-position: 36% 50%;
}

.tile-two {
  margin-top: 54px;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.12), rgba(255, 122, 89, 0.18)),
    url("/hero.png") center / cover;
}

.tile-three {
  margin-top: 24px;
  background:
    linear-gradient(180deg, rgba(244, 201, 93, 0.18), rgba(18, 19, 26, 0.18)),
    url("/hero.png") 70% 50% / cover;
}

.tile-four {
  margin-top: 86px;
  background:
    linear-gradient(180deg, rgba(125, 219, 208, 0.16), rgba(167, 139, 250, 0.18)),
    url("/hero.png") 20% 50% / cover;
}

.studio-section {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  background: #11131a;
  color: var(--ink);
}

.studio-section .eyebrow {
  color: var(--amber);
}

.studio-section p:not(.eyebrow) {
  color: var(--muted);
}

.studio-preview {
  display: grid;
  gap: 14px;
  width: min(620px, 100%);
}

.prompt-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
}

.prompt-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-row strong {
  display: block;
  font-size: clamp(1rem, 2vw, 1.34rem);
  line-height: 1.35;
}

.studio-result {
  height: min(58vw, 520px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.studio-result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: #090a0e;
  color: var(--dim);
  font-size: 0.86rem;
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero {
    min-height: 86svh;
    align-items: center;
    padding-top: 96px;
  }

  .app-stage {
    right: -76px;
    bottom: 28px;
    opacity: 0.55;
  }

  .signal-strip,
  .section,
  .studio-section {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

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

  .wallpaper-tile {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 15px 18px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding: 86px 18px 42px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 8, 12, 0.9), rgba(7, 8, 12, 0.5)),
      linear-gradient(0deg, rgba(7, 8, 12, 0.94), rgba(7, 8, 12, 0.22));
  }

  h1 {
    font-size: clamp(3.45rem, 18vw, 5.4rem);
    margin-bottom: 20px;
  }

  .lead {
    max-width: 330px;
    font-size: 1rem;
  }

  .hero-content {
    width: calc(100vw - 36px);
    max-width: 100%;
  }

  .hero-actions {
    max-width: 330px;
    margin-top: 24px;
  }

  .hero-actions span {
    max-width: calc(100vw - 36px);
    min-height: 36px;
    font-size: 0.8rem;
  }

  .app-stage {
    right: -112px;
    bottom: 16px;
    min-width: 250px;
    opacity: 0.34;
  }

  .signal-strip {
    min-height: auto;
  }

  .section {
    padding: 62px 18px;
  }

  .wallpaper-grid {
    gap: 10px;
  }

  .wallpaper-tile {
    min-height: 250px;
  }

  .tile-two,
  .tile-three,
  .tile-four {
    margin-top: 0;
  }

  .studio-result {
    min-height: 300px;
  }

  .footer {
    flex-direction: column;
  }
}
