/* ===== ACCESSIBILITY — focus-visible ===== */
/* Visible keyboard focus ring for all interactive elements (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default outline only when not keyboard-navigating */
:focus:not(:focus-visible) {
  outline: none;
}

/* Ensure skip-to-content links work if added later */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ===== CSS Variables ===== */
:root {
  --primary: #00ff88;
  --primary-dark: #00cc6a;
  --bg: #0a0a0f;
  --bg2: #0f0f18;
  --card: #13131a;
  --card-hover: #1a1a26;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #7b2fff;
  --accent-light: #9b4fff;
  --danger: #ff4444;
  --success: #00ff88;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 255, 136, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-heading: 'Oxanium', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { color: var(--text); }

code, pre {
  font-family: 'Fira Code', 'Courier New', monospace;
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: 8px;
}

code {
  padding: 2px 6px;
  font-size: 0.88em;
  color: var(--primary);
}

pre {
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
}

.nav-logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active { color: var(--primary); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #000;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(0, 255, 136, 0.08);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 4px 20px rgba(123, 47, 255, 0.35);
}

/* ===== HERO ===== */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 255, 136, 0.07) 0%, transparent 70%);
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.25);
  color: var(--primary);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto 1.25rem;
}

.hero h1 span { color: var(--primary); }

.text-primary {
  color: var(--primary);
}

.text-danger {
  color: var(--danger);
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ===== PROBLEM SECTION ===== */
.problem-section {
  background: var(--bg2);
  padding: 5rem 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid rgba(255, 68, 68, 0.15);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: border-color var(--transition);
}

.problem-item:hover { border-color: rgba(255, 68, 68, 0.3); }

.problem-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.problem-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.problem-quote {
  text-align: center;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  border-left: 3px solid var(--primary);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ===== SOLUTION / HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-bright);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; }

.feature-section {
  background: var(--bg2);
  padding: 5rem 0;
}

/* ===== PRODUCT PREVIEW ===== */
.preview-section {
  position: relative;
}

.preview-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.preview-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--card);
  box-shadow: var(--shadow-card);
}

.preview-card-primary {
  background:
    radial-gradient(circle at top left, rgba(0, 255, 136, 0.12), transparent 36%),
    var(--card);
}

.preview-card-secondary {
  background:
    radial-gradient(circle at top right, rgba(123, 47, 255, 0.16), transparent 34%),
    var(--card);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.preview-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.preview-list li {
  position: relative;
  padding-left: 1rem;
}

.preview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--primary);
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.preview-stats div {
  padding: 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.preview-stats span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.preview-stats small {
  color: var(--text-muted);
}

/* ===== PIPELINE ===== */
.pipeline-section {
  background: var(--bg2);
  padding: 5rem 0;
}

.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pipeline-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-family: 'Fira Code', monospace;
  color: var(--primary);
  white-space: nowrap;
  transition: all var(--transition);
}

.pipeline-node:hover {
  border-color: var(--border-bright);
  background: rgba(0, 255, 136, 0.06);
}

.pipeline-arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

.pipeline-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== SOCIAL PROOF ===== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.testimonial-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.testimonial-author {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== LEAD CAPTURE ===== */
.lead-section {
  background: var(--bg2);
  padding: 5rem 0;
  text-align: center;
}

.lead-form-wrapper {
  max-width: 480px;
  margin: 0 auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  width: 100%;
  transition: border-color var(--transition);
  font-family: var(--font-body);
  outline: none;
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-message {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--primary);
}

.form-message.error {
  display: block;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff6666;
}

/* Inline field-level validation error */
.form-error {
  display: none;
  font-size: 0.82rem;
  color: #ff6666;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Mark invalid fields */
.form-input[aria-invalid="true"] {
  border-color: #ff6666;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-link:hover { color: var(--primary); }

.contact-section {
  padding-top: 2rem;
}

.contact-divider {
  margin: 1.5rem 0;
}

.contact-meta,
.contact-form-copy,
.contact-form-note {
  color: var(--text-muted);
}

.contact-meta,
.contact-form-copy {
  font-size: 0.88rem;
}

.contact-tags {
  margin-top: 1.5rem;
}

.tag-link {
  color: inherit;
}

.contact-form-title {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.contact-form-copy {
  margin-bottom: 1.25rem;
}

.contact-form-group {
  margin-bottom: 0.75rem;
}

.contact-submit {
  width: 100%;
  justify-content: center;
}

.contact-form-note {
  font-size: 0.78rem;
  margin-top: 0.75rem;
  text-align: center;
}

textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

/* ===== PRICING CARDS ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.12);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.pricing-price {
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
}

.pricing-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
  font-size: 0.9em;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.15rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pricing-cta { width: 100%; justify-content: center; }

.pricing-section {
  padding-top: 1rem;
}

.pricing-trust,
.pricing-faq-section {
  text-align: center;
}

.pricing-trust {
  margin-top: 2.5rem;
}

.pricing-trust-copy,
.pricing-test-note,
.pricing-faq-copy {
  color: var(--text-muted);
}

.pricing-trust-copy {
  font-size: 0.88rem;
}

.pricing-test-note {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.pricing-lead-section {
  padding: 4rem 0;
}

.pricing-lead-title {
  font-size: 1.5rem;
}

.pricing-lead-copy,
.pricing-faq-copy {
  margin-bottom: 2rem;
}

.pricing-faq-section {
  padding: 3rem 0 5rem;
}

.pricing-faq-title {
  margin-bottom: 0.75rem;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-section {
  padding-top: 1.5rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open { border-color: var(--border-bright); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.97rem;
  font-weight: 600;
  text-align: left;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.faq-answer-inner code { font-size: 0.85em; }

.faq-contact-cta {
  text-align: center;
  margin-top: 3rem;
}

.faq-contact-copy {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  text-align: center;
  padding: 6rem 0;
}

.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 2rem; }

.cta-code-block {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: left;
}

.cta-code-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.85rem;
}

/* ===== FLASH MESSAGES ===== */
.flash-bar {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  min-width: 280px;
  max-width: 500px;
}

.flash-message {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideDown 0.3s ease;
}

.flash-message.flash-error {
  border-color: rgba(255, 68, 68, 0.4);
  color: #ff6666;
  background: rgba(255, 68, 68, 0.08);
}

.flash-message.flash-success {
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--primary);
  background: rgba(0, 255, 136, 0.08);
}

.flash-message.flash-info {
  border-color: rgba(123, 47, 255, 0.4);
  color: #a87fff;
  background: rgba(123, 47, 255, 0.08);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.6rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== BILLING TABLE ===== */
.billing-section {
  padding-top: 2rem;
}

.billing-container {
  max-width: 760px;
}

.billing-card {
  margin-bottom: 2rem;
}

.billing-card-title,
.billing-section-title {
  margin-bottom: 1rem;
}

.billing-card-title {
  font-size: 1.1rem;
}

.billing-section-title {
  font-size: 1rem;
}

.billing-search-form,
.billing-plan-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.billing-search-input {
  flex: 1;
  min-width: 220px;
}

.billing-plan-card {
  margin-bottom: 1.5rem;
}

.billing-plan-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.billing-plan-name {
  font-size: 1.15rem;
}

.billing-tag {
  margin-left: 0.75rem;
}

.billing-meta,
.billing-muted-copy,
.billing-feature-list,
.billing-upgrade-copy,
.billing-help-copy {
  color: var(--text-muted);
}

.billing-meta,
.billing-feature-list {
  font-size: 0.88rem;
}

.billing-meta {
  margin-top: 0.4rem;
}

.billing-feature-list {
  list-style: none;
}

.billing-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.billing-table-wrap {
  overflow-x: auto;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.billing-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.billing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.billing-date,
.billing-help-copy {
  font-size: 0.85rem;
}

.billing-table tr:last-child td { border-bottom: none; }
.billing-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.completed { background: rgba(0, 255, 136, 0.1); color: var(--primary); }
.status-badge.pending { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
.status-badge.failed { background: rgba(255, 68, 68, 0.1); color: #ff6666; }
.status-badge.ready { background: rgba(0, 255, 136, 0.1); color: var(--primary); }
.status-badge.rendering,
.status-badge.running { background: rgba(123, 47, 255, 0.12); color: #c0a2ff; }
.status-badge.needs_review,
.status-badge.error,
.status-badge.denied { background: rgba(255, 68, 68, 0.12); color: #ff8c8c; }
.status-badge.ignored { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

/* ===== SUCCESS / CANCEL ===== */
.result-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
}

.result-icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }

.result-card h1 { margin-bottom: 0.75rem; font-size: 2rem; }
.result-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

.result-note {
  font-size: 0.85rem;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ===== CARDS / SECTIONS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.tag {
  display: inline-block;
  background: rgba(0, 255, 136, 0.1);
  color: var(--primary);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.billing-upgrade,
.billing-help {
  margin-top: 2rem;
  text-align: center;
}

.billing-upgrade {
  margin-top: 2.5rem;
}

.billing-upgrade-copy {
  margin-bottom: 1.25rem;
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== AUTH & DASHBOARDS ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-user-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.nav-user-name {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-user-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-logout-form {
  display: inline-flex;
}

.auth-shell,
.dashboard-shell {
  position: relative;
  overflow: hidden;
}

.auth-shell::before,
.dashboard-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(0, 255, 136, 0.12), transparent 34%),
    radial-gradient(circle at bottom left, rgba(123, 47, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.auth-layout,
.dashboard-shell .container {
  position: relative;
  z-index: 1;
}

.auth-shell {
  padding: 5rem 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.auth-copy {
  padding-top: 1rem;
}

.auth-copy h1 {
  margin: 1rem 0;
  max-width: 12ch;
}

.auth-lead {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
}

.auth-points {
  display: grid;
  gap: 1rem;
}

.auth-point {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.auth-point strong {
  display: block;
  margin-bottom: 0.25rem;
}

.auth-point span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-panel {
  display: grid;
  gap: 1rem;
}

.auth-card h2,
.dashboard-panel h2 {
  margin: 0.5rem 0 0.8rem;
}

.auth-card-copy {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
}

.auth-submit {
  justify-content: center;
  width: 100%;
}

.auth-demo-grid {
  display: grid;
  gap: 1rem;
}

.auth-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-demo-list {
  display: grid;
  gap: 0.85rem;
}

.auth-demo-list dt {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.auth-demo-list dd {
  color: #fff;
  font-size: 0.95rem;
  word-break: break-word;
}

.dashboard-shell {
  padding: 3.5rem 0 5rem;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.dashboard-sub {
  color: var(--text-muted);
  margin-top: 0.8rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--card);
  box-shadow: var(--shadow-card);
}

.metric-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  margin-bottom: 0.3rem;
}

.metric-meta,
.table-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.dashboard-side,
.admin-grid {
  display: grid;
  gap: 1rem;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.dashboard-panel {
  box-shadow: var(--shadow-card);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 0 0.85rem;
}

.dashboard-table td {
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.dashboard-table tr:first-child td {
  border-top: 1px solid var(--border);
}

.bullet-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.bullet-list li {
  color: var(--text-muted);
  position: relative;
  padding-left: 1.15rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--primary);
}

.activity-list,
.health-list {
  display: grid;
  gap: 0.85rem;
}

.activity-item,
.health-item,
.plan-stack-item {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.activity-title,
.health-item,
.plan-stack-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.9rem;
}

.activity-item p,
.health-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0.45rem;
}

.plan-stack {
  display: grid;
  gap: 0.8rem;
}

.plan-stack-item span {
  color: var(--text-muted);
}

.admin-data-grid {
  grid-template-columns: 1.2fr 0.9fr;
}

.admin-audit-panel {
  grid-column: span 2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }

  .auth-layout,
  .dashboard-grid,
  .admin-grid,
  .admin-data-grid,
  .metric-grid,
  .preview-matrix {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-audit-panel {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-user-chip,
  .nav-logout-form,
  .nav-cta > a:last-child {
    display: none;
  }

  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
  }

  .nav-cta {
    gap: 0.5rem;
  }

  .section { padding: 3.5rem 0; }

  .billing-search-form,
  .billing-plan-links {
    flex-direction: column;
  }

  .billing-search-input {
    min-width: 100%;
  }

  .hero { padding: 5rem 0 4rem; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .pipeline {
    gap: 0.3rem;
  }

  .pipeline-node {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem;
  }

  .stats-row { gap: 2rem; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .preview-stats { grid-template-columns: 1fr; }
}

/* ===== ACCESSIBILITY: reduce motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
