:root {
  --page-bg: #fbfaf8;
  --surface: #ffffff;
  --surface-muted: #f1f5f2;
  --ink: #17201d;
  --muted: #596560;
  --soft: #7d8983;
  --line: #d8ded9;
  --rose: #b95f68;
  --rose-dark: #8d3f4a;
  --mint: #2e7a63;
  --gold: #b4872f;
  --shadow: 0 20px 55px rgba(23, 32, 29, 0.12);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  max-width: 840px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(185, 95, 104, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.prose a:hover,
.link-list a:hover {
  color: var(--rose-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background: linear-gradient(135deg, #fbfaf8 0%, #f0f6f2 50%, #fff2f1 100%);
  border-bottom: 1px solid var(--line);
}

#shader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker,
.meta-line {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: 56px;
}

h2 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 21px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  color: #ffffff;
  background: var(--rose-dark);
  box-shadow: 0 12px 28px rgba(141, 63, 74, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.phone-showcase,
.screenshot {
  margin: 0;
}

.phone-showcase img,
.screenshot img {
  display: block;
  width: 100%;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 30px;
}

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

.card {
  min-height: 176px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 29, 0.06);
}

.card p,
.prose p,
.prose li {
  color: var(--muted);
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screenshot figcaption {
  padding: 12px 4px 2px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 40px;
  align-items: start;
}

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

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.page-hero {
  padding: 72px 0 46px;
  background: linear-gradient(135deg, #fbfaf8 0%, #f0f6f2 100%);
  border-bottom: 1px solid var(--line);
}

.prose {
  font-size: 17px;
}

.prose h2 {
  margin-top: 34px;
  font-size: 24px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 22px;
}

.prose a {
  color: var(--rose-dark);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #17201d;
  color: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .hero-grid,
  .feature-grid,
  .screenshots,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .phone-showcase {
    max-width: 340px;
  }

  h1 {
    font-size: 52px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 28px));
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 13px;
  }

  h1 {
    font-size: 42px;
  }

  .page-hero h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }
}
