:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --button: #1d1d1f;
  --button-text: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050505;
    --panel: rgba(28, 28, 30, 0.72);
    --panel-solid: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.16);
    --button: #f5f5f7;
    --button-text: #050505;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--muted);
}

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

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 22px 0;
}

.site-footer {
  padding: 44px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.brand,
.nav-links,
.link-list,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 650;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.language-switch {
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.language-switch button {
  min-width: 44px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--button);
  color: var(--button-text);
}

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

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
  padding: 48px 0 72px;
}

.hero-copy {
  min-width: 0;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  margin: 28px 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(56px, 10vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.tagline {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro,
.page > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-size: 16px;
  font-weight: 650;
}

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

.button.secondary {
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.phone-preview {
  width: min(100%, 360px);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 42px;
  padding: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.phone-preview img,
.screenshot-grid img {
  width: 100%;
  border-radius: 32px;
  background: var(--panel-solid);
}

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

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

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

.feature-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: var(--panel);
  backdrop-filter: blur(20px);
}

.feature-card p,
.page p,
.plain-list {
  color: var(--muted);
}

.links-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.links-panel h2 {
  margin: 0;
}

.link-list {
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.page {
  max-width: 820px;
  padding: 76px 0 64px;
}

.page h1 {
  font-size: clamp(48px, 8vw, 84px);
}

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

.page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  margin-bottom: 52px;
  color: var(--muted);
}

.plain-list {
  padding-left: 22px;
}

.plain-list li + li {
  margin-top: 10px;
}

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

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

  .phone-preview {
    margin: 0 auto;
  }

  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 1120px);
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .language-switch {
    width: 100%;
    justify-content: space-between;
  }

  .language-switch button {
    flex: 1;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 19px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
