/* ============================================
   NEO — Main Stylesheet
   Aesthetic: Minimalist · Cold Tone · Precision
   ============================================ */

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

:root {
  --bg:           #080c12;
  --bg-alt:       #0d1320;
  --surface:      #111827;
  --surface-hover:#151f30;
  --border:       rgba(99, 152, 212, 0.12);
  --border-hover: rgba(99, 152, 212, 0.28);

  --text-primary:   #e8edf5;
  --text-secondary: #8fa3bf;
  --text-muted:     #4a5e78;

  --accent:       #3b82f6;
  --accent-dim:   rgba(59, 130, 246, 0.15);
  --accent-glow:  rgba(59, 130, 246, 0.06);

  --green:        #22c55e;

  --font-sans:    'Space Grotesk', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── Noise Texture ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.status-text { color: var(--green); letter-spacing: 0.08em; }
.divider     { color: var(--border); }

/* ── Main ── */
.main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 2rem 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e8edf5 0%, #8fa3bf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.hero-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── Portal ── */
.portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 120px;
}

.portal-empty {
  text-align: center;
  padding: 64px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--accent-glow);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.portal-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.portal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.portal-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.portal-card:hover::before { opacity: 1; }

.card-icon { font-size: 24px; margin-bottom: 4px; }
.card-name { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.card-desc { font-size: 13px; color: var(--text-secondary); flex: 1; }

.card-arrow {
  align-self: flex-end;
  font-size: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.portal-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Utilities ── */
.mono   { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.muted  { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-inner { padding: 0 1.2rem; }
  .hero          { padding: 120px 1.2rem 60px; }
  .portal        { padding: 0 1.2rem 80px; }
  .footer-inner  { padding: 0 1.2rem; }
  .status-text, .time { display: none; }
}
