:root {
  --bg: #fbf5ee;
  --surface: #ffffff;
  --surface-soft: #fff9f2;
  --ink: #17110f;
  --muted: #756a63;
  --line: rgba(23, 17, 15, 0.09);
  --rose: #c17e6e;
  --rose-dark: #96594c;
  --rose-light: #f4dcd0;
  --plum: #2c1424;
  --plum-light: #4a2338;
  --gold: #cf9a5d;
  --shadow-soft: 0 20px 60px rgba(43, 29, 22, 0.1);
  --shadow-lift: 0 30px 80px rgba(43, 29, 22, 0.16);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 30px 90px rgba(150, 89, 76, 0.22);
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

::selection {
  background: var(--rose-light);
  color: var(--rose-dark);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 16px 20px 0;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  padding: 6px 8px 6px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 17, 15, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 18px 40px rgba(43, 29, 22, 0.08);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: box-shadow 0.3s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  z-index: 2;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

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

.nav-links a,
.footer-links a {
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover,
.footer-links a:hover {
  color: var(--rose-dark);
}

.nav-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--ink) 0%, #34211d 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(23, 17, 15, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 17, 15, 0.28);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(23, 17, 15, 0.06);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle span {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-mobile {
  width: min(1120px, calc(100% - 40px));
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease), transform 0.3s var(--ease);
}

.nav-mobile.is-open {
  max-height: 320px;
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile a {
  padding: 11px 6px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* ---------- Shared layout ---------- */

.hero,
.trust-row,
.features,
.preview,
.download-panel,
.footer-inner,
.copyright,
.page-hero,
.page-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(184, 121, 111, 0.14);
  border: 1px solid rgba(150, 89, 76, 0.16);
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-dark);
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.03;
}

h1 {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: clamp(48px, 6.6vw, 88px);
}

.grad-text {
  background: linear-gradient(120deg, var(--rose-dark) 10%, var(--gold) 55%, var(--rose) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.4vw, 54px);
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  padding: 44px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 480px at 82% 8%, rgba(207, 154, 93, 0.22), transparent 60%),
    radial-gradient(600px 520px at 8% 30%, rgba(184, 121, 111, 0.24), transparent 60%),
    radial-gradient(900px 700px at 60% 90%, rgba(44, 20, 36, 0.08), transparent 65%),
    var(--bg);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 30px -20px, -24px 26px, 0 -14px;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}

.trust-row span::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--rose-light);
  box-shadow: inset 0 0 0 1px rgba(150, 89, 76, 0.25);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  border-radius: 9px;
  line-height: 0;
  box-shadow: 0 14px 32px rgba(23, 17, 15, 0.22);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(23, 17, 15, 0.3);
}

.store-badge:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

.store-badge img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 9px;
}

.small-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.phone-stage {
  position: relative;
  min-height: 680px;
}

.phone-stage::before {
  content: "";
  position: absolute;
  inset: 6% -10%;
  z-index: 0;
  background:
    radial-gradient(closest-side, rgba(184, 121, 111, 0.45), transparent 72%),
    radial-gradient(closest-side, rgba(207, 154, 93, 0.35), transparent 70%);
  background-position: 70% 20%, 15% 75%;
  background-repeat: no-repeat;
  background-size: 65% 65%, 60% 60%;
  filter: blur(50px);
}

.phone-frame {
  position: absolute;
  overflow: hidden;
  border: 10px solid #14100e;
  border-radius: 42px;
  background: #14100e;
  box-shadow: var(--shadow-lift);
  animation: float 7s ease-in-out infinite;
}

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

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-primary {
  right: 0;
  top: 0;
  z-index: 2;
  width: min(350px, 55vw);
  aspect-ratio: 1280 / 2856;
  animation-delay: 0.4s;
}

.phone-secondary {
  left: 0;
  bottom: 8px;
  width: min(300px, 46vw);
  aspect-ratio: 1280 / 2856;
  transform: rotate(-6deg);
}

.phone-secondary.floating-frame {
  animation-name: float-tilt;
}

@keyframes float-tilt {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-12px);
  }
}

.phone-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.4s;
}

.phone-chip.chip-top {
  top: 6%;
  left: 4%;
}

.phone-chip.chip-bottom {
  bottom: 4%;
  right: 8%;
}

.phone-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 4px rgba(62, 207, 142, 0.18);
}

/* ---------- Features ---------- */

.features {
  padding: 64px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.features article {
  position: relative;
  min-height: 230px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 244, 0.7));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.features article:hover {
  transform: translateY(-6px);
  border-color: rgba(150, 89, 76, 0.25);
  box-shadow: var(--shadow-lift);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--rose-light), #fff);
  color: var(--rose-dark);
  box-shadow: inset 0 0 0 1px rgba(150, 89, 76, 0.14);
}

.features span.step {
  display: block;
  position: absolute;
  top: 26px;
  right: 28px;
  color: var(--rose-dark);
  opacity: 0.35;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.features h2 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.features p,
.preview p,
.download-panel p,
.site-footer p,
.policy-card p,
.support-card p,
.policy-card ul,
.support-card ul {
  color: var(--muted);
}

/* ---------- Preview ---------- */

.preview {
  padding: 84px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: center;
}

.preview-card {
  position: relative;
  overflow: hidden;
  max-height: 700px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-glow);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Download panel ---------- */

.download-panel {
  position: relative;
  overflow: hidden;
  margin-bottom: 70px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--plum) 0%, var(--plum-light) 100%);
  color: #fff;
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(420px 300px at 15% 15%, rgba(207, 154, 93, 0.35), transparent 65%),
    radial-gradient(460px 340px at 90% 90%, rgba(184, 121, 111, 0.35), transparent 65%);
  filter: blur(10px);
}

.download-panel > * {
  position: relative;
  z-index: 1;
}

.download-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(32px, 3.8vw, 48px);
}

.download-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.download-panel .store-row {
  margin-top: 0;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 46px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.site-footer p {
  max-width: 390px;
  margin: 14px 0 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.copyright {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Inner pages ---------- */

.page-hero {
  padding: 76px 0 32px;
}

.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
}

.page-content {
  padding: 0 0 80px;
}

.policy-card,
.support-card {
  padding: 28px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.policy-card ul,
.support-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.policy-card li,
.support-card li {
  margin: 7px 0;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::before,
  .phone-frame,
  .phone-chip {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero,
  .preview {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-stage {
    min-height: 620px;
  }

  .phone-primary {
    right: 8%;
  }

  .phone-secondary {
    left: 8%;
  }

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

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .nav,
  .nav-mobile,
  .hero,
  .trust-row,
  .features,
  .preview,
  .download-panel,
  .footer-inner,
  .copyright,
  .page-hero,
  .page-content {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding: 12px 14px 0;
  }

  .nav {
    padding: 6px 6px 6px 16px;
  }

  .hero {
    padding-top: 36px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .phone-stage {
    min-height: 510px;
  }

  .phone-frame {
    border-width: 7px;
    border-radius: 32px;
  }

  .phone-primary {
    width: 250px;
    right: 0;
  }

  .phone-secondary {
    width: 210px;
    left: 0;
  }

  .phone-chip {
    font-size: 11px;
    padding: 8px 12px;
  }

  .features,
  .preview {
    padding: 54px 0;
  }

  .download-panel {
    margin-bottom: 52px;
    padding: 30px 26px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
