:root {
  --pp-navy: #0f2744;
  --pp-navy-deep: #081a2e;
  --pp-blue: #2b9bff;
  --pp-blue-bright: #4db4ff;
  --pp-gray: #8fa3bc;
  --pp-gray-light: #cbd5e1;
  --pp-white: #eef4ff;
  --pp-black: #030712;
  --pp-surface: rgba(15, 39, 68, 0.5);
  --pp-border: rgba(148, 163, 184, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow-blue: 0 8px 32px rgba(43, 155, 255, 0.28);
  --shadow-card: 0 4px 24px rgba(3, 7, 18, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--pp-black);
  color: var(--pp-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise grain on entire body */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a {
  color: var(--pp-blue);
  text-decoration: none;
}

a:hover {
  color: var(--pp-blue-bright);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(3, 7, 18, 0.82);
  border-bottom: 1px solid var(--pp-border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo img {
  height: 60px;
  width: auto;
  /* Make the PNG white/visible on the dark header */
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--pp-gray-light);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 160ms var(--ease-out);
}

.nav a:hover {
  color: var(--pp-white);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 180ms var(--ease-out),
    filter 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97) translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #2b9bff 0%, #1570d4 100%);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.1);
  box-shadow: 0 12px 36px rgba(43, 155, 255, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--pp-gray-light);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.btn-ghost:hover {
  color: var(--pp-white);
  border-color: rgba(43, 155, 255, 0.55);
  background: rgba(43, 155, 255, 0.06);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(ellipse 110% 80% at 50% -5%, rgba(43, 155, 255, 0.2) 0%, transparent 62%),
    radial-gradient(ellipse 60% 50% at 15% 100%, rgba(8, 26, 46, 0.7), transparent),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(8, 26, 46, 0.7), transparent),
    linear-gradient(175deg, #081a2e 0%, #060f1e 55%, #030712 100%);
}

/* Cloud SVG layer in hero */
.hero-cloud-bg {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  max-width: 120%;
  height: 460px;
  pointer-events: none;
  user-select: none;
  opacity: 0.28;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .tagline,
.hero h1,
.hero .sub,
.hero-actions {
  animation: hero-in 0.7s var(--ease-out) both;
}

.hero .tagline { animation-delay: 0ms; }
.hero h1       { animation-delay: 80ms; }
.hero .sub     { animation-delay: 160ms; }
.hero-actions  { animation-delay: 240ms; }

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.hero h1 span.push {
  background: linear-gradient(90deg, #7eb8e8, var(--pp-blue-bright), #93d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .sub {
  font-size: 1.15rem;
  color: var(--pp-gray);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ── Tagline label ───────────────────────────── */

.tagline {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pp-blue-bright);
  font-weight: 600;
  margin: 0 0 1.1rem;
  opacity: 0.85;
}

/* ── Sections ────────────────────────────────── */

.section {
  padding: 5.5rem 0;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

.section-lead {
  color: var(--pp-gray);
  max-width: 58ch;
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Feature grid ────────────────────────────── */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

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

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

/* ── Cards ───────────────────────────────────── */

.card {
  display: flex;
  flex-direction: column;
  background: rgba(15, 39, 68, 0.48);
  border: 1px solid var(--pp-border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition:
    border-color 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    box-shadow 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(43, 155, 255, 0.38);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(3, 7, 18, 0.7), 0 0 0 1px rgba(43, 155, 255, 0.12);
  }
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pp-white);
}

.card p {
  margin: 0;
  color: var(--pp-gray);
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
}

.card p + p {
  margin-top: 0.75rem;
  flex: 0;
}

/* ── Screenshot placeholder ──────────────────── */

.screenshot-placeholder {
  aspect-ratio: 16/10;
  background: rgba(3, 7, 18, 0.75);
  border: 1.5px dashed rgba(43, 155, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--pp-gray);
  margin-top: 1.25rem;
}

/* ── Compare table ───────────────────────────── */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--pp-border);
  text-align: left;
}

.compare-table th {
  color: var(--pp-gray-light);
  font-weight: 600;
}

.compare-table .yes {
  color: #4ade80;
}

.compare-table .no {
  color: #f87171;
}

/* ── Pricing ─────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 800px;
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 2rem 1.75rem;
}

.pricing-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pp-gray-light);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.pricing-card .price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--pp-white);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.pricing-card > p {
  flex: 1;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.pricing-card.featured {
  border-color: rgba(43, 155, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(43, 155, 255, 0.28), 0 16px 48px rgba(43, 155, 255, 0.18);
  background: rgba(15, 39, 68, 0.72);
  transform: translateY(-4px);
}

.pricing-card.featured .price {
  color: var(--pp-blue-bright);
}

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

.site-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--pp-border);
  color: var(--pp-gray);
  font-size: 0.88rem;
}

.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer strong {
  color: var(--pp-white);
  font-weight: 700;
  font-size: 1rem;
}

.site-footer a {
  color: var(--pp-gray);
  display: block;
  margin-bottom: 0.4rem;
  transition: color 160ms var(--ease-out);
}

.site-footer a:hover {
  color: var(--pp-white);
}

/* ── App layouts (member/admin) ──────────────── */

.member-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100dvh;
}

.sidebar {
  background: var(--pp-navy-deep);
  padding: 1.5rem;
  border-right: 1px solid var(--pp-border);
}

.sidebar a {
  display: block;
  padding: 0.5rem 0;
  color: var(--pp-gray-light);
  transition: color 160ms var(--ease-out);
}

.sidebar a:hover {
  color: var(--pp-white);
}

.main-panel {
  padding: 2.5rem;
}

/* ── Forms ───────────────────────────────────── */

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--pp-gray-light);
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(3, 7, 18, 0.55);
  color: var(--pp-white);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms var(--ease-out);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(43, 155, 255, 0.5);
}

/* ── Docs ────────────────────────────────────── */

.docs-content {
  max-width: 72ch;
}

.docs-content h2 {
  margin-top: 2.5rem;
  color: var(--pp-blue-bright);
}

/* ── Alert ───────────────────────────────────── */

.alert {
  padding: 0.8rem 1.1rem;
  border-radius: 9px;
  background: rgba(43, 155, 255, 0.12);
  border: 1px solid rgba(43, 155, 255, 0.28);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

/* ── Section backgrounds ─────────────────────── */

.section-dark {
  background: linear-gradient(180deg, #081a2e 0%, #060e1c 100%);
  border-top: 1px solid var(--pp-border);
  border-bottom: 1px solid var(--pp-border);
}

/* ── Accessibility ───────────────────────────── */

:focus-visible {
  outline: 2px solid var(--pp-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--pp-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ── Reduced motion ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Mobile ──────────────────────────────────── */

@media (max-width: 768px) {
  .member-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .section {
    padding: 4rem 0;
  }

  .pricing-card.featured {
    transform: none;
  }
}
