/* Minimal reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #020617;
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Layout wrapper */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
}

/* Unified navigation – used on all pages */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: #020617;
  border-bottom: 1px solid rgba(30, 64, 175, 0.6);
  backdrop-filter: blur(14px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-title {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Right side of nav: buttons or profile pill */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 80ms ease,
    box-shadow 140ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #5865f2, #22c55e);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.85);
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.6rem;
  align-items: center;
  padding: 3.5rem 0 1rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
  color: #f9fafb;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 36rem;
  color: #9ca3af;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.hero-meta span::before {
  content: "• ";
  color: #22c55e;
}

/* Hero side card */
.hero-card {
  border-radius: 1.25rem;
  background: radial-gradient(
    circle at top left,
    rgba(88, 101, 242, 0.2),
    #020617
  );
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  transform: translateY(4px);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  background: rgba(15, 23, 42, 0.95);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.dot-green { background: #22c55e; }
.dot-yellow { background: #facc15; }
.dot-red   { background: #f97373; }

.hero-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: grid;
  gap: 0.85rem;
}

.hero-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.pill-safe {
  border-color: rgba(52, 211, 153, 0.8);
  background: rgba(22, 163, 74, 0.2);
  color: #a7f3d0;
}

.pill-online {
  border-color: rgba(96, 165, 250, 0.8);
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  background: radial-gradient(
    circle at top left,
    rgba(15, 23, 42, 0.85),
    #020617
  );
  border: 1px solid rgba(75, 85, 99, 0.8);
}

.metric-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e5e7eb;
}

.hero-card-footnote {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: #6b7280;
}

/* Sections */
.section {
  margin-top: 4rem;
}

.section + .section {
  margin-top: 3rem;
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 1.2rem;
}

.section-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Features & steps */
.feature {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
}

.feature h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #e5e7eb;
}

.feature p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9ca3af;
}

.feature-soon h3::after {
  content: " • WIP";
  font-size: 0.75rem;
  color: #facc15;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.1rem 1.5rem 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  background-color: #020617;
}

/* Profile pill – tweak for dashboard header */
.profile-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding: 0.45rem 1rem 0.5rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(51, 65, 85, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.profile-pill-username {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* increase this value for more spacing */ 
}

.profile-separator {
  margin-inline: 0.5rem; /* extra space around the | */
}


/* Responsive */
@media (max-width: 900px) {
  .page {
    padding-top: 4rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
    margin: 1rem auto 0;
  }

  .section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    margin-top: 3rem;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-inline: 1rem;
  }

  .nav-right {
    gap: 0.6rem;
  }

  .page {
    padding-inline: 1rem;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}
