/* ═══════════════════════════════════════════════════════════════════
   PlugIQ WordPress Theme — Main Stylesheet
   Faithfully converted from React/Tailwind source
   ═══════════════════════════════════════════════════════════════════ */

/* Fonts are loaded via assets/css/fonts.css — Nunito, self-hosted */

/* ── Reset & Box Sizing ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ── Design Tokens — Dark (default) ────────────────────────────── */
:root {
  --pq-bg-primary:    #0A0A0A;
  --pq-bg-secondary:  #080808;
  --pq-bg-chrome:     #0D0D0D;
  --pq-surface-1:     #111111;
  --pq-surface-2:     #141414;
  --pq-surface-3:     #1A1A1A;
  --pq-text-1:        #FFFFFF;
  --pq-text-2:        #C8C8C8;
  --pq-text-3:        #999999;
  --pq-text-4:        #888888;
  --pq-text-5:        #666666;
  --pq-text-6:        #555555;
  --pq-border-1:      rgba(255,255,255,0.05);
  --pq-border-2:      rgba(255,255,255,0.08);
  --pq-border-3:      rgba(255,255,255,0.10);
  --pq-border-4:      rgba(255,255,255,0.14);
  --pq-border-strong: rgba(255,255,255,0.20);
  --pq-primary-border: rgba(20,193,135,0.18);
  --pq-primary-bg:    rgba(20,193,135,0.10);
  --pq-float-card-bg: #1A1A1A;
  --pq-nav-bg:        rgba(10,10,10,0.85);
  --pq-input-bg:      #111111;
  --pq-primary:       #14C187;
  --pq-primary-dark:  #0A0A0A;
  --pq-radius:        0.75rem;
  --pq-logo-dot-1:    #FF5F57;
  --pq-logo-dot-2:    #FFBD2E;
  --pq-logo-dot-3:    #28C840;
}

/* ── Design Tokens — Forest Green Light ────────────────────────── */
html.light {
  --pq-bg-primary:     #0B1913;
  --pq-bg-secondary:   #091511;
  --pq-bg-chrome:      #0D1E16;
  --pq-surface-1:      #111C16;
  --pq-surface-2:      #172A1F;
  --pq-surface-3:      #1A2B21;
  --pq-text-1:         #EDEDED;
  --pq-text-2:         #C2D0C7;
  --pq-text-3:         #8A9990;
  --pq-text-4:         #7A8A82;
  --pq-text-5:         #5A6B60;
  --pq-text-6:         #4A5A50;
  --pq-border-1:       #1A2A20;
  --pq-border-2:       #1F2E28;
  --pq-border-3:       #253529;
  --pq-border-4:       #2A3D2F;
  --pq-border-strong:  #304535;
  --pq-primary-border: rgba(20,193,135,0.25);
  --pq-primary-bg:     rgba(20,193,135,0.10);
  --pq-float-card-bg:  #1A2B21;
  --pq-nav-bg:         rgba(11,25,19,0.92);
  --pq-input-bg:       #111C16;
}

/* ── Base ───────────────────────────────────────────────────────── */
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: var(--pq-bg-primary);
  color: var(--pq-text-1);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.2;
  font-weight: 700;
}

/* ── Layout Utilities ───────────────────────────────────────────── */
.pq-container { max-width: 1280px; margin: 0 auto; padding: 0 5.5rem; !important; }
.pq-container-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.pq-container-medium { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Backgrounds ────────────────────────────────────────────────── */
.bg-primary-surface { background-color: var(--pq-bg-primary); }
.bg-chrome { background-color: var(--pq-bg-chrome); }
.bg-secondary-surface { background-color: var(--pq-bg-secondary); }
.bg-surface-1 { background-color: var(--pq-surface-1); }
.bg-surface-2 { background-color: var(--pq-surface-2); }

.section-alt { background: rgba(0,0,0,0.18); }
html.light .section-alt { background: hsl(155 30% 9%); }

/* ── Section Light ──────────────────────────────────────────────── */
.section-light { background: var(--pq-surface-1); }

html.light .section-light {
  background: #F3F9F6;
  --pq-text-1: #0D2219;
  --pq-text-2: #3D5249;
  --pq-text-3: #4A6557;
  --pq-text-4: #5A7564;
  --pq-text-5: #6A8470;
  --pq-text-6: #7A927D;
  --pq-border-1: rgba(11,25,19,0.07);
  --pq-border-2: rgba(11,25,19,0.12);
  --pq-border-3: rgba(11,25,19,0.18);
  --pq-border-4: rgba(11,25,19,0.24);
  --pq-primary-border: rgba(20,193,135,0.30);
  --pq-primary-bg: rgba(20,193,135,0.09);
}

html.light .section-light h2,
html.light .section-light h3,
html.light .section-light h4 { color: #0B1913; }
html.light .section-light p   { color: #3D5249; }

html.light .section-light [style*="pq-surface-1"],
html.light .section-light [style*="pq-surface-2"],
html.light .section-light [style*="pq-surface-3"],
html.light .section-light .pq-dark-panel {
  --pq-text-1:         #EDEDED;
  --pq-text-2:         #C2D0C7;
  --pq-text-3:         #8A9990;
  --pq-text-4:         #7A8A82;
  --pq-text-5:         #5A6B60;
  --pq-text-6:         #4A5A50;
  --pq-border-1:       rgba(255,255,255,0.05);
  --pq-border-2:       rgba(255,255,255,0.08);
  --pq-border-3:       rgba(255,255,255,0.10);
  --pq-border-4:       rgba(255,255,255,0.14);
  --pq-primary-border: rgba(20,193,135,0.25);
  --pq-primary-bg:     rgba(20,193,135,0.10);
  color: #EDEDED;
}

html.light .section-light [style*="pq-surface-1"] h1,
html.light .section-light [style*="pq-surface-1"] h2,
html.light .section-light [style*="pq-surface-1"] h3,
html.light .section-light [style*="pq-surface-1"] h4,
html.light .section-light [style*="pq-surface-1"] h5,
html.light .section-light [style*="pq-surface-1"] h6,
html.light .section-light [style*="pq-surface-2"] h1,
html.light .section-light [style*="pq-surface-2"] h2,
html.light .section-light [style*="pq-surface-2"] h3,
html.light .section-light [style*="pq-surface-2"] h4,
html.light .section-light [style*="pq-surface-2"] h5,
html.light .section-light [style*="pq-surface-2"] h6,
html.light .section-light .pq-dark-panel h1,
html.light .section-light .pq-dark-panel h2,
html.light .section-light .pq-dark-panel h3,
html.light .section-light .pq-dark-panel h4 { color: #EDEDED; }

html.light .section-light [style*="pq-surface-1"] p,
html.light .section-light [style*="pq-surface-1"] li,
html.light .section-light [style*="pq-surface-2"] p,
html.light .section-light [style*="pq-surface-2"] li,
html.light .section-light .pq-dark-panel p,
html.light .section-light .pq-dark-panel li { color: #C2D0C7; }

/* ── Grid Background ────────────────────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
}

/* ── Hero Gradient ──────────────────────────────────────────────── */
.hero-gradient {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, hsl(160 60% 12% / 0.22), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 60%, hsl(160 50% 8% / 0.12), transparent 70%),
    var(--pq-bg-primary);
}
html.light .hero-gradient {
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, hsl(160 60% 22% / 0.18), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 60%, hsl(155 50% 15% / 0.10), transparent 70%),
    var(--pq-bg-primary);
}

/* ── Glow Utilities ─────────────────────────────────────────────── */
.glow-primary { box-shadow: 0 4px 20px -4px rgba(20,193,135,0.35); }
.glow-text { text-shadow: 0 0 32px rgba(20,193,135,0.22); }
.glow-border { box-shadow: 0 0 0 1px rgba(20,193,135,0.2), 0 4px 16px -4px rgba(20,193,135,0.12); }
.gradient-border {
  background: linear-gradient(var(--pq-surface-2), var(--pq-surface-2)) padding-box,
              linear-gradient(135deg, rgba(20,193,135,0.35), transparent 50%, rgba(20,193,135,0.15)) border-box;
  border: 1px solid transparent;
}
.screenshot-glow {
  box-shadow: 0 32px 72px -16px rgba(0,0,0,0.7), 0 0 0 1px var(--pq-border-2), 0 0 48px -16px rgba(20,193,135,0.12);
  background: rgba(20,20,20,0.6);
  backdrop-filter: blur(12px);
}
html.light .screenshot-glow {
  box-shadow: 0 32px 72px -16px rgba(0,0,0,0.55), 0 0 0 1px hsl(155 20% 16% / 0.9), 0 0 48px -16px rgba(20,193,135,0.12);
  background: hsl(155 32% 11% / 0.6);
}

/* ── Typography Helpers ─────────────────────────────────────────── */
.text-primary { color: var(--pq-primary) !important; }
.text-dim { color: var(--pq-text-3); }
.text-muted { color: var(--pq-text-4); }
.font-mono { font-family: 'Courier New', monospace; }
.uppercase-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: monospace;
  color: var(--pq-primary);
}

/* ── Button Styles ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 2rem;
  background: var(--pq-primary);
  color: #0A0A0A;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--pq-radius);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 8px 30px -6px rgba(20,193,135,0.5); transform: scale(1.02); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--pq-radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: scale(1.02); }

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  border-radius: calc(var(--pq-radius) * 0.75);
}

/* ── Pill / Badge ────────────────────────────────────────────────── */
.pq-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: monospace;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.pq-card {
  background: var(--pq-surface-1);
  border: 1px solid var(--pq-border-2);
  border-radius: var(--pq-radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.pq-card:hover { border-color: var(--pq-border-4); }

.pq-card-primary-border {
  background: var(--pq-surface-2);
  border: 1px solid var(--pq-primary-border);
  border-radius: var(--pq-radius);
  padding: 1.5rem;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
#pq-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}
#pq-navbar.scrolled {
  background: rgba(10,10,10,0.92);
  border-color: rgba(20,193,135,0.15);
}
html.light #pq-navbar.scrolled { background: rgba(11,25,19,0.92); }

.pq-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pq-nav-logo img { height: 2rem; }
.pq-nav-links { display: flex; align-items: center; gap: 2rem; }
.pq-nav-links a { font-size: 0.875rem; color: var(--pq-text-2); transition: color 0.2s; }
.pq-nav-links a:hover { color: var(--pq-primary); }
.pq-nav-links a.pq-active { color: var(--pq-primary); font-weight: 700; }
.pq-nav-right { display: flex; align-items: center; gap: 0.75rem; }
.pq-nav-signin { font-size: 0.875rem; color: var(--pq-text-2); transition: color 0.2s; }
.pq-nav-signin:hover { color: var(--pq-primary); }

.pq-hamburger { display: none; flex-direction: column; gap: 5px; padding: 0.25rem; }
.pq-hamburger span { display: block; width: 22px; height: 2px; background: var(--pq-text-2); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.pq-mobile-menu { display: none; flex-direction: column; gap: 0; background: rgba(10,10,10,0.98); border-bottom: 1px solid var(--pq-border-2); padding: 0.5rem 0; }
html.light .pq-mobile-menu { background: rgba(11,25,19,0.98); }
.pq-mobile-menu a { padding: 0.875rem 1.5rem; font-size: 0.9rem; color: var(--pq-text-2); border-bottom: 1px solid var(--pq-border-1); transition: color 0.2s; }
.pq-mobile-menu a:hover { color: var(--pq-primary); }
.pq-mobile-menu.open { display: flex; }

@media (max-width: 767px) {
  .pq-nav-links { display: none; }
  .pq-nav-signin { display: none; }
  .pq-hamburger { display: flex; }
}

/* ── Theme Toggle ─────────────────────────────────────────────────── */
.theme-toggle {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pq-surface-1); border: 1px solid var(--pq-border-3);
  color: var(--pq-text-3); transition: all 0.2s;
}
.theme-toggle:hover { color: var(--pq-primary); border-color: var(--pq-primary-border); }

/* ── Logo Cloud / Marquee ──────────────────────────────────────── */
.pq-marquee-track { display: flex; align-items: center; gap: 4rem; animation: marquee 40s linear infinite; width: max-content; }
.pq-marquee-item-text { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--pq-text-1); opacity: 0.4; transition: opacity 0.2s; white-space: nowrap; }
.pq-marquee-item-text:hover { opacity: 0.7; }
.pq-marquee-item-img { height: 2rem; width: auto; opacity: 0.5; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.pq-marquee-item-img:hover { opacity: 0.8; filter: grayscale(0); }

/* ── Stats ──────────────────────────────────────────────────────── */
.pq-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
@media (min-width: 1024px) { .pq-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.pq-stat-item { text-align: center; padding: 1rem; position: relative; }
.pq-stat-item:not(:last-child) { border-right: 1px solid var(--pq-border-2); }
@media (max-width: 1023px) {
  .pq-stat-item:nth-child(2) { border-right: none; }
  .pq-stat-item:nth-child(1), .pq-stat-item:nth-child(2) { border-bottom: 1px solid var(--pq-border-2); }
}
.pq-stat-number { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 700; color: var(--pq-primary); margin-bottom: 0.5rem; line-height: 1; }
.pq-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; color: var(--pq-text-4); }

/* ── Grids ──────────────────────────────────────────────────────── */
.pq-grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .pq-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pq-grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .pq-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.pq-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) { .pq-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Accordion / FAQ ─────────────────────────────────────────────── */
.pq-accordion-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
html.light .pq-accordion-item { border-bottom: 1px solid var(--pq-border-3); }
.pq-accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.25rem; text-align: left; font-size: 0.9375rem; font-weight: 600; color: var(--pq-text-1); background: none; border: none; cursor: pointer; transition: color 0.2s; }
.pq-accordion-trigger:hover { color: var(--pq-primary); }
.pq-accordion-icon { flex-shrink: 0; width: 1.125rem; height: 1.125rem; color: var(--pq-text-3); transition: transform 0.3s; }
.pq-accordion-item.open .pq-accordion-icon { transform: rotate(180deg); }
.pq-accordion-body { font-size: 0.875rem; line-height: 1.75; color: var(--pq-text-2); max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s; }
.pq-accordion-item.open .pq-accordion-body { max-height: 600px; padding-bottom: 1.25rem; }

/* ── Pricing Cards ───────────────────────────────────────────────── */
.pq-pricing-card { background: var(--pq-surface-1); border: 1px solid var(--pq-border-2); border-radius: var(--pq-radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.5rem; position: relative; }
.pq-pricing-card.featured { background: var(--pq-surface-2); border-color: rgba(20,193,135,0.4); box-shadow: 0 0 0 1px rgba(20,193,135,0.15), 0 24px 48px -12px rgba(0,0,0,0.5); }
.pq-pricing-card .pq-badge-featured { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--pq-primary); color: #0A0A0A; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.875rem; border-radius: 0 0 0.5rem 0.5rem; }
.pq-price { font-size: 2.5rem; font-weight: 700; color: var(--pq-text-1); }
.pq-price-label { font-size: 0.8125rem; color: var(--pq-text-4); }
.pq-feature-list { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.pq-feature-item { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--pq-text-2); }
.pq-feature-check { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--pq-primary); margin-top: 0.125rem; }

/* ── Blog Card ───────────────────────────────────────────────────── */
.pq-blog-card { background: var(--pq-surface-1); border: 1px solid var(--pq-border-2); border-radius: var(--pq-radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s; }
.pq-blog-card:hover { border-color: rgba(255,255,255,0.14); }
html.light .pq-blog-card:hover { border-color: var(--pq-border-4); }
.pq-blog-card-img { width: 100%; height: 11rem; object-fit: cover; }
.pq-blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.pq-blog-card-title { font-size: 0.9375rem; font-weight: 700; color: var(--pq-text-1); line-height: 1.4; transition: color 0.2s; }
.pq-blog-card:hover .pq-blog-card-title { color: var(--pq-primary); }
.pq-blog-card-excerpt { font-size: 0.875rem; line-height: 1.7; color: var(--pq-text-3); flex: 1; }
.pq-blog-read-more { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-family: monospace; color: var(--pq-primary); transition: gap 0.2s; }
.pq-blog-read-more:hover { gap: 0.625rem; }

/* ── Subscribe / Newsletter ─────────────────────────────────────── */
.pq-subscribe-form { display: flex; flex-direction: column; gap: 0.75rem; max-width: 28rem; margin: 0 auto; }
@media (min-width: 640px) { .pq-subscribe-form { flex-direction: row; } }
.pq-input { flex: 1; padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--pq-text-1); background: var(--pq-surface-1); border: 1px solid var(--pq-border-3); border-radius: var(--pq-radius); outline: none; transition: border-color 0.2s; }
.pq-input::placeholder { color: var(--pq-text-5); }
.pq-input:focus { border-color: var(--pq-primary); }

/* ── Footer ─────────────────────────────────────────────────────── */
#pq-footer { background: var(--pq-bg-primary); border-top: 1px solid var(--pq-border-2); position: relative; overflow: hidden; }
.pq-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .pq-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pq-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.pq-footer-logo { height: 2rem; margin-bottom: 1.25rem; }
.pq-footer-col-title { font-size: 0.875rem; font-weight: 600; color: var(--pq-text-1); margin-bottom: 1.25rem; letter-spacing: 0.025em; }
.pq-footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.pq-footer-links a { font-size: 0.875rem; color: var(--pq-text-4); transition: color 0.2s; }
.pq-footer-links a:hover { color: var(--pq-text-1); }
.pq-footer-social { display: flex; gap: 0.75rem; }
.pq-footer-social a { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--pq-text-4); transition: color 0.2s; }
.pq-footer-social a:hover { color: var(--pq-text-1); }
.pq-footer-divider { border: none; border-top: 1px solid var(--pq-border-2); margin: 0; }
.pq-footer-copy { text-align: center; font-size: 0.875rem; padding: 2rem 0; color: var(--pq-text-6); }
.pq-footer-copy a { color: var(--pq-text-5); transition: color 0.2s; }
.pq-footer-copy a:hover { color: var(--pq-text-1); }

/* ── Contact Form ────────────────────────────────────────────────── */
.pq-form { display: flex; flex-direction: column; gap: 1rem; }
.pq-form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.pq-form-label { font-size: 0.8125rem; font-weight: 600; color: var(--pq-text-2); }
.pq-form-input, .pq-form-textarea, .pq-form-select { padding: 0.75rem 1rem; background: var(--pq-input-bg); border: 1px solid var(--pq-border-3); border-radius: var(--pq-radius); font-size: 0.875rem; color: var(--pq-text-1); outline: none; width: 100%; transition: border-color 0.2s; }
.pq-form-input:focus, .pq-form-textarea:focus, .pq-form-select:focus { border-color: var(--pq-primary); }
.pq-form-input::placeholder, .pq-form-textarea::placeholder { color: var(--pq-text-5); }
.pq-form-textarea { resize: vertical; min-height: 6rem; }
.pq-form-select option { background: var(--pq-surface-1); }

/* ── Icon Box ─────────────────────────────────────────────────────── */
.pq-icon-box { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; background: var(--pq-primary-bg); color: var(--pq-primary); flex-shrink: 0; }
.pq-icon-box svg { width: 1.25rem; height: 1.25rem; }

/* ── Section Spacing ──────────────────────────────────────────────── */
.pq-section { padding: 6rem 0; }
.pq-section-sm { padding: 4rem 0; }
.pq-section-lg { padding: 8rem 0; }

/* ── Divider ──────────────────────────────────────────────────────── */
.pq-divider { border: none; border-top: 1px solid var(--pq-border-2); }

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-glow { 0%,100% { opacity: 0.25; } 50% { opacity: 0.55; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }

.animate-float { animation: float 7s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.55s ease both; }

.pq-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.pq-reveal.visible { opacity: 1; transform: translateY(0); }
.pq-reveal-delay-1 { transition-delay: 0.1s; }
.pq-reveal-delay-2 { transition-delay: 0.2s; }
.pq-reveal-delay-3 { transition-delay: 0.3s; }
.pq-reveal-delay-4 { transition-delay: 0.4s; }

/* ── Clip Paths ─────────────────────────────────────────────────── */
.clip-angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); padding-bottom: 40px; }
.clip-angle-top { clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%); padding-top: 40px; }

/* ── Hero Section ───────────────────────────────────────────────── */
.pq-hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 0 5rem; position: relative; overflow: hidden; }
.pq-hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-family: monospace; color: var(--pq-primary); background: var(--pq-primary-bg); border: 1px solid var(--pq-primary-border); padding: 0.375rem 0.875rem; border-radius: 999px; margin-bottom: 1.75rem; }
.pq-hero-heading { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--pq-text-1); margin-bottom: 1.5rem; }
.pq-hero-heading .accent { color: var(--pq-primary); }
.pq-hero-sub { font-size: 1.125rem; line-height: 1.7; color: var(--pq-text-2); max-width: 560px; margin-bottom: 2.25rem; }
.pq-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }
.pq-hero-social-proof { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; color: var(--pq-text-4); }
.pq-hero-screenshot { margin-top: 4rem; border-radius: var(--pq-radius); overflow: hidden; }

/* ── Single Blog Post ─────────────────────────────────────────────── */
.pq-post-content { max-width: 680px; margin: 0 auto; }
.pq-post-content h2 { font-size: 1.5rem; color: var(--pq-text-1); margin: 2rem 0 0.875rem; }
.pq-post-content h3 { font-size: 1.25rem; color: var(--pq-text-1); margin: 1.5rem 0 0.625rem; }
.pq-post-content p { font-size: 0.9375rem; line-height: 1.8; color: var(--pq-text-2); margin-bottom: 1rem; }
.pq-post-content ul, .pq-post-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.pq-post-content ul { list-style: disc; }
.pq-post-content ol { list-style: decimal; }
.pq-post-content li { font-size: 0.9375rem; line-height: 1.7; color: var(--pq-text-2); margin-bottom: 0.5rem; }
.pq-post-content strong { color: var(--pq-text-1); font-weight: 700; }
.pq-post-content a { color: var(--pq-primary); text-decoration: underline; }
.pq-post-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.8125rem; color: var(--pq-text-4); margin-bottom: 2rem; }
.pq-post-meta .sep { color: var(--pq-border-4); }

/* ── Filter Pills ──────────────────────────────────────────────────── */
.pq-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2rem; }
.pq-filter-pill { font-size: 0.75rem; font-weight: 500; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--pq-border-3); background: var(--pq-border-1); color: var(--pq-text-3); cursor: pointer; transition: all 0.2s; }
.pq-filter-pill:hover, .pq-filter-pill.active { border-color: transparent; background: var(--pq-primary); color: #0A0A0A; font-weight: 700; }

/* ── Tabs ─────────────────────────────────────────────────────── */
.pq-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.pq-tab-btn { font-size: 0.8125rem; font-weight: 600; padding: 0.5rem 1rem; border-radius: calc(var(--pq-radius) * 0.75); border: 1px solid var(--pq-border-2); background: transparent; color: var(--pq-text-3); cursor: pointer; transition: all 0.2s; }
.pq-tab-btn:hover { color: var(--pq-text-1); border-color: var(--pq-border-4); }
.pq-tab-btn.active { background: var(--pq-surface-2); border-color: var(--pq-border-4); color: var(--pq-text-1); }
.pq-tab-panel { display: none; }
.pq-tab-panel.active { display: block; }

/* ── Docs Sidebar ─────────────────────────────────────────────────── */
.pq-docs-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .pq-docs-layout { grid-template-columns: 260px 1fr; } }
.pq-docs-sidebar { position: sticky; top: 5rem; }
.pq-docs-sidebar-section { margin-bottom: 2rem; }
.pq-docs-sidebar-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--pq-text-5); margin-bottom: 0.625rem; font-family: monospace; }
.pq-docs-sidebar-links { display: flex; flex-direction: column; gap: 0.25rem; }
.pq-docs-sidebar-link { font-size: 0.875rem; color: var(--pq-text-3); padding: 0.375rem 0.625rem; border-radius: 0.375rem; transition: all 0.15s; }
.pq-docs-sidebar-link:hover, .pq-docs-sidebar-link.current { background: var(--pq-primary-bg); color: var(--pq-primary); }

/* ── Changelog Entry ─────────────────────────────────────────────── */
.pq-changelog-item { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid var(--pq-border-2); }
@media (min-width: 768px) { .pq-changelog-item { grid-template-columns: 180px 1fr; } }
.pq-changelog-date { font-size: 0.8125rem; color: var(--pq-text-4); font-weight: 600; white-space: nowrap; padding-top: 0.125rem; }
.pq-changelog-content-title { font-size: 1rem; font-weight: 700; color: var(--pq-text-1); margin-bottom: 0.5rem; }
.pq-changelog-content-body { font-size: 0.875rem; line-height: 1.7; color: var(--pq-text-2); }
.pq-changelog-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0.5rem; border-radius: 999px; font-family: monospace; margin-right: 0.375rem; }
.tag-new { background: rgba(20,193,135,0.12); color: var(--pq-primary); border: 1px solid rgba(20,193,135,0.25); }
.tag-improved { background: rgba(99,179,237,0.1); color: #63B3ED; border: 1px solid rgba(99,179,237,0.22); }
.tag-fix { background: rgba(252,129,129,0.1); color: #FC8181; border: 1px solid rgba(252,129,129,0.22); }

/* ── Careers ─────────────────────────────────────────────────────── */
.pq-job-card { background: var(--pq-surface-1); border: 1px solid var(--pq-border-2); border-radius: var(--pq-radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: border-color 0.2s; }
.pq-job-card:hover { border-color: var(--pq-border-4); }
.pq-job-title { font-size: 1rem; font-weight: 700; color: var(--pq-text-1); }
.pq-job-meta { font-size: 0.8125rem; color: var(--pq-text-4); display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ── Partners ─────────────────────────────────────────────────────── */
.pq-partner-card { background: var(--pq-surface-1); border: 1px solid var(--pq-border-2); border-radius: var(--pq-radius); padding: 2rem; text-align: center; }
.pq-partner-logo { height: 3rem; margin: 0 auto 1rem; object-fit: contain; filter: grayscale(0.5); opacity: 0.8; }

/* ── Integration Card ─────────────────────────────────────────────── */
.pq-integration-card { background: var(--pq-surface-1); border: 1px solid var(--pq-border-2); border-radius: var(--pq-radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s, box-shadow 0.2s; }
.pq-integration-card:hover { border-color: var(--pq-primary-border); box-shadow: 0 4px 24px -8px rgba(20,193,135,0.12); }

/* ── Security ──────────────────────────────────────────────────────── */
.pq-security-shield { display: flex; align-items: center; justify-content: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--pq-primary-bg); border: 1px solid var(--pq-primary-border); margin: 0 auto 1.5rem; color: var(--pq-primary); }
.pq-security-shield svg { width: 2.5rem; height: 2.5rem; }

/* ── Testimonial ──────────────────────────────────────────────────── */
.pq-testimonial-card { background: var(--pq-surface-1); border: 1px solid var(--pq-border-2); border-radius: var(--pq-radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.pq-testimonial-quote { font-size: 0.9375rem; line-height: 1.75; color: var(--pq-text-2); font-style: italic; }
.pq-testimonial-author { font-size: 0.8125rem; font-weight: 600; color: var(--pq-text-4); }

/* ── 404 ────────────────────────────────────────────────────────── */
.pq-404 { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.pq-404-number { font-size: 8rem; font-weight: 900; color: var(--pq-primary); opacity: 0.3; line-height: 1; }

/* ── Scroll to top ──────────────────────────────────────────────── */
#scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--pq-primary); color: #0A0A0A; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.2s ease; z-index: 999; }
#scroll-top:hover { transform: translateY(-2px); }
#scroll-top.visible { opacity: 1; pointer-events: auto; }
#scroll-top svg { width: 1rem; height: 1rem; }

/* ── Utility Flex ─────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── Mobile & Tablet Responsiveness ─────────────────────────────── */
@media (max-width: 640px) {
  .pq-section { padding: 3rem 0; }
  .pq-section-sm { padding: 2.5rem 0; }
  .pq-section-lg { padding: 4rem 0; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .pq-hero { padding: 6rem 0 3rem; min-height: auto; }
  .pq-hero img[aria-hidden="true"] { display: none !important; }
  .pq-hero [style*="width:44px"], .pq-hero [style*="width:80px"] { display: none !important; }
  .pq-grid-3 { grid-template-columns: 1fr; }
  .pq-grid-2 { grid-template-columns: 1fr; }
  .pq-grid-4 { grid-template-columns: 1fr; }
  .pq-stats-outer { grid-template-columns: repeat(2,1fr) !important; }
  .pq-footer-grid { grid-template-columns: 1fr; }
  .pq-pricing-card { padding: 1.5rem; }
  .pq-blog-card-img { height: 9rem; }
  .pq-docs-sidebar { position: static; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .pq-section { padding: 4rem 0; }
  .pq-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pq-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pq-stats-outer { grid-template-columns: repeat(2,1fr) !important; }
  .pq-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

img, svg { max-width: 100%; height: auto; }
section > img[aria-hidden="true"], section > div > img[aria-hidden="true"] { max-width: none; }

/* ── Horizontal-scroll tab bars ─────────────────────────────────── */
@media (max-width: 1023px) {
  .pq-reveal[style*="grid-template-columns:repeat(3"] { display: flex !important; overflow-x: auto !important; overflow-y: visible !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: .75rem; gap: 0; }
  .pq-reveal[style*="grid-template-columns:repeat(3"] .pq-solution-tab { flex: 0 0 auto !important; min-width: 10rem; border-right: 1px solid rgba(20,193,135,0.14) !important; white-space: nowrap; }
  .pq-reveal[style*="grid-template-columns:repeat(3"]::-webkit-scrollbar { display: none; }
  #showcase-tabs { overflow-x: auto !important; overflow-y: visible !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; width: 100%; justify-content: flex-start !important; }
  #showcase-tabs::-webkit-scrollbar { display: none; }
  #showcase-tabs .pq-showcase-tab { flex: 0 0 auto !important; white-space: nowrap; }
  #uc-tabs { width: 100% !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: visible !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .5rem !important; gap: .375rem !important; }
  #uc-tabs::-webkit-scrollbar { display: none; }
  #uc-tabs button { flex: 0 0 auto !important; width: auto !important; white-space: nowrap !important; min-width: 8rem; border-left: none !important; border-bottom: 3px solid transparent; }
  #uc-tabs button[style*="border-left-color"] { border-bottom-color: currentColor !important; }
  .use-cases-layout { flex-direction: column !important; gap: 1.5rem !important; }
  .use-cases-layout > div:last-child { width: 100% !important; flex: none !important; }
  .sol-content-grid { grid-template-columns: 1fr !important; }
  .sol-content-grid > div[style*="order:1"], .sol-content-grid > div[style*="order:2"] { order: unset !important; }
  .pq-sc-panel { flex-direction: column !important; align-items: stretch !important; }
  .sc-copy { width: 100% !important; text-align: center !important; }
  .sc-img { width: 100% !important; }
  .feat-home-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .descasio-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .feat-home-grid { grid-template-columns: 1fr !important; }
  .descasio-grid { grid-template-columns: 1fr !important; }
  .pq-stats-outer { grid-template-columns: repeat(2,1fr) !important; }
  #showcase-tabs { justify-content: flex-start !important; }
  .pq-solution-tab { min-width: 8rem !important; padding: .75rem .875rem !important; }
  .sol-tab-title { font-size: .875rem !important; }
  #uc-tabs button { min-width: 6.5rem; padding: .625rem .75rem !important; font-size: .8125rem !important; }
  [id^="uc-panel-"] { padding: 1.25rem !important; }
  .pq-hero .btn-primary, .pq-hero .btn-ghost { width: 100%; justify-content: center; }
  .pq-hero [style*="min-height:280px"] { min-height: 180px !important; }
  #tm-prev { left: -.25rem !important; transform: translateY(-50%) !important; }
  #tm-next { right: -.25rem !important; transform: translateY(-50%) !important; }
  #tm-track { padding: 0 .25rem !important; }
  .clip-angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 0 100%); padding-bottom: 20px; }
  .clip-angle-top { clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%); padding-top: 20px; }
}

/* ── Elementor Overrides ─────────────────────────────────────────── */
.elementor-section { margin: 0 !important; }
.elementor-widget-wrap { padding: 0 !important; }

/* ── Feature Cards ───────────────────────────────────────────────── */
.pq-feature-card { background: linear-gradient(var(--pq-surface-2), var(--pq-surface-2)) padding-box, linear-gradient(135deg, rgba(20,193,135,0.55) 0%, rgba(20,193,135,0.08) 50%, transparent 100%) border-box; border: 1px solid transparent; border-radius: var(--pq-radius); padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pq-feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px -8px rgba(20,193,135,0.15); }

/* ── Showcase Tabs ───────────────────────────────────────────────── */
.pq-tab-bar .pq-tab-btn { color: var(--pq-text-4); background: transparent; border: 1px solid transparent; font-family: inherit; }
.pq-tab-bar .pq-tab-btn.active, .pq-tab-bar .pq-tab-btn:hover { color: #14C187; background: rgba(20,193,135,0.10); border-color: rgba(20,193,135,0.20); font-weight: 700; }
.pq-tab-panel { display: none; }
.pq-tab-panel.active { display: block; }

/* ── Light Mode Fixes ────────────────────────────────────────────── */
html.light .section-light [style*="pq-surface-1"],
html.light .section-light [style*="pq-surface-2"],
html.light .section-light [style*="pq-surface-3"],
html.light .section-light .pq-dark-panel { --pq-text-1: #EDEDED; --pq-text-2: #C2D0C7; --pq-text-3: #8A9990; --pq-text-4: #7A8A82; --pq-text-5: #5A6B60; --pq-text-6: #4A5A50; --pq-border-1: rgba(255,255,255,0.05); --pq-border-2: rgba(255,255,255,0.08); --pq-border-3: rgba(255,255,255,0.10); --pq-border-4: rgba(255,255,255,0.14); --pq-primary-border: rgba(20,193,135,0.25); --pq-primary-bg: rgba(20,193,135,0.10); color: #EDEDED; }
html.light .section-light [style*="pq-surface-1"] h1, html.light .section-light [style*="pq-surface-1"] h2, html.light .section-light [style*="pq-surface-1"] h3, html.light .section-light [style*="pq-surface-1"] h4, html.light .section-light [style*="pq-surface-1"] h5, html.light .section-light [style*="pq-surface-1"] h6, html.light .section-light [style*="pq-surface-2"] h1, html.light .section-light [style*="pq-surface-2"] h2, html.light .section-light [style*="pq-surface-2"] h3, html.light .section-light [style*="pq-surface-2"] h4, html.light .section-light [style*="pq-surface-2"] h5, html.light .section-light [style*="pq-surface-2"] h6, html.light .section-light .pq-dark-panel h1, html.light .section-light .pq-dark-panel h2, html.light .section-light .pq-dark-panel h3, html.light .section-light .pq-dark-panel h4 { color: #EDEDED; }
html.light .section-light [style*="pq-surface-1"] p, html.light .section-light [style*="pq-surface-1"] li, html.light .section-light [style*="pq-surface-2"] p, html.light .section-light [style*="pq-surface-2"] li, html.light .section-light .pq-dark-panel p, html.light .section-light .pq-dark-panel li { color: #C2D0C7; }
html.light .pq-feat-card { background: linear-gradient(var(--pq-surface-2), var(--pq-surface-2)) padding-box, linear-gradient(135deg, rgba(20,193,135,0.7) 0%, rgba(20,193,135,0.2) 50%, transparent 100%) border-box; }
html.light .pq-feat-card h3 { color: #EDEDED; }
html.light .pq-feat-card p  { color: #C2D0C7; }
html.light .pq-tm-card { background: var(--pq-surface-2); border-color: rgba(20,193,135,0.25); }
html.light .pq-tm-card p { color: #C2D0C7; }
html.light .pq-tm-card .pq-testimonial-author { color: #8A9990; }

/* ── Solution / Showcase / Use Cases active states ───────────────── */
.pq-solution-tab.active { background: var(--pq-surface-2) !important; }
.pq-solution-tab.active .sol-tab-title { color: var(--pq-text-1) !important; }
.pq-showcase-tab.active { color: #14C187 !important; font-weight: 700 !important; background: rgba(20,193,135,0.1) !important; border-bottom: 3px solid #14C187 !important; }
#uc-tabs button.active-uc { font-weight: 700; }