/* plxr3d — Cinematic 3D agency experience */

:root {
  --bg: #050508;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --text: #fafafa;
  --text-muted: rgba(250, 250, 250, 0.55);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed WebGL canvas — full viewport, behind content */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* All UI above canvas */
.plxr-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ——— Navigation ——— */
.plxr-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s var(--ease-out-expo), backdrop-filter 0.4s;
}
.plxr-nav.scrolled {
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.plxr-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-quart), color 0.2s;
}
.plxr-logo:hover {
  color: #fff;
  transform: scale(1.02);
}

.plxr-nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.plxr-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s;
}
.plxr-nav-links a:hover,
.plxr-nav-links a.active {
  color: var(--text);
}

.plxr-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out-quart);
}
.plxr-cta-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ——— Hero ——— */
.plxr-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  perspective: 1200px;
  position: relative;
}
.plxr-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.plxr-hero-inner {
  max-width: 900px;
  text-align: center;
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
}

.plxr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: plxr-fade-up 0.8s var(--ease-out-expo) both;
}
.plxr-badge strong { color: var(--text); }

.plxr-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  animation: plxr-fade-up 0.8s var(--ease-out-expo) 0.1s both;
}
.plxr-hero h1 .gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #38bdf8 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: plxr-shimmer 6s ease-in-out infinite;
}

.plxr-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  animation: plxr-fade-up 0.8s var(--ease-out-expo) 0.2s both;
}

.plxr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: plxr-fade-up 0.8s var(--ease-out-expo) 0.3s both;
}

/* Buttons with micro-interaction */
.plxr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s, background 0.25s;
}
.plxr-btn:active { transform: scale(0.98); }

.plxr-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}
.plxr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.plxr-btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.plxr-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ——— Sections (depth layers) ——— */
.plxr-section {
  padding: 6rem 2rem;
  position: relative;
}
.plxr-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.plxr-section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.plxr-section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.plxr-section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Floating glass cards */
.plxr-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.plxr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.3s, box-shadow 0.4s;
  transform: translateY(0) rotateX(0);
  transform-style: preserve-3d;
}
.plxr-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255,255,255,0.03);
}

.plxr-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.plxr-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.plxr-card .plxr-btn-ghost {
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

/* Clients strip */
.plxr-clients {
  padding: 4rem 2rem;
}
.plxr-clients-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.plxr-clients-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.plxr-clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.plxr-clients-grid .client-item {
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}
.plxr-clients-grid .client-item:hover {
  opacity: 1;
  filter: grayscale(0);
}
.plxr-clients-grid .client-image {
  height: 32px;
  display: flex;
  align-items: center;
}
.plxr-clients-grid .client-image img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Testimonial block */
.plxr-testimonial-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.plxr-testimonial-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.plxr-testimonial-block .author {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plxr-testimonial-block .author strong { color: var(--text); }

/* CTA section */
.plxr-cta-section {
  padding: 8rem 2rem;
  text-align: center;
}
.plxr-cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.plxr-cta-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.plxr-cta-section .plxr-btn-primary { font-size: 1rem; padding: 1rem 2rem; }

/* Footer */
.plxr-footer {
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
}
.plxr-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.plxr-footer .plxr-logo { font-size: 1.25rem; }
.plxr-footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.plxr-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.plxr-footer-links a:hover { color: var(--text); }
.plxr-footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ——— Animations ——— */
@keyframes plxr-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes plxr-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Scroll-triggered reveal (JS adds .visible) */
.plxr-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.plxr-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.plxr-stagger > * { transition-delay: 0s; }
.plxr-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.plxr-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.plxr-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.plxr-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.plxr-stagger > *:nth-child(5) { transition-delay: 0.25s; }
.plxr-stagger > *:nth-child(6) { transition-delay: 0.3s; }

/* ——— Inner pages (no canvas) ——— */
.plxr-page { position: relative; z-index: 1; min-height: 100vh; }
.plxr-page .plxr-page-bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.12), transparent),
              radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08), transparent);
  z-index: 0; pointer-events: none;
}
.plxr-page-hero {
  padding: 8rem 2rem 5rem;
  text-align: center;
  position: relative; z-index: 1;
}
.plxr-page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}
.plxr-page-hero h1 .gradient {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.plxr-page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}
.plxr-page-section {
  padding: 4rem 2rem;
  position: relative; z-index: 1;
}
.plxr-page-section-inner { max-width: 1100px; margin: 0 auto; }
.plxr-page-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.plxr-page-section .lead { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.plxr-stats {
  display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin-top: 2rem;
}
.plxr-stat { text-align: center; }
.plxr-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--text); }
.plxr-stat-label { font-size: 0.9rem; color: var(--text-muted); }
.plxr-process-step {
  display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2.5rem;
  padding: 1.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plxr-process-step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--accent);
  flex-shrink: 0;
}
.plxr-process-step h3 { font-family: var(--font-display); margin-bottom: 0.35rem; }
.plxr-process-step p { color: var(--text-muted); font-size: 0.95rem; }
.plxr-form-group { margin-bottom: 1.25rem; }
.plxr-form-group label {
  display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text-muted);
}
.plxr-form-group input,
.plxr-form-group select,
.plxr-form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s;
}
.plxr-form-group input:focus,
.plxr-form-group select:focus,
.plxr-form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.plxr-form-group textarea { min-height: 120px; resize: vertical; }
.plxr-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 768px) { .plxr-contact-grid { grid-template-columns: 1fr; } }
.plxr-faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.75rem; overflow: hidden;
}
.plxr-faq-item summary {
  padding: 1.25rem; cursor: pointer; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.plxr-faq-item summary::-webkit-details-marker { display: none; }
.plxr-faq-item p { padding: 0 1.25rem 1.25rem; color: var(--text-muted); font-size: 0.95rem; }
.plxr-article-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease-out-quart);
}
.plxr-article-card:hover {
  border-color: rgba(255,255,255,0.1); transform: translateY(-4px);
}
.plxr-article-card .cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.5rem; }
.plxr-article-card h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.plxr-article-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.plxr-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.plxr-tag { padding: 0.35rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; font-size: 0.8rem; color: var(--text-muted); }

/* Mobile */
@media (max-width: 768px) {
  .plxr-nav { padding: 1rem 1.25rem; }
  .plxr-nav-links { display: none; }
  .plxr-hero { padding: 7rem 1.25rem 4rem; }
  .plxr-section { padding: 4rem 1.25rem; }
  .plxr-clients-grid { gap: 2rem; }
  .plxr-footer-inner { flex-direction: column; text-align: center; }
  .plxr-page-hero { padding: 6rem 1.25rem 3rem; }
  .plxr-process-step { flex-direction: column; gap: 1rem; }
}
