/* ============================================
   LANAgent Landing Page — Dark Modern Theme
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --text: #e4e4e7;
  --text-muted: #8b8b9e;
  --accent: #00a8ff;
  --accent-light: #4dc3ff;
  --accent-glow: rgba(0, 168, 255, 0.3);
  --green: #22c55e;
  --blue: #3b82f6;
  --orange: #f59e0b;
  --purple: #a855f7;
  --border: #1e1e2e;
  --radius: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.logo { font-weight: 800; font-size: 1.25rem; color: #fff; letter-spacing: -0.5px; }
.logo span { color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.3s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; cursor: pointer; border: none; text-decoration: none;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { background: #0090e0; color: #fff; transform: translateY(-1px); box-shadow: 0 0 30px var(--accent-glow); }
.btn-outline { border: 1px solid rgba(255,255,255,0.15); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent-light); color: #fff; background: rgba(0,168,255,0.1); }

/* ── Hero ── */
#hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 6rem 1.5rem 4rem; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 0.35rem 1rem; border-radius: 20px;
  background: rgba(0,168,255,0.15); border: 1px solid rgba(0,168,255,0.3);
  color: var(--accent-light); font-size: 0.8rem; font-weight: 600; margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
#hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.25rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), #60a5fa, var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; font-family: var(--mono); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 150px;
  background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none;
}

/* ── Sections ── */
.section { padding: 6rem 0; scroll-margin-top: 5rem; }
.section-dark { background: var(--bg-secondary); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-tag {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 6px;
  background: rgba(0,168,255,0.12); color: var(--accent-light);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(0,168,255,0.3); background: var(--bg-card-hover); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(0,168,255,0.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--accent-light); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ── Crypto Section ── */
.crypto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.crypto-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: all 0.3s;
}
.crypto-card:hover { border-color: rgba(0,168,255,0.3); transform: translateY(-2px); }
.crypto-card-wide { grid-column: span 3; }
.crypto-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.crypto-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.crypto-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; line-height: 1.5; }

.strategy-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 0.5rem; }
.strategy-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.strategy-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.dot-blue { background: var(--blue); box-shadow: 0 0 8px rgba(59,130,246,0.4); }
.dot-purple { background: var(--purple); box-shadow: 0 0 8px rgba(168,85,247,0.4); }
.dot-orange { background: var(--orange); box-shadow: 0 0 8px rgba(245,158,11,0.4); }

/* ── Network Section ── */
.network-visual { position: relative; height: 350px; margin-bottom: 3rem; border-radius: var(--radius); overflow: hidden; }
#network-canvas { width: 100%; height: 100%; }

/* ── Plugins Section ── */
.plugin-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plugin-cat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: all 0.3s;
}
.plugin-cat:hover { border-color: rgba(0,168,255,0.3); }
.plugin-cat-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.plugin-count {
  font-family: var(--mono); font-weight: 700; font-size: 1.25rem; color: var(--accent-light);
  background: rgba(0,168,255,0.12); padding: 0.25rem 0.6rem; border-radius: 6px; min-width: 40px; text-align: center;
}
.plugin-cat h3 { font-size: 1rem; font-weight: 700; }
.plugin-cat p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* ── Screenshots ── */
.screenshot-list { display: block; width: 100%; }
.screenshot-card { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; width: 100%; max-width: 100%; box-sizing: border-box; margin-bottom: 2.5rem; }
.screenshot-card:hover { border-color: rgba(0,168,255,0.3); transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.screenshot-card img { width: 100%; max-width: 100%; height: auto; display: block; }
.screenshot-label { padding: 0.75rem 1rem; background: var(--bg-card); font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* ── CTA ── */
.cta-container { text-align: center; max-width: 700px; }
.cta-container h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: 1rem; }
.cta-container > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.cta-code {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 2rem; text-align: left; overflow-x: auto;
}
.cta-code code { font-family: var(--mono); font-size: 0.85rem; color: var(--text); line-height: 1.8; }
.code-comment { color: var(--text-muted); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.footer-bottom .container { color: var(--text-muted); font-size: 0.8rem; text-align: center; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-grid, .crypto-grid, .plugin-categories { grid-template-columns: repeat(2, 1fr); }
  .crypto-card-wide { grid-column: span 2; }
  .strategy-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,10,15,0.95); backdrop-filter: blur(20px); flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .feature-grid, .crypto-grid, .plugin-categories, .feature-grid.cols-3 { grid-template-columns: 1fr; }
  .crypto-card-wide { grid-column: span 1; }
  .strategy-list { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.35rem; }
  .footer-links { gap: 2rem; }
  .footer-inner { flex-direction: column; }
  .network-visual { height: 250px; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-header, .feature-card, .crypto-card, .plugin-cat { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.section-header { animation-delay: 0.1s; }
.feature-card:nth-child(1) { animation-delay: 0.15s; }
.feature-card:nth-child(2) { animation-delay: 0.25s; }
.feature-card:nth-child(3) { animation-delay: 0.35s; }
.feature-card:nth-child(4) { animation-delay: 0.45s; }
.feature-card:nth-child(5) { animation-delay: 0.55s; }
.feature-card:nth-child(6) { animation-delay: 0.65s; }

/* Intersection observer will reset these */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
