/* ================================================================== */
/* PJPV.io — Pydantic JSON Path Value                                */
/* ================================================================== */

:root {
  --color-bg: #0a0e17;
  --color-bg-alt: #111827;
  --color-surface: #1a2332;
  --color-border: #2a3a4e;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-accent: #3b82f6;
  --color-accent-hover: #60a5fa;
  --color-green: #10b981;
  --color-green-dim: #065f46;
  --color-red: #ef4444;
  --color-red-dim: #7f1d1d;
  --color-amber: #f59e0b;
  --color-purple: #8b5cf6;
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-hover); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

pre {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.6;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================== */
/* NAV                                                                */
/* ================================================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-accent);
}

.nav-brand-sub {
  font-size: 0.65em;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--color-text); }

.nav-cta {
  background: var(--color-accent);
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--color-accent-hover); }

/* ================================================================== */
/* HERO                                                               */
/* ================================================================== */

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.4em, 5vw, 4em);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-wc {
  font-size: 0.5em;
  font-weight: 600;
}

.hero-full-name {
  font-size: 1.3em;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.2em;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 24px 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.stat-before {
  font-size: 2.4em;
  font-weight: 800;
  color: var(--color-red);
  font-family: var(--font-mono);
  text-decoration: line-through;
  text-decoration-color: var(--color-red-dim);
}

.stat-arrow {
  font-size: 1.6em;
  color: var(--color-text-dim);
}

.stat-after {
  font-size: 2.4em;
  font-weight: 800;
  color: var(--color-green);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 1em;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ================================================================== */
/* SECTIONS                                                           */
/* ================================================================== */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 2em;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 1.1em;
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ================================================================== */
/* FOUR LAYERS                                                        */
/* ================================================================== */

.four-layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.layer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.layer:hover { border-color: var(--color-accent); }

.layer-letter {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-accent);
  color: white;
  font-size: 1.4em;
  font-weight: 800;
  margin-bottom: 16px;
}

.layer h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 8px;
}

.layer p {
  font-size: 0.92em;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ================================================================== */
/* PROBLEM GRID                                                       */
/* ================================================================== */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
}

.problem-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-red);
}

.problem-card p {
  font-size: 0.95em;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ================================================================== */
/* FLOW STEPS                                                         */
/* ================================================================== */

.flow { display: flex; flex-direction: column; gap: 48px; }

.flow-step {
  position: relative;
  padding-left: 80px;
}

.flow-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1.3em;
  font-weight: 800;
}

.flow-step h3 {
  font-size: 1.2em;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* ================================================================== */
/* COMPARE (BEFORE / AFTER)                                           */
/* ================================================================== */

.example { margin-bottom: 48px; }

.example h3 {
  font-size: 1.15em;
  font-weight: 700;
  margin-bottom: 20px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-label {
  font-size: 0.8em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.compare-before .compare-label { color: var(--color-red); }
.compare-after .compare-label { color: var(--color-green); }

.compare-before pre { border-color: var(--color-red-dim); }
.compare-after pre { border-color: var(--color-green-dim); }

/* ================================================================== */
/* COMPARISON TABLE                                                   */
/* ================================================================== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95em;
}

.comparison-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td.yes {
  color: var(--color-green);
  font-weight: 600;
}

.comparison-table td.no {
  color: var(--color-text-dim);
}

.comparison-table td.partial {
  color: var(--color-amber);
}

.highlight-row {
  background: rgba(59, 130, 246, 0.08);
}

.highlight-row td {
  border-bottom-color: var(--color-accent);
}

/* ================================================================== */
/* BEHAVIORS GRID                                                     */
/* ================================================================== */

.behaviors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.behavior {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.behavior-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-purple);
  color: white;
  font-size: 1.2em;
  font-weight: 800;
  margin: 0 auto 12px;
}

.behavior h3 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 8px;
}

.behavior p {
  font-size: 0.85em;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ================================================================== */
/* RULES                                                              */
/* ================================================================== */

.rules-list { display: flex; flex-direction: column; gap: 32px; }

.rule {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 28px;
}

.rule-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-accent);
  color: white;
  font-size: 1.2em;
  font-weight: 800;
}

.rule-content h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 8px;
}

.rule-content p {
  font-size: 0.95em;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ================================================================== */
/* START / CTA                                                        */
/* ================================================================== */

.start-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.start-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 28px;
}

.start-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 12px;
}

.start-card p {
  font-size: 0.95em;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9em;
  transition: all 0.2s;
  background: var(--color-accent);
  color: white;
}

.btn:hover { background: var(--color-accent-hover); color: white; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}

/* ================================================================== */
/* FOOTER                                                             */
/* ================================================================== */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.footer p {
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.footer-copy { margin-top: 8px; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9em;
}

.footer-links a:hover { color: var(--color-text); }

/* ================================================================== */
/* RESPONSIVE                                                         */
/* ================================================================== */

@media (max-width: 900px) {
  .four-layers { grid-template-columns: 1fr 1fr; }
  .behaviors-grid { grid-template-columns: repeat(3, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .start-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; font-size: 0.85em; }
  .four-layers { grid-template-columns: 1fr; }
  .behaviors-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat { flex-wrap: wrap; justify-content: center; padding: 20px; }
  .stat-before, .stat-after { font-size: 1.8em; }
  .flow-step { padding-left: 64px; }
  .section { padding: 60px 0; }
  .footer-content { flex-direction: column; gap: 24px; }
}
