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

:root {
  --bg:        #0a0a0f;
  --bg2:       #0f0f1a;
  --bg3:       #141424;
  --card:      #13131f;
  --card-h:    #1a1a2e;
  --border:    #1e1e35;
  --border-h:  #3a3a6a;
  --accent:    #4f6ef7;
  --accent2:   #7c3aed;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --text:      #e2e2f0;
  --text-muted:#8888aa;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --radius:    14px;
  --shadow:    0 8px 40px rgba(79,110,247,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-head);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-bracket { color: var(--accent); }
.logo-accent  { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
  font-size: .85rem; font-weight: 700;
  transition: opacity .2s !important;
}
.btn-nav:hover { opacity: .85; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center; justify-content: space-between;
  gap: 48px;
  padding: 100px 80px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(79,110,247,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,110,247,.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, transparent 40%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 560px; }

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  background: rgba(79,110,247,.15);
  border: 1px solid rgba(79,110,247,.35);
  color: var(--accent);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: .05em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero-highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 440px; margin-bottom: 40px; }

.hero-stats { display: flex; align-items: center; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* PHONE MOCKUP */
.hero-visual { position: relative; z-index: 1; flex-shrink: 0; }
.phone-mockup {
  width: 200px; height: 360px;
  background: var(--card);
  border-radius: 32px;
  border: 2px solid var(--border-h);
  padding: 24px 16px;
  box-shadow: 0 0 80px rgba(79,110,247,.2), var(--shadow);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
.phone-screen { display: flex; flex-direction: column; gap: 10px; }
.screen-line { height: 8px; background: var(--border); border-radius: 4px; animation: pulse 2s ease-in-out infinite; }
.screen-line.short { width: 60%; }
@keyframes pulse { 0%,100% { opacity:.4; } 50% { opacity:.9; } }

.app-icon-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 16px;
}
.app-icon {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
  text-align: center; font-size: 1.4rem;
  transition: background .3s;
}
.app-icon:hover { background: var(--card-h); }

/* ===== FILTER BAR ===== */
.filter-bar {
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.filter-bar .container { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-btn {
  font-family: var(--font-mono); font-size: .8rem;
  padding: 8px 20px; border-radius: 100px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

/* ===== APPS SECTION ===== */
.apps-section { padding: 80px 0; }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0; transition: opacity .3s;
}
.app-card:hover { border-color: var(--border-h); transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card:hover::before { opacity: 1; }

.app-card--coming { opacity: .75; }
.app-card--coming:hover { opacity: 1; }

.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.app-icon-large {
  font-size: 2.4rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px; line-height: 1;
}

.app-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.badge {
  font-family: var(--font-mono); font-size: .65rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px; letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-pwa   { background: rgba(79,110,247,.18); color: #818cf8; border: 1px solid rgba(79,110,247,.3); }
.badge-apk   { background: rgba(34,197,94,.15);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.badge-store { background: rgba(245,158,11,.15); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }
.badge-ios   { background: rgba(0,122,255,.15);  color: #60a5fa; border: 1px solid rgba(0,122,255,.3); }
.badge-new   { background: rgba(124,58,237,.2);  color: #a78bfa; border: 1px solid rgba(124,58,237,.3); }
.badge-soon  { background: rgba(239,68,68,.12);  color: #f87171; border: 1px solid rgba(239,68,68,.25); }

.card-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }

.app-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; }

.app-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }

.app-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.meta-item {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--text-muted); display: flex; align-items: center; gap: 4px;
}

.app-requirements { display: flex; gap: 8px; flex-wrap: wrap; }
.req {
  font-family: var(--font-mono); font-size: .68rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 6px; color: var(--text-muted);
}

.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.btn-download {
  flex: 1; min-width: 120px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  border: none; cursor: pointer; transition: all .2s; text-align: center;
}

.btn-apk {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.btn-apk:hover { opacity: .88; transform: translateY(-1px); }

.btn-appstore {
  background: #000;
  color: #fff;
  border: 1px solid #333;
}
.btn-appstore:hover { background: #1a1a1a; border-color: #60a5fa; color: #60a5fa; }

.btn-store {
  background: transparent;
  border: 1px solid var(--border-h);
  color: var(--text);
}
.btn-store:hover { border-color: var(--accent); color: var(--accent); }

.btn-notify {
  background: transparent;
  border: 1px solid var(--border-h);
  color: var(--text-muted);
  width: 100%;
}
.btn-notify:hover { border-color: var(--amber); color: var(--amber); }

/* ===== INSTALL GUIDE ===== */
.install-guide { padding: 80px 0; background: var(--bg2); border-top: 1px solid var(--border); }

.section-header { margin-bottom: 48px; }
.section-tag {
  font-family: var(--font-mono); font-size: .8rem;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.section-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.guide-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .25s;
}
.guide-card:hover { border-color: var(--border-h); }

.guide-icon { font-size: 2rem; margin-bottom: 14px; }
.guide-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

.guide-steps {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  counter-reset: steps;
}
.guide-steps li {
  counter-increment: steps;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .88rem; color: var(--text-muted);
}
.guide-steps li::before {
  content: counter(steps);
  font-family: var(--font-mono); font-size: .7rem; font-weight: 700;
  background: var(--accent); color: #fff;
  min-width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.guide-steps strong { color: var(--text); }
code {
  font-family: var(--font-mono); font-size: .8rem;
  background: var(--bg3); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; color: var(--accent);
}

/* ===== CTA ===== */
.cta-section { padding: 80px 0; }
.cta-box {
  background: var(--card);
  border: 1px solid var(--border-h);
  border-radius: 20px; padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(79,110,247,.15), transparent 70%);
  border-radius: 50%;
}
.cta-text h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.cta-text p  { color: var(--text-muted); max-width: 380px; }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: opacity .2s, transform .2s;
}
.btn-cta:hover { opacity: .88; transform: translateY(-2px); }

.btn-cta-outline {
  background: transparent; border: 1px solid var(--border-h);
  color: var(--text); padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  transition: border-color .2s, color .2s;
}
.btn-cta-outline:hover { border-color: var(--green); color: var(--green); }

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: .85rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--card); border: 1px solid var(--border-h);
  border-radius: 20px; padding: 40px; max-width: 420px; width: 90%;
  position: relative; text-align: center;
  transform: scale(.9); transition: transform .3s;
}
.modal-overlay.open .modal { transform: scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer;
}
.modal-icon { font-size: 2.5rem; margin-bottom: 12px; }
.modal h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.modal p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }

.modal-form { display: flex; gap: 10px; margin-bottom: 12px; }
.modal-form input {
  flex: 1; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; color: var(--text);
  font-family: var(--font-head); font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.modal-form input:focus { border-color: var(--accent); }

.btn-modal-submit {
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  padding: 10px 20px; font-family: var(--font-head);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: opacity .2s;
}
.btn-modal-submit:hover { opacity: .85; }

.modal-note { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }

/* ===== HIDDEN (filter) ===== */
.app-card.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 80px 24px 60px; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .navbar { padding: 16px 24px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .cta-box { flex-direction: column; text-align: center; padding: 36px 28px; }
  .cta-actions { justify-content: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .apps-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .modal-form { flex-direction: column; }
}
