/* =============================================
   PanoptAI — Landing Page Styles
   ============================================= */

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

:root {
  --bg:          #0a0b0f;
  --bg-2:        #0f1117;
  --bg-card:     #13151c;
  --bg-card-2:   #1a1d27;
  --border:      #1e2130;
  --border-2:    #252840;
  --text:        #e8eaf0;
  --text-muted:  #6b7280;
  --text-dim:    #9ca3af;
  --accent:      #5b6ef5;
  --accent-2:    #7c3aed;
  --accent-glow: rgba(91, 110, 245, 0.15);
  --green:       #10b981;
  --blue:        #3b82f6;
  --yellow:      #f59e0b;
  --red:         #ef4444;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: #4a5be0; border-color: #4a5be0; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(91,110,245,0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-2);
}
.btn-ghost:hover { color: var(--text); border-color: #3a3e55; background: var(--bg-card); }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 22px; color: var(--accent); }
.logo-text { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.logo-ai { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; margin-left: auto; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(91,110,245,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero-stat-row {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 32px;
  gap: 32px;
}
.hero-stat { text-align: center; }
.stat-num { display: block; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ---- LOGO BAR ---- */
.logo-bar {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.logo-bar-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.logo-bar-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.tool-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.tool-badge-more {
  background: var(--accent-glow);
  border-color: rgba(91,110,245,0.3);
  color: var(--accent);
}

/* ---- SECTIONS ---- */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-2); }
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.65;
}

/* ---- PROBLEM ---- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.problem-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.problem-icon { font-size: 24px; margin-bottom: 14px; }
.problem-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(91,110,245,0.06);
  border: 1px solid rgba(91,110,245,0.2);
  border-radius: var(--radius);
  padding: 22px 28px;
}
.callout-icon { font-size: 20px; flex-shrink: 0; }
.callout p { font-size: 15px; color: var(--text-dim); line-height: 1.65; }
.callout strong { color: var(--text); }
.callout em { color: var(--text); font-style: normal; }

/* ---- PIPELINE ---- */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
}
.pipeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.2s;
}
.pipeline-step:hover { border-color: rgba(91,110,245,0.4); }
.pipeline-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.pipeline-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.pipeline-content p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.pipeline-arrow {
  color: var(--text-muted);
  font-size: 18px;
  align-self: center;
  padding: 0 2px;
  flex-shrink: 0;
}

/* ---- CAPTURE ---- */
.capture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.capture-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.capture-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 20px;
}
.capture-group-primary { background: rgba(16,185,129,0.1); color: var(--green); border: 1px solid rgba(16,185,129,0.2); }
.capture-group-secondary { background: rgba(59,130,246,0.1); color: var(--blue); border: 1px solid rgba(59,130,246,0.2); }
.capture-group-future { background: rgba(107,114,128,0.1); color: var(--text-muted); border: 1px solid var(--border); }

.capture-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.capture-item:last-child { border-bottom: none; padding-bottom: 0; }
.capture-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.capture-dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.capture-dot-blue { background: var(--blue); }
.capture-dot-grey { background: var(--text-muted); }
.capture-item strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.capture-item span { font-size: 13px; color: var(--text-dim); }

/* ---- FEATURES ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(91,110,245,0.35); transform: translateY(-2px); }
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---- PRIVACY ---- */
.storage-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.storage-mode {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.storage-mode-default {
  border-color: rgba(91,110,245,0.35);
  background: rgba(91,110,245,0.05);
}
.storage-mode-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  background: rgba(91,110,245,0.15);
  border: 1px solid rgba(91,110,245,0.3);
  border-radius: 999px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 14px;
}
.storage-mode h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.storage-mode p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.privacy-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.privacy-pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
}

/* ---- ANALOGY / POSITIONING ---- */
.analogy-block {
  text-align: center;
  padding: 64px 0;
}
.analogy-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.analogy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.analogy-item { text-align: center; }
.analogy-co {
  display: block;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.analogy-is {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.analogy-divider {
  font-size: 32px;
  color: var(--border-2);
  font-weight: 300;
}
.analogy-footnote {
  font-size: 16px;
  color: var(--text-muted);
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(91,110,245,0.08) 0%, var(--bg-card) 50%);
  position: relative;
}
.pricing-card-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 12px;
  line-height: 1;
}
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.pricing-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; line-height: 1.6; }
.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.pricing-features li:last-child { border-bottom: none; }

/* ---- CTA ---- */
.section-cta {
  padding: 96px 0;
  background: var(--bg-2);
}
.cta-block {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(91,110,245,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 40px;
  line-height: 1.65;
}
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.cta-form input,
.cta-form select {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  -webkit-appearance: none;
}
.cta-form input::placeholder { color: var(--text-muted); }
.cta-form select { color: var(--text-muted); }
.cta-form input:focus,
.cta-form select:focus { border-color: var(--accent); }
.cta-footnote { font-size: 13px; color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  gap: 64px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 220px;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { padding: 72px 0 56px; }
  .hero-stat-row { flex-direction: column; gap: 16px; padding: 20px; }
  .hero-stat-divider { width: 60px; height: 1px; }
  .pipeline { flex-direction: column; }
  .pipeline-arrow { transform: rotate(90deg); align-self: flex-start; padding-left: 28px; }
  .analogy-row { flex-direction: column; gap: 16px; }
  .analogy-divider { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
