/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --accent-subtle: rgba(88, 166, 255, 0.1);
  --green: #3fb950;
  --green-subtle: rgba(63, 185, 80, 0.1);
  --radius: 8px;
  --max-w: 1100px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

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

h1, h2, h3 { line-height: 1.25; }

code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 0.875em;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}
th { background: var(--bg-card); font-weight: 600; }
td { background: var(--bg); }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--text);
}
.nav-brand:hover { color: var(--text); opacity: 0.85; }
.nav-icon { width: 28px; height: 28px; }
.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.925rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero {
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse at 50% 0%, rgba(88, 166, 255, 0.08), transparent 60%);
}
.hero-icon { width: 80px; height: 80px; margin-bottom: 20px; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 20px; }
.hero-desc { max-width: 600px; margin: 0 auto 32px; color: var(--text-muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 11px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 0 20px rgba(88, 166, 255, 0.3); }
.btn-secondary {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); color: var(--text); }

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: 2rem; font-weight: 700; text-align: center;
  margin-bottom: 48px; letter-spacing: -0.01em;
}

/* === Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.3s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.925rem; }

/* === Screenshots === */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.screenshot {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.screenshot:hover { border-color: var(--accent); transform: translateY(-2px); }
.screenshot img {
  width: 100%; height: auto; display: block;
}
.screenshot figcaption {
  padding: 12px 16px; font-size: 0.875rem;
  color: var(--text-muted); text-align: center;
}

/* === Sync Flow === */
.sync-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.sync-step {
  text-align: center; padding: 28px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sync-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-subtle); color: var(--accent);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 14px;
}
.sync-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sync-step p { color: var(--text-muted); font-size: 0.9rem; }

/* === CTA / Download === */
.section-cta { background: var(--bg-alt); text-align: center; }
.cta-sub { color: var(--text-muted); margin-bottom: 36px; font-size: 1.05rem; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 680px; margin: 0 auto;
}
.download-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.2s;
}
.download-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 24px rgba(88, 166, 255, 0.1); color: var(--text); }
.download-icon { font-size: 2.2rem; }
.download-card h3 { font-size: 1.05rem; }
.download-meta { font-size: 0.825rem; color: var(--text-muted); }

.download-card--coming { opacity: 0.5; cursor: default; pointer-events: none; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-grid {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-icon { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* === Privacy Page === */
.privacy-page { padding: 100px 0 60px; }
.privacy-page h1 { font-size: 2.4rem; margin-bottom: 6px; }
.privacy-date { color: var(--text-muted); margin-bottom: 36px; }
.privacy-page h2 {
  font-size: 1.3rem; margin-top: 36px; margin-bottom: 12px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.privacy-page p, .privacy-page li { color: var(--text-muted); margin-bottom: 8px; }
.privacy-page ul { padding-left: 24px; margin-bottom: 16px; }
.privacy-page li { margin-bottom: 6px; }
.privacy-page strong { color: var(--text); }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px; gap: 14px;
  }
  .nav-toggle { display: flex; }

  .hero h1 { font-size: 2.2rem; }
  .hero-icon { width: 60px; height: 60px; }
  .section-title { font-size: 1.6rem; margin-bottom: 32px; }
  .section { padding: 56px 0; }
  .hero { padding: 100px 24px 60px; }
}
