/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
*:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; border-radius: 4px; }

:root {
  --primary: #1B2A4A;
  --primary-light: #243558;
  --primary-dark: #111D35;
  --secondary: #4A5568;
  --secondary-light: #5A6578;
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-light: #F59E0B;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --bg-dark: #EDF0F4;
  --text: #1A1A2E;
  --text-light: #4A5568;
  --text-muted: #5A6578;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --card-shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 12px 28px rgba(0,0,0,0.08);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-light); }

.mono { font-family: 'JetBrains Mono', monospace; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); filter: brightness(1.1); }

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding: 14px 8px;
}
.btn-ghost:hover { color: var(--accent-hover); }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary);
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--bg-alt); }

.nav-dropdown {
  position: relative;
}
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-lg);
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.nav-dropdown-content a:hover { background: var(--bg-alt); }
.nav-dropdown-content .dd-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-cta { margin-left: 8px; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 35%, #faf5ff 65%, #fffbeb 100%);
  overflow: hidden;
}
/* Bold gradient blobs */
.hero::before {
  content: '';
  position: absolute;
  inset: -100px;
  background:
    radial-gradient(circle 450px at 10% 30%, rgba(37,99,235,0.18), transparent 70%),
    radial-gradient(circle 350px at 85% 20%, rgba(109,40,217,0.12), transparent 70%),
    radial-gradient(circle 300px at 70% 80%, rgba(245,158,11,0.10), transparent 70%),
    radial-gradient(circle 400px at 30% 80%, rgba(37,99,235,0.08), transparent 70%);
  z-index: 0;
  animation: meshDrift 20s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.05); }
}
.hero-image { display: none; }
.hero-image img { display: none; }

/* Floating orbs with glow */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  will-change: transform;
  animation: orbFloat linear infinite;
}
.hero-orb:nth-child(1)  { width: 200px; height: 200px; background: radial-gradient(circle, rgba(37,99,235,0.20), transparent 70%); top: 5%; left: 2%; animation-duration: 18s; filter: blur(40px); }
.hero-orb:nth-child(2)  { width: 150px; height: 150px; background: radial-gradient(circle, rgba(109,40,217,0.18), transparent 70%); top: 20%; left: 18%; animation-duration: 22s; animation-delay: -5s; filter: blur(30px); }
.hero-orb:nth-child(3)  { width: 250px; height: 250px; background: radial-gradient(circle, rgba(37,99,235,0.14), transparent 70%); top: 45%; left: 65%; animation-duration: 25s; animation-delay: -10s; filter: blur(50px); }
.hero-orb:nth-child(4)  { width: 180px; height: 180px; background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%); top: 10%; left: 75%; animation-duration: 20s; animation-delay: -3s; filter: blur(35px); }
.hero-orb:nth-child(5)  { width: 120px; height: 120px; background: radial-gradient(circle, rgba(37,99,235,0.22), transparent 70%); top: 65%; left: 8%; animation-duration: 24s; animation-delay: -8s; filter: blur(25px); }
.hero-orb:nth-child(6)  { width: 220px; height: 220px; background: radial-gradient(circle, rgba(109,40,217,0.10), transparent 70%); top: 30%; left: 45%; animation-duration: 28s; animation-delay: -14s; filter: blur(45px); }
.hero-orb:nth-child(7)  { width: 160px; height: 160px; background: radial-gradient(circle, rgba(245,158,11,0.12), transparent 70%); top: 70%; left: 38%; animation-duration: 19s; animation-delay: -7s; filter: blur(30px); }
.hero-orb:nth-child(8)  { width: 190px; height: 190px; background: radial-gradient(circle, rgba(37,99,235,0.16), transparent 70%); top: 2%; left: 55%; animation-duration: 23s; animation-delay: -12s; filter: blur(38px); }
.hero-orb:nth-child(9)  { width: 130px; height: 130px; background: radial-gradient(circle, rgba(109,40,217,0.16), transparent 70%); top: 42%; left: 28%; animation-duration: 21s; animation-delay: -2s; filter: blur(28px); }
.hero-orb:nth-child(10) { width: 210px; height: 210px; background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 70%); top: 25%; left: 85%; animation-duration: 26s; animation-delay: -16s; filter: blur(42px); }
.hero-orb:nth-child(11) { width: 140px; height: 140px; background: radial-gradient(circle, rgba(37,99,235,0.14), transparent 70%); top: 15%; left: 38%; animation-duration: 30s; animation-delay: -18s; filter: blur(30px); }
.hero-orb:nth-child(12) { width: 170px; height: 170px; background: radial-gradient(circle, rgba(109,40,217,0.12), transparent 70%); top: 58%; left: 78%; animation-duration: 17s; animation-delay: -4s; filter: blur(35px); }

@keyframes orbFloat {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(40px, -30px); }
  50%  { transform: translate(-20px, -50px); }
  75%  { transform: translate(-40px, -15px); }
  100% { transform: translate(0, 0); }
}

/* Grid — visible but fading at edges */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 40s linear infinite;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.6), transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.6), transparent);
}
@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-accent-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 1;
}
.hero-content {
  z-index: 2;
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== SOCIAL PROOF BAR ========== */
.proof-bar {
  background: var(--primary);
  padding: 40px 0;
  color: #fff;
}
.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.proof-stat {
  text-align: center;
}
.proof-stat .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  display: block;
  color: var(--accent-light);
}
.proof-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.15);
}

.proof-industries {
  display: flex;
  align-items: center;
  gap: 20px;
}
.proof-industries span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.industry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.industry-icon svg { width: 20px; height: 20px; }

/* ========== PROBLEM SECTION ========== */
.problems {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
}
.problems-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.problems-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.03;
  filter: grayscale(60%);
}
.problems .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
}
.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
}

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

.problem-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-lg); }

.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.problem-icon.red { background: #FEE2E2; color: #DC2626; }
.problem-icon.yellow { background: #FEF3C7; color: #D97706; }
.problem-icon.blue { background: #DBEAFE; color: #2563EB; }

.problem-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text);
}
.problem-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.problem-solve {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

/* ========== PRODUCTS SECTION ========== */
.products {
  padding: 100px 0;
  background: var(--bg);
}

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

.product-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-lg); }

.product-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27,42,74,0.08) 100%);
}
.product-header {
  padding: 32px 28px 0;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.badge-quote { background: #EDE9FE; color: #7C3AED; }
.badge-bom { background: #D1FAE5; color: #059669; }
.badge-specs { background: #FEF3C7; color: #D97706; }

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}
.product-card .product-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

.product-body {
  padding: 24px 28px;
  flex: 1;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.product-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #059669;
}

.product-capacity {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--secondary);
  text-align: center;
}
.product-capacity strong { color: var(--text); }

.product-footer {
  padding: 20px 28px 28px;
  margin-top: auto;
}
.product-footer .btn { width: 100%; justify-content: center; }

/* ========== INTERACTIVE DEMO SECTION ========== */
.demo-section {
  padding: 100px 0;
  background: #F0F4F8;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.demo-tab:hover {
  border-color: var(--accent);
  color: var(--primary);
}
.demo-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.demo-tab svg { flex-shrink: 0; }

.demo-panel {
  display: none;
  max-width: 900px;
  margin: 0 auto;
}
.demo-panel.active { display: block; }

.demo-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
}

.demo-upload-area {
  padding: 48px 32px;
  text-align: center;
  border: 2px dashed rgba(0,0,0,0.12);
  border-radius: var(--radius-lg);
  margin: 24px;
  transition: all 0.3s ease;
  background: var(--bg-alt);
}
.demo-upload-area.drag-over {
  border-color: var(--accent);
  background: #FFF8ED;
  transform: scale(1.01);
}

.upload-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
}
.demo-upload-area.drag-over .upload-icon { color: var(--accent); }

.upload-main {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.upload-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.upload-btn { cursor: pointer; }
.bom-file-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.upload-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.upload-divider::before,
.upload-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.08);
}

/* Loading */
.demo-loading {
  padding: 60px 32px;
  text-align: center;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0,0,0,0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.demo-loading p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Results */
.demo-results {
  position: relative;
  padding: 32px;
}

.demo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-watermark {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  padding: 8px 14px;
  background: #FFF8ED;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

/* Results tables and cards */
.results-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.results-content h4:first-child { margin-top: 0; }

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.result-table th {
  text-align: left;
  padding: 8px 12px;
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid rgba(0,0,0,0.06);
}
.result-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: var(--text-light);
}
.result-table tr:hover td { background: var(--bg-alt); }

.result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.meta-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.meta-card .meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.meta-card .meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.confidence-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.confidence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.confidence-high { background: #22C55E; }
.confidence-med { background: #F59E0B; }
.confidence-low { background: #EF4444; }

.match-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.match-status.match { background: #DCFCE7; color: #166534; }
.match-status.conflict { background: #FEF3C7; color: #92400E; }
.match-status.only-a { background: #DBEAFE; color: #1E40AF; }
.match-status.only-b { background: #F3E8FF; color: #6B21A8; }

.spec-category {
  margin-bottom: 20px;
}
.spec-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}
.spec-category-header h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.spec-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.result-notes {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-alt);
  border-radius: 8px;
}
.result-notes h5 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.result-notes ul {
  padding-left: 16px;
  list-style: disc;
}
.result-notes li {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 4px;
  line-height: 1.5;
}

.demo-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}
.demo-cta p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

/* Demo error */
.demo-error {
  padding: 40px 32px;
  text-align: center;
}
.demo-error p {
  color: #DC2626;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .demo-tabs { gap: 6px; }
  .demo-tab { padding: 10px 16px; font-size: 0.82rem; }
  .demo-upload-area { padding: 32px 20px; margin: 16px; }
  .demo-results { padding: 20px; }
  .result-table { font-size: 0.78rem; }
  .result-table th, .result-table td { padding: 6px 8px; }
  .bom-file-inputs { flex-direction: column; align-items: center; }
  .result-meta { grid-template-columns: repeat(2, 1fr); }
}

/* ========== DEEP ANALYSIS ========== */
.deep-analysis {
  padding: 100px 0;
  background: var(--primary);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.deep-analysis .section-label { color: var(--accent-light); }
.deep-analysis h2 { color: #fff; }
.deep-analysis p { color: rgba(255,255,255,0.7); }

.da-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.da-text h2 { margin-bottom: 20px; }
.da-text > p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 28px; }

.da-quote {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.da-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.da-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-lg);
  position: relative;
}
.da-step.standard { background: rgba(255,255,255,0.06); }
.da-step.deep { background: rgba(217,119,6,0.12); border: 1px solid rgba(217,119,6,0.3); }
.da-step.result { background: rgba(5,150,105,0.12); border: 1px solid rgba(5,150,101,0.3); }

.da-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.da-step.standard .da-step-icon { background: rgba(255,255,255,0.1); }
.da-step.deep .da-step-icon { background: rgba(217,119,6,0.2); }
.da-step.result .da-step-icon { background: rgba(5,150,101,0.2); }

.da-step h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.da-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.da-step .tier-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 6px;
  display: inline-block;
}
.da-step.standard .tier-badge { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.da-step.deep .tier-badge { background: rgba(217,119,6,0.25); color: var(--accent-light); }

.da-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  color: rgba(255,255,255,0.25);
}

/* ========== PRICING ========== */
.pricing {
  padding: 100px 0;
  background: var(--bg-alt);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.pricing-toggle span {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 500;
}
.pricing-toggle span.active { color: var(--primary); font-weight: 600; }

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--secondary-light);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.toggle-switch.active { background: var(--accent); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch.active::after { transform: translateX(22px); }

.save-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
  background: #D1FAE5;
  padding: 3px 10px;
  border-radius: 20px;
}

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

.price-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--card-shadow);
  border: 2px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--card-shadow-lg);
  transform: scale(1.03);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.price-card .price-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}
.price-amount .currency { font-size: 1.2rem; font-weight: 600; color: var(--primary); }
.price-amount .amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.price-amount .period { font-size: 0.9rem; color: var(--text-muted); margin-left: 4px; }

.price-annual {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 20px;
}

.price-divider {
  height: 1px;
  background: var(--bg-dark);
  margin: 0 0 24px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.price-features li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: #059669;
}
.price-features li.disabled { color: var(--text-muted); }
.price-features li.disabled svg { color: var(--text-muted); opacity: 0.3; }

.price-card .btn { width: 100%; justify-content: center; }

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.67% + 44px);
  right: calc(16.67% + 44px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}
.step-number svg { width: 36px; height: 36px; color: var(--primary); }

.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.92rem; max-width: 280px; margin: 0 auto; }

.step-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}
.step-formats span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--bg-alt);
  border: 1px solid var(--bg-dark);
  border-radius: 4px;
  color: var(--secondary);
}

/* ========== CREDIBILITY ========== */
.credibility {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
}
.credibility-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.credibility-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  filter: grayscale(50%);
}
.credibility .container {
  position: relative;
  z-index: 1;
}

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

.cred-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.12);
}

.cred-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  background: var(--bg-alt);
}
.cred-icon svg { width: 26px; height: 26px; color: var(--primary); }

.cred-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cred-card p {
  font-size: 0.85rem;
  line-height: 1.6;
}
.cred-card .cred-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

/* ========== FAQ ========== */
.faq {
  padding: 100px 0;
  background: var(--bg);
}

.faq-grid {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--bg-dark);
}
.faq-item:first-child { border-top: 1px solid var(--bg-dark); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 16px;
}
.faq-question:hover { color: var(--primary); }

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--secondary-light);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ========== FINAL CTA ========== */
.final-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(217,119,6,0.05);
}
.final-cta h2 { color: #fff; margin-bottom: 16px; }
.final-cta p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 36px; }
.final-cta .btn-primary { font-size: 1.1rem; padding: 18px 44px; }
.final-cta-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ========== FOOTER ========== */
.footer {
  padding: 60px 0 32px;
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo { color: #fff; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 320px; }

.footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* ========== PRINT STYLES ========== */
@media print {
  .nav, .hero-grid, .mobile-toggle, .faq, .final-cta { display: none; }
  .hero { padding-top: 40px; }
  body { font-size: 12pt; }
  .pricing { break-inside: avoid; }
  .price-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .da-content { grid-template-columns: 1fr; gap: 40px; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.desktop { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .nav-links.open .nav-dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: block;
  }
  .nav-links.open .nav-cta { margin-left: 0; margin-top: 8px; }

  .hero { padding: 120px 0 70px; }
  .problems-grid, .products-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .price-card.featured { transform: none; }
  .cred-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .proof-inner { gap: 24px; }
  .proof-divider { display: none; }
}

/* ========== ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

    .proof-people {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      padding-left: 24px;
      border-left: 1px solid rgba(255,255,255,0.15);
    }
    .proof-people-label {
      font-size: 0.72rem;
      color: rgba(255,255,255,0.5);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }
    .proof-people-grid {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .proof-person {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .person-emoji {
      font-size: 1.1rem;
    }
    .person-text {
      font-size: 0.88rem;
      color: rgba(255,255,255,0.85);
      line-height: 1.4;
    }
    .person-text em {
      color: var(--accent-light);
      font-style: normal;
      font-weight: 600;
    }
