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

:root {
  --nord0: #2E3440;
  --nord1: #3B4252;
  --nord2: #434C5E;
  --nord3: #4C566A;
  --nord4: #ECEFF4;
  --nord5: #E5E9F0;
  --nord6: #D8DEE9;
  --nord7: #8FBCBB;
  --nord8: #88C0D0;
  --nord9: #81A1C1;
  --nord10: #5E81AC;
  --nord11: #BF616A;
  --nord12: #D08770;
  --nord13: #EBCB8B;
  --nord14: #A3BE8C;
  --nord15: #B48EAD;
}

.theme-light {
  --bg: var(--nord4);
  --bg-card: #FFFFFF;
  --bg-overlay: var(--nord5);
  --bg-footer: var(--nord9);
  --text-primary: var(--nord0);
  --text-secondary: var(--nord3);
  --text-inverse: var(--nord4);
  --border: var(--nord6);
  --primary: var(--nord10);
  --primary-hover: #4C7AA6;
  --primary-light: #D8E4F0;
  --accent: var(--nord7);
  --link: var(--nord10);
  --success: var(--nord14);
  --warning: var(--nord13);
  --danger: var(--nord11);
  --shadow: 0 1px 3px rgba(46, 52, 64, 0.08), 0 1px 2px rgba(46, 52, 64, 0.06);
  --shadow-lg: 0 4px 12px rgba(46, 52, 64, 0.1);
}

.theme-dark {
  --bg: var(--nord0);
  --bg-card: var(--nord1);
  --bg-overlay: var(--nord2);
  --bg-footer: #1a1f2b;
  --text-primary: var(--nord4);
  --text-secondary: var(--nord6);
  --text-inverse: var(--nord0);
  --border: var(--nord2);
  --primary: var(--nord10);
  --primary-hover: #6B94C0;
  --primary-light: #2A3D55;
  --accent: var(--nord8);
  --link: var(--nord8);
  --success: var(--nord14);
  --warning: var(--nord13);
  --danger: var(--nord11);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background 0.2s, color 0.2s;
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

/* --- Theme Toggle --- */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

/* --- Navigation --- */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

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

/* --- Container --- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.hero-logo {
  width: 96px;
  height: 96px;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .hero-logo {
    width: 72px;
    height: 72px;
  }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.hero .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  border: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
}

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

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  background: var(--bg-overlay);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  opacity: 0.6;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Data Usage --- */
.data-usage {
  padding: 3rem 1.5rem;
  background: var(--bg-overlay);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.data-usage h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.data-usage p {
  max-width: 600px;
  margin: 0 auto 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}

.data-usage a {
  color: var(--link);
  font-weight: 600;
}

.hero-privacy {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.hero-privacy a {
  color: var(--text-secondary);
}

.hero-privacy a:hover {
  color: var(--link);
}

/* --- Features --- */
.features {
  padding: 0 1.5rem 4rem;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
}

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

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Legal Pages --- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

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

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.legal h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

.legal p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal .legal-highlight {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.25rem 0;
  color: var(--text-primary);
  font-style: italic;
}

.legal a {
  color: var(--link);
  word-break: break-all;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer p {
  margin-top: 0.5rem;
}

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

  .hero {
    padding-top: 3rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  nav {
    gap: 1rem;
    padding: 1rem;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .legal {
    padding: 1.5rem 1rem 3rem;
  }

  .legal h1 {
    font-size: 1.6rem;
  }

  .theme-toggle {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
}
