/* BizPilot Styles - Distinctive Design */

:root {
  --bg: #0c0c0f;
  --bg-elevated: #16161a;
  --bg-card: #1c1c21;
  --text: #f0f0f5;
  --text-muted: #8b8b9e;
  --primary: #10b981;
  --primary-hover: #059669;
  --accent: #f59e0b;
  --urgent: #ef4444;
  --followup: #f59e0b;
  --fyi: #64748b;
  --border: #2a2a35;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 12, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

/* Inbox Preview */
.inbox-preview {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.inbox-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.inbox-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.inbox-dot.red { background: #ef4444; }
.inbox-dot.yellow { background: #f59e0b; }
.inbox-dot.green { background: #22c55e; }

.inbox-title {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.inbox-content {
  padding: 8px;
}

.email-item {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.email-item:last-child {
  margin-bottom: 0;
}

.email-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-item.urgent .email-badge {
  background: rgba(239, 68, 68, 0.2);
  color: var(--urgent);
}

.email-item.followup .email-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--followup);
}

.email-item.fyi .email-badge {
  background: rgba(100, 116, 139, 0.2);
  color: var(--fyi);
}

.email-from {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.email-subject {
  font-weight: 600;
  margin-bottom: 6px;
}

.email-draft {
  font-size: 13px;
  color: var(--primary);
  font-style: italic;
}

/* Features Section */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Pricing Section */
.pricing {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.pricing-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  text-align: center;
}

.pricing-page h1 {
  font-family: var(--font-display);
  font-size: 42px;
  margin-bottom: 12px;
}

.pricing-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  text-align: left;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}

.pricing-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}

.price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--urgent);
  font-size: 14px;
  margin-bottom: 16px;
  min-height: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Dashboard */
.dashboard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-family: var(--font-display);
  font-size: 32px;
  margin-bottom: 8px;
}

.dashboard-subtitle {
  color: var(--text-muted);
}

.dashboard-stats {
  display: flex;
  gap: 16px;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

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

.stat-item.pro {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
}

.stat-item.pro .stat-value {
  font-size: 14px;
  color: var(--primary);
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* Email List */
.emails-list,
.digests-list {
  min-height: 100px;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
}

.email-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg-elevated);
  margin-bottom: 8px;
  align-items: start;
}

.email-row .email-badge {
  margin: 0;
}

.email-row-content {
  min-width: 0;
}

.email-row-from {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.email-row-subject {
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-row-draft {
  font-size: 13px;
  color: var(--primary);
}

.email-row-priority {
  background: var(--bg-card);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

/* Digest List */
.digest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: 10px;
  margin-bottom: 8px;
}

.digest-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.digest-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.digest-summary strong {
  display: block;
  margin-bottom: 2px;
}

.digest-summary span {
  font-size: 13px;
  color: var(--text-muted);
}

.digest-date {
  font-size: 13px;
  color: var(--text-muted);
}

/* Paywall Banner */
.paywall-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(239, 68, 68, 0.15) 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.paywall-content h3 {
  font-family: var(--font-display);
  color: var(--accent);
  margin-bottom: 4px;
}

.paywall-content p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 40px;
  }

  .features-grid,
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    gap: 12px;
  }

  .paywall-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .email-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-actions {
    flex-direction: column;
  }
}

/* Loading States */
.loading {
  opacity: 0.5;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideIn 0.3s ease;
}

.toast.success {
  border-color: var(--primary);
}

.toast.error {
  border-color: var(--urgent);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Success message on payment */
.success-message {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--primary);
}
