:root {
  --pq-bg: #020617;
  --pq-surface: #020617;
  --pq-surface-alt: #020617;
  --pq-card: #020617;
  --pq-border-subtle: rgba(148, 163, 184, 0.25);
  --pq-text: #e5e7eb;
  --pq-muted: #9ca3af;
  --pq-accent: #22d3ee;
  --pq-accent-soft: rgba(34, 211, 238, 0.1);
  --pq-radius-xl: 1.5rem;
  --pq-radius-lg: 1rem;
  --pq-radius-pill: 999px;
  --pq-shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
  color: var(--pq-text);
}

body {
  min-height: 100vh;
}

.pq-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.pq-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 45%),
              rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.pq-logo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pq-header .pq-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* Hexagon logo with darker fill (Option A) */
.pq-logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
  clip-path: polygon(
    25% 3%,
    75% 3%,
    97% 50%,
    75% 97%,
    25% 97%,
    3% 50%
  );
  background: linear-gradient(145deg, #0369a1, #0b1120);
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 1), 0 10px 22px rgba(15, 23, 42, 0.9);
}

.pq-logo-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 9px;
  border-left: 2.4px solid #f9fafb;
  border-bottom: 2.4px solid #f9fafb;
  transform: translate(-50%, -55%) rotate(-45deg);
  transform-origin: center;
}

.pq-logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.pq-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.pq-nav a {
  color: var(--pq-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

.pq-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #22d3ee, #38bdf8);
  transition: width 0.16s ease-out;
}

.pq-nav a:hover::after {
  width: 100%;
}

/* Hero */

.pq-hero {
  padding: 3.5rem 0 3.25rem;
}

.pq-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.pq-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--pq-muted);
  margin: 0 0 0.75rem;
}

.pq-hero h1 {
  font-size: clamp(2.45rem, 2.9vw + 1.4rem, 3.1rem);
  line-height: 1.03;
  margin: 0 0 1rem;
}

.pq-sub {
  margin: 0;
  color: var(--pq-muted);
  font-size: 0.98rem;
  max-width: 34rem;
}

.pq-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
  margin-bottom: 0.75rem;
}

.pq-hero-note {
  color: var(--pq-muted);
  font-size: 0.85rem;
}

.pq-hero-panel {
  border-radius: var(--pq-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.08), transparent 55%),
    rgba(15, 23, 42, 0.96);
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: var(--pq-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.pq-pill {
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: var(--pq-radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pq-accent);
  border: 1px solid rgba(56, 189, 248, 0.6);
  background-color: rgba(15, 23, 42, 0.9);
}

.pq-metric-card {
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
}

.pq-metric-label {
  font-size: 0.8rem;
  color: var(--pq-muted);
  margin-bottom: 0.25rem;
}

.pq-metric-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.pq-metric-footnote {
  font-size: 0.75rem;
  color: var(--pq-muted);
}

/* Sections */

.pq-section {
  padding: 2.75rem 0;
}

.pq-section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-top: 1px solid rgba(15, 23, 42, 1);
  border-bottom: 1px solid rgba(15, 23, 42, 1);
}

.pq-section h2 {
  margin-top: 0;
  margin-bottom: 1.3rem;
  font-size: 1.6rem;
}

.pq-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.pq-engine-card {
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.98);
  font-size: 0.92rem;
}

.pq-engine-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
}

/* How it works */

.pq-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.pq-how-panel {
  border-radius: 1rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.98);
  font-size: 0.9rem;
}

/* Lists */

.pq-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  color: var(--pq-muted);
  font-size: 0.92rem;
}

.pq-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
}

.pq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #22d3ee, #38bdf8);
}

.pq-list-tight li {
  margin-bottom: 0.35rem;
}

.pq-small {
  font-size: 0.86rem;
  color: var(--pq-muted);
}

/* Demo form */

.pq-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.pq-form-panel {
  border-radius: var(--pq-radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.98);
  padding: 1.4rem 1.3rem 1.4rem;
  box-shadow: var(--pq-shadow-soft);
}

.pq-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pq-form label {
  font-size: 0.82rem;
  color: var(--pq-muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pq-form input,
.pq-form textarea {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.55rem 0.75rem;
  color: var(--pq-text);
  font: inherit;
  resize: vertical;
}

.pq-form input:focus,
.pq-form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}

/* Buttons */

.pq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: var(--pq-radius-pill);
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.09s ease-out, box-shadow 0.09s ease-out, border-color 0.09s ease-out,
    background-color 0.09s ease-out;
}

.pq-btn-primary {
  background: radial-gradient(circle at top left, #22d3ee, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.8);
}

.pq-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.95);
}

.pq-btn-ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--pq-muted);
  background: rgba(15, 23, 42, 0.85);
}

.pq-btn-ghost:hover {
  border-color: rgba(148, 163, 184, 1);
}

/* Status */

.pq-status {
  min-height: 1.1rem;
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.pq-status--ok {
  color: #4ade80;
}

.pq-status--err {
  color: #fb7185;
}

/* Footer */

.pq-footer {
  border-top: 1px solid rgba(15, 23, 42, 1);
  padding: 1.4rem 0 1.7rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 1));
  font-size: 0.8rem;
  color: var(--pq-muted);
}

.pq-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pq-footer-links {
  display: flex;
  gap: 1rem;
}

.pq-footer a {
  color: var(--pq-muted);
  text-decoration: none;
}

.pq-footer a:hover {
  color: var(--pq-accent);
}

/* Responsive */

@media (max-width: 900px) {
  .pq-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .pq-hero-panel {
    order: -1;
  }
  .pq-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .pq-how-grid,
  .pq-demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .pq-header .pq-shell {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .pq-nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }
  .pq-hero {
    padding-top: 2.5rem;
  }
}
