/* ═══════════════════════════════════════════════════════════════
   EPI Labs · epilabs.org · Marketing site stylesheet
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:          #0a0a0f;
  --bg-card:     #111118;
  --bg-dark:     #0d0d14;
  --border:      #1e1e2e;
  --accent:      #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.18);
  --green:       #22c55e;
  --red:         #ef4444;
  --text:        #e8e8f0;
  --text-muted:  #8888aa;
  --text-dim:    #555568;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:        'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  --radius:      10px;
  --max-w:       1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-dark { background: var(--bg-dark); }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: -32px;
  margin-bottom: 48px;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.88; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.btn-large { padding: 16px 36px; font-size: 17px; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid rgba(108, 99, 255, 0.35);
  color: #a89fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Problem section ─────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

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

.problem-icon { font-size: 28px; margin-bottom: 14px; }

.problem-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.urgency-bar {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 16px 22px;
  font-size: 14px;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── How it works ─────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.65;
}

.code-block {
  background: #080810;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}

.code-block code {
  font-family: var(--mono);
  font-size: 12px;
  color: #a0ffa0;
  white-space: pre;
  line-height: 1.7;
}

/* ── Case study ──────────────────────────────────────────────── */
.case-study {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.case-scenario {
  padding: 36px 40px;
  border-bottom: 1px solid var(--border);
}

.scenario-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.case-scenario p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.case-scenario blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: var(--bg-dark);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}

.case-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.timeline-col {
  padding: 28px 32px;
}

.timeline-col.without {
  border-right: 1px solid var(--border);
  background: rgba(239, 68, 68, 0.03);
}

.timeline-col.with {
  background: rgba(34, 197, 94, 0.03);
}

.timeline-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.without-label { color: var(--red); }
.with-label { color: var(--green); }

.timeline-item {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.tl-icon { flex-shrink: 0; width: 18px; }

.timeline-item.bad .tl-icon { color: var(--red); }
.timeline-item.good .tl-icon { color: var(--green); }

.case-result {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-dark);
}

.result-stat {
  display: flex;
  flex-direction: column;
}

.result-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.result-label {
  font-size: 12px;
  color: var(--text-dim);
}

.result-arrow {
  font-size: 22px;
  color: var(--text-dim);
}

.result-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Features grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.feature-icon { font-size: 26px; margin-bottom: 12px; }

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-dark);
  padding: 1px 5px;
  border-radius: 3px;
  color: #a0ffa0;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.plan-forever {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dim);
}

.plan-period {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  font-size: 13px;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-features code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg-dark);
  padding: 1px 5px;
  border-radius: 3px;
  color: #a0ffa0;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.15s, transform 0.1s;
}

.plan-cta:hover { opacity: 0.88; transform: translateY(-1px); }

.plan-cta-primary {
  background: var(--accent);
  color: #fff;
}

.plan-cta-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.plan-cta-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Demo CTA section ────────────────────────────────────────── */
.demo-section {
  background: linear-gradient(135deg, #0d0d18 0%, #10101e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.demo-container { text-align: center; }

.demo-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.demo-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.demo-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.demo-note {
  font-size: 13px;
  color: var(--text-dim);
}

.demo-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
}

.demo-note a:hover { color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-inner {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-left {
  flex: 1;
  min-width: 200px;
}

.footer-left .logo {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

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

.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 100px;
}

.footer-links strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.footer-bottom {
  padding: 18px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .case-timeline { grid-template-columns: 1fr; }
  .timeline-col.without { border-right: none; border-bottom: 1px solid var(--border); }
  .case-result { gap: 20px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 28px; }
}

@media (max-width: 500px) {
  .section { padding: 64px 0; }
  .case-scenario { padding: 24px 20px; }
  .timeline-col { padding: 20px; }
  .case-result { padding: 20px; }
}

/* ── Print (for sharing the page as PDF) ─────────────────────── */
@media print {
  .nav, .hero-actions, .demo-section, .footer { display: none; }
  body { background: #fff; color: #000; }
  .section-dark { background: #f8f8f8; }
}
