/* ── Reset & Base ─────────────────────────────── */

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

:root {
  --bg: #09090b;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --accent: #00e5a0;
  --accent-dim: rgba(0, 229, 160, 0.15);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.10);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Navigation ──────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* ── Hero ────────────────────────────────────── */

.hero {
  position: relative;
  padding: 8rem 2rem 6rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, var(--accent-dim) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, var(--purple-dim) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--accent-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

/* ── Section Layout ──────────────────────────── */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}

/* ── Cards ───────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 160, 0.2);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-mono);
  margin-bottom: 0.8rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Pipelock Feature Strip ──────────────────── */

.feature-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  margin-top: 3rem;
  text-align: center;
}

.feature-strip h3 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-strip .tagline {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.install-cmd {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1.5rem;
  display: block;
  max-width: max-content;
  margin: 0.5rem auto;
  color: var(--accent);
}

.install-cmd:last-of-type {
  margin-bottom: 1.5rem;
}

.feature-strip .strip-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.feature-strip .strip-links a {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Code Blocks ─────────────────────────────── */

pre, code {
  font-family: var(--font-mono);
}

pre {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--accent);
  margin: 1.5rem 0;
}

code {
  font-size: 0.9em;
  color: var(--accent);
}

/* ── Page Content ────────────────────────────── */

.page-header {
  padding: 5rem 2rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.page-content h2 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.page-content h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content p {
  margin-bottom: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-content ul, .page-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content strong {
  color: var(--text);
}

/* ── Capability Section ──────────────────────── */

.capability {
  margin-bottom: 3rem;
}

.capability h3 {
  font-size: 1.3rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

/* ── Research / Blog List ────────────────────── */

.post-list {
  list-style: none;
  padding: 0;
}

.post-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.post-item:hover {
  border-color: rgba(0, 229, 160, 0.2);
  background: var(--bg-card-hover);
}

.post-item h3 {
  margin-bottom: 0.5rem;
}

.post-item h3 a {
  color: var(--text);
}

.post-item h3 a:hover {
  color: var(--accent);
}

.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.post-summary {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.post-author::before {
  content: "by ";
  color: var(--text-dim);
}

/* ── Contact ─────────────────────────────────── */

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: rgba(0, 229, 160, 0.2);
  transform: translateY(-2px);
}

.contact-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Comparison Table ────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

tr:hover td {
  background: var(--bg-card);
}

/* ── Waitlist ────────────────────────────────── */

.waitlist-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  padding: 2.5rem;
  margin-top: 3rem;
  text-align: center;
}

.waitlist-heading {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.waitlist-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 480px;
  text-align: left;
}

.waitlist-features li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.waitlist-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.waitlist-cta-text {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.waitlist-form {
  max-width: 460px;
  margin: 0 auto;
}

.waitlist-input-row {
  display: flex;
  gap: 0.5rem;
}

.waitlist-email {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-email::placeholder {
  color: var(--text-dim);
}

.waitlist-email:focus {
  border-color: var(--accent);
}

.waitlist-submit {
  white-space: nowrap;
}

.waitlist-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.8rem;
}

@media (max-width: 768px) {
  .waitlist-input-row {
    flex-direction: column;
  }

  .waitlist-submit {
    width: 100%;
  }
}

/* ── Footer ──────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

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

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

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

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

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-dim);
  font-size: 0.8rem;
}

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

.footer-copy p {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── Stats Strip ────────────────────────────── */

.stats-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stats-strip .stat {
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid var(--border);
}

.stats-strip .stat:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

/* ── Narrative Cards (Detect/Enforce/Prove) ── */

.narrative-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.narrative-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.narrative-card:hover {
  border-color: rgba(0, 229, 160, 0.15);
}

.narrative-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.narrative-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.narrative-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Feature Grid (3-col with icons) ────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.feature-item:hover {
  border-color: rgba(0, 229, 160, 0.12);
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.feature-item h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ── Terminal Code Blocks ───────────────────── */

.terminal {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: 0.5rem;
  flex: 1;
}

.terminal-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.terminal-body {
  padding: 1.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
  color: var(--accent);
  overflow-x: auto;
}

.terminal-body .prompt {
  color: var(--text-dim);
  user-select: none;
}

.terminal-body .comment {
  color: var(--text-dim);
}

/* ── Ecosystem Cards ────────────────────────── */

.ecosystem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  transition: border-color 0.3s;
}

.ecosystem-card:hover {
  border-color: rgba(0, 229, 160, 0.15);
}

.ecosystem-card .eco-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.ecosystem-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.ecosystem-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.ecosystem-card + hr,
.ecosystem-card + p,
.ecosystem-card ~ p {
  margin-top: 2.5rem;
}

.ecosystem-card .eco-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── Enterprise Page ─────────────────────────── */

.enterprise-hero {
  text-align: center;
  padding: 1rem 0 2rem;
}

.enterprise-hero h2 {
  color: var(--text) !important;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.trust-bar {
  margin-top: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.trust-bar strong {
  color: var(--text);
  font-weight: 600;
}

.risk-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.risk-cards p {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 0;
}

.risk-cards strong {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.enterprise-cta {
  text-align: center;
  padding: 2rem 0;
}

.enterprise-cta h2 {
  margin-bottom: 1.5rem;
}

/* ── Proof Strip ────────────────────────────── */

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Section Dividers ───────────────────────── */

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Scroll Reveal (progressive enhancement) ─ */
/* Content visible by default. JS adds .reveal-ready to <html>,
   which enables the hidden state. If JS fails, content stays visible. */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ──────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 2rem 2rem;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-container.open .nav-links {
    display: flex;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stats-strip .stat {
    padding: 0 1.2rem;
    border-right: none;
  }

  .narrative-strip {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 2rem;
  }


  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .feature-strip {
    padding: 1.5rem;
  }

  .install-cmd {
    max-width: 100% !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 0.6rem 0.8rem;
    box-sizing: border-box;
  }

  .feature-strip .strip-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Animations ──────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeUp 0.8s ease-out;
}

.card {
  animation: fadeUp 0.6s ease-out;
  animation-fill-mode: both;
}

.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.3s; }

/* ── Pricing ────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s;
  animation: fadeUp 0.6s ease-out both;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:nth-child(2) { animation-delay: 0.1s; }
.pricing-card:nth-child(3) { animation-delay: 0.2s; }

.pricing-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 160, 0.15);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 229, 160, 0.08);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.pricing-price .currency {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-annual {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.pricing-scope {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex: 1;
}

.pricing-features li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
}

.pricing-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pricing-features li.dim {
  color: var(--text-dim);
}

.pricing-features li.dim::before {
  color: var(--text-dim);
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}

.pricing-cta-primary {
  background: var(--accent);
  color: var(--bg);
}

.pricing-cta-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 20px var(--accent-dim);
  color: var(--bg);
}

.pricing-cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 2rem;
}

.pricing-philosophy {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.pricing-philosophy strong {
  color: var(--text);
}

.pricing-faq {
  max-width: 700px;
  margin: 0 auto;
}

.pricing-faq details {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.pricing-faq summary {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-faq summary::-webkit-details-marker {
  display: none;
}

.pricing-faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.pricing-faq details[open] summary::after {
  content: '\2212';
}

.pricing-faq details p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-top: 0.8rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured {
    order: -1;
  }
}

/* ── Page Mini-Nav (sticky section nav) ────── */
/* Breaks out of .page-content to span full width */

.page-mini-nav {
  position: sticky;
  top: 57px;
  z-index: 50;
  background: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  margin: 0 -2rem 1.5rem; /* negative margin to escape .page-content padding */
  width: calc(100% + 4rem);
}

.page-mini-nav ul {
  display: flex;
  justify-content: center;
  gap: 0;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.page-mini-nav li a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.page-mini-nav li a:hover,
.page-mini-nav li a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  opacity: 1;
}

/* ── Section Intro (editorial headers) ──────── */
/* Inside .page-content — no own max-width/padding, centered */

.section-intro {
  text-align: center;
  padding: 3rem 0 1rem;
}

.page-content .section-intro .section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.page-content .section-intro h2 {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.page-content .section-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Capability Grid (2-col feature cards) ──── */
/* Inside .page-content — no own max-width/padding */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0.5rem 0 2rem;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-align: center;
  transition: border-color 0.3s;
}

.capability-card:hover {
  border-color: rgba(0, 229, 160, 0.12);
}

.page-content .capability-card h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.4rem;
}

.page-content .capability-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Pipeline Frame ────────────────────────── */
/* Inside .page-content — no own max-width/padding */

.pipeline-frame {
  padding: 0 0 2rem;
}

.pipeline-inner {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.pipeline-header {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.pipeline-header .pipeline-dots {
  display: flex;
  gap: 6px;
}

.pipeline-header .pipeline-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.pipeline-header .pipeline-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-left: 1rem;
}

.pipeline-body {
  padding: 1.2rem 0;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: start;
  position: relative;
  padding: 0.4rem 1.5rem 0.4rem 0;
}

.pipeline-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  padding-top: 0.1rem;
  position: relative;
}

/* Connecting line between step numbers */
.pipeline-step:not(:last-child) .pipeline-num::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 1.2rem;
  bottom: -0.7rem;
  width: 1px;
  background: rgba(0, 229, 160, 0.15);
}

.pipeline-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.pipeline-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.pipeline-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  padding: 0.8rem 1.5rem 0.6rem;
  border-top: 1px solid var(--border);
  margin-top: 0.3rem;
  text-align: center;
}

/* ── Deploy Grid (lighter weight cards) ─────── */
/* Inside .page-content — no own max-width/padding */

.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0 1.5rem;
}

.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  text-align: center;
  transition: border-color 0.3s;
}

.deploy-card:hover {
  border-color: rgba(0, 229, 160, 0.08);
}

.page-content .deploy-card h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.page-content .deploy-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

.deploy-card code {
  font-size: 0.75rem;
  color: var(--accent);
}

/* ── Accordion ──────────────────────────────── */
/* Inside .page-content — no own max-width/padding */

.accordion {
  padding: 0 0 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.accordion-item summary {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item[open] summary::after {
  content: '\2212';
}

.accordion-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
  line-height: 1.6;
  text-align: center;
}

.page-content .accordion-body p {
  margin-bottom: 0.4rem;
}

.page-content .accordion-body p:last-child {
  margin-bottom: 0;
}

/* ── Product page stats strip ─────────────── */
/* Breaks out of .page-content like mini-nav */

.page-content > .section-divider {
  margin-left: -2rem;
  margin-right: -2rem;
  width: calc(100% + 4rem);
  max-width: none;
}

/* ── Mobile overrides for new components ────── */

@media (max-width: 768px) {
  .page-mini-nav {
    margin: 0 -1.5rem 1rem;
    width: calc(100% + 3rem);
  }

  .page-mini-nav ul {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 0 0.5rem;
  }

  .page-mini-nav li a {
    padding: 0.6rem 0.8rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .section-intro {
    padding: 2rem 0 0.5rem;
  }

  .page-content .section-intro h2 {
    font-size: 1.4rem;
  }

  .capability-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .page-content > .section-divider {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    width: calc(100% + 3rem);
  }
}

/* ── Assess License Band ───────────────────── */

.assess-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 3rem;
  margin-top: 2.5rem;
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.assess-band:hover {
  border-color: rgba(0, 229, 160, 0.12);
}

.assess-badge {
  position: absolute;
  top: -12px;
  left: 2.5rem;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.assess-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.assess-left {
  text-align: center;
  padding: 1rem 0;
}

.assess-left .assess-title {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.assess-left .assess-price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.assess-left .assess-price .currency {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 2px;
}

.assess-left .assess-price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.assess-left .assess-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.assess-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-self: center;
  align-items: center;
}

.assess-compare-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem 1.2rem;
  text-align: center;
}

.assess-compare-card.paid {
  border-color: rgba(0, 229, 160, 0.2);
}

.assess-compare-card h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.assess-compare-card.paid h4 {
  color: var(--accent);
}

.assess-compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.assess-compare-card li {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.4rem 0 0.4rem 1.2rem;
  position: relative;
}

.assess-compare-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
}

.assess-compare-card.paid li::before {
  color: var(--accent);
}

@media (max-width: 768px) {
  .assess-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .assess-band {
    padding: 2rem 1.5rem;
  }

  .assess-badge {
    left: 1.5rem;
  }

  .assess-compare {
    grid-template-columns: 1fr;
  }
}
