/*
Theme Name: BlockchainAddict.AI — Light
Theme URI: https://blockchainaddict.ai
Author: BlockchainAddict.AI
Description: Light-mode version of the BlockchainAddict.AI DeFi neon homepage. Clean white surfaces, cyan/purple/green accents. Injecting Knowledge — No Rehab Needed.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bai-light
Tags: light, custom-colors, custom-menu, featured-images, full-width-template, blog
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --white: #FFFFFF;
  --bg: #F4F6FB;
  --bg-2: #EBF0FA;
  --ink: #0B0F1A;
  --ink-2: #2D3348;
  --ink-3: #5A6282;
  --ink-4: #8B93B0;
  --border: rgba(0,0,0,.08);
  --border-md: rgba(0,0,0,.13);

  --cyan: #0EA5E9;
  --cyan-lt: #E0F2FE;
  --cyan-dk: #0284C7;
  --purple: #8B5CF6;
  --purple-lt: #EDE9FE;
  --green: #10B981;
  --green-lt: #D1FAE5;
  --amber: #F59E0B;
  --amber-lt: #FEF3C7;

  --rad-sm: 6px;
  --rad: 10px;
  --rad-lg: 14px;
  --rad-pill: 100px;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05);
  --shadow-md: 0 6px 24px rgba(0,0,0,.10), 0 0 0 1px rgba(0,0,0,.05);
}

/* =============================================
   BASE RESET
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-dk); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { color: var(--ink); line-height: 1.2; }
p { color: var(--ink-3); margin-bottom: 1.2rem; }
::selection { background: var(--cyan); color: white; }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

/* =============================================
   HEADER / NAV
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 58px;
}

.site-branding a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.site-branding .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
  flex-shrink: 0;
  animation: livePulse 2.5s ease infinite;
}
.site-branding .logo-ai { color: var(--cyan); }

@keyframes livePulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
  50% { box-shadow: 0 0 0 7px rgba(16,185,129,.04); }
}

.main-navigation {
  margin-left: auto;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.main-navigation a {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-3);
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { color: var(--ink); }

.nav-join-btn {
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  background: transparent;
  border: 1px solid var(--border-md);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: var(--rad-sm);
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
  text-decoration: none;
}
.nav-join-btn:hover { background: var(--bg); border-color: var(--ink-3); color: var(--ink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: .2s; }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 5% 70%, rgba(14,165,233,.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 95% 20%, rgba(139,92,246,.05) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-bottom: .2rem;
}
.hero-title .signal { color: var(--cyan); }
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.75;
  margin-top: 1.5rem;
  max-width: 500px;
}

/* =============================================
   NODE CARDS
   ============================================= */
.nodes-section { padding: 2rem 2.5rem 2.5rem; }
.nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.node-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.node-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-md);
}
.node-top { display: flex; justify-content: space-between; align-items: flex-start; }
.node-meta { font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--ink-4); }
.n1 .node-tag { color: var(--cyan); }
.n2 .node-tag { color: var(--purple); }
.n3 .node-tag { color: var(--green); }
.n4 .node-tag { color: var(--amber); }
.node-icon { width: 30px; height: 30px; border-radius: var(--rad-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.n1 .node-icon { background: var(--cyan-lt); }
.n2 .node-icon { background: var(--purple-lt); }
.n3 .node-icon { background: var(--green-lt); }
.n4 .node-icon { background: var(--amber-lt); }
.node-icon svg { width: 15px; height: 15px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.n1 .node-icon svg { stroke: var(--cyan); }
.n2 .node-icon svg { stroke: var(--purple); }
.n3 .node-icon svg { stroke: var(--green); }
.n4 .node-icon svg { stroke: var(--amber); }
.node-title { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.node-desc { font-size: 13.5px; color: var(--ink-3); line-height: 1.65; flex: 1; }
.node-cta {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: .25rem;
  text-decoration: none;
  transition: gap .2s;
}
.node-card:hover .node-cta { gap: 9px; }
.n1 .node-cta { color: var(--cyan); }
.n2 .node-cta { color: var(--purple); }
.n3 .node-cta { color: var(--green); }
.n4 .node-cta { color: var(--amber); }

/* =============================================
   MANIFESTO
   ============================================= */
.manifesto-section {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-left {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.manifesto-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.manifesto-icons { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.mf-icon-box {
  background: var(--white);
  border: 1px solid var(--border-md);
  border-radius: var(--rad-lg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.mf-icon-box.large { width: 96px; height: 96px; }
.mf-icon-box.medium { width: 82px; height: 82px; }
.mf-icon-box svg { width: 52px; height: 52px; }
.mf-icon-box.medium svg { width: 44px; height: 44px; }
.tap-label { font-family: var(--font-display); font-size: 9px; letter-spacing: .18em; color: var(--ink-4); position: relative; z-index: 1; }
.manifesto-right {
  background: var(--white);
  padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
}
.manifesto-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--cyan); }
.manifesto-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 600; color: var(--ink); line-height: 1.18; }
.manifesto-text { font-size: 15.5px; color: var(--ink-3); line-height: 1.8; max-width: 520px; }
.manifesto-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-md); border-radius: var(--rad-pill);
  padding: 10px 20px; background: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; color: var(--ink-2);
  align-self: flex-start;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); flex-shrink: 0;
  animation: livePulse 2.5s ease infinite;
}

/* =============================================
   COMMUNITY SECTION
   ============================================= */
.community-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.community-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 50%, rgba(14,165,233,.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 70% 50%, rgba(139,92,246,.05) 0%, transparent 60%);
  pointer-events: none;
}
.community-inner { position: relative; max-width: 780px; margin: 0 auto; }
.community-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--green); margin-bottom: 1.5rem; }
.community-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 600; line-height: 1.1; color: var(--ink); margin-bottom: 1.25rem; }
.community-title .bc { color: var(--cyan); }
.community-title .ai { color: var(--purple); }
.community-sub { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); max-width: 420px; margin: 0 auto 2.75rem; line-height: 1.8; }
.comm-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-cmc {
  background: var(--cyan); color: #fff;
  font-size: 14px; font-weight: 600; padding: 12px 24px;
  border-radius: var(--rad-pill); border: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 18px rgba(14,165,233,.3); cursor: pointer;
  text-decoration: none;
}
.btn-cmc:hover { background: var(--cyan-dk); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 500; padding: 12px 24px;
  border-radius: var(--rad-pill); border: 1px solid var(--border-md);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .2s, background .2s, transform .15s; cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--ink-3); background: var(--bg); transform: translateY(-2px); color: var(--ink); }
.comm-live { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-4); display: inline-flex; align-items: center; gap: 8px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: livePulse 2.5s ease infinite; }

/* =============================================
   BLOG LAYOUT
   ============================================= */
.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 4rem 2.5rem; display: grid; grid-template-columns: 1fr 300px; gap: 3rem; }
.blog-main {}
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--rad-lg);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: linear-gradient(135deg, var(--cyan-lt), var(--purple-lt)); }
.post-body { padding: 1.25rem; }
.post-category {
  display: inline-block; font-family: var(--font-display); font-size: 8.5px; font-weight: 700;
  letter-spacing: .12em; color: var(--white); background: var(--cyan);
  padding: 3px 10px; border-radius: var(--rad-pill); margin-bottom: .75rem;
}
.post-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); margin-bottom: .5rem; }
.post-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: .6rem; line-height: 1.3; }
.post-excerpt { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-bottom: 1rem; }
.post-read-more { font-family: var(--font-display); font-size: 9px; font-weight: 700; letter-spacing: .12em; color: var(--cyan); display: flex; align-items: center; gap: 4px; }

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--rad-lg); padding: 1.25rem; }
.widget-title { font-family: var(--font-display); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--cyan); margin-bottom: 1rem; display: flex; align-items: center; gap: 6px; }
.widget-title::before { content: ''; width: 10px; height: 2px; background: var(--cyan); border-radius: 1px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 3rem 2.5rem 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: var(--font-display); font-size: 12px; font-weight: 900; letter-spacing: .06em; color: var(--ink); display: flex; align-items: center; gap: 8px; margin-bottom: .6rem; }
.footer-brand-name .ai { color: var(--cyan); }
.footer-tagline { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: .08em; margin-bottom: 1rem; }
.footer-desc { font-size: 13px; color: var(--ink-3); line-height: 1.7; max-width: 280px; }
.footer-col-title { font-family: var(--font-display); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--ink); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: 13px; color: var(--ink-3); transition: color .2s; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.footer-copy a { color: var(--cyan); }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .nodes-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .manifesto-section { grid-template-columns: 1fr; }
  .manifesto-left { border-right: none; border-bottom: 1px solid var(--border); min-height: auto; padding: 3rem 1.5rem; }
  .manifesto-right { padding: 2.5rem 1.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 1.25rem; }
  .main-navigation { display: none; }
  .main-navigation.open { display: flex; position: fixed; inset: 0; background: rgba(255,255,255,.97); z-index: 300; align-items: center; justify-content: center; }
  .main-navigation.open ul { flex-direction: column; gap: 2rem; text-align: center; }
  .main-navigation.open a { font-size: 1.1rem; }
  .menu-toggle { display: flex; }
  .hero-section { padding: 3rem 1.25rem 2.5rem; }
  .nodes-section { padding: 1.25rem; }
  .nodes-grid { grid-template-columns: 1fr; }
  .community-section { padding: 4rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 2.5rem 1.25rem 1.5rem; }
}

/* =============================================
   CURSOR & CANVAS (added)
   ============================================= */
body { cursor: none; }
button, a { cursor: none; }

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: opacity .2s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transition: width .2s, height .2s, border-color .2s, opacity .2s;
}
.cursor-ring.expanded {
  width: 48px; height: 48px;
  border-color: var(--purple);
  margin-top: -8px; margin-left: -8px;
}

#cosmos-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.site-wrapper { position: relative; z-index: 1; }

/* hide custom cursor on touch devices */
@media (max-width: 640px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
