@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface-light: #1a1a2e;
  --primary: #00ff87;
  --primary-dim: #00cc6a;
  --secondary: #7b2fff;
  --accent: #ff3a6e;
  --gold: #ffd700;
  --text: #f0f0f5;
  --text-secondary: #9999bb;
  --text-muted: #555577;
  --border: #222244;
  --radius: 16px;
  --radius-full: 999px;
  --max-w: 1200px;
  --pad: clamp(16px, 4vw, 48px);
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(0,255,135,0.25); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ═══ CONTAINER ═══ */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { color: var(--text-secondary); line-height: 1.75; }

/* ═══ NAV ═══ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.site-nav.scrolled {
  background: rgba(10,10,15,0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 24px; font-weight: 900; color: var(--primary);
  letter-spacing: -0.03em; display: flex; align-items: center; gap: 6px;
}
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links li { list-style: none; }
.nav-links li a, .nav-links > a {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-secondary);
  transition: color 0.3s; position: relative; text-decoration: none;
}
.nav-links li a::after, .nav-links > a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.nav-links li a:hover, .nav-links > a:hover { color: var(--primary); }
.nav-links li a:hover::after, .nav-links > a:hover::after { width: 100%; }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; z-index: 101;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--primary);
  border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,15,0.97); backdrop-filter: blur(30px);
  flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.mobile-menu.active { display: flex; }
.mobile-menu-list { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.mobile-menu-list li { list-style: none; }
.mobile-menu-list li a {
  font-size: 28px; font-weight: 800; color: var(--text);
  opacity: 0; animation: fadeUp 0.4s forwards; text-decoration: none;
}
.mobile-menu-list li:nth-child(1) a { animation-delay: 0s; }
.mobile-menu-list li:nth-child(2) a { animation-delay: 0.06s; }
.mobile-menu-list li:nth-child(3) a { animation-delay: 0.12s; }
.mobile-menu-list li:nth-child(4) a { animation-delay: 0.18s; }

@media (max-width: 768px) {
  ul.nav-links, .nav-links { display: none !important; }
  .menu-toggle { display: flex; }
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative; overflow: hidden;
  padding: 120px var(--pad) 80px;
}
.hero h1 {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s 0.3s both;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); max-width: 580;
  margin: 20px auto 0; animation: fadeUp 0.8s 0.6s both;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; animation: fadeUp 0.8s 0.8s both; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.scroll-hint span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; }
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--primary), transparent); animation: pulse 2s ease-in-out infinite; }

/* ═══ ORB decorations ═══ */
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0; animation: orbFloat 10s ease-in-out infinite alternate;
}
.orb-green { background: radial-gradient(circle, rgba(0,255,135,0.14), transparent 70%); }
.orb-purple { background: radial-gradient(circle, rgba(123,47,255,0.12), transparent 70%); }
.orb-pink { background: radial-gradient(circle, rgba(255,58,110,0.1), transparent 70%); }

/* ═══ TAG / BADGE ═══ */
.tag {
  display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
  background: rgba(0,255,135,0.08); border: 1px solid rgba(0,255,135,0.2);
  color: var(--primary); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-purple { background: rgba(123,47,255,0.08); border-color: rgba(123,47,255,0.2); color: var(--secondary); }
.tag-gold { background: rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.2); color: var(--gold); }
.tag-accent { background: rgba(255,58,110,0.08); border-color: rgba(255,58,110,0.2); color: var(--accent); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius-full);
  font-weight: 800; font-size: 14px; font-family: var(--font);
  border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #000; box-shadow: 0 0 30px rgba(0,255,135,0.2);
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(0,255,135,0.35); }
.btn-outline {
  background: transparent; border: 2px solid var(--border); color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ═══ SECTION ═══ */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-surface { background: var(--surface); }
.section-heading { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading .tag { margin-bottom: 14px; }
.section-heading p { max-width: 580px; margin: 14px auto 0; }

/* ═══ STATS BAR ═══ */
.stats-bar {
  padding: 56px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px; text-align: center;
}
.stat-icon { font-size: 30px; margin-bottom: 6px; }
.stat-label { font-size: 15px; font-weight: 800; color: var(--text); }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ═══ POST GRID ═══ */
.post-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px;
}

/* ═══ CARD ═══ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.card:hover {
  border-color: rgba(0,255,135,0.25); transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  background: var(--surface-light);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.card-img-wrap { overflow: hidden; }
.card:hover .card-img { transform: scale(1.04); }
.card-placeholder {
  width: 100%; aspect-ratio: 16/9; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-light), var(--surface));
  font-size: 42px; color: var(--text-muted);
}
.card-body { padding: 22px; }
.card-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 12px; color: var(--text-muted);
}
.card-meta .cat-link { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.card-meta .cat-link:hover { text-decoration: underline; }
.card-title {
  font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title a:hover { color: var(--primary); }
.card-excerpt {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ═══ CATEGORY HERO ═══ */
.cat-hero {
  padding: 160px 0 72px; text-align: center;
  position: relative; overflow: hidden;
}
.cat-hero .icon { font-size: 52px; margin-bottom: 14px; }
.cat-count {
  display: inline-block; margin-top: 18px;
  padding: 5px 14px; border-radius: var(--radius-full);
  background: var(--surface-light); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
.sub-cats {
  border-bottom: 1px solid var(--border); background: var(--surface); padding: 28px 0;
}
.sub-cats-inner { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sub-cat-link {
  padding: 9px 18px; border-radius: var(--radius-full);
  background: var(--bg); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: all 0.3s;
}
.sub-cat-link:hover, .sub-cat-link.current { border-color: var(--primary); color: var(--primary); }

/* ═══ SEO CONTENT BLOCK ═══ */
.seo-block {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: clamp(48px, 6vw, 80px) 0;
}
.seo-content { max-width: 800px; margin: 0 auto; }
.seo-content h2, .seo-content h3 { color: var(--text); margin: 32px 0 12px; }
.seo-content h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
.seo-content h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.seo-content p { margin-bottom: 16px; font-size: 1rem; }

/* ═══ SINGLE POST ═══ */
.post-hero {
  padding: 140px 0 48px; text-align: center;
  position: relative; overflow: hidden;
}
.post-hero .tag { margin-bottom: 18px; }
.post-meta-line {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--text-muted); font-size: 14px; margin-top: 18px;
}
.post-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }
.post-featured {
  max-width: 900px; margin: 0 auto 40px; padding: 0 var(--pad);
}
.post-featured img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 2.4/1; object-fit: cover;
}

/* ═══ ARTICLE CONTENT ═══ */
.article-content {
  max-width: 760px; margin: 0 auto; padding: 0 var(--pad);
  font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary);
}
.article-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--text); margin: 48px 0 16px; }
.article-content h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--text); margin: 36px 0 12px; }
.article-content p { margin-bottom: 20px; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content li { margin-bottom: 8px; color: var(--text-secondary); }
.article-content img { border-radius: var(--radius); margin: 32px 0; }
.article-content blockquote {
  border-left: 3px solid var(--primary); padding: 4px 0 4px 20px;
  margin: 32px 0; font-style: italic; color: var(--text-muted);
}

/* ═══ PAGE HERO ═══ */
.page-hero {
  padding: 160px 0 48px; text-align: center;
  position: relative; overflow: hidden;
}
.page-hero .icon { font-size: 48px; margin-bottom: 14px; }

/* ═══ CTA SECTION ═══ */
.cta-box {
  max-width: 800px; margin: 0 auto; text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 64px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--surface-light), var(--surface));
  border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cta-box h2 { margin-bottom: 14px; }
.cta-box p { font-size: 16px; margin-bottom: 28px; }

/* ═══ EMPTY STATE ═══ */
.empty-state { text-align: center; padding: 80px 0; color: var(--text-muted); }
.empty-state .icon { font-size: 56px; margin-bottom: 14px; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* ═══ PAGINATION ═══ */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--radius-full); font-weight: 700; font-size: 14px;
  border: 1px solid var(--border); color: var(--text-secondary);
  transition: all 0.3s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current {
  background: var(--primary); color: #000; border-color: var(--primary);
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--border); background: var(--surface);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
}
.footer-brand { font-size: 22px; font-weight: 900; color: var(--primary); margin-bottom: 10px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 14px; color: var(--text);
}
.footer-col a {
  display: block; color: var(--text-muted); font-size: 13.5px;
  margin-bottom: 9px; transition: color 0.3s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--text-muted);
}
.footer-warning { max-width: 460px; line-height: 1.5; }

/* ═══ 404 ═══ */
.page-404 {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--pad);
}
.page-404 .icon { font-size: 72px; margin-bottom: 12px; }
.page-404 h1 { font-size: clamp(4rem, 10vw, 8rem); margin-bottom: 8px; }
.page-404 p { max-width: 440px; margin-bottom: 28px; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(25px,-35px) scale(1.12); } }
@keyframes pulse { 0%,100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
