:root {
  --page-bg: #cfdce7;
  --page-glow: rgba(255, 255, 255, 0.6);
  --shell-bg: #ffffff;
  --shell-border: rgba(42, 24, 27, 0.1);
  --ink: #241316;
  --muted: #675b5f;
  --muted-strong: #44393c;
  --lavender: #e7e3fa;
  --lavender-deep: #d8d1f2;
  --lavender-line: rgba(142, 130, 192, 0.18);
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --stroke: rgba(42, 24, 27, 0.12);
  --accent: #2b171b;
  --shadow: 0 24px 56px rgba(43, 29, 37, 0.1);
  --shadow-soft: 0 16px 32px rgba(43, 29, 37, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: clip;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 26%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.4), transparent 22%),
    linear-gradient(180deg, #d8e4ee 0%, var(--page-bg) 100%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(97, 84, 173, 0.34);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  display: block;
}

.landing-body {
  padding: 14px 14px 12px;
}

.page-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 12px 12px 16px;
  border: 1px solid var(--shell-border);
  border-radius: 34px;
  background: var(--shell-bg);
  box-shadow: var(--shadow);
  overflow: clip;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 8px 10px;
}

.topbar > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 18px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 999px;
}

.brand-mark::before {
  inset: 1px 0 6px 4px;
}

.brand-mark::after {
  inset: 6px 4px 1px 0;
}

.brand-copy {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.download-link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid rgba(43, 23, 27, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-main {
  padding: 0 4px 8px;
}

.hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  grid-template-rows: auto auto;
  column-gap: clamp(18px, 3.2vw, 42px);
  row-gap: 10px;
  align-items: start;
}

.hero-stage > * {
  min-width: 0;
}

.hero-copy-column {
  grid-column: 1;
  grid-row: 1;
  padding: 8px 6px 0 8px;
}

.hero-title {
  margin: 0;
  line-height: 0.84;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
}

.hero-title-strong {
  font-size: clamp(58px, 7.4vw, 96px);
  font-weight: 800;
  text-transform: uppercase;
}

.hero-emphasis {
  margin-top: 2px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(50px, 5.4vw, 76px);
  font-style: italic;
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.05em;
}

.hero-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  min-height: 206px;
  padding: 18px 278px 16px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(239, 236, 255, 0.92), rgba(230, 226, 250, 0.94));
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-panel-content {
  position: relative;
  z-index: 1;
  max-width: 418px;
  min-width: 0;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border: 8px solid var(--lavender-line);
  border-radius: 999px;
  pointer-events: none;
}

.hero-panel::before {
  width: 460px;
  height: 214px;
  right: -150px;
  bottom: -86px;
  transform: rotate(-12deg);
}

.hero-panel::after {
  width: 240px;
  height: 114px;
  right: 188px;
  bottom: -22px;
  transform: rotate(-26deg);
}

.hero-panel-copy {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.primary-cta,
.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.primary-cta {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(43, 23, 27, 0.16);
}

.primary-cta:hover,
.store-button:hover,
.download-link:hover {
  transform: translateY(-1px);
}

.download-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}

.download-strip p {
  margin: 0;
  max-width: 172px;
  font-size: 15px;
  line-height: 1.3;
}

.store-links {
  display: flex;
  gap: 12px;
}

.store-button {
  min-width: 78px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid rgba(43, 23, 27, 0.2);
  gap: 10px;
  background: #ffffff;
}

.store-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.store-button-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.store-button-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.device-stage {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: relative;
  align-self: end;
  justify-self: end;
  width: 100%;
  min-height: 420px;
  padding: 8px 0 4px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
}

.device-stage::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 36px;
  bottom: 10px;
  height: 22px;
  border-radius: 999px;
  background: rgba(43, 23, 27, 0.15);
  filter: blur(18px);
  pointer-events: none;
}

.device-frame {
  position: relative;
  z-index: 3;
  width: min(248px, 72%);
  padding: 6px 6px 10px;
  border: 5px solid #403b42;
  border-radius: 30px;
  background: linear-gradient(180deg, #111111, #3e3940);
  box-shadow: 0 24px 34px rgba(28, 18, 20, 0.28);
  animation: device-float 5.4s ease-in-out infinite;
}

.device-frame img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  background: #edf8ff;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
}

.insight-card {
  padding: 22px 12px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.insight-card h2 {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.about-copy {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.metric-pill {
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(241, 238, 255, 0.96), rgba(249, 248, 255, 0.98));
  border: 1px solid rgba(142, 130, 192, 0.18);
  box-shadow: 0 10px 24px rgba(43, 29, 37, 0.05);
}

.metric-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.metric-copy {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}

.site-footer {
  padding: 12px 10px 4px;
}

.site-footer p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

@keyframes device-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1080px) {
  .topbar {
    gap: 14px;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 14px;
  }

  .hero-copy-column {
    padding: 8px 2px 0;
  }

  .device-stage {
    grid-column: 1;
    grid-row: 3;
    min-height: 340px;
    width: min(300px, 100%);
    justify-self: center;
    padding-top: 0;
  }

  .hero-panel {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    padding: 18px 20px 16px;
  }

  .hero-panel::after {
    right: 40px;
    bottom: -18px;
  }

  .insight-grid {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-body {
    padding: 8px;
  }

  .page-shell {
    padding: 10px 10px 14px;
    border-radius: 24px;
  }

  .topbar {
    display: block;
    padding: 2px 2px 8px;
  }

  .download-link {
    width: 100%;
    margin-top: 8px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .landing-main {
    padding: 0;
  }

  .hero-stage {
    display: block;
  }

  .hero-copy-column {
    padding: 8px 4px 0;
    max-width: 280px;
  }

  .hero-kicker {
    display: none;
  }

  .hero-title-strong {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero-emphasis {
    font-size: clamp(32px, 11vw, 44px);
  }

  .hero-title {
    max-width: 280px;
  }

  .hero-panel-content {
    max-width: 280px;
  }

  .hero-panel {
    width: 100%;
    margin-top: 10px;
    padding: 18px 16px 16px;
    border-radius: 22px;
  }

  .hero-panel::before {
    width: 300px;
    height: 140px;
    right: -104px;
    bottom: 16px;
  }

  .hero-panel::after {
    width: 180px;
    height: 90px;
    right: 34px;
    bottom: 12px;
  }

  .hero-panel-copy {
    font-size: 15px;
    line-height: 1.34;
  }

  .hero-actions {
    gap: 10px;
  }

  .primary-cta {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .download-strip {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
    max-width: 280px;
  }

  .download-strip p {
    max-width: none;
  }

  .store-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .store-button {
    min-width: 0;
    flex: 1 1 0;
  }

  .device-stage {
    display: flex;
    max-width: 280px;
    width: 100%;
    margin-top: 10px;
    min-height: 300px;
    padding: 4px 0 2px;
  }

  .device-stage::after {
    left: 40px;
    right: 40px;
    bottom: 18px;
  }

  .device-frame {
    width: min(190px, 62vw);
    border-radius: 26px;
  }

  .device-frame img {
    border-radius: 16px;
  }

  .insight-card {
    padding: 18px 4px 0;
  }

  .about-copy {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.5;
  }

  .site-footer {
    padding-top: 12px;
  }
}

@media (min-width: 761px) and (max-height: 940px) {
  .landing-body {
    padding-top: 10px;
    padding-bottom: 8px;
  }

  .page-shell {
    padding-bottom: 12px;
  }

  .hero-title-strong {
    font-size: clamp(52px, 6.4vw, 82px);
  }

  .hero-emphasis {
    font-size: clamp(46px, 4.9vw, 66px);
  }

  .hero-panel {
    min-height: 188px;
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .download-strip {
    margin-top: 20px;
  }

  .device-stage {
    min-height: 372px;
  }

  .device-frame {
    width: min(228px, 68%);
  }

  .insight-card {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
