/* ═══════════════════════════════════════════════
   CyberBits — Global Styles
   ═══════════════════════════════════════════════ */
:root {
  --bg: #0a0e1a;
  --bg2: #111827;
  --bg3: #1e293b;
  --border: #1e293b;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --accent: #0ea5e9;
  --accent2: #6366f1;
  --green: #10b981;
  --yellow: #f59e0b;
  --red: #ef4444;
  --gradient: linear-gradient(135deg, #0ea5e9, #6366f1);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.4);
}
*, *::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', Inter, Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all .25s; text-decoration: none;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 16px rgba(14,165,233,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,.4); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ─── Navigation ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,14,26,.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); padding: 0 24px; height: 72px;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #fff; }
.nav-brand span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* ─── Hero ─── */
.hero {
  padding: 160px 0 100px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,165,233,.12) 0%, transparent 60%);
}
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero h1 .highlight { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 18px; color: var(--text2); max-width: 640px; margin: 0 auto 40px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--bg3); padding: 8px 16px; border-radius: 99px; font-size: 13px; color: var(--accent); margin-bottom: 24px; border: 1px solid var(--border); }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 64px; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num { font-size: 36px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .stat-label { font-size: 14px; color: var(--text3); margin-top: 4px; }

/* ─── Sections ─── */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section-header p { color: var(--text2); font-size: 17px; max-width: 600px; margin: 0 auto; }
.section-tag { display: inline-block; background: rgba(14,165,233,.1); color: var(--accent); padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; margin-bottom: 16px; border: 1px solid rgba(14,165,233,.2); }

/* ─── Feature Grid ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all .3s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 20px; background: rgba(14,165,233,.1); }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.feature-card p { color: var(--text2); font-size: 14px; line-height: 1.7; }

/* ─── Tools Showcase ─── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.tool-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-align: center; transition: all .3s; cursor: pointer;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card .tool-icon { font-size: 32px; margin-bottom: 12px; }
.tool-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.tool-card p { font-size: 12px; color: var(--text3); }
.tool-card .badge { display: inline-block; background: rgba(14,165,233,.1); color: var(--accent); padding: 2px 8px; border-radius: 4px; font-size: 11px; margin-top: 8px; }
.tool-card .badge.pro { background: rgba(99,102,241,.1); color: var(--accent2); }
.tool-card .badge.free { background: rgba(16,185,129,.1); color: var(--green); }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.price-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; transition: all .3s;
}
.price-card.popular { border-color: var(--accent); box-shadow: 0 0 40px rgba(14,165,233,.15); }
.price-card.popular::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient); color: #fff; padding: 4px 16px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.price-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.price-card .price { font-size: 42px; font-weight: 800; margin: 16px 0; }
.price-card .price span { font-size: 16px; color: var(--text3); font-weight: 400; }
.price-card .price-desc { color: var(--text3); font-size: 14px; margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 32px; }
.price-card ul li { padding: 8px 0; font-size: 14px; color: var(--text2); display: flex; align-items: center; gap: 10px; }
.price-card ul li::before { content: '✓'; color: var(--green); font-weight: 700; }
.price-card ul li.disabled { color: var(--text3); opacity: .5; }
.price-card ul li.disabled::before { content: '✗'; color: var(--text3); }

/* ─── Testimonials ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testimonial-card .stars { color: var(--yellow); margin-bottom: 16px; font-size: 18px; }
.testimonial-card blockquote { color: var(--text2); font-size: 15px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.testimonial-card .author-info h4 { font-size: 14px; font-weight: 600; }
.testimonial-card .author-info p { font-size: 12px; color: var(--text3); }

/* ─── Blog ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card .blog-img { height: 200px; background: var(--bg3); position: relative; overflow: hidden; }
.blog-card .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 24px; }
.blog-card .blog-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text3); margin-bottom: 12px; }
.blog-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }
.blog-card .blog-tag { display: inline-block; background: rgba(14,165,233,.1); color: var(--accent); padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }

/* ─── CTA ─── */
.cta-section {
  background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(99,102,241,.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-content { text-align: center; }
.cta-content h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-content p { color: var(--text2); font-size: 17px; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── Footer ─── */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text3); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text2); font-size: 14px; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { color: var(--text3); font-size: 13px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--text3); font-size: 18px; transition: color .2s; }
.footer-social a:hover { color: var(--accent); }

/* ─── Auth Forms ─── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 24px; }
.auth-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; text-align: center; }
.auth-card .auth-sub { color: var(--text3); font-size: 14px; text-align: center; margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text2); margin-bottom: 8px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 15px; transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group .error { color: var(--red); font-size: 12px; margin-top: 4px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--accent); }
.form-check label { font-size: 13px; color: var(--text3); }
.form-divider { text-align: center; color: var(--text3); font-size: 13px; margin: 24px 0; position: relative; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--green); }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--red); }

/* ─── Legal Pages ─── */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.legal-page .updated { color: var(--text3); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 22px; font-weight: 600; margin: 32px 0 16px; }
.legal-page p, .legal-page li { color: var(--text2); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }

/* ─── Download Section ─── */
.download-cards { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.download-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; text-align: center; width: 280px; transition: all .3s;
}
.download-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.download-card .dl-icon { font-size: 48px; margin-bottom: 16px; }
.download-card h3 { font-size: 18px; margin-bottom: 8px; }
.download-card p { font-size: 13px; color: var(--text3); margin-bottom: 20px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); padding: 24px; border-bottom: 1px solid var(--border); }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ─── Animations ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; animation: fadeInUp .6s ease forwards; }
.animate-delay-1 { animation-delay: .1s; }
.animate-delay-2 { animation-delay: .2s; }
.animate-delay-3 { animation-delay: .3s; }

/* ─── Glow effects ─── */
.glow-border { position: relative; }
.glow-border::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: var(--gradient); z-index: -1; opacity: 0; transition: opacity .3s;
}
.glow-border:hover::after { opacity: 1; }

/* ─── Loading spinner ─── */
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Toast notifications ─── */
.toast-container { position: fixed; top: 88px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 20px; font-size: 14px; box-shadow: var(--shadow); animation: fadeInUp .3s ease; display: flex; align-items: center; gap: 10px; }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }
