:root {
  color-scheme: light;
  --background: #f5f7fb;
  --surface: #ffffff;
  --surface-muted: #eef2f8;
  --text: #182231;
  --muted: #667085;
  --primary: #213f94;
  --primary-dark: #172c67;
  --accent: #ff6500;
  --line: #d9dfeb;
  --shadow: 0 24px 60px rgba(24, 34, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  border-bottom: 1px solid var(--line);
}

.page-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.brand img {
  border-radius: 14px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 650;
}

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

.hero-grid {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 710px;
}

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

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

h1 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  color: var(--primary-dark);
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.lead {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.42;
  font-weight: 700;
}

.hero-copy p:not(.eyebrow):not(.lead),
.section-heading p,
.about-copy p,
.feature-grid p {
  color: var(--muted);
  font-size: 1.04rem;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  border: 1px solid var(--primary);
}

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

.hero-media {
  justify-self: center;
  width: min(390px, 100%);
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-media img {
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.page-main .section {
  padding-top: 70px;
}

.section.muted {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100% - 1120px) / 2));
  padding-right: max(20px, calc((100% - 1120px) / 2));
  background: var(--surface-muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

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

.feature-grid article {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 34, 49, 0.06);
}

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

figure {
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(24, 34, 49, 0.10);
}

figure img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.about-copy {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.page-content {
  max-width: 920px;
}

.page-content h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.content-panel {
  margin-top: 32px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 34, 49, 0.06);
}

.content-panel h2 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: 1.45rem;
}

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

.content-panel p {
  color: var(--muted);
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.updated {
  margin-top: 30px;
  font-weight: 700;
}

.related {
  padding-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.related-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 34, 49, 0.06);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.related-card:hover {
  border-color: rgba(33, 63, 148, 0.45);
  box-shadow: 0 18px 36px rgba(24, 34, 49, 0.10);
  transform: translateY(-2px);
}

.related-card p {
  color: var(--muted);
  font-size: 1rem;
}

.related-card .app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.related-card .app-links a {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
}

.related-card .app-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

@media (max-width: 900px) {
  .hero-grid,
  .about {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-top: 46px;
    gap: 40px;
  }

  .hero-media {
    justify-self: start;
    width: min(330px, 100%);
  }

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

@media (max-width: 620px) {
  .nav {
    width: min(100% - 28px, 1120px);
    min-height: 76px;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 58px 0;
  }

  .section.muted {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
