/* -----------------------
   BASE / RESET
----------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* smooth anchor navigation */
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", sans-serif;
}

/* -----------------------
   TOKENS
----------------------- */

:root {
  --pc-charcoal-900: #1b1c1e;
  --pc-charcoal-800: #202124;
  --pc-charcoal-700: #252628;
  --pc-charcoal-600: #2b2c2e;
  /* Dark palette */
  --pc-bg-primary: #1e1e1e;
  --pc-bg-secondary: #252525;
  --pc-bg-surface: #303030;

  --pc-text-main: #ffffff;
  --pc-text-body: #e5e5e5;
  --pc-text-muted: #cacaca;

  --pc-surfaceElevated: var(--pc-bg-secondary);
  --pc-foreground: var(--pc-text-main);

  --pc-accent: #e76a3d;
  --pc-accent-soft: #ff9c73;

  --pc-radius-sm: 6px;
  --pc-radius-md: 10px;
  --pc-radius-lg: 14px;

  --pc-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --pc-shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);

  --pc-max-width: 1120px;

  --pc-space-xs: 0.5rem;
  --pc-space-sm: 0.75rem;
  --pc-space-md: 1.25rem;
  --pc-space-lg: 2rem;
  --pc-space-xl: 3.5rem;
  --pc-space-xxl: 5rem;
}

html {
  color-scheme: dark;
}

html.pc-dark {
  color-scheme: dark;
  --pc-bg-primary: #0d0d0d;
  --pc-bg-secondary: #151515;
  --pc-bg-surface: #1d1d1d;
  --pc-text-main: #f5f5f5;
  --pc-text-body: #dcdcdc;
  --pc-text-muted: #a3a3a3;
  --pc-accent: #e86f33;
  --pc-accent-soft: #ff9c73;
  --pc-border-strong: #2f2f2f;
  --pc-border-subtle: #232323;
  --pc-popover-border: rgba(255, 255, 255, 0.08);
  --pc-popover-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  --pc-surfaceElevated: var(--pc-bg-secondary);
  --pc-foreground: var(--pc-text-main);
  --pc-footer-bg: var(--pc-charcoal-900);
  --pc-footer-text: #e5e7eb;
  --pc-avatar-bg: var(--pc-charcoal-900);
  --pc-avatar-border: var(--pc-charcoal-700);
  --pc-avatar-text: #e5e7eb;
  --pc-avatar-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

html.pc-light {
  color-scheme: light;
  --pc-bg-primary: #f6f7fb;
  --pc-bg-secondary: #ffffff;
  --pc-bg-surface: #f0f2f6;
  --pc-text-main: var(--pc-charcoal-900);
  --pc-text-body: var(--pc-charcoal-800);
  --pc-text-muted: #4b5563;
  --pc-accent: #e86f33;
  --pc-accent-soft: #ff9c73;
  --pc-border-strong: #d1d5db;
  --pc-border-subtle: #e5e7eb;
  --pc-popover-bg: #ffffff;
  --pc-popover-border: rgba(27, 28, 30, 0.12);
  --pc-popover-shadow: 0 22px 45px rgba(27, 28, 30, 0.18);
  --pc-surfaceElevated: var(--pc-bg-secondary);
  --pc-foreground: var(--pc-text-main);
  --pc-footer-bg: #ffffff;
  --pc-footer-text: #4b5563;
  --pc-avatar-bg: #ffffff;
  --pc-avatar-border: rgba(0, 0, 0, 0.12);
  --pc-avatar-text: var(--pc-charcoal-900);
  --pc-avatar-shadow: 0 6px 16px rgba(27, 28, 30, 0.18);
}

/* -----------------------
   BODY / GLOBAL
----------------------- */

.pc-body {
  background: radial-gradient(
        circle at top left,
        var(--pc-bg-surface, #262626) 0,
        var(--pc-bg-primary, #1e1e1e) 55%
      )
      fixed;
  color: var(--pc-text-body);
}

.pc-main {
  min-height: unset;
}

/* generic containers */

.pc-section {
  padding: var(--pc-space-xl) var(--pc-space-md);
}

/* CINEMATIC GLOBAL SOFT TRANSITIONS */
.pc-section {
  transition: background-color 0.3s ease;
}

a,
.pc-btn {
  transition: color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

.pc-section-inner {
  max-width: var(--pc-max-width);
  margin: 0 auto;
}

.pc-section-center {
  text-align: center;
}

/* alternating background tones for subtle separation */

.pc-section-hero,
.pc-section-pipeline,
.pc-section-creators,
.pc-section-final-cta {
  background-color: var(--pc-bg-primary);
}

.pc-section-creators .pc-section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.pc-section-value,
.pc-section-solution,
.pc-section-visual {
  background-color: var(--pc-bg-secondary);
}

/* headings */

.pc-hero-title {
  font-size: clamp(2.6rem, 3vw + 1.5rem, 3.5rem);
  line-height: 1.1;
  margin: 0 0 var(--pc-space-md);
  color: var(--pc-text-main);
  letter-spacing: -0.02em;
}

.pc-hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 var(--pc-space-lg);
  max-width: 32rem;
  color: var(--pc-text-body);
}

.pc-section-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 var(--pc-space-sm);
  color: var(--pc-text-main);
}

.pc-section-subtitle {
  margin: 0 auto var(--pc-space-md);
  color: var(--pc-text-muted);
  max-width: 40rem;
  text-align: center;
}

/* -----------------------
   NAV
----------------------- */

.pc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(30, 30, 30, 0.95),
    rgba(30, 30, 30, 0.85),
    transparent
  );
}

.pc-header-inner {
  max-width: var(--pc-max-width);
  margin: 0 auto;
  padding: var(--pc-space-sm) var(--pc-space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pc-space-lg);
}

.pc-header-actions {
  display: flex;
  align-items: center;
  gap: var(--pc-space-md);
}

#landing-user-popover {
  background: var(--pc-popover-bg);
  border: 1px solid var(--pc-popover-border);
  box-shadow: var(--pc-popover-shadow);
  color: var(--pc-text-main);
}

#landing-user-popover .text-gray-100,
#landing-user-popover .text-gray-200 {
  color: var(--pc-text-main);
}

#landing-user-popover .text-gray-400 {
  color: var(--pc-text-muted);
}

/* Shared account popover shell */
.pc-account-popover {
  background-color: var(--pc-surfaceElevated);
  color: var(--pc-foreground);
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

html.pc-dark .pc-account-popover {
  background-color: var(--pc-surfaceElevated);
}

html.pc-light .pc-account-popover {
  background-color: var(--pc-surfaceElevated);
}

.pc-header-nav,
.pc-header-login {
  display: none;
}

.pc-logo {
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--pc-text-main);
  text-decoration: none;
}

/* theme toggle pills */

.pc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.pc-theme-toggle-btn {
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  border-style: solid;
  transition: background-color 150ms ease, border-color 150ms ease,
    box-shadow 150ms ease, transform 120ms ease;
}

html.pc-dark .pc-theme-toggle-btn {
  background-color: #18191b;
  border-color: #35363a;
  color: #f9fafb;
}

html.pc-light .pc-theme-toggle-btn {
  background-color: #f3f4f6;
  border-color: rgba(15, 23, 42, 0.15);
  color: #111827;
}

.pc-theme-toggle-btn.is-active {
  background-color: #f97316;
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.7);
  color: #111827;
}

/* Theme-aware overrides for common utility classes */
html.pc-light .bg-pc_surface,
html.pc-dark .bg-pc_surface,
html.pc-light .bg-pc_surfaceElevated,
html.pc-dark .bg-pc_surfaceElevated,
html.pc-light .bg-pc_surfaceTop,
html.pc-dark .bg-pc_surfaceTop {
  background-color: var(--pc-bg-surface) !important;
}

html.pc-light .border-pc_border,
html.pc-dark .border-pc_border {
  border-color: var(--pc-border-strong, #2b2b2b) !important;
}

html.pc-light .text-pc_textPrimary,
html.pc-dark .text-pc_textPrimary {
  color: var(--pc-text-main) !important;
}

html.pc-light .text-pc_textMuted,
html.pc-dark .text-pc_textMuted {
  color: var(--pc-text-muted) !important;
}

header {
  background-color: var(--pc-bg-secondary);
  border-color: var(--pc-border-subtle, #2b2b2b);
}

.header-avatar-pill {
  background-color: var(--pc-avatar-bg);
  border: 1px solid var(--pc-avatar-border);
  color: var(--pc-avatar-text);
  box-shadow: var(--pc-avatar-shadow);
}

.pc-theme-toggle-btn--active .pc-icon {
  color: #1e1e1e;
}

.pc-icon {
  font-size: 0.85rem;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  color: var(--pc-text-muted);
}

/* -----------------------
   BUTTONS
----------------------- */

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--pc-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.pc-btn-primary {
  background-color: var(--pc-accent);
  color: #1e1e1e;
  box-shadow: 0 0 0 transparent;
  transition: box-shadow 0.18s ease, transform 0.18s ease,
    background-color 0.18s ease;
}

.pc-btn-primary:hover {
  background-color: #f07a4f;
  box-shadow: 0 0 26px rgba(231, 106, 61, 0.55);
  transform: translateY(-1px);
}

.pc-btn-ghost {
  background: transparent;
  color: var(--pc-text-body);
}

.pc-btn-ghost:hover {
  color: var(--pc-accent);
}

/* -----------------------
   HERO LAYOUT
----------------------- */

.pc-section-hero {
  padding-top: var(--pc-space-xxl);
  padding-bottom: var(--pc-space-xxl);
}

.pc-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--pc-space-xl);
}

.pc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pc-space-sm);
}

.pc-start-status {
  min-height: 1.4rem;
  margin-top: 0.35rem;
  color: var(--pc-text-muted);
  font-size: 0.9rem;
}

.pc-start-status--error {
  color: #fca5a5;
}

.pc-hero-visual {
  display: flex;
  justify-content: flex-end;
}

.pc-hero-placeholder {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: var(--pc-radius-lg);
  background: radial-gradient(circle at top left, #3d3d3d 0, #252525 55%);
  box-shadow: var(--pc-shadow-soft);
}

/* HERO FADE-IN */
.pc-section-hero {
  animation: pc-hero-fade-up 0.6s ease-out both;
}

@keyframes pc-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Row 1: slow rightward slide */
@keyframes pc-value-row1 {
  from {
    transform: translateX(-10%);
  }
  to {
    transform: translateX(10%);
  }
}

/* Row 2: opposite direction, slightly different range */
@keyframes pc-value-row2 {
  from {
    transform: translateX(12%);
  }
  to {
    transform: translateX(-12%);
  }
}

/* Row 3: subtle, slower rightward drift */
@keyframes pc-value-row3 {
  from {
    transform: translateX(-6%);
  }
  to {
    transform: translateX(6%);
  }
}

/* -----------------------
   VALUE STATEMENT
----------------------- */

/* VALUE STRIP â€” three-line animated header */
.pc-section-value {
  padding: 1.8rem var(--pc-space-md);
  background-color: var(--pc-bg-secondary);
  overflow: hidden; /* keep horizontal motion inside the strip */
}

.pc-value-line {
  margin: 0.1rem 0;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-text-main);
  white-space: nowrap;
}

/* Row 1 â€” bold, moves to the right */
.pc-value-line-1 {
  font-weight: 700;
  animation: pc-value-row1 18s linear infinite alternate;
}

/* Row 2 â€” outline style, moves to the left */
.pc-value-line-2 {
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--pc-accent);
  text-stroke: 1px var(--pc-accent);
  animation: pc-value-row2 20s linear infinite alternate;
}

/* Row 3 â€” softer, slower drift to the right */
.pc-value-line-3 {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--pc-text-muted);
  animation: pc-value-row3 28s linear infinite alternate;
}

/* CONTINUITY SECTION â€” Meta-style two-column layout */
.pc-section-continuity {
  background-color: var(--pc-bg-secondary);
}

.pc-section-continuity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: var(--pc-space-xl);
  align-items: flex-start;
}

.pc-continuity-left {
  padding-right: var(--pc-space-md);
}

.pc-continuity-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--pc-accent);
  margin: 0 0 var(--pc-space-sm);
}

.pc-continuity-title {
  margin: 0 0 var(--pc-space-md);
  font-size: clamp(2rem, 2.4vw + 1.2rem, 2.8rem);
  line-height: 1.2;
  color: var(--pc-text-main);
}

.pc-continuity-desc {
  margin: 0;
  max-width: 34rem;
  color: var(--pc-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Right column list */
.pc-continuity-right {
  border-radius: var(--pc-radius-md);
  background: rgba(0, 0, 0, 0.16);
  padding: var(--pc-space-sm) var(--pc-space-md);
}

.pc-continuity-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.pc-continuity-item:last-child {
  border-bottom: none;
}

.pc-continuity-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.pc-index {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--pc-text-muted);
}

.pc-label {
  font-size: 1.05rem;
  color: var(--pc-text-main);
}

.pc-expand {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.6;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Hidden detail + animation */
.pc-detail {
  grid-column: 2 / 4;
  font-size: 0.92rem;
  color: var(--pc-text-body);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height 0.28s ease,
    opacity 0.24s ease,
    transform 0.24s ease;
}

/* Open state */
.pc-continuity-item.pc-continuity-item--open .pc-detail {
  max-height: 120px; /* enough for 2-3 lines */
  opacity: 1;
  transform: translateY(0);
}

.pc-continuity-item.pc-continuity-item--open .pc-expand {
  opacity: 1;
  transform: rotate(45deg); /* '+' visually becomes an 'x' */
}

/* -----------------------
   GRID HELPERS
----------------------- */

.pc-columns {
  display: grid;
  gap: var(--pc-space-md);
}

.pc-columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pc-columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Problem / Solution blocks */

.pc-problem-grid p,
.pc-solution-text {
  margin: 0;
  color: var(--pc-text-body);
}

/* -----------------------
   PIPELINE
----------------------- */

.pc-section-pipeline {
  text-align: center;
}

.pc-pipeline {
  margin-top: var(--pc-space-xs);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.pc-pipeline-steps {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pc-space-sm);
  justify-content: center;
  margin-top: var(--pc-space-md);
  padding-inline: var(--pc-space-sm);
}

.pc-pipeline-steps::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(120, 120, 120, 0.15) 0%,
    rgba(249, 115, 22, 0.6) 40%,
    rgba(120, 120, 120, 0.15) 80%
  );
  background-size: 180% 100%;
  pointer-events: none;
  z-index: 0;
  animation: pc-pipeline-track 12s linear infinite;
}

.pc-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

html.pc-light .pc-pill,
html.pc-dark .pc-pill {
  background-color: var(--pc-charcoal-900);
  color: #f3f4f6;
  border: 1px solid var(--pc-charcoal-700);
}

html.pc-dark .pc-pill {
  color: #e5e7eb;
}

html.pc-light .pc-pill--active,
html.pc-dark .pc-pill--active {
  background-color: #f97316;
  color: #111827;
  box-shadow: 0 0 36px rgba(249, 115, 22, 0.4);
  border-color: rgba(249, 115, 22, 0.9);
}

.pc-pipeline-pill {
  composes: pc-pill;
  animation: pc-pipeline-pulse 12s ease-in-out infinite;
}

.pc-pipeline-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(249, 115, 22, 0.45),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out;
  animation: pc-pipeline-glow 12s ease-in-out infinite;
  animation-delay: inherit;
}

.pc-pipeline-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.4);
  border-color: rgba(249, 115, 22, 0.9);
}

.pc-pipeline-pill:hover::before {
  opacity: 1;
}

.pc-pipeline-pill {
  animation: pc-pipeline-pulse 12s ease-in-out infinite;
}

.pc-pipeline-pill:nth-child(1) {
  animation-delay: 0s;
}
.pc-pipeline-pill:nth-child(2) {
  animation-delay: 0.8s;
}
.pc-pipeline-pill:nth-child(3) {
  animation-delay: 1.6s;
}
.pc-pipeline-pill:nth-child(4) {
  animation-delay: 2.4s;
}
.pc-pipeline-pill:nth-child(5) {
  animation-delay: 3.2s;
}
.pc-pipeline-pill:nth-child(6) {
  animation-delay: 4s;
}
.pc-pipeline-pill:nth-child(7) {
  animation-delay: 4.8s;
}
.pc-pipeline-pill:nth-child(8) {
  animation-delay: 5.6s;
}
.pc-pipeline-pill:nth-child(9) {
  animation-delay: 6.4s;
}
.pc-pipeline-pill:nth-child(10) {
  animation-delay: 7.2s;
}

@keyframes pc-pipeline-pulse {
  0%,
  10% {
    background: var(--pc-charcoal-900);
    color: #e5e7eb;
    box-shadow: 0 0 0 rgba(249, 115, 22, 0);
    border-color: var(--pc-charcoal-700);
  }
  15%,
  25% {
    background: #f97316;
    color: #111111;
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.45);
    border-color: rgba(249, 115, 22, 0.9);
  }
  30%,
  100% {
    background: var(--pc-charcoal-900);
    color: #e5e7eb;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    border-color: var(--pc-charcoal-700);
  }
}

@keyframes pc-pipeline-glow {
  0%,
  10% {
    opacity: 0;
  }
  15%,
  25% {
    opacity: 1;
  }
  30%,
  100% {
    opacity: 0;
  }
}

/* ---------- Landing Header Shell (no Tailwind) ---------- */


@keyframes pc-pipeline-track {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

/* CREATOR STRIP — animated audience roles */
.pc-creators-strip {
  margin-top: var(--pc-space-md);
}

.pc-creators-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pc-space-sm);
  justify-content: center;
}

/* Base pill look */
.pc-creator-pill {
  animation: pc-creator-pulse 10s ease-in-out infinite;
}

/* Sequential highlight: each pill gets its own offset */
.pc-creator-pill:nth-child(1) {
  animation-delay: 0s;
}
.pc-creator-pill:nth-child(2) {
  animation-delay: 1.2s;
}
.pc-creator-pill:nth-child(3) {
  animation-delay: 2.4s;
}
.pc-creator-pill:nth-child(4) {
  animation-delay: 3.6s;
}
.pc-creator-pill:nth-child(5) {
  animation-delay: 4.8s;
}
.pc-creator-pill:nth-child(6) {
  animation-delay: 6s;
}

/* Hover still wins over animation */
.pc-creator-pill:hover {
  transform: translateY(-2px);
}

/* Keyframes for the “focus sweep” */
@keyframes pc-creator-pulse {
  0%,
  15% {
    background: var(--pc-charcoal-900);
    color: #e5e7eb;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
  }
  20%,
  30% {
    background: #f97316; /* accent orange */
    color: #111111;
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.35);
    transform: translateY(-3px);
  }
  40%,
  100% {
    background: var(--pc-charcoal-900);
    color: #e5e7eb;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transform: translateY(0);
  }
}

/* -----------------------
   VISUAL PLACEHOLDER
----------------------- */

.pc-section-visual {
  padding-top: var(--pc-space-xl);
  padding-bottom: var(--pc-space-xl);
}

.pc-visual-placeholder {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--pc-radius-md);
  background: radial-gradient(circle at top, #3b3b3b 0, #262626 60%);
  box-shadow: var(--pc-shadow-subtle);
}

/* -----------------------
   FINAL CTA
----------------------- */

.pc-section-final-cta {
  text-align: center;
}

.pc-final-cta-btn {
  margin-top: var(--pc-space-md);
}

.pc-final-cta-note {
  margin-top: var(--pc-space-sm);
}

/* -----------------------
   FOOTER
----------------------- */

.pc-footer {
  background-color: var(--pc-footer-bg);
  padding: var(--pc-space-lg) var(--pc-space-md) var(--pc-space-md);
  color: var(--pc-footer-text);
  font-size: 0.85rem;
  border-top: 1px solid rgba(27, 28, 30, 0.08);
}

.pc-footer-inner {
  max-width: var(--pc-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--pc-space-md);
  justify-content: space-between;
  align-items: center;
}

.pc-footer-brand {
  color: var(--pc-footer-text);
}

.pc-footer-center,
.pc-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pc-footer-link {
  color: var(--pc-footer-text);
  text-decoration: none;
}

.pc-footer-link:hover {
  color: var(--pc-accent);
}

.pc-footer-bottom {
  max-width: var(--pc-max-width);
  margin: var(--pc-space-sm) auto 0;
  text-align: left;
}

/* -----------------------
   LOGIN MODAL
----------------------- */

.pc-login-modal[hidden] {
  display: none;
}

.pc-login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.pc-login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.pc-login-dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 420px;
  max-height: 260px;
  padding: var(--pc-space-lg);
  border-radius: 18px;
  background: #161616;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--pc-space-md);
}

.pc-login-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--pc-text-main);
}

.pc-login-text {
  font-size: 0.95rem;
  color: var(--pc-text-muted);
  margin: 0;
}

.pc-login-btn {
  width: 100%;
}

.pc-login-cancel {
  width: 100%;
  margin-top: 0.25rem;
}

/* -----------------------
   ACCOUNT MANAGEMENT MODALS
----------------------- */

.pc-modal[hidden] {
  display: none;
}
.pc-modal[data-pc-manage-account-modal]:not([data-pc-manage-account-open]) {
  display: none;
}

.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
}

.pc-modal-card {
  position: relative;
  inset: auto;
  margin: 0;
  width: auto;
  max-width: 28rem;
  max-height: min(80vh, 720px);
  padding: var(--pc-space-lg);
  border-radius: 18px;
  background: var(--pc-bg-secondary);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: var(--pc-space-md);
  border: 1px solid var(--pc-border-strong, #2b2b2b);
}

.pc-modal-content {
  width: auto;
  max-width: 28rem;
}

.pc-modal-card-danger {
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pc-modal[data-pc-manage-account-modal] .pc-modal-header {
  justify-content: center;
}

.pc-modal[data-pc-manage-account-modal] .pc-modal-card {
  text-align: center;
}

.pc-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pc-text-main);
}

.pc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 1px solid var(--pc-border-strong, #2b2b2b);
  color: var(--pc-text-main);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
}

.pc-modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--pc-space-md);
  overflow-y: auto;
  padding-right: 2px;
}

.pc-modal-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pc-modal-section-divider {
  border-top: 1px solid var(--pc-border-strong, #2b2b2b);
  padding-top: var(--pc-space-md);
}

.pc-modal-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pc-text-main);
}

.pc-detail-card {
  background: var(--pc-bg-surface);
  border: 1px solid var(--pc-border-strong, #2b2b2b);
  border-radius: 14px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pc-detail-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 0.5rem;
}

.pc-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--pc-text-main);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pc-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.pc-menu-item-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pc-menu-item-disabled:hover {
  background-color: transparent;
}

.pc-menu-label {
  text-decoration: line-through;
}

.pc-menu-tag {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-text-muted, rgba(148, 163, 184, 1));
}

.pc-copy-btn {
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}

.pc-copy-btn:active {
  transform: scale(0.92);
}

.pc-copy-btn.copied {
  background-color: var(--pc-accent);
  color: #ffffff;
}

.pc-copy-btn.copied:hover {
  background-color: var(--pc-accent);
}

.pc-copy-btn.copied::after {
  content: "Copied!";
  position: absolute;
  top: -12px;
  right: 0;
  font-size: 10px;
  color: var(--pc-accent);
  opacity: 0;
  animation: pcCopiedPulse 0.6s ease-out forwards;
}

@keyframes pcCopiedPulse {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.pc-detail-label {
  font-size: 0.9rem;
  color: var(--pc-text-muted);
}

.pc-detail-value {
  font-size: 0.95rem;
  color: var(--pc-text-main);
  word-break: break-all;
}

.pc-icon-btn {
  background: transparent;
  border: 1px solid var(--pc-border-strong, #2b2b2b);
  color: var(--pc-text-main);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.pc-detail-copy-btn {
  background: transparent;
  border: 1px solid var(--pc-border-strong, #2b2b2b);
  color: var(--pc-text-main);
  border-radius: 10px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}

.pc-detail-copy-btn:active {
  transform: scale(0.95);
}

.pc-copy-success {
  background-color: var(--pc-accent);
  color: #ffffff;
}

.pc-modal-text {
  margin: 0;
  color: var(--pc-text-muted);
  line-height: 1.5;
}

.pc-modal-body-text {
  margin: 0;
  color: var(--pc-text-muted);
  line-height: 1.5;
}

.pc-modal-lead {
  margin: 0;
  color: var(--pc-text-main);
  font-weight: 600;
}

.pc-modal-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--pc-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pc-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--pc-text-main);
  font-size: 0.95rem;
}

.pc-checkbox-row input {
  margin-top: 3px;
}

.pc-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pc-modal-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.2s ease, color 0.2s ease;
}

.pc-modal-danger:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #fecdd3;
}

.pc-modal-danger:active {
  transform: scale(0.98);
}

.pc-btn-block {
  width: 100%;
}

.pc-btn-danger {
  background: #b91c1c;
  color: #fff;
  border: 1px solid #ef4444;
}

.pc-btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* -----------------------
   RESPONSIVE
----------------------- */

@media (max-width: 900px) {
  .pc-header-inner {
    flex-wrap: wrap;
    gap: var(--pc-space-md);
  }

  .pc-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .pc-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-hero-visual {
    justify-content: flex-start;
    margin-top: var(--pc-space-lg);
  }

  .pc-columns-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-columns-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-section {
    padding-inline: var(--pc-space-sm);
  }

  .pc-section-continuity-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pc-continuity-left {
    padding-right: 0;
    margin-bottom: var(--pc-space-lg);
  }

  .pc-creators-row {
    justify-content: center;
  }

  .pc-pipeline-steps {
    padding-inline: 0;
  }

  .pc-pipeline-steps::before {
    display: none;
  }

  .pc-pipeline-pill {
    flex: 0 0 auto;
  }
}

.pc-btn-light {
  color: #1a1a1a; /* strong dark text for light-mode button */
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.15);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.pc-btn-light:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.25);
}
