/*
Theme Name: SPL1CE AI
Theme URI: https://spl1ceai.com
Author: SPL1CE Intelligence Architecture
Author URI: https://spl1ceai.com
Description: Bespoke cyber-biotech theme for SPL1CE AI — Neural Splicing, Synthetic Intelligence & Genomic Deep Learning.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: spl1ce-ai
Tags: dark, cyberpunk, high-tech, futuristic, ai, bio-tech, responsive, custom-header, grid-layout
*/

:root {
  --bg-primary: #05070c;
  --bg-secondary: #0a0e17;
  --bg-card: rgba(13, 19, 32, 0.75);
  --bg-card-hover: rgba(19, 29, 49, 0.9);
  --border-subtle: rgba(0, 242, 254, 0.15);
  --border-glow: rgba(0, 242, 254, 0.4);
  --border-emerald: rgba(0, 255, 135, 0.4);
  
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-emerald: #00ff87;
  --accent-purple: #b057fe;
  --accent-magenta: #f355bf;
  
  --text-main: #f0f4fc;
  --text-muted: #8b9bb4;
  --text-dim: #4e5d78;
  
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --glow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --glow-emerald: 0 0 25px rgba(0, 255, 135, 0.35);
  --glow-purple: 0 0 25px rgba(176, 87, 254, 0.35);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  background: radial-gradient(circle at 50% 0%, #0d1629 0%, var(--bg-primary) 75%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(0, 242, 254, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-emerald);
  text-shadow: 0 0 8px rgba(0, 255, 135, 0.5);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

.mono { font-family: var(--font-mono); }

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 55%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-purple {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(0, 255, 135, 0.2));
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-cyan);
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-title span {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 255, 135, 0.15);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: #fff;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.site-nav a:hover::after,
.site-nav .current-menu-item a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05070c;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4facfe, var(--accent-emerald));
  color: #05070c;
  box-shadow: var(--glow-emerald);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(13, 19, 32, 0.6);
  border: 1px solid var(--border-glow);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-main);
  padding: 6px 10px;
  cursor: pointer;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  display: inline-block;
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 255, 135, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 135, 0); }
}

.hero-section {
  position: relative;
  padding: 6.5rem 0 5rem;
  overflow: hidden;
  text-align: center;
}

.hero-canvas-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-glow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.1;
  max-width: 980px;
  margin: 0 auto 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.telemetry-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1020px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-box { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.section-padding { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.terminal-card {
  background: #080c14;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-cyan);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.terminal-header {
  background: #0b111c;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.terminal-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.terminal-select {
  background: #0f1726;
  color: var(--accent-cyan);
  border: 1px solid var(--border-glow);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.terminal-log {
  background: #05070c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  color: #a5b4fc;
}

.log-prefix { color: var(--accent-emerald); }
.log-highlight { color: var(--accent-cyan); font-weight: bold; }
.log-accent { color: var(--accent-purple); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.15);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon-wrapper {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan);
}

.feature-title { font-size: 1.25rem; margin-bottom: 0.75rem; color: #fff; }
.feature-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.model-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.15);
}

.model-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.model-name { font-size: 1.5rem; margin-bottom: 0.5rem; }
.model-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }

.model-specs {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.model-specs span strong { color: #fff; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: var(--border-emerald);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 255, 135, 0.15);
  transform: translateY(-3px);
}

.post-thumb {
  height: 180px;
  background: linear-gradient(135deg, #0d1a2d, #050810);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.post-thumb svg { width: 50px; height: 50px; fill: var(--accent-cyan); opacity: 0.8; }

.post-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: 12px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-emerald); margin-bottom: 0.75rem; }
.post-title { font-size: 1.2rem; margin-bottom: 0.75rem; line-height: 1.35; }
.post-title a { color: #fff; }
.post-title a:hover { color: var(--accent-cyan); }
.post-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; flex-grow: 1; }
.post-link { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.article-container { max-width: 840px; margin: 3rem auto 5rem; }
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); }
.article-title { font-size: 2.8rem; line-height: 1.2; margin-bottom: 1rem; }
.article-content { color: #d1d5db; font-size: 1.1rem; line-height: 1.8; }
.article-content h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--accent-cyan); }
.article-content h3 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: #fff; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { margin: 0 0 1.5rem 2rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content code { background: #0d1527; color: var(--accent-emerald); padding: 2px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.9em; }
.article-content pre { background: #080c14; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); padding: 1.25rem; overflow-x: auto; margin-bottom: 1.75rem; }
.article-content blockquote { border-left: 3px solid var(--accent-cyan); padding-left: 1.25rem; margin: 1.75rem 0; color: var(--text-muted); font-style: italic; }

.site-footer {
  margin-top: auto;
  background: #030408;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent-cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .telemetry-ribbon { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
  .mobile-toggle { display: block; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .telemetry-ribbon { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
}
