:root {
  color-scheme: light dark;
  --ink: #13201b;
  --muted: #596a63;
  --paper: #f6f2ea;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(28, 58, 49, 0.14);
  --accent: #24715f;
  --accent-strong: #124f43;
  --coral: #d85f4a;
  --gold: #c99a35;
  --shadow: 0 24px 70px rgba(25, 54, 45, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 95, 74, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(36, 113, 95, 0.2), transparent 28rem),
    linear-gradient(135deg, #fbf8f1 0%, var(--paper) 48%, #edf5f1 100%);
  min-height: 100vh;
}

a {
  color: var(--accent-strong);
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper), transparent 18%);
  backdrop-filter: blur(22px) saturate(150%);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(25, 54, 45, 0.16);
}

nav {
  gap: 18px;
  font-size: 0.94rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--accent-strong);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 48px 0 72px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(3rem, 8.2vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.58;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 32px rgba(18, 79, 67, 0.22);
}

.button.secondary {
  color: var(--accent-strong);
  border: 1px solid var(--line);
  background: var(--panel);
}

.device-panel {
  position: relative;
  min-height: 600px;
  display: grid;
  align-content: center;
}

.app-icon-card {
  width: min(42vw, 240px);
  aspect-ratio: 1;
  margin-left: auto;
  margin-right: 8%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(160%);
}

.app-icon-card img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
}

.mock-window {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(155%);
}

.mock-toolbar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.mock-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
}

.mock-toolbar span:nth-child(2) {
  background: var(--gold);
}

.mock-toolbar span:nth-child(3) {
  background: var(--accent);
}

.mock-content {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.mock-label {
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mock-content h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.mock-content p {
  color: var(--muted);
  line-height: 1.52;
}

.mock-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-content li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

.section-grid,
.split-section,
.callout,
.content-page {
  margin-bottom: 80px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(155%);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
  gap: clamp(28px, 5vw, 58px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card,
.support-panel,
.faq-list article,
.legal section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.card {
  padding: 20px;
}

.card p,
.split-section p,
.callout p,
.content-page p {
  color: var(--muted);
  line-height: 1.62;
}

.split-section,
.callout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.callout {
  grid-template-columns: minmax(0, 1fr) auto;
}

.content-page {
  max-width: 860px;
  margin-top: 56px;
}

.content-page h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.support-panel,
.faq-list article,
.legal section {
  padding: 20px;
  margin-top: 16px;
}

.policy-date {
  font-weight: 700;
}

footer {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--muted);
}

footer span {
  margin-right: auto;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

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

  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  .device-panel {
    min-height: 500px;
  }

  .app-icon-card {
    margin-right: auto;
  }

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

@media (max-width: 560px) {
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 16px 14px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.5rem);
  }

  .device-panel {
    min-height: 430px;
  }

  .mock-window {
    bottom: 24px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf6f2;
    --muted: #b5c5be;
    --paper: #101614;
    --panel: rgba(25, 35, 31, 0.72);
    --panel-strong: rgba(23, 33, 29, 0.9);
    --line: rgba(219, 238, 230, 0.14);
    --accent: #70cfb7;
    --accent-strong: #9be4d2;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  }

  body {
    background:
      radial-gradient(circle at top left, rgba(216, 95, 74, 0.12), transparent 34rem),
      radial-gradient(circle at 88% 12%, rgba(112, 207, 183, 0.16), transparent 28rem),
      linear-gradient(135deg, #0d1210 0%, var(--paper) 58%, #111f1b 100%);
  }

  .mock-content li,
  .card,
  .support-panel,
  .faq-list article,
  .legal section {
    background: rgba(255, 255, 255, 0.04);
  }
}
