:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-soft: #f8f9fb;
  --text: #2c3e50;
  --muted: #5a6c7d;
  --accent: #1a2a6c;
  --accent-strong: #2a3a8c;
  --accent-soft: rgba(26, 42, 108, 0.12);
  --link: #1a2a6c;
  --border: #e1e4e8;
  --header-text: #1a2a6c;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --panel: #111727;
  --panel-soft: #141c2d;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --accent: #58a6ff;
  --accent-strong: #4a8fd9;
  --accent-soft: rgba(88, 166, 255, 0.12);
  --link: #58a6ff;
  --border: #1f2a3c;
  --header-text: #58a6ff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117;
    --panel: #111727;
    --panel-soft: #141c2d;
    --text: #e6edf3;
    --muted: #9fb0c3;
    --accent: #58a6ff;
    --accent-strong: #4a8fd9;
    --accent-soft: rgba(88, 166, 255, 0.12);
    --link: #58a6ff;
    --border: #1f2a3c;
    --header-text: #58a6ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(46, 188, 133, 0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(52, 152, 219, 0.12), transparent 30%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px)); /* Make room for floating footer and phone nav bars */
}

[data-theme="dark"] body {
  background: radial-gradient(circle at 20% 20%, rgba(46, 188, 133, 0.08), transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(88, 166, 255, 0.12), transparent 30%),
              var(--bg);
}

a {
  color: var(--link);
  text-decoration: none;
  text-decoration-color: currentColor;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 18px 64px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 17, 23, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--header-text);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
  font-weight: 600;
}

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

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 16px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--panel-soft);
  border-color: var(--accent);
}

.theme-icon {
  display: inline-block;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.32);
}

.hero {
  text-align: center;
  padding: 40px 20px 30px;
  color: var(--text);
}

.hero h1 { 
  font-size: 2.8em; 
  margin: 0 0 12px 0;
  font-weight: 700;
}

.lead { 
  font-size: 1.1em;
  color: var(--muted);
  margin: 0 0 24px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  color: #0b1a11;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }

.btn-primary { background: var(--accent); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }

.btn-android {
  background: linear-gradient(135deg, #1a2a6c 0%, #2a3a8c 100%);
  color: #fff;
  border-color: #2a3a8c;
  box-shadow: 0 2px 8px rgba(26, 42, 108, 0.3);
}

.btn-android:hover {
  box-shadow: 0 4px 16px rgba(26, 42, 108, 0.4);
}

.btn-ios {
  background: linear-gradient(135deg, #555 0%, #333 100%);
  color: #fff;
  border-color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-ios:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.badge { display: inline-block; padding: 4px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 0.8rem; }

.badge-green {
  background: rgba(46, 188, 133, 0.12);
  color: #2ebc85;
}

[data-theme="dark"] .badge-green {
  background: rgba(46, 188, 133, 0.18);
  color: #2ebc85;
}

.features-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 60px 28px;
  margin-bottom: 28px;
}

.features-title {
  text-align: center;
  margin: 0 0 60px;
  font-size: 2.5em;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 15px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 3em;
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  height: 100%;
}

.card .feature-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }

.highlight { background: var(--panel-soft); }

.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 1.25rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.step {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.step .label { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }

.feedback {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(46,188,133,0.18), rgba(88,166,255,0.12));
  border: 1px solid var(--border);
}

.feedback h3 { margin: 0 0 6px; }
.feedback p { margin: 0; color: var(--muted); }
.feedback .btn { background: #0b1220; color: var(--text); border-color: var(--border); }
.feedback .btn:hover { border-color: var(--accent); }

[data-theme="light"] .feedback .btn {
  background: #1a2a6c;
  color: #fff;
  border-color: #2a3a8c;
}

[data-theme="light"] .feedback .btn:hover {
  background: #2a3a8c;
  border-color: #2a3a8c;
}

.muted { color: var(--muted); }
.muted-list { color: var(--muted); padding-left: 18px; }

/* Ensure anchor scroll reveals the section title below sticky header */
.section-title {
  scroll-margin-top: 100px;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 20;
  background: #1a2a6c;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
  max-width: 1080px;
  margin: 0 auto;
  width: calc(100% - 24px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.footer a { color: #fff; }

[data-theme="dark"] .footer {
  background: #111727;
  border-color: rgba(255, 255, 255, 0.06);
}

.footer-hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .feedback { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .nav { display: none; }
}
