/*
Theme Name: Hubris Network
Theme URI: https://hubrisnetwork.com
Author: Noah
Description: Custom dark-themed single-page site for Hubris Network
Version: 1.0
License: GPL-2.0
*/

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

:root {
  --bg: #0a0e14;
  --surface: #12161e;
  --surface-2: #1a1f2b;
  --border: #252b36;
  --text: #c8ccd4;
  --text-dim: #6b7280;
  --accent: #00e5ff;
  --accent-glow: rgba(0, 229, 255, 0.15);
  --green: #00e676;
  --amber: #ffab00;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

main { position: relative; z-index: 1; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

section { padding: 100px 24px; }
.container { max-width: 1100px; margin: 0 auto; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 460px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 0 35px var(--accent-glow); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(0, 229, 255, 0.05); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.node-cluster {
  position: relative;
  width: 320px;
  height: 320px;
}
.node-cluster .ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.node-cluster .ring:nth-child(1) { inset: 0; animation-duration: 20s; }
.node-cluster .ring:nth-child(2) { inset: 30px; animation-duration: 15s; animation-direction: reverse; }
.node-cluster .ring:nth-child(3) { inset: 60px; animation-duration: 10s; }
@keyframes spin { to { transform: rotate(360deg); } }

.node-point {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}
.node-point:nth-child(4) { top: -4px; left: 50%; margin-left: -4px; }
.node-point:nth-child(5) { bottom: -4px; left: 50%; margin-left: -4px; }
.node-point:nth-child(6) { left: -4px; top: 45%; }
.node-point:nth-child(7) { right: -4px; top: 45%; background: var(--green); box-shadow: 0 0 10px var(--green), 0 0 20px var(--green); }

.center-node {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  background: var(--surface-2);
  border: 2px solid var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--accent-glow), inset 0 0 20px rgba(0, 229, 255, 0.05);
}
.center-node .pulse {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(2.5); opacity: 0.3; }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.project-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-2px);
}
.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.project-icon.servers { background: rgba(0, 229, 255, 0.1); color: var(--accent); }
.project-icon.pi { background: rgba(0, 230, 118, 0.1); color: var(--green); }
.project-icon.network { background: rgba(255, 171, 0, 0.1); color: var(--amber); }
.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.project-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.specs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.spec-item {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-item:last-child { border-right: none; }
.spec-item .value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
}
.spec-item .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.dev-ribbon {
  position: fixed;
  top: 18px;
  right: -30px;
  transform: rotate(45deg);
  z-index: 9999;
  background: var(--amber);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 40px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { order: -1; }
  .node-cluster { width: 220px; height: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
}
