:root {
  color-scheme: dark;
  --bg: #0f1220;
  --card: #171b30;
  --text: #f5f7ff;
  --muted: #b6bfdc;
  --primary: #5c7cff;
  --primary-hover: #4a67e0;
  --secondary: #263051;
  --border: #2b3253;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #0d1020 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header,
footer {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

main {
  width: min(1100px, 92%);
  margin: 0 auto;
  flex: 1;
}

.hero {
  text-align: center;
  padding: 2rem 0 2.5rem;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.25rem 0 0.75rem;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.store-btn,
.primary-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
  background: var(--secondary);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--primary);
  border-color: transparent;
}

.store-btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.hint {
  margin-top: 0.75rem;
  min-height: 1.5rem;
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.features article,
.policy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.features h2,
.policy-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.policy-page {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 2rem;
}

.policy-card {
  width: min(850px, 100%);
  padding: 1.5rem;
}

.policy-card h1 {
  margin-top: 0;
}

.policy-card p {
  margin-top: 0;
}

.small-note {
  font-size: 0.9rem;
}

nav a,
footer a {
  color: var(--text);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-bottom: 1.2rem;
}

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

  .site-header,
  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
