:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --ink: #171717;
  --muted: #696d73;
  --surface: #ffffff;
  --surface-2: #eeeeea;
  --line: #deded8;
  --accent: #0f766e;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111315;
    --ink: #f5f4ef;
    --muted: #a6abb2;
    --surface: #181b1e;
    --surface-2: #202327;
    --line: #30343a;
    --accent: #4fd1c5;
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Chivo, Arial, sans-serif;
  line-height: 1.62;
}

a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--ink), transparent 68%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

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

.brand {
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

nav a:hover {
  color: var(--ink);
}

.section {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 8vw, 116px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 86px;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

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

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

h1,
h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.28;
}

.apps-section {
  min-height: calc(100vh - 82px);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.app-card {
  display: grid;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.app-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-card:hover img {
  box-shadow: 0 22px 60px color-mix(in srgb, var(--ink), transparent 88%);
  transform: translateY(-3px);
}

.app-card span {
  display: block;
  min-height: 44px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 720;
  line-height: 1.2;
}

.app-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 5vw, 58px);
}

.app-hero {
  display: grid;
  grid-template-columns: 154px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 50px);
}

.app-hero.hero-shot {
  grid-template-columns: minmax(260px, 520px) minmax(0, 1fr);
  align-items: center;
}

.app-hero img {
  width: 154px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-hero.hero-shot img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.app-hero h1,
.app-hero h2 {
  margin-bottom: 18px;
  font-size: clamp(40px, 6.6vw, 78px);
}

.app-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.feature-image {
  width: min(760px, 100%);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.copy {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
}

.copy p {
  margin-bottom: 18px;
}

.copy strong,
.copy h3 {
  color: var(--ink);
}

.copy ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 1.1em;
}

.copy li {
  padding-left: 4px;
}

.copy li::marker {
  color: var(--accent);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 6vw, 72px);
}

.about-layout img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-section .copy,
.policy .copy {
  padding: clamp(22px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy {
  width: min(900px, 100%);
}

.policy h1,
.policy h2 {
  margin-bottom: 34px;
  font-size: clamp(34px, 5.5vw, 66px);
}

.site-footer {
  padding: 38px clamp(20px, 5vw, 72px) 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}

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

  nav {
    gap: 18px;
  }

  .section {
    scroll-margin-top: 124px;
  }

  .app-card span {
    min-height: 38px;
    font-size: 15px;
  }

  .app-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
  }

  .app-hero.hero-shot {
    grid-template-columns: 1fr;
  }

  .app-hero img {
    width: 92px;
  }

  .app-hero.hero-shot img {
    width: 100%;
    max-height: none;
  }

  .copy {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
