/* ============================================
   CSS Variables & Theme
   ============================================ */
:root {
  --bg: #0b0d10;
  --card: #111418;
  --text: #e6edf3;
  --muted: #9aa7b2;
  --brand: #5fb3f1;
  --accent: #8bce6b;
  --border: #21262d;
  --highlight: rgba(95, 179, 241, 0.1);
  --highlight-border: rgba(95, 179, 241, 0.3);
}

/* ============================================
   Base Styles
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(95,179,241,0.10), transparent 60%),
              radial-gradient(900px 500px at 10% -10%, rgba(139,206,107,0.08), transparent 50%),
              var(--bg);
  line-height: 1.6;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.between {
  justify-content: space-between;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(10px);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.brand:hover {
  color: var(--brand);
}

.logo-icon {
  font-size: 24px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover {
  opacity: 1;
  color: var(--brand);
  background: var(--highlight);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 80px 0 60px;
  text-align: left;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--highlight);
  border: 1px solid var(--highlight-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease;
}

.hero h1 {
  font-size: 56px;
  margin: 0 0 16px;
  line-height: 1.1;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 24px;
  color: var(--brand);
  margin: 0 0 16px;
  font-weight: 600;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.desc {
  color: var(--muted);
  font-size: 18px;
  max-width: 760px;
  margin-bottom: 32px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #4a9dd5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(95, 179, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(95, 179, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--highlight);
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.5s backwards;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   Preview Section
   ============================================ */
.preview-section {
  padding: 40px 0;
}

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

.preview-card {
  text-align: center;
  padding: 32px 24px;
  background: color-mix(in oklab, var(--card) 50%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  box-shadow: 0 8px 24px rgba(95, 179, 241, 0.15);
}

.preview-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.preview-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.preview-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: 36px;
  margin: 0 0 12px;
  color: var(--text);
}

.section-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

.card {
  background: color-mix(in oklab, var(--card) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(95, 179, 241, 0.1);
}

.feature-card {
  position: relative;
}

.card-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: inline-block;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
}

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

.card.highlight {
  background: linear-gradient(135deg, rgba(95, 179, 241, 0.08) 0%, rgba(139, 206, 107, 0.06) 100%);
  border: 2px solid var(--brand);
}

.inline-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================
   Why Section
   ============================================ */
.why-section {
  padding: 60px 0;
}

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

.why-item {
  position: relative;
  padding-left: 60px;
}

.why-number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  opacity: 0.3;
}

.why-item h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

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

/* ============================================
   Tech Section
   ============================================ */
.tech {
  padding: 60px 0;
}

.tech-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tech-item {
  padding: 20px;
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tech-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

.tech-item p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.permissions-box {
  background: color-mix(in oklab, var(--card) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.permissions-box h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text);
}

.bullets {
  color: var(--muted);
  padding-left: 20px;
  margin: 16px 0;
}

.bullets li {
  margin: 10px 0;
  line-height: 1.6;
}

.bullets strong {
  color: var(--text);
}

.note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.note a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

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

/* ============================================
   Download Section
   ============================================ */
.download-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(95, 179, 241, 0.03) 50%, transparent 100%);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  border: 2px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 220px;
}

.download-btn:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(95, 179, 241, 0.2);
}

.download-icon {
  font-size: 48px;
}

.download-text {
  text-align: left;
}

.download-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 2px;
}

.download-store {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.download-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  padding: 60px 0 80px;
}

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

.faq-item {
  padding: 24px;
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--card) 90%, transparent);
}

.faq-item h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
}

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
  margin-top: 40px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand .brand {
  margin-bottom: 12px;
  display: inline-block;
}

.footer-tagline {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 64px;
  justify-content: flex-end;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links-inline a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   Legal Pages
   ============================================ */
.legal {
  max-width: 820px;
  padding: 48px 24px 80px;
}

.legal h1 {
  font-size: 40px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal .meta {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.8;
}

.legal-section {
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
}

.legal h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 600;
}

.legal p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

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

.legal ul {
  margin: 16px 0;
}

.legal li {
  margin: 8px 0;
}

.privacy-highlight {
  background: linear-gradient(135deg, rgba(95, 179, 241, 0.08) 0%, rgba(139, 206, 107, 0.06) 100%);
  border: 2px solid var(--brand);
  border-radius: 12px;
  padding: 32px;
  margin: 32px 0;
}

.privacy-highlight h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 24px;
}

.privacy-highlight p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.permission-item {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.permission-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

.permission-item p {
  margin-bottom: 12px;
}

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

.privacy-footer {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 24px 32px;
  margin-top: 48px;
}

.privacy-footer p {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 18px;
  }

  .desc {
    font-size: 16px;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .hero-stats {
    gap: 32px;
  }

  .stat-value {
    font-size: 24px;
  }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
