/* Import Dark Mode System */
@import url("dark-mode.css");

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: background-color var(--transition-normal);
}

.spinner,
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--loading-secondary);
  border-top: 4px solid var(--loading-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Header Styles */
.main-header {
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b5cf6;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--interactive-primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

/* Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  font-size: 0.875rem;
}

.btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--interactive-primary);
  transform: translateY(-1px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--interactive-primary);
  color: var(--text-inverse);
  border-color: var(--interactive-primary);
}

.btn-primary:hover {
  background: var(--interactive-primary-hover);
  border-color: var(--interactive-primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--accent-amber);
  color: var(--bg-primary);
  border-color: var(--accent-amber);
}

.btn-secondary:hover {
  background: var(--warning);
  border-color: var(--warning);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
}

/* Page Styles */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 80px;
}

.page.active {
  display: block;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-background);
  padding: 4rem 0;
  text-align: center;
  transition: background var(--transition-normal);
}

.pro-hero {
  background: var(--gradient-primary);
  color: var(--text-inverse);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.pro-hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.trust-indicators {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.trust-item {
  text-align: center;
}

.trust-number {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b5cf6;
}

.trust-label {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

/* Impact Section */
.impact-section {
  background: var(--bg-secondary);
  padding: 4rem 0;
  transition: background-color var(--transition-normal);
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal);
}

.chart-title {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.chart-container {
  height: 300px;
  margin-bottom: 1rem;
}

.chart-description {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Advantage Section */
.advantage-section {
  padding: 4rem 0;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.advantage-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition:
    background-color var(--transition-normal),
    border-color var(--transition-normal);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.advantage-card h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.advantage-list {
  list-style: none;
  margin-top: 1rem;
}

.advantage-list li {
  padding: 0.25rem 0;
  color: #6b7280;
}

.advantage-list li:before {
  content: "✓";
  color: #10b981;
  margin-right: 0.5rem;
}

/* Registration Section */
.registration-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.user-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  border: 2px solid transparent;
  position: relative;
}

.user-card:hover {
  transform: translateY(-5px);
}

.user-card.featured {
  border-color: #8b5cf6;
  transform: scale(1.05);
}

.popular-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.influence-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.basic-badge {
  background: #e5e7eb;
  color: #374151;
}

.verified-badge {
  background: #f59e0b;
  color: white;
}

.card-description {
  margin: 1rem 0;
  color: #6b7280;
}

.feature-list {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
  color: #6b7280;
}

.feature-list li {
  padding: 0.25rem 0;
}

.feature-list li:before {
  content: "✓";
  color: #10b981;
  margin-right: 0.5rem;
}

.demographics-info {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.demographics-info h4 {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: #374151;
}

.demo-tags {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Security Section */
.security-section {
  padding: 4rem 0;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.security-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.security-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.security-badges {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: #8b5cf6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Platform Section */
.platform-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.platform-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hierarchy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  gap: 0.5rem;
}

.level {
  background: #8b5cf6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}

.arrow {
  color: #8b5cf6;
  font-weight: bold;
}

.feature-highlights {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.highlight {
  background: #e0e7ff;
  color: #5b21b6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* About/How It Works/Security Pages */
.page-hero {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.content-section {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.content-main h2 {
  margin: 2rem 0 1rem;
  color: #1f2937;
}

.content-main p {
  margin-bottom: 1rem;
  color: #6b7280;
  line-height: 1.7;
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-box {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #8b5cf6;
  display: block;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
  width: 60px;
  height: 60px;
  background: #8b5cf6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.security-details {
  display: grid;
  gap: 2rem;
  margin: 3rem 0;
}

.security-block {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.security-block h2 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.security-block p {
  color: #6b7280;
  line-height: 1.7;
}

/* Pro Page Styles */
.value-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.value-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.capabilities-section {
  padding: 4rem 0;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.capability-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.capability-features {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feature-tag {
  background: #e0e7ff;
  color: #5b21b6;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Pricing Section */
.pricing-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pricing-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card.featured {
  border-color: #8b5cf6;
  transform: scale(1.05);
}

.pricing-card h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.price {
  font-size: 2rem;
  font-weight: bold;
  color: #8b5cf6;
  margin: 1rem 0;
}

.price-period {
  font-size: 1rem;
  color: #6b7280;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
  color: #6b7280;
}

.pricing-features li {
  padding: 0.25rem 0;
}

.pricing-features li:before {
  content: "✓";
  color: #10b981;
  margin-right: 0.5rem;
}

/* Demo Section */
.demo-section {
  padding: 4rem 0;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.demo-features {
  list-style: none;
  margin-top: 1rem;
}

.demo-features li {
  padding: 0.25rem 0;
  color: #6b7280;
}

.demo-features li:before {
  content: "✓";
  color: #10b981;
  margin-right: 0.5rem;
}

.demo-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
}

.forgot-password {
  color: #8b5cf6;
  text-decoration: none;
  font-size: 0.875rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 0.25rem;
}

.strength-text {
  font-size: 0.75rem;
  color: #6b7280;
}

.demographics-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.demographics-section h3 {
  margin-bottom: 1rem;
  color: #1f2937;
}

.checkbox-group {
  margin-top: 2rem;
}

.terms-link {
  color: #8b5cf6;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Auth Pages */
.auth-section {
  padding: 4rem 0;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.auth-container {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.signup-container {
  max-width: 700px;
}

.auth-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

.auth-form {
  margin-bottom: 1rem;
}

.auth-footer {
  text-align: center;
}

.auth-link {
  color: #8b5cf6;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.signup-type-selector {
  display: flex;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.type-btn {
  flex: 1;
  padding: 0.75rem;
  background: #f9fafb;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.type-btn.active {
  background: #8b5cf6;
  color: white;
}

/* Dashboard Styles */
.dashboard-page {
  padding-top: 0;
}

.dashboard-header {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 2rem 0;
  margin-top: 80px;
}

.dashboard-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-nav {
  background: #f9fafb;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.nav-tabs {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.tab-link {
  text-decoration: none;
  color: #6b7280;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.tab-link:hover,
.tab-link.active {
  background: #8b5cf6;
  color: white;
}

.dashboard-content {
  padding: 2rem 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.polls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Footer */
.main-footer {
  background: #1f2937;
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: #8b5cf6;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: #8b5cf6;
}

.footer-section p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
}

.social-link:hover {
  color: #8b5cf6;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .trust-indicators {
    flex-direction: column;
    gap: 1rem;
  }

  .charts-grid,
  .registration-grid {
    grid-template-columns: 1fr;
  }

  .user-card.featured {
    transform: none;
  }

  .pricing-card.featured {
    transform: none;
  }

  .content-grid,
  .demo-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-tabs {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .dashboard-header .container {
    flex-direction: column;
    gap: 1rem;
  }
}
