:root {
  --bg: #0b0c10;
  --bg2: #13141c;
  --surface: rgba(19, 20, 28, 0.55);
  --surface-solid: #171824;
  --border: rgba(255, 255, 255, 0.02);
  --white: #f8fafc;
  --muted: rgba(248, 250, 252, 0.48);
  --muted-light: rgba(248, 250, 252, 0.64);
  --accent: #a855f7;
  --accent2: #ec4899;
  --radius: 16px;
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body.page-dark {
  margin: 0;
  background: radial-gradient(circle at top, #171824 0%, #0b0c10 50%, #0b0c10 100%);
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
}

.pc-container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* NAV (shared across pages) */
.pc-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 12, 16, 0.5);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.015);
}

.pc-nav-inner {
  position: relative;              /* so we can center links absolutely */
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* logo left, actions right */
  gap: 1.5rem;
}

.pc-logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* hard-center the links */
.pc-nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.pc-nav-links a {
  color: rgba(248, 250, 252, 0.6);
  font-size: .82rem;
}

.pc-nav-links a.active,
.pc-nav-links a:hover {
  color: var(--white);
}

.pc-nav-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* buttons */
.pc-btn-primary,
.pc-btn-secondary,
.pc-btn-ghost {
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.pc-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0f1016;
  padding: .45rem .9rem;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.12);
}

.pc-btn-secondary {
  background: rgba(248, 250, 252, 0.03);
  color: var(--white);
  border: 1px solid rgba(248, 250, 252, 0.03);
  padding: .45rem .9rem;
}

.pc-btn-ghost {
  background: rgba(11, 12, 16, 0.05);
  color: var(--white);
  border: 1px solid rgba(248, 250, 252, 0.04);
  padding: .45rem .9rem;
}

/* HERO */
.pc-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3.6rem 0 3rem 0;
  background: radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.28), rgba(11, 12, 16, 0) 40%),
              radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.18), rgba(11, 12, 16, 0) 45%);
}

.pc-hero-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(248, 250, 252, 0.04) 1px, rgba(11, 12, 16, 0) 1px);
  background-size: 54px 54px;
  opacity: .25;
  pointer-events: none;
}

.pc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.pc-tag {
  display: inline-block;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #f8fafc;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .6rem;
  margin-bottom: .6rem;
}

.pc-hero h1 {
  font-size: clamp(2.5rem, 4.1vw, 3.4rem);
  line-height: 1.03;
  margin-bottom: .6rem;
}

.pc-hero-sub {
  color: var(--muted-light);
  max-width: 550px;
  margin: 0 auto 1rem auto;
}

.pc-hero-actions {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
  justify-content: center;
}

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

.pc-hero-stats > div {
  background: rgba(23, 24, 36, 0.35);
  border: 1px solid rgba(248, 250, 252, 0.015);
  border-radius: .75rem;
  padding: .55rem .8rem .65rem .8rem;
  min-width: 135px;
  text-align: center;
}

.pc-hero-stats h3 {
  margin: 0;
  font-size: .82rem;
}

.pc-hero-stats p {
  margin: 0;
  font-size: .6rem;
  color: var(--muted);
}

/* sections */
.pc-section {
  padding: 3.2rem 0;
}

.pc-section-title {
  font-size: 1.45rem;
  margin-bottom: .4rem;
  text-align: center;
}

.pc-section-sub {
  color: var(--muted-light);
  max-width: 520px;
  margin-bottom: 1.4rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pc-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pc-card {
  background: rgba(23, 24, 36, 0.4);
  border: 1px solid rgba(248, 250, 252, 0.015);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  text-align: center;
}

/* footer */
.pc-footer {
  border-top: 1px solid rgba(248, 250, 252, 0.02);
  padding: 1.5rem 0 2rem 0;
  background: rgba(11, 12, 16, 0.7);
}

.pc-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.pc-footer-links {
  display: flex;
  gap: .75rem;
}

.pc-footer a {
  color: var(--muted);
  font-size: .7rem;
}

/* cards grid for products/status */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

/* utilities */
.pc-text-center {
  text-align: center;
}

.pc-center-actions {
  display: flex;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.pc-centered .pc-hero-content {
  text-align: center;
  margin-inline: auto;
}

/* responsive */
@media (max-width: 880px) {
  .pc-nav-links {
    display: none; /* hide links on small screens */
  }
  .pc-hero {
    padding-top: 4.5rem;
  }
  .pc-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
