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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --accent: #7c6ff7;
  --accent2: #a78bfa;
  --accent3: #06b6d4;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 32px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; overflow-x: hidden; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ========== UTILS ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent3)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition); text-decoration: none !important; }
.btn-primary { background: linear-gradient(135deg, var(--accent), #5b53e0); color: #fff; box-shadow: 0 2px 20px rgba(124,111,247,0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 28px rgba(124,111,247,0.55); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border-hover); }
.btn-ghost:hover { background: var(--bg3); border-color: var(--accent); color: var(--accent2); }
.btn-nav { background: linear-gradient(135deg, var(--accent), #5b53e0); color: #fff; padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-xl { padding: 18px 40px; font-size: 1.1rem; border-radius: 14px; }

/* ========== NAV ========== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,10,15,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.nav-logo-icon { font-size: 1.4rem; }
.nav-logo-text { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color var(--transition); }
.nav-links a:hover { color: var(--text); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 16px 24px 20px; border-top: 1px solid var(--border); }
.nav-mobile a { color: var(--text-muted); font-size: 1rem; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nav-mobile a.btn { margin-top: 12px; justify-content: center; }
.nav-mobile.open { display: flex; }

/* ========== HERO ========== */
.hero { position: relative; padding: 140px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.wave { position: absolute; border-radius: 50%; opacity: 0.12; animation: pulse 8s ease-in-out infinite; }
.wave-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; animation-delay: 0s; }
.wave-2 { width: 500px; height: 500px; background: var(--accent3); top: -100px; right: -150px; animation-delay: 3s; }
.wave-3 { width: 400px; height: 400px; background: #a78bfa; bottom: -100px; left: 30%; animation-delay: 6s; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 0.10; } 50% { transform: scale(1.15); opacity: 0.18; } }

.hero .container { position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-block; background: rgba(124,111,247,0.15); border: 1px solid rgba(124,111,247,0.3); color: var(--accent2); font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; letter-spacing: 0.03em; text-transform: uppercase; }
.hero-title { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-req { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 60px; }

/* App Window Mock */
.hero-app-preview { display: flex; justify-content: center; }
.app-window { background: #1c1c28; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; width: 100%; max-width: 640px; box-shadow: 0 32px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05); overflow: hidden; text-align: left; }
.app-titlebar { background: #252535; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.traffic-lights { display: flex; gap: 7px; }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.red { background: #ff5f57; }
.tl.yellow { background: #ffbd2e; }
.tl.green { background: #28ca41; }
.app-title-text { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; margin: 0 auto; }
.app-body { display: flex; min-height: 260px; }
.app-sidebar { width: 200px; border-right: 1px solid rgba(255,255,255,0.07); padding: 12px 8px; flex-shrink: 0; }
.app-theme-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; margin-bottom: 8px; font-size: 0.75rem; background: rgba(255,255,255,0.05); border-radius: 6px; cursor: pointer; }
.tag { color: var(--text); font-weight: 600; font-size: 0.72rem; }
.chevron { color: var(--text-muted); font-size: 0.7rem; }
.app-event { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.app-event span:first-child { font-size: 0.9rem; }
.app-event.active { background: rgba(124,111,247,0.15); color: var(--text); }
.badge { margin-left: auto; background: rgba(255,255,255,0.08); color: var(--text-muted); font-size: 0.65rem; padding: 1px 6px; border-radius: 100px; }
.app-event.active .badge { background: rgba(124,111,247,0.25); color: var(--accent2); }
.app-detail { flex: 1; padding: 16px; }
.app-detail-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.detail-icon { font-size: 1.4rem; }
.detail-name { font-weight: 700; font-size: 0.95rem; }
.toggle-on { margin-left: auto; width: 36px; height: 20px; background: var(--accent); border-radius: 10px; position: relative; }
.toggle-on::after { content: ''; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; background: white; border-radius: 50%; }
.detail-source { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; }
.detail-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.detail-btn { padding: 6px 14px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; cursor: pointer; border: 1.5px solid rgba(255,255,255,0.1); background: transparent; color: var(--text-muted); }
.detail-btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.detail-vol { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 12px; }
.vol-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.vol-fill { width: 80%; height: 100%; background: var(--accent); border-radius: 2px; }
.detail-triggered { font-size: 0.7rem; color: var(--text-muted); }

/* ========== EVENTS STRIP ========== */
.events-strip { padding: 60px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-label { text-align: center; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 28px; }
.events-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.event-chip { background: var(--bg3); border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); cursor: default; }
.event-chip:hover { border-color: var(--accent); color: var(--text); background: rgba(124,111,247,0.08); }

/* ========== FEATURES ========== */
.features { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 40px rgba(0,0,0,0.3); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

/* ========== THEMES ========== */
.themes { padding: 100px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.themes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.theme-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: var(--transition); cursor: default; }
.theme-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(124,111,247,0.15); }
.theme-card.default { border-color: rgba(124,111,247,0.3); background: rgba(124,111,247,0.05); }
.theme-emoji { font-size: 2.2rem; margin-bottom: 14px; }
.theme-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.default-tag { font-size: 0.68rem; background: rgba(124,111,247,0.2); color: var(--accent2); border-radius: 100px; padding: 2px 8px; font-weight: 600; }
.theme-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ========== COMPATIBILITY ========== */
.compat { padding: 100px 0; }
.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.compat-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; }
.compat-table { display: flex; flex-direction: column; gap: 10px; }
.compat-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.os { color: var(--text); }
.status { font-size: 0.8rem; font-weight: 600; }
.status.ok { color: var(--green); }
.status.warn { color: var(--yellow); }
.status.no { color: var(--red); }
.arch-block { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.arch-item { display: flex; gap: 14px; align-items: flex-start; }
.arch-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.arch-item strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }
.arch-item p { font-size: 0.82rem; color: var(--text-muted); }
.compat-note { font-size: 0.78rem; color: var(--text-muted); padding: 10px 14px; background: rgba(255,255,255,0.04); border-radius: 8px; border-left: 3px solid var(--accent); }
.perm-list { display: flex; flex-direction: column; gap: 16px; }
.perm-item { display: flex; gap: 14px; align-items: flex-start; }
.perm-icon { font-size: 1.5rem; flex-shrink: 0; }
.perm-item strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.perm-item p { font-size: 0.82rem; color: var(--text-muted); }
.perm-badge { margin-top: 8px; font-size: 0.78rem; color: var(--green); background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 8px; padding: 8px 12px; }

/* ========== PRIVACY ========== */
.privacy { padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.privacy-card { display: flex; align-items: flex-start; gap: 28px; background: var(--bg3); border: 1px solid rgba(34,197,94,0.2); border-radius: var(--radius); padding: 36px; max-width: 800px; margin: 0 auto; }
.privacy-icon { font-size: 2.5rem; flex-shrink: 0; }
.privacy-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.privacy-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.privacy-card code { background: rgba(255,255,255,0.07); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; color: var(--accent2); }

/* ========== FAQ ========== */
.faq { padding: 100px 0; }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition); }
.faq-item[open] { border-color: var(--border-hover); }
.faq-item summary { padding: 20px 24px; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; margin-left: 16px; transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ========== DOWNLOAD ========== */
.download { padding: 100px 0; }
.download-card { position: relative; background: var(--bg2); border: 1px solid var(--border); border-radius: 24px; padding: 64px 40px; text-align: center; overflow: hidden; max-width: 600px; margin: 0 auto; }
.download-glow { position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(124,111,247,0.2), rgba(6,182,212,0.1), rgba(124,111,247,0.2)); border-radius: 24px; z-index: 0; opacity: 0.6; }
.download-content { position: relative; z-index: 1; }
.download-icon { font-size: 3.5rem; margin-bottom: 16px; }
.download-card h2 { font-size: 2rem; font-weight: 900; margin-bottom: 10px; }
.download-version { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 6px; }
.download-req { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 32px; }
.download-perks { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.download-perks span { font-size: 0.85rem; color: var(--accent2); font-weight: 600; }
.download-update-note { margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }
.download-gatekeeper { display:flex; gap:8px; align-items:flex-start; margin-top:16px; background:rgba(255,200,0,0.08); border:1px solid rgba(255,200,0,0.2); border-radius:8px; padding:10px 14px; font-size:0.8rem; color:var(--text-muted); text-align:left; }
.download-gatekeeper span:first-child { flex-shrink:0; }
.download-license-note { margin-top: 12px; font-size: 0.8rem; color: var(--text-muted); }
.download-license-note a { color: var(--accent2); }

/* ========== MODAL ========== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(8px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border-hover); border-radius: 18px; width: 100%; max-width: 620px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 32px 80px rgba(0,0,0,0.8); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; line-height: 1; padding: 0 4px; transition: color var(--transition); }
.modal-close:hover { color: var(--text); }
.modal-body { overflow-y: auto; padding: 24px; flex: 1; }
.modal-body h4 { font-size: 0.9rem; font-weight: 700; margin: 20px 0 8px; color: var(--text); }
.modal-body h4:first-child { margin-top: 0; }
.modal-body p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 4px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); text-align: right; flex-shrink: 0; }

/* ========== FOOTER ========== */
.footer { padding: 60px 0 32px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 8px; }
.footer-logo { font-size: 1.1rem; font-weight: 700; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .features-grid, .themes-grid, .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 640px) {
  .features-grid, .themes-grid, .compat-grid { grid-template-columns: 1fr; }
  .privacy-card { flex-direction: column; }
  .hero-title { font-size: 2.4rem; }
  .app-sidebar { width: 150px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 16px; }
}
@media (max-width: 480px) {
  .app-sidebar { display: none; }
  .hero-cta { flex-direction: column; align-items: center; }
}
