:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --accent: #00acc1;
  --bg: #f5f7fa;
  --text: #222;
  --muted: #5f6b7a;
  --card-bg: #ffffff;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

a { color: inherit; }

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

/* Header / Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--primary-dark);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 72px 0 90px;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 420px;
}

.hero-text h1 {
  font-size: 2.6rem;
  margin: 0 0 14px;
  line-height: 1.15;
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e3f0ff;
  max-width: 520px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cta-group {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 280px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  transform: rotate(-2deg);
}

/* Sections */
section { padding: 80px 0; }

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-title .eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
}

.section-title h2 {
  font-size: 2rem;
  margin: 8px 0 12px;
  color: var(--primary-dark);
}

.section-title p {
  color: var(--muted);
  line-height: 1.6;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(24px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Screenshots */
.screenshots-section { background: #fff; }

.screenshot-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 24px;
  scroll-snap-type: x mandatory;
}

.screenshot-carousel::-webkit-scrollbar { height: 8px; }
.screenshot-carousel::-webkit-scrollbar-thumb {
  background: #cfd8e3;
  border-radius: 4px;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  text-align: center;
}

.screenshot-item img {
  width: 220px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  cursor: zoom-in;
  transition: transform 0.2s;
}

.screenshot-item img:hover { transform: scale(1.03); }

.screenshot-item span {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Privacy / offline highlight */
.privacy-section {
  background: linear-gradient(135deg, #0a4, #00796b);
  color: #fff;
}

.privacy-section .container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.privacy-text { flex: 1 1 420px; }

.privacy-text h2 { font-size: 1.8rem; margin-top: 0; }
.privacy-text p { line-height: 1.6; color: #e6fff6; }

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  flex: 1 1 320px;
}

.privacy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  background: rgba(255,255,255,0.1);
  padding: 14px 16px;
  border-radius: 12px;
}

.privacy-list li .check {
  font-weight: 900;
  font-size: 1.1rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question .icon { transition: transform 0.25s; font-weight: 400; }

.faq-item.open .faq-question .icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 260px;
  padding: 0 22px 20px;
}

/* Download CTA */
.download-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), #072f5f);
  color: #fff;
}

.download-section h2 { font-size: 2rem; margin-bottom: 14px; }
.download-section p { color: #dce9ff; max-width: 560px; margin: 0 auto 30px; line-height: 1.6; }

/* Footer */
footer.site-footer {
  background: #0b1320;
  color: #b7c2d0;
  padding: 44px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}

.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a { text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  font-size: 0.82rem;
  text-align: center;
  color: #7f8ba0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.2s;
  z-index: 90;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { transform: translateY(-3px); }

/* Responsive */
@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid #eee; }
  .nav-links a { display: block; padding: 16px 24px; }
  .menu-toggle { display: block; }
  .hero-text h1 { font-size: 2rem; }
  section { padding: 56px 0; }
}

