:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --border: #d7dee8;
  --brand: #6366f1;
  --brand-strong: #4f46e5;
  --success: #16a34a;
  --info: #2563eb;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--brand-strong);
  font-weight: 650;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--brand-strong);
}

main {
  flex: 1;
}

.home-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 48px;
}

.hero-copy h1,
.content h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.app-preview {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

.app-preview img {
  width: 56%;
  height: 56%;
  border-radius: 22%;
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.24);
}

.home-sections {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.home-grid {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.25;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.content {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.content h1 {
  font-size: clamp(34px, 4vw, 52px);
}

.content .updated {
  margin: 14px 0 36px;
  color: var(--muted);
  font-weight: 650;
}

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

.content h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.3;
}

.content h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.content ul {
  margin: 12px 0 0;
  padding-left: 24px;
}

.content li + li {
  margin-top: 8px;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

@media (max-width: 820px) {
  .topbar-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .app-preview {
    width: min(280px, 100%);
    justify-self: start;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links,
  .footer-links,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
