:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #172033;
  --muted: #5d6a7e;
  --line: #dfe6f0;
  --brand: #1f6feb;
  --brand-strong: #154fb0;
  --accent: #1ca672;
  --shadow: 0 18px 45px rgba(31, 49, 82, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--brand-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 230, 240, 0.82);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 22px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 111, 235, 0.22);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  color: var(--muted);
}

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

.hero,
.page-hero,
.section,
.legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 22px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  align-items: center;
  gap: 42px;
  min-height: 78vh;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.14rem;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--surface);
  color: var(--text);
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(31, 49, 82, 0.08);
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.phone {
  width: min(330px, 78vw);
  aspect-ratio: 9 / 18.7;
  border: 10px solid #101828;
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.floating-note {
  position: absolute;
  right: 0;
  bottom: 34px;
  max-width: 235px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(31, 49, 82, 0.14);
  color: var(--muted);
  font-size: 0.94rem;
}

.section h2,
.legal h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.section-intro {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(31, 49, 82, 0.06);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

.card p {
  margin: 0;
}

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

.screenshot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
}

.screenshot figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.band {
  background: #101828;
  color: #fff;
}

.band .section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.band p {
  color: rgba(255, 255, 255, 0.72);
}

.legal {
  max-width: 860px;
}

.legal h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.legal h2 {
  margin-top: 42px;
  font-size: 1.45rem;
}

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

.legal ul {
  padding-left: 1.2rem;
}

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

details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 760;
}

details p {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 22px;
  color: var(--muted);
  text-align: center;
}

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

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

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

  .floating-note {
    right: 22px;
  }

  .feature-grid,
  .screenshots,
  .support-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
