:root {
  --bg: #0d1117;
  --bg-alt: #0a0e14;
  --bg-card: #161b22;
  --bg-card-hover: #1c2129;
  --bg-nav: rgba(13, 17, 23, 0.92);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #636c76;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --border: #30363d;
  --border-light: #21262d;
  --success: #3fb950;
  --warning: #d29922;
  --info: #58a6ff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #c4b5fd; }
img { max-width: 100%; height: auto; }
code { background: var(--bg-card); padding: .15em .4em; border-radius: 4px; font-size: .9em; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 1.5rem;
}
.nav-logo { font-size: 1.25rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.nav-logo span { color: var(--accent-light); }
.nav-links { display: flex; gap: .25rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: .9rem; font-weight: 500;
  padding: .5rem .75rem; border-radius: 8px; transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); }
.nav-links a.active { color: var(--accent-light); background: var(--accent-glow); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; padding: .5rem; }

/* HERO */
.hero {
  padding: 10rem 2rem 5rem; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; right: -50%; bottom: 0;
  background: radial-gradient(ellipse at 50% 20%, var(--accent-glow) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 60%, rgba(88,166,255,.08) 0%, transparent 40%),
              radial-gradient(ellipse at 70% 40%, rgba(63,185,80,.06) 0%, transparent 40%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--accent-glow); border: 1px solid rgba(124,58,237,.3);
  padding: .35rem 1rem; border-radius: 20px;
  font-size: .85rem; color: var(--accent-light); font-weight: 500; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -.02em; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, #60a5fa 50%, var(--success) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem; border: none; border-radius: 10px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px var(--accent-glow); }
.btn-primary:hover { background: #6d28d9; transform: translateY(-1px); color: #fff; }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-dim); color: var(--text); }

/* BADGES */
.badges { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-card); border: 1px solid var(--border-light);
  padding: .4rem .85rem; border-radius: 20px;
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-green { background: var(--success); }
.dot-blue { background: var(--info); }
.dot-purple { background: var(--accent-light); }

/* SECTIONS */
.section { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-light); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: .75rem; }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* FEATURE GRID */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.75rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem; background: var(--accent-glow);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: .5rem; font-weight: 600; }
.feature-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.6; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; padding: 3rem 0; }
.stat { text-align: center; }
.stat-number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--info));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

/* SCREENSHOTS */
.screenshots-scroll {
  display: flex; gap: 1.25rem; overflow-x: auto; padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.screenshots-scroll::-webkit-scrollbar { height: 6px; }
.screenshots-scroll::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 3px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.screenshot-item {
  flex: 0 0 220px; scroll-snap-align: center;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden; transition: transform var(--transition);
}
.screenshot-item:hover { transform: scale(1.03); }
.screenshot-placeholder {
  width: 220px; height: 390px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .5rem;
  color: var(--text-dim); font-size: .85rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
}
.screenshot-placeholder .icon { font-size: 2rem; opacity: .5; }
.screenshot-label { padding: .6rem .8rem; font-size: .8rem; color: var(--text-muted); text-align: center; font-weight: 500; }

/* STEPS */
.steps { display: flex; flex-direction: column; gap: 1.5rem; }
.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.5rem;
}
.step-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-glow); color: var(--accent-light);
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { color: var(--text-muted); font-size: .9rem; }

/* FAQ ACCORDION (details/summary) */
.faq-list { display: flex; flex-direction: column; gap: .75rem; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--border); }
.faq-item summary {
  padding: 1.2rem 1.5rem; font-weight: 600; font-size: 1rem;
  cursor: pointer; list-style: none; color: var(--text);
  transition: background var(--transition);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '▼'; font-size: .7rem; color: var(--text-dim); transition: transform var(--transition); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--bg-card-hover); }
.faq-answer { padding: 0 1.5rem 1.2rem; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.faq-answer p { margin-bottom: .5rem; }
.faq-answer ul, .faq-answer ol { padding-left: 1.25rem; margin-bottom: .5rem; }

/* CHANGELOG TIMELINE */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--border-light); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-marker {
  position: absolute; left: -30px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-content {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 1.75rem;
}
.timeline-header { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.timeline-header h3 { font-size: 1.25rem; font-weight: 700; }
.timeline-header time { color: var(--text-dim); font-size: .85rem; }
.timeline-content h4 { font-size: 1rem; font-weight: 600; color: var(--accent-light); margin: 1.25rem 0 .5rem; }
.timeline-content h4:first-of-type { margin-top: .5rem; }
.timeline-content ul { padding-left: 1.25rem; margin-bottom: .5rem; }
.timeline-content li { color: var(--text-muted); font-size: .9rem; padding: .15rem 0; }

/* LEGAL */
.legal { max-width: 800px; margin: 0 auto; padding: 7rem 2rem 4rem; }
.legal h1 { font-size: 2rem; margin-bottom: .5rem; }
.legal .date { color: var(--text-muted); margin-bottom: 2rem; font-size: .9rem; }
.legal h2 { font-size: 1.3rem; margin: 2.5rem 0 .75rem; color: var(--accent-light); }
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: .75rem; }
.legal ul, .legal ol { padding-left: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.legal th, .legal td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border-light); font-size: .9rem; }
.legal th { color: var(--text); font-weight: 600; background: var(--bg-card); }
.legal td { color: var(--text-muted); }
.legal .highlight {
  background: rgba(63,185,80,.08); border: 1px solid rgba(63,185,80,.2);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.legal .highlight strong { color: var(--success); }

/* FORM */
.contact-form { margin: 0 auto; }
.form-section { max-width: 720px; margin: 0 auto; padding: 7rem 2rem 4rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .4rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 8px; color: var(--text); font-size: .95rem;
  font-family: inherit; transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select option { background: var(--bg-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group input[type="checkbox"] { width: auto; }

/* TIPS */
.tip {
  margin-top: .75rem; padding: .75rem 1rem;
  background: rgba(88,166,255,.08); border: 1px solid rgba(88,166,255,.15);
  border-radius: 8px; font-size: .9rem; color: var(--info); line-height: 1.5;
}

/* UTILITY */
.text-secondary { color: var(--text-muted); }

/* FOOTER */
.footer { border-top: 1px solid var(--border-light); padding: 3rem 1.5rem; background: var(--bg-alt); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: .5rem; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: .75rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: .9rem; padding: .2rem 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 2rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-dim); font-size: .8rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-nav); padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(16px);
  }
  .hero { padding: 7rem 1.5rem 3rem; }
  .section { padding: 3rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .step { padding-left: 48px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
