*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --surface: #181818;
  --border: #2a2a2a;
  --text: #e8e8e8;
  --muted: #888;
  --accent: #7c6aff;
  --accent-hover: #9b8dff;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

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

/* Main */
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

/* Hero */
.hero {
  margin-bottom: 5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
}

/* Apps */
.apps-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.15s;
}

.app-card:hover {
  border-color: var(--accent);
}

.app-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.app-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.app-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  transition: background 0.15s, color 0.15s;
}

.app-link:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* Help page */
.help-content {
  max-width: 520px;
}

.help-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.help-content p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.help-content .email-link {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Policy pages */
.policy-main {
  max-width: 720px;
}

.policy-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.policy-intro {
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.policy-section p {
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.policy-section ul {
  color: var(--muted);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.policy-section ul li {
  margin-bottom: 0.4rem;
}

.policy-address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

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

@media (max-width: 600px) {
  nav {
    padding: 1rem 1.25rem;
  }

  main {
    padding: 3rem 1.25rem 3rem;
  }

  .hero {
    margin-bottom: 3.5rem;
  }
}
