:root {
  --bg-color: #0b0d13;
  --bg-surface: #131722;
  --bg-card: rgba(22, 27, 39, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(138, 92, 246, 0.3);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-sub: #6b7280;

  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-yellow: #eab308;
  --accent-green: #10b981;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background noise & glowing blobs */
.noise-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--accent-purple);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--accent-cyan);
  bottom: 10%;
  left: -150px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  gap: 1rem;
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--accent-purple);
  color: #fff;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}
.logo-bracket { color: var(--accent-purple); }
.logo-dot { color: var(--accent-pink); }
.logo-domain { color: var(--accent-cyan); font-weight: 400; font-size: 0.95rem; }

/* Live Status Badge */
.live-status-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-family: var(--font-mono);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
  transition: all 0.2s ease;
}

.live-status-pill:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.14);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.status-label {
  color: var(--text-sub);
}

.status-value {
  color: #a7f3d0;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.tag-badge {
  display: inline-block;
  background: rgba(234, 179, 8, 0.1);
  color: var(--accent-yellow);
  border: 1px solid rgba(234, 179, 8, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.highlight-text {
  background: linear-gradient(135deg, #a78bfa, #f472b6, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: #e5e7eb;
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #0b0d13;
}
.btn-primary:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Hero Image Window Card */
.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(139, 92, 246, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(139, 92, 246, 0.25);
}

.card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-color);
}

.circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.circle.red { background: #ef4444; }
.circle.yellow { background: #f59e0b; }
.circle.green { background: #10b981; }

.card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-left: 0.5rem;
}

.image-box {
  position: relative;
  overflow: hidden;
  background: #000;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card:hover .image-box img {
  transform: scale(1.02);
}

.image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 0.75rem;
  color: #d1d5db;
  font-family: var(--font-mono);
  text-align: right;
}

/* Section Hubs */
.section-hubs {
  margin-bottom: 5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-tag {
  font-family: var(--font-mono);
  color: var(--text-sub);
  font-size: 0.85rem;
}

.grid-hubs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  background: rgba(30, 36, 51, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.card-coding:hover::before { background: var(--accent-cyan); }
.card-art:hover::before { background: var(--accent-pink); }
.card-lazy:hover::before { background: var(--accent-yellow); }
.card-games:hover::before { background: var(--accent-purple); }

.hub-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hub-path {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
}

.hub-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hub-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.hub-arrow {
  font-size: 1.2rem;
  color: var(--text-sub);
  align-self: flex-end;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hub-card:hover .hub-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* Manifest Section */
.manifest-section {
  margin-bottom: 4rem;
}

.manifest-card {
  background: linear-gradient(145deg, rgba(23, 27, 40, 0.9), rgba(16, 20, 30, 0.9));
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.2rem;
  position: relative;
}

.manifest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.manifest-tag {
  color: var(--accent-pink);
  font-weight: 700;
}

.manifest-sub {
  color: var(--text-sub);
}

.manifest-text {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent-purple);
}

.manifest-author {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* Quote Section */
.quote-section {
  margin-bottom: 5rem;
}

.quote-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

.quote-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-yellow);
}

.quote-content {
  font-size: 1rem;
  color: #d1d5db;
  font-style: italic;
}

.btn-tiny {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
}
.btn-tiny:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Footer / Contacts */
.footer {
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 36, 51, 0.8);
  transform: translateX(4px);
}

.social-link .icon {
  font-size: 1.4rem;
}

.social-meta {
  display: flex;
  flex-direction: column;
}

.social-name {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.social-handle {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-sub);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 820px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title {
    font-size: 2.7rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
