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

:root {
  --background: #f5f5f5;
  --surface: #ffffff;
  --border: #1a1a1a;
  --text-primary: #1a1a1a;
  --text-secondary: #616161;
  --text-muted: #9e9e9e;
  --calories: #ff5722;
  --protein: #e53935;
  --carbs: #1e88e5;
  --fat: #00897b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: var(--surface);
  border-bottom: 3px solid var(--border);
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 24px;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero .subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.app-store-btn {
  display: inline-block;
  background: var(--border);
  color: var(--surface);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border: 3px solid var(--border);
  transition: all 0.15s ease;
}

.app-store-btn:hover {
  background: var(--surface);
  color: var(--border);
}

/* Features */
.features {
  padding: 60px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Macro colors */
.macro-preview {
  display: flex;
  gap: 12px;
  margin: 40px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.macro-chip {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.macro-chip.calories {
  border: 2px solid var(--calories);
  color: var(--calories);
}

.macro-chip.protein {
  border: 2px solid var(--protein);
  color: var(--protein);
}

.macro-chip.carbs {
  border: 2px solid var(--carbs);
  color: var(--carbs);
}

.macro-chip.fat {
  border: 2px solid var(--fat);
  color: var(--fat);
}

/* Legal pages */
.legal {
  padding: 60px 0;
}

.legal h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal p, .legal ul {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 24px;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--text-primary);
}

/* Support page */
.support {
  padding: 60px 0;
  text-align: center;
}

.support h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.support p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.support-email {
  display: inline-block;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 40px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.support-email:hover {
  background: var(--border);
  color: var(--surface);
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 40px 0;
  margin-top: 60px;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer nav a {
  margin-left: 0;
  margin-right: 24px;
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
}

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

  header .container {
    flex-direction: column;
    gap: 16px;
  }

  nav a {
    margin: 0 12px;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  footer nav {
    order: -1;
  }

  footer nav a {
    margin: 0 12px;
  }
}
