:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #eef1f5;
  --text: #151922;
  --muted: #667085;
  --border: #d9dee7;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --button: #151922;
  --button-text: #ffffff;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0b0e14;
  --surface: #141922;
  --surface-soft: #10151d;
  --text: #f5f7fb;
  --muted: #a0a8b7;
  --border: #293241;
  --accent: #60a5fa;
  --accent-strong: #93c5fd;
  --button: #f5f7fb;
  --button-text: #0b0e14;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 54px;
}

.brand {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  color: var(--text);
}

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

.site-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 28px 0 84px;
}

.hero-narrow {
  max-width: 780px;
  padding: 32px 0 88px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.hero p,
.page-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 650px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary {
  background: var(--button);
  color: var(--button-text);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.phone-showcase {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
  align-items: center;
}

.phone-showcase img,
.screenshot-strip img {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  width: 100%;
}

.phone-showcase img {
  border-radius: 30px;
}

.phone-showcase img:first-child {
  transform: translateY(28px);
}

.section {
  padding: 58px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

.section-header p {
  color: var(--muted);
  max-width: 420px;
  margin: 0;
}

.app-list,
.feature-grid,
.roadmap-grid,
.support-grid {
  display: grid;
  gap: 14px;
}

.app-card,
.feature-item,
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.app-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.app-card p,
.feature-item p,
.info-card p,
.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
}

.tag {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 5px 10px;
  white-space: nowrap;
}

.screenshot-gallery {
  display: grid;
  gap: 16px;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scrollbar-width: thin;
}

.screenshot-strip img,
.landscape-preview img {
  border-radius: 20px;
}

.landscape-preview {
  max-width: 520px;
}

.landscape-preview img {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  width: 100%;
}

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

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

.feature-item,
.info-card {
  padding: 22px;
}

.feature-item h3,
.info-card h2,
.prose h2 {
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.feature-item p,
.info-card p {
  margin-bottom: 0;
}

.requirements-list,
.info-card ul,
.prose ul {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  padding-left: 20px;
}

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

.page-heading {
  padding: 28px 0 54px;
  max-width: 760px;
}

.page-heading h1 {
  font-size: clamp(38px, 6vw, 58px);
  margin-bottom: 12px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 42px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  margin-top: 56px;
  padding: 26px 0 36px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .hero,
  .phone-showcase,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    padding-top: 8px;
  }

  .phone-showcase {
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: start;
  }

  .feature-grid,
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1080px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 36px;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .hero,
  .hero-narrow,
  .section,
  .page-heading {
    padding-bottom: 52px;
  }

  .section {
    padding-top: 42px;
  }

  .section-header {
    display: block;
  }

  .section-header p {
    margin-top: 10px;
  }

  .app-card,
  .feature-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .tag {
    justify-self: start;
  }

  .screenshot-strip {
    grid-auto-columns: 190px;
  }

  .landscape-preview {
    max-width: 360px;
  }
}
