:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #dce3ea;
  --blue: #2f6fbb;
  --blue-soft: #e7f0fb;
  --warm: #bd6f3d;
  --warm-soft: #f8eadf;
  --green-soft: #e8f3ee;
  --shadow: 0 18px 48px rgba(23, 32, 42, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
.site-footer {
  width: 100%;
}

.nav,
.footer-inner,
.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
}

main {
  flex: 1;
}

.hero {
  padding: 56px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 0.83rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(23, 32, 42, 0.06);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.hero-art {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.app-card {
  display: block;
  color: var(--ink);
}

.app-card:hover {
  text-decoration: none;
  border-color: rgba(47, 111, 187, 0.45);
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue-soft), var(--warm-soft));
  color: var(--blue);
  font-size: 1.28rem;
  font-weight: 840;
}

.card-meta {
  margin: 4px 0 12px;
  color: var(--warm);
  font-weight: 720;
}

.card-text,
.feature p,
.support-block p,
.legal-text p,
.legal-text li {
  color: var(--muted);
}

.section {
  padding: 34px 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 20px;
}

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

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

.feature,
.support-block {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}

.feature.accent-blue {
  background: var(--blue-soft);
}

.feature.accent-warm {
  background: var(--warm-soft);
}

.feature.accent-green {
  background: var(--green-soft);
}

.feature p,
.support-block p {
  margin: 8px 0 0;
}

.legal-text,
.legal-page {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 52px;
}

.legal-text h1,
.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.legal-text h2,
.legal-page h2 {
  margin-top: 34px;
  font-size: 1.32rem;
}

.legal-text p,
.legal-text li,
.legal-page p,
.legal-page li {
  font-size: 1rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 820px) {
  .hero {
    padding-top: 34px;
  }

  .hero-inner,
  .grid {
    grid-template-columns: 1fr;
  }

  .nav,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .panel {
    padding: 20px;
  }
}
