/* ═══════════════════════════════════════════════════════
   Proxmox Atlas — Marketing Website
   Design System & Styles
   ═══════════════════════════════════════════════════════ */

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

:root {
  --bg:              #0a0a0f;
  --bg-alt:          #0e0e16;
  --surface:         #12121a;
  --surface-hover:   #1a1a26;
  --border:          rgba(255,255,255,0.06);
  --border-hover:    rgba(255,255,255,0.12);
  --accent:          #3b82f6;
  --accent-light:    #60a5fa;
  --accent-glow:     rgba(59,130,246,0.15);
  --green:           #10b981;
  --green-glow:      rgba(16,185,129,0.15);
  --text:            #e8e8ec;
  --text-secondary:  #8b8b9e;
  --text-muted:      #555568;
  --radius:          12px;
  --radius-sm:       8px;
  --radius-xs:       6px;
  --font:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:            'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #93c5fd; }

/* ── Grid Background ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.navbar.scrolled { background: rgba(10,10,15,0.92); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.nav-brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-github {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.4rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--text); font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.nav-github:hover { border-color: var(--border-hover); background: var(--surface-hover); color: var(--text); }
.nav-github svg { width: 18px; height: 18px; fill: currentColor; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,10,15,0.96); backdrop-filter: blur(16px); padding: 1.5rem 2rem; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ── Section Layout ── */
section { position: relative; z-index: 1; padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-light); margin-bottom: 1rem;
}
.section-label::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--accent); border-radius: 1px; }
.section-title { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; line-height: 1.7; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  top: 10%; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #e8e8ec 0%, #3b82f6 50%, #10b981 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.7; }

/* Terminal Block */
.terminal {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 720px;
  margin: 0 auto 2rem;
  overflow: hidden;
}
.terminal-header {
  display: flex; align-items: center; gap: 6px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }
.terminal-body {
  padding: 1.2rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
}
.terminal-body code { white-space: nowrap; }
.terminal-body .prompt { color: var(--accent-light); }
.copy-btn {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-light); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

/* CTA Buttons */
.cta-group { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.8rem; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all 0.25s; border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.btn-primary:hover { background: #2563eb; box-shadow: 0 0 30px rgba(59,130,246,0.45); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border-hover);
}
.btn-outline:hover { border-color: var(--text-secondary); background: var(--surface); color: var(--text); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Features Grid ── */
.features { background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.feature-card h3 { font-size: 1.1rem; font-weight: 650; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }

/* ── Screenshot ── */
.screenshot-section { padding: 4rem 2rem 6rem; }
.browser-frame {
  max-width: 1000px;
  margin: 3rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 60px rgba(59,130,246,0.08),
    0 20px 60px rgba(0,0,0,0.5);
  position: relative;
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0.7rem 1rem;
  background: #16161e;
  border-bottom: 1px solid var(--border);
}
.browser-frame img { width: 100%; display: block; }

/* ── Architecture ── */
.architecture { background: var(--bg-alt); }
.arch-diagram {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 3rem auto;
  max-width: 900px;
  flex-wrap: wrap;
}
.arch-node {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 140px;
  transition: border-color 0.3s;
}
.arch-node:hover { border-color: var(--accent); }
.arch-node-icon { font-size: 1.8rem; }
.arch-node-label { font-weight: 600; font-size: 0.9rem; }
.arch-node-sub { font-size: 0.75rem; color: var(--text-muted); }
.arch-arrow {
  font-size: 1.5rem; color: var(--text-muted); padding: 0 0.8rem;
  animation: arrow-pulse 2s ease-in-out infinite;
}
@keyframes arrow-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.tech-stack {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.tech-badge {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-secondary);
}

@media (max-width: 700px) {
  .arch-diagram { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); padding: 0.5rem 0; }
}

/* ── Install ── */
.install {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.install .terminal { max-width: 800px; margin: 2rem auto; }
.prereq-chips {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin-top: 1.5rem; flex-wrap: wrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ── Feature List ── */
.feature-list { background: var(--bg-alt); }
.feature-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.feature-category h3 {
  font-size: 1rem; font-weight: 650; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.feature-category ul { list-style: none; }
.feature-category li {
  font-size: 0.88rem; color: var(--text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.feature-category li::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

@media (max-width: 600px) { .feature-categories { grid-template-columns: 1fr; } }

/* ── Security ── */
.security { background: var(--bg); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.5rem;
}
.security-item {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.security-item .icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.security-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.security-item p { font-size: 0.82rem; color: var(--text-secondary); }

@media (max-width: 700px) { .security-grid { grid-template-columns: 1fr; } }

/* ── Footer ── */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand img { width: 22px; height: 22px; border-radius: 4px; }
.footer-brand span { font-weight: 600; font-size: 0.95rem; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Typing cursor ── */
.cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
