/* ═══════════════════════════════════════════════════════════════════════════
   NØMAD-HPC - Updated Theme
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #0a0a12;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --cyan: #00BACF;
  --cyan-dim: rgba(0, 186, 207, 0.3);
  --cyan-glow: rgba(0, 186, 207, 0.15);
  --orange: #B64326;
  --orange-dim: rgba(182, 67, 38, 0.3);
  --text: #e0e0e0;
  --text-dim: #8a8a9a;
  --border: #2a2a3a;
  --success: #00ff88;
  --warning: #ffcc00;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--cyan);
  letter-spacing: 0.5px;
  font-weight: 500;
}

h1 { font-size: 2.5rem; margin-bottom: 0.8rem; }
h2 { font-size: 1.8rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

p { margin-bottom: 0.8rem; color: var(--text); line-height: 1.5; text-align: justify; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--orange);
  text-shadow: 0 0 10px var(--orange-dim);
}

code {
  font-family: 'SF Mono', Consolas, monospace;
  background: var(--bg-card);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  overflow-x: auto;
  margin: 0.8rem 0;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ─── Header ───────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cyan);
  text-decoration: none;
}

.logo:hover {
  color: var(--cyan);
}

.logo-symbol { color: var(--cyan); }
.logo-slash { color: var(--orange); }
.logo-text { color: var(--cyan); }

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-dim);
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: 
    radial-gradient(ellipse at center, var(--cyan-glow) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-dark) 0%, #0d0d1a 100%);
  position: relative;
  overflow: hidden;
}

/* Grid background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 25px var(--cyan-dim));
}

.hero h1 {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 25px var(--cyan-dim);
}

.hero h1 .highlight {
  color: var(--orange);
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: center;
}

.hero .description {
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

.hero .motto {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg-dark);
  border-color: var(--cyan);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim), inset 0 0 20px var(--cyan-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-secondary:hover {
  background: var(--orange);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--orange-dim);
}

/* ─── Features Section ─────────────────────────────────────────────────────── */

.features {
  padding: 4rem 2rem;
  background: var(--bg-dark);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-dim);
  max-width: 450px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 750px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-card h3 {
  margin-bottom: 0.15rem;
  font-weight: 500;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.5;
  text-align: left;
}

/* ─── Stats Section ────────────────────────────────────────────────────────── */

.stats {
  padding: 3rem 2rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.stat-item h3 {
  font-size: 2.2rem;
  color: var(--orange);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.stat-item p {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Screenshots Section ──────────────────────────────────────────────────── */

.screenshots {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.screenshot-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.screenshot-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-3px);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  background: var(--bg-dark);
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.screenshot-item h3 {
  padding: 0.6rem 1rem 0.2rem;
  font-size: 1rem;
  font-weight: 500;
}

.screenshot-item p {
  padding: 0 1rem 0.8rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ─── Tech Stack Section ───────────────────────────────────────────────────── */

.tech-stack {
  padding: 4rem 2rem;
  background: var(--bg-dark);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}

.tech-card h4 {
  color: var(--cyan);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.tech-card ul {
  list-style: none;
}

.tech-card li {
  padding: 0.3rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.5;
}

.tech-card li::before {
  content: '→ ';
  color: var(--cyan);
}

/* ─── Quickstart Section ───────────────────────────────────────────────────── */

.quickstart {
  padding: 4rem 2rem;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.quickstart-content {
  max-width: 450px;
  margin: 0 auto;
}

.quickstart pre {
  text-align: left;
}

.quickstart pre {
  font-size: 0.95rem;
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
  text-align: left;
}

.quickstart code {
  color: var(--cyan);
}

/* ─── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
}

.footer-container {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0;
}

.footer-section {
  text-align: center;
  flex: 1;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section h4 {
  color: var(--cyan);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  text-align: center;
}

.footer-section p {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: justify;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section a {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-section a:hover {
  color: var(--cyan);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  max-width: 750px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-bottom .trademark-notice {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  opacity: 0.7;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 0.95rem;
  }
  
  .hero-logo {
    width: 110px;
    height: 110px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid,
  .screenshots-grid,
  .tech-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* ─── Citation Section ─────────────────────────────────────────────────────── */

.citation {
  padding: 4rem 2rem;
  background: var(--bg-dark);
}

.citation-content {
  max-width: 700px;
  margin: 0 auto;
}

.citation-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.citation-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: left;
}

.citation-box .bibtex {
  font-size: 0.8rem;
  background: var(--bg-dark);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0;
  color: var(--cyan);
}

/* ─── Paper Citation Box ───────────────────────────────────────────────────── */

.paper-citation {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  max-width: 900px;
  margin: 2rem auto 0;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.paper-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.paper-info {
  flex: 1;
}

.paper-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
  text-align: left;
}

.paper-journal {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0;
  text-align: left;
}
