:root {
  color-scheme: light;
  --ink: #24312c;
  --muted: #66746e;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #e7e3d8;
  --accent: #7b4f67;
  --leaf: #49735b;
}

* { box-sizing: border-box; }

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

a { color: var(--accent); }

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

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

main { padding: 56px 0 72px; }

.hero {
  padding: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-logo {
  display: block;
  width: min(300px, 100%);
  height: auto;
  margin: 0 0 24px;
}

.app-hero {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.app-icon {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(36, 49, 44, 0.16);
  flex: 0 0 auto;
}

.app-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-card-title h2 { margin-top: 0; }

.app-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  flex: 0 0 auto;
}

h1, h2, h3 {
  line-height: 1.18;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0;
}

h2 {
  margin-top: 34px;
  font-size: 1.5rem;
}

p { margin: 0 0 16px; }

ul { padding-left: 1.25rem; }

.muted { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.card {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--leaf);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  nav,
  .app-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  nav { padding: 18px 0; }

  .hero { padding: 24px; }

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