/* Nera VPN — FINAL: Node status card fixed to match previous iteration */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', system-ui; background: #0d1117; color: #e6edf3; }
.page { max-width: 1240px; margin: 0 auto; padding: 2rem 1.5rem; }

/* HEADER */
.site-header { margin-bottom: 5rem; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.brand-logo { width: 48px; height: 48px; border-radius: 12px; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { color: #8b949e; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: white; }

/* HERO */
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 4rem; align-items: center; margin-bottom: 6rem; }
.hero-content h1 { font-size: 3.8rem; font-weight: 800; line-height: 1.1; margin: 0 0 1rem; background: linear-gradient(135deg, #58a6ff, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.25rem; color: #8b949e; margin-bottom: 3rem; }

/* PILL BUTTONS — Your perfect logo-matching gradient */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 36px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #00d4ff, #00ff88);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}
.pill-btn:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0, 212, 255, 0.5); }
.pill-btn-large { height: 72px; font-size: 1.3rem; padding: 0 52px; }

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

/* LIVE NODE STATUS CARD — FIXED to match your previous iteration */
.status-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: 1.4rem;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  color: #22c55e;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.3);
}

/* FIXED: Proper 2-column layout (label left, value right) */
.status-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;  /* ← Better spacing */
}

.status-row {
  display: flex;
  justify-content: space-between;  /* ← Label left, value right */
  align-items: flex-start;
  font-size: 0.95rem;
  padding: 0.2rem 0;  /* ← Subtle line spacing */
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);  /* ← Subtle separators */
}

.status-row:last-child {
  border-bottom: none;  /* ← No line under last item */
}

.label {
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  flex: 1;
  opacity: 0.9;
}

.value {
  color: white;
  font-weight: 600;
  text-align: right;  /* ← Right-aligned values */
  flex: 1;
}

.status-footnote {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  opacity: 0.8;
}

/* CENTERED SECTIONS — Why Nera, Pricing, FAQ */
.section-centered { text-align: center; margin: 8rem auto; max-width: 900px; }
.section-centered h2 { font-size: 2.4rem; margin-bottom: 3rem; background: linear-gradient(135deg, #58a6ff, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.features-grid > div { background: rgba(30, 41, 59, 0.6); padding: 2rem; border-radius: 1.2rem; border: 1px solid rgba(148, 163, 184, 0.15); font-size: 1.1rem; }
.pricing-box { background: rgba(30, 41, 59, 0.6); padding: 4rem 3rem; border-radius: 1.4rem; border: 1px solid rgba(148, 163, 184, 0.2); text-align: center; display: flex; flex-direction: column; align-items: center; }
.price { font-size: 4.5rem; font-weight: 800; margin: 0; }
.price-yearly { font-size: 1.4rem; color: #94a3b8; margin: 0.5rem 0 2rem; }
.faq-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.faq-item { background: rgba(30, 41, 59, 0.6); padding: 2rem; border-radius: 1.2rem; border: 1px solid rgba(148, 163, 184, 0.15); }
.faq-item h3 { margin: 0 0 0.8rem; font-size: 1.2rem; }

/* FOOTER */
.site-footer { margin-top: 8rem; padding-top: 2.5rem; border-top: 1px solid rgba(148, 163, 184, 0.2); display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; color: #64748b; }
.footer-left { display: flex; align-items: center; gap: 0.8rem; }
.footer-logo { width: 32px; height: 32px; }
.footer-links a { color: #94a3b8; margin-left: 1.5rem; text-decoration: none; }
.footer-links a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 968px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .download-grid, .features-grid, .faq-grid { grid-template-columns: 1fr; }
  .nav { flex-direction: column; gap: 1.5rem; }
  .nav-links { gap: 2rem; }
}

/* --- APPEND TO BOTTOM OF styles.css --- */

/* THE TERMINAL WIDGET (Subscription Box Override) */
.terminal-card {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.terminal-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

/* The "Matrix" Code Display */
.code-display {
    background: #000;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: #00ff88;
    text-align: center;
    margin: 1.5rem 0;
    letter-spacing: 2px;
    display: none; /* Hidden until generated */
    animation: fadeIn 0.4s ease;
}

/* Primary Action Button (Matches App.svelte) */
.btn-neon {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #0d1117;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.btn-neon:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Utility for Status Messages */
.status-msg {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #8b949e;
    text-align: center;
    min-height: 1.5em;
    font-family: 'JetBrains Mono', monospace;
}