* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #fff;
}

.back-portfolio {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 999px;
}
.back-portfolio:hover { background: #4f46e5; }

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

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}
.brand { font-weight: 800; letter-spacing: -0.03em; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.links a { color: #475569; text-decoration: none; font-size: 0.9rem; }
.links a:hover { color: #0f172a; }

.btn-primary, .btn-outline, .btn-ghost {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}
.btn-outline { background: #fff; border: 1px solid #e2e8f0; color: #0f172a; }
.btn-ghost { background: transparent; color: #475569; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.full { width: 100%; }

.hero {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% -30%, rgba(99, 102, 241, 0.18), transparent);
}
.eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #6366f1; }
.hero h1 {
  margin: 0.75rem auto 0;
  max-width: 16ch;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.lead { max-width: 42ch; margin: 1rem auto 1.5rem; color: #64748b; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.features { padding: 2rem 1.5rem; border-top: 1px solid #f1f5f9; }
.features h2 { text-align: center; margin: 0 0 1.5rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.grid article {
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.grid h3 { margin: 0.5rem 0; }
.grid p { margin: 0; font-size: 0.9rem; color: #64748b; }
.icon { font-size: 1.5rem; }

.pricing { padding: 2rem 1.5rem; background: #f8fafc; }
.pricing h2 { text-align: center; margin: 0 0 1rem; }
.toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #64748b;
}
.lbl.active { color: #0f172a; font-weight: 600; }
.toggle em { font-style: normal; color: #16a34a; font-size: 0.75rem; margin-left: 0.25rem; }

.switch {
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  border: none;
  padding: 3px;
  cursor: pointer;
  position: relative;
}
.switch.on { background: #6366f1; }
.knob {
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch.on .knob { transform: translateX(22px); }

.plans {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}
.plan {
  flex: 1;
  min-width: 200px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: relative;
}
.plan.featured { border-color: #6366f1; box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12); }
.badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #6366f1;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}
.price { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0 1rem; }
.plan ul { margin: 0 0 1rem; padding-left: 1.1rem; font-size: 0.9rem; color: #475569; }

.logos { text-align: center; padding: 2.5rem 1.5rem; border-top: 1px solid #f1f5f9; }
.logos > p { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: #94a3b8; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; font-weight: 700; color: #64748b; }

.cta-final {
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(135deg, #312e81, #1e1b4b);
  color: #f8fafc;
}
.cta-final h2 { margin: 0 0 0.5rem; }
.cta-final p { margin: 0 0 1.5rem; color: #c7d2fe; }

.footer { padding: 1.5rem; border-top: 1px solid #f1f5f9; margin-top: auto; }
.foot-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.copy { font-size: 0.85rem; color: #94a3b8; }

.demo-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  width: min(300px, calc(100% - 2rem));
  box-sizing: border-box;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  text-align: center;
  z-index: 100000;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.demo-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
