:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a68;
  --accent: #4f46e5;
  --accent-light: #818cf8;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1aa;
    --border: #2d2d44;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  }
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  font-size: 0.95rem;
  transition: color 0.2s;
  border-radius: 8px;
}

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

.btn-nav {
  background: var(--accent);
  color: white !important;
  font-weight: 500;
}

.btn-nav:hover {
  background: var(--accent-light);
  color: white !important;
}

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

.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
}

.hero .subtitle-small {
  font-size: 0.95rem;
  margin-top: -12px;
}

/* Apps Grid */
.apps-section {
  padding: 40px 0 60px;
}

.apps-section h2 {
  font-size: 1.75rem;
  margin-bottom: 28px;
  text-align: center;
}

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

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.app-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.app-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.app-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Footer */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

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

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 12px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-copy a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-copy a:hover {
  color: var(--accent);
}

/* How It Works */
.how-it-works {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.how-it-works h2 {
  font-size: 1.75rem;
  margin-bottom: 28px;
  text-align: center;
}

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

.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

.privacy-callout {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.privacy-callout a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.privacy-callout a:hover {
  text-decoration: underline;
}

/* About Section */
.about-photo {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 24px;
  display: block;
}

.about {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
}

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

.about p:last-child {
  margin-bottom: 0;
}

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

.about a:hover {
  text-decoration: underline;
}

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

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

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

.legal ul {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
}

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

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

.legal a:hover {
  text-decoration: underline;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 32px 0;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

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

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  .app-card {
    padding: 24px;
  }

  .apps-section h2,
  .about h2,
  .how-it-works h2 {
    font-size: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-photo {
    max-width: 200px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding: 6px 12px;
    font-size: 0.9rem;
  }
}
