:root {
  --color-bg: #000000;
  --color-surface: #000000;
  --color-text: #ffffff;
  --color-text-secondary: #ccc;
  --color-accent: #0071e3;
  --color-accent-hover: #0058b0;
  --color-border: #333;
  --max-width: 720px;
  --font: "Quicksand", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Pinyon Script", cursive;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Navigation */
header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-text);
  text-decoration: none;
}

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

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

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

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

/* Main Content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 1rem 0 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.heading-secondary {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 600;
  vertical-align: baseline;
  margin-left: 0.3rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* App Icons */
.app-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.app-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.app-icon-link:hover {
  text-decoration: none;
}

.app-icon {
  width: 160px;
  height: 160px;
  border-radius: 35px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease;
}

.app-icon-link:hover .app-icon {
  transform: scale(1.12);
}

.app-name {
  margin-top: 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--color-text);
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-family: var(--font);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0;
}

.section p, .section li {
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.section ul {
  padding-left: 1.25rem;
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-section a {
  color: #ffffff;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Legal pages */
.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal p, .legal li {
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Support page */
.support-contact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.support-contact p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

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

.footer-links a {
  color: #ffffff;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .heading-secondary {
    font-size: 1.3rem;
  }

  .app-grid {
    gap: 1.5rem;
  }

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

  nav {
    flex-direction: column;
    gap: 0.75rem;
  }

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