/* PanelKit Component Library — components.css */

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes btn-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}
@keyframes dots {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-glow); }
  50%       { box-shadow: 0 0 20px 4px var(--color-accent-glow); }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-200%) skewX(-15deg);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--color-accent-glow);
}
.btn-primary:hover:not(:disabled)::after {
  animation: btn-shimmer 0.6s ease forwards;
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border-light);
}
.btn-secondary:hover:not(:disabled) {
  background-color: var(--color-surface-2);
  border-color: var(--color-text-muted);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
  color: var(--color-text);
  background-color: var(--color-surface-2);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-hover {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-light);
}

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 16px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.9375rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-subtle);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-subtle);
}

/* ─── Modals ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform var(--transition-base);
}
.modal-overlay.is-open .modal {
  transform: translateY(0);
}
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-body   { padding: 20px 28px; }
.modal-footer { padding: 0 28px 24px; display: flex; gap: var(--space-3); justify-content: flex-end; }
.modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--color-text); }

/* ─── Chat Bubbles ───────────────────────────────────────── */
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.chat-message {
  display: flex;
  gap: var(--space-3);
  animation: fadeIn 300ms ease;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--color-surface-3);
  border: 1px solid var(--color-border);
}
.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-content { flex: 1; }
.chat-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.chat-name  { font-weight: 600; font-size: 0.9rem; }
.chat-title { font-size: 0.8rem; color: var(--color-text-muted); }
.chat-bubble {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 12px 16px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}
.chat-bubble--indent {
  margin-left: 20px;
  border-color: var(--color-border-light);
  background: var(--color-surface-3);
  position: relative;
}
.chat-bubble--indent::before {
  content: '↩';
  position: absolute;
  left: -22px;
  top: 12px;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.badge-success { background: var(--color-success-muted); color: var(--color-success); border-color: rgba(74,222,128,0.25); }
.badge-warning { background: var(--color-warning-muted); color: var(--color-warning); border-color: rgba(251,191,36,0.25); }
.badge-danger  { background: var(--color-danger-muted);  color: var(--color-danger);  border-color: rgba(248,113,113,0.25); }
.badge-info    { background: var(--color-info-muted);    color: var(--color-info);    border-color: rgba(96,165,250,0.25); }
.badge-accent  { background: var(--color-accent-muted);  color: var(--color-accent);  border-color: rgba(255,107,53,0.25); }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  height: 64px;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-links a:hover { color: var(--color-text); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  background: var(--color-accent-muted);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: var(--radius-full);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: var(--space-6);
}

/* ─── Sections ───────────────────────────────────────────── */
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* ─── Persona Cards ──────────────────────────────────────── */
.persona-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.persona-card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
}
.persona-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}
.persona-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-surface-3);
  border: 2px solid var(--color-border);
  overflow: hidden;
  flex-shrink: 0;
}
.persona-avatar img { width: 100%; height: 100%; object-fit: cover; }
.persona-name  { font-weight: 600; font-size: 0.95rem; }
.persona-title { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 2px; }
.persona-bio   { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-3); }
.persona-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.persona-trait {
  font-size: 0.75rem;
  padding: 3px 8px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}
.persona-trait--skeptic {
  border-color: rgba(248,113,113,0.3);
  background: var(--color-danger-muted);
  color: var(--color-danger);
}

/* ─── Debrief Cards ──────────────────────────────────────── */
.debrief-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  border-left-width: 3px;
}
.debrief-card--green  { border-left-color: var(--color-success); }
.debrief-card--yellow { border-left-color: var(--color-warning); }
.debrief-card--red    { border-left-color: var(--color-danger);  }
.debrief-card--blue   { border-left-color: var(--color-info);    }
.debrief-card--accent { border-left-color: var(--color-accent);  }
.debrief-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.debrief-card--green  .debrief-label { color: var(--color-success); }
.debrief-card--yellow .debrief-label { color: var(--color-warning); }
.debrief-card--red    .debrief-label { color: var(--color-danger);  }
.debrief-card--blue   .debrief-label { color: var(--color-info);    }
.debrief-card--accent .debrief-label { color: var(--color-accent);  }
.debrief-content {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* ─── Loading States ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-surface-2) 0%,
    var(--color-surface-3) 50%,
    var(--color-surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent;
}
.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: dots 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ─── Toasts ─────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  max-width: 360px;
  animation: slideUp 250ms ease;
}
.toast-success { border-left: 3px solid var(--color-success); }
.toast-error   { border-left: 3px solid var(--color-danger); }

/* ─── Pricing Cards ──────────────────────────────────────── */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.pricing-card--featured {
  border-color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(255,107,53,0.05) 100%);
  transform: scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,107,53,0.3), var(--shadow-lg);
}
.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-plan  { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-text);
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  letter-spacing: 0;
}
.pricing-tagline { font-size: 0.9rem; color: var(--color-text-muted); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Steps ──────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  position: relative;
}
.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-accent-muted);
  border: 1px solid rgba(255,107,53,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.step-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-3);
  display: block;
}

/* ─── What You Get / Feature Cards ──────────────────────────*/
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  display: block;
}
.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Quote / Testimonial ────────────────────────────────── */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 40px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.3;
}
.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.testimonial-attr {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.testimonial-attr strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

/* ─── Mock Screenshot ────────────────────────────────────── */
.mock-screenshot {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(255,107,53,0.08);
}
.mock-topbar {
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border-light);
}
.mock-dot:nth-child(1) { background: #F87171; }
.mock-dot:nth-child(2) { background: #FBBF24; }
.mock-dot:nth-child(3) { background: #4ADE80; }
.mock-url-bar {
  flex: 1;
  background: var(--color-surface-3);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  margin: 0 12px;
}
.mock-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 96px 0;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,107,53,0.06) 0%, transparent 70%);
  pointer-events: none;
}
