/* ===========================================
   AI Automation Hub Styles
   Modern Automation Platform CSS
   =========================================== */

/* ===== CSS Variables ===== */
:root {
  --hub-primary: #6366f1;
  --hub-primary-dark: #4f46e5;
  --hub-primary-light: #818cf8;
  --hub-secondary: #8b5cf6;
  --hub-accent: #22d3ee;
  --hub-success: #10b981;
  --hub-warning: #f59e0b;
  --hub-error: #ef4444;
  
  --hub-bg: #0f172a;
  --hub-bg-light: #1e293b;
  --hub-bg-card: #1e293b;
  --hub-bg-card-hover: #334155;
  
  --hub-text: #f8fafc;
  --hub-text-secondary: #94a3b8;
  --hub-text-muted: #64748b;
  
  --hub-border: #334155;
  --hub-border-light: #475569;
  
  --hub-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --hub-gradient-accent: linear-gradient(135deg, #22d3ee, #6366f1);
  --hub-gradient-success: linear-gradient(135deg, #10b981, #22d3ee);
  
  --hub-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --hub-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --hub-glow: 0 0 30px rgba(99, 102, 241, 0.3);
  
  --hub-radius: 16px;
  --hub-radius-sm: 8px;
  --hub-radius-lg: 24px;
  
  --hub-transition: 0.3s ease;
}

/* ===== Automation Hub Container ===== */
.automation-hub {
  min-height: 100vh;
  padding-top: 80px;
}

/* ===== Hero Section ===== */
.hub-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hub-gradient);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: var(--hub-glow);
}

.hero-badge i {
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title .gradient-text {
  background: var(--hub-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .hero-subtitle {
  display: block;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--hub-text-secondary);
  margin-top: 8px;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--hub-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--hub-border);
  border-bottom: 1px solid var(--hub-border);
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--hub-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hub-transition);
  border: none;
}

.cta-primary {
  background: var(--hub-gradient);
  color: white;
  box-shadow: var(--hub-glow);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.cta-secondary {
  background: transparent;
  color: var(--hub-text);
  border: 2px solid var(--hub-border);
}

.cta-secondary:hover {
  background: var(--hub-bg-light);
  border-color: var(--hub-primary);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.automation-flow-diagram {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background: var(--hub-bg-light);
  border-radius: var(--hub-radius-lg);
  border: 1px solid var(--hub-border);
  box-shadow: var(--hub-shadow-lg);
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: var(--hub-bg);
  border-radius: var(--hub-radius);
  border: 2px solid var(--hub-border);
  min-width: 100px;
  transition: var(--hub-transition);
}

.flow-node i {
  font-size: 2rem;
  color: var(--hub-primary);
}

.flow-node span {
  font-size: 0.85rem;
  color: var(--hub-text-secondary);
  font-weight: 500;
}

.flow-node.ai-node {
  border-color: var(--hub-primary);
  box-shadow: var(--hub-glow);
}

.flow-node.ai-node i {
  color: var(--hub-accent);
  animation: pulse 2s infinite;
}

.flow-node.output-node i {
  color: var(--hub-success);
}

.flow-arrow {
  color: var(--hub-primary);
  font-size: 1.5rem;
  animation: flowArrow 1.5s ease-in-out infinite;
}

@keyframes flowArrow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ===== Section Styles ===== */
.automation-section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.live-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--hub-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-badge .pulse {
  animation: livePulse 1.5s infinite;
  font-size: 0.6rem;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.coming-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--hub-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-title i {
  color: var(--hub-primary);
}

.section-description {
  font-size: 1.15rem;
  color: var(--hub-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Platforms Showcase ===== */
.platforms-showcase {
  margin-bottom: 60px;
}

.showcase-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: var(--hub-text);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Process Section ===== */
.process-section {
  margin-bottom: 80px;
}

.process-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: var(--hub-text);
}

.process-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  background: var(--hub-bg-card);
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  position: relative;
  transition: var(--hub-transition);
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--hub-primary);
  box-shadow: var(--hub-glow);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--hub-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon i {
  font-size: 1.8rem;
  color: var(--hub-primary);
}

.process-step h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--hub-text);
}

.process-step p {
  font-size: 0.95rem;
  color: var(--hub-text-secondary);
  line-height: 1.6;
}

.process-connector {
  display: flex;
  align-items: center;
  color: var(--hub-primary);
  font-size: 1.5rem;
  padding-top: 60px;
}

/* ===== Demo Video Section ===== */
.demo-video-section {
  margin-bottom: 80px;
  padding: 60px 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.03), transparent);
}

.demo-section-header {
  text-align: center;
  margin-bottom: 48px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(34, 211, 238, 0.15);
  color: var(--hub-accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.demo-badge i {
  font-size: 0.5rem;
  animation: livePulse 1.5s infinite;
}

.demo-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--hub-text);
}

.demo-description {
  font-size: 1.1rem;
  color: var(--hub-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

.demo-video-card {
  background: var(--hub-bg-card);
  border-radius: var(--hub-radius-lg);
  border: 1px solid var(--hub-border);
  overflow: hidden;
  box-shadow: var(--hub-shadow-lg);
  transition: var(--hub-transition);
}

.demo-video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border-color: var(--hub-primary);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 16px 20px;
  background: var(--hub-bg);
}

.video-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.video-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hub-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.video-stat i {
  color: var(--hub-accent);
  font-size: 0.9rem;
}

.demo-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.demo-feature-card {
  background: var(--hub-bg-card);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  padding: 16px 18px;
  transition: var(--hub-transition);
  display: flex;
  align-items: center;
  gap: 14px;
}

.demo-feature-card:hover {
  background: var(--hub-bg-card-hover);
  border-color: var(--hub-primary);
  transform: translateX(3px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-icon.clock {
  background: rgba(34, 211, 238, 0.15);
  color: var(--hub-accent);
}

.feature-icon.rocket {
  background: rgba(16, 185, 129, 0.15);
  color: var(--hub-success);
}

.feature-icon.infinity {
  background: rgba(99, 102, 241, 0.15);
  color: var(--hub-primary);
}

.feature-icon.shield {
  background: rgba(245, 158, 11, 0.15);
  color: var(--hub-warning);
}

.feature-content {
  flex: 1;
  min-width: 0;
}

.demo-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hub-text);
  margin: 0 0 4px 0;
}

.demo-feature-card p {
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ===== Automation Card Section ===== */
.automation-card-section {
  margin-top: 60px;
}

.automation-card {
  background: var(--hub-bg-card);
  border-radius: var(--hub-radius-lg);
  border: 1px solid var(--hub-border);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.automation-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.automation-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--hub-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.automation-icon.linkedin {
  background: rgba(0, 119, 181, 0.15);
  color: #0077b5;
}

.automation-title-group {
  flex: 1;
}

.automation-title-group h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.automation-title-group p {
  font-size: 0.9rem;
  color: var(--hub-text-muted);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--hub-error);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.connected {
  background: rgba(16, 185, 129, 0.15);
  color: var(--hub-success);
}

.status-badge i {
  font-size: 0.6rem;
}

.status-badge i.active {
  animation: livePulse 1.5s infinite;
}

.automation-description {
  color: var(--hub-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.automation-connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #0077b5;
  color: white;
  border: none;
  border-radius: var(--hub-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hub-transition);
}

.automation-connect-btn:hover {
  background: #005a8c;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.4);
}

/* Automation Controls */
.automation-controls {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hub-border);
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hub-border);
  flex-wrap: wrap;
  gap: 16px;
}

.control-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-info h4 i {
  color: var(--hub-primary);
}

.control-info p {
  font-size: 0.9rem;
  color: var(--hub-text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 56px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hub-bg);
  border: 2px solid var(--hub-border);
  border-radius: 28px;
  transition: var(--hub-transition);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--hub-text-muted);
  border-radius: 50%;
  transition: var(--hub-transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--hub-success);
  border-color: var(--hub-success);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(28px);
  background: white;
}

.time-input {
  padding: 10px 16px;
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  color: var(--hub-text);
  font-size: 0.95rem;
}

.test-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--hub-gradient);
  color: white;
  border: none;
  border-radius: var(--hub-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hub-transition);
}

.test-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hub-glow);
}

/* Automation Stats */
.automation-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.automation-stats .stat-card {
  background: var(--hub-bg);
  border-radius: var(--hub-radius-sm);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--hub-border);
}

.automation-stats .stat-card i {
  font-size: 1.5rem;
  color: var(--hub-primary);
  margin-bottom: 8px;
}

.automation-stats .stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hub-text);
  margin-bottom: 4px;
}

.automation-stats .stat-label {
  font-size: 0.8rem;
  color: var(--hub-text-muted);
}

/* Recent Posts */
.recent-posts-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hub-border);
}

.recent-posts-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recent-posts-section h4 i {
  color: var(--hub-primary);
}

.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* ===== Coming Soon Section ===== */
.coming-soon-section {
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.03));
  border-radius: var(--hub-radius-lg);
  margin: 40px 5%;
  padding: 80px 40px;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.coming-soon-card {
  background: var(--hub-bg-card);
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  padding: 28px;
  position: relative;
  transition: var(--hub-transition);
  opacity: 0.9;
}

.coming-soon-card:hover {
  opacity: 1;
  transform: translateY(-5px);
  border-color: var(--hub-warning);
  box-shadow: 0 10px 40px rgba(245, 158, 11, 0.15);
}

.coming-soon-card.experimental {
  border-color: rgba(139, 92, 246, 0.3);
}

.coming-soon-card.experimental:hover {
  border-color: var(--hub-secondary);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.card-status {
  margin-bottom: 16px;
}

.status-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-tag.in-development {
  background: rgba(245, 158, 11, 0.15);
  color: var(--hub-warning);
}

.status-tag.experimental-tag {
  background: rgba(139, 92, 246, 0.15);
  color: var(--hub-secondary);
}

.status-tag.planned {
  background: rgba(100, 116, 139, 0.15);
  color: var(--hub-text-muted);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--hub-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card-icon.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.card-icon.agentic {
  background: rgba(139, 92, 246, 0.15);
  color: var(--hub-secondary);
}

.card-icon.chain {
  background: rgba(99, 102, 241, 0.15);
  color: var(--hub-primary);
}

.card-icon.workflow {
  background: rgba(34, 211, 238, 0.15);
  color: var(--hub-accent);
}

.card-icon.email {
  background: rgba(239, 68, 68, 0.15);
  color: var(--hub-error);
}

.card-icon.data {
  background: rgba(16, 185, 129, 0.15);
  color: var(--hub-success);
}

.coming-soon-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--hub-text);
}

.card-description {
  font-size: 0.95rem;
  color: var(--hub-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-bottom: 20px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--hub-text-secondary);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  color: var(--hub-success);
  font-size: 0.8rem;
}

.card-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--hub-radius-sm);
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--hub-secondary);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--hub-border);
}

.eta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--hub-text-muted);
}

.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--hub-warning);
  border: 1px solid var(--hub-warning);
  border-radius: var(--hub-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hub-transition);
}

.notify-btn:hover {
  background: var(--hub-warning);
  color: var(--hub-bg);
}

/* ===== Vision Section ===== */
.vision-section {
  padding: 100px 5%;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.05));
}

.vision-content {
  max-width: 1000px;
  margin: 0 auto;
}

.vision-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.vision-description {
  font-size: 1.15rem;
  color: var(--hub-text-secondary);
  line-height: 1.8;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.pillar {
  padding: 30px 20px;
  background: var(--hub-bg-card);
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  transition: var(--hub-transition);
}

.pillar:hover {
  transform: translateY(-5px);
  border-color: var(--hub-primary);
  box-shadow: var(--hub-glow);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  background: var(--hub-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.pillar-icon i {
  font-size: 1.5rem;
  color: white;
}

.pillar h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--hub-text);
}

.pillar p {
  font-size: 0.9rem;
  color: var(--hub-text-muted);
  line-height: 1.5;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 5%;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--hub-text);
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--hub-text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--hub-radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--hub-transition);
}

.social-link.linkedin {
  background: rgba(0, 119, 181, 0.15);
  color: #0077b5;
  border: 1px solid rgba(0, 119, 181, 0.3);
}

.social-link.instagram {
  background: rgba(228, 64, 95, 0.15);
  color: #e4405f;
  border: 1px solid rgba(228, 64, 95, 0.3);
}

.social-link.twitter {
  background: rgba(29, 161, 242, 0.15);
  color: #1da1f2;
  border: 1px solid rgba(29, 161, 242, 0.3);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== Notification Toast ===== */
.notification-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--hub-success);
  color: white;
  padding: 16px 28px;
  border-radius: var(--hub-radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.notification-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notification-toast.hidden {
  display: none;
}

/* ===== Footer ===== */
.footer {
  background: var(--hub-bg);
  border-top: 1px solid var(--hub-border);
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--hub-text);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a,
.footer-links li {
  color: var(--hub-text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--hub-transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--hub-border);
  color: var(--hub-text-muted);
  font-size: 0.9rem;
}

/* ===== Mobile Responsiveness ===== */
@media (max-width: 1024px) {
  .hub-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 5%;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .vision-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .automation-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-title .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .automation-flow-diagram {
    flex-direction: column;
    padding: 30px 20px;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
    font-size: 1.8rem;
    margin: 15px 0;
    opacity: 0.9;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .process-connector {
    transform: rotate(90deg);
    padding: 0;
  }
  
  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .coming-soon-grid {
    grid-template-columns: 1fr;
  }
  
  .vision-pillars {
    grid-template-columns: 1fr;
  }
  
  .automation-header {
    flex-direction: column;
    text-align: center;
  }
  
  .automation-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .control-row {
    flex-direction: column;
    text-align: center;
  }
  
  /* Demo Section Mobile */
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .demo-title {
    font-size: 2rem;
  }
  
  .demo-description {
    font-size: 1rem;
  }
  
  .demo-features-grid {
    gap: 16px;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .automation-stats {
    grid-template-columns: 1fr;
  }
  
  .coming-soon-section {
    margin: 20px 3%;
    padding: 40px 20px;
  }
  
  .automation-card {
    padding: 20px;
  }
}

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

.gradient-text {
  background: var(--hub-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Modal Styles (inherited from home.css) ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.post-modal,
.consent-modal-content {
  background: var(--hub-bg-card);
  border-radius: var(--hub-radius);
  border: 1px solid var(--hub-border);
  max-width: 500px;
  width: 90%;
  padding: 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--hub-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--hub-transition);
}

.modal-close:hover {
  color: var(--hub-text);
}

.prompt-section label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--hub-text);
}

.prompt-section textarea {
  width: 100%;
  padding: 16px;
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-sm);
  color: var(--hub-text);
  font-size: 1rem;
  resize: vertical;
}

.prompt-section textarea:focus {
  outline: none;
  border-color: var(--hub-primary);
}

.modal-footer {
  margin-top: 24px;
}

.generate-post-btn {
  width: 100%;
  padding: 16px;
  background: var(--hub-gradient);
  color: white;
  border: none;
  border-radius: var(--hub-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hub-transition);
}

.generate-post-btn:hover {
  box-shadow: var(--hub-glow);
}

/* Consent Modal */
.consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.consent-modal-content {
  text-align: center;
  max-width: 450px;
}

.consent-icon {
  width: 80px;
  height: 80px;
  background: var(--hub-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.consent-icon i {
  font-size: 2.5rem;
  color: white;
}

.consent-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.consent-description {
  color: var(--hub-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.consent-features {
  margin-bottom: 28px;
}

.consent-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--hub-text-secondary);
}

.consent-feature i {
  color: var(--hub-success);
}

.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.consent-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--hub-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--hub-transition);
  border: none;
}

.consent-accept {
  background: var(--hub-success);
  color: white;
}

.consent-accept:hover {
  background: #059669;
}

.consent-decline {
  background: transparent;
  color: var(--hub-text-secondary);
  border: 1px solid var(--hub-border);
}

.consent-decline:hover {
  background: var(--hub-bg);
}

.consent-note {
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== User Dropdown Styles ===== */
.user-actions {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow-lg);
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--hub-transition);
  z-index: 10000;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--hub-border);
}

.dropdown-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--hub-primary);
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: var(--hub-text);
  font-size: 16px;
  margin-bottom: 4px;
}

.user-email {
  color: var(--hub-text-secondary);
  font-size: 13px;
}

.dropdown-token-section {
  padding: 15px 20px;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid var(--hub-border);
}

.token-balance-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.token-text {
  color: var(--hub-warning);
  font-weight: 600;
  flex: 1;
}

.buy-tokens-btn-small {
  background: var(--hub-primary);
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  color: white;
  cursor: pointer;
  transition: var(--hub-transition);
}

.buy-tokens-btn-small:hover {
  background: var(--hub-primary-dark);
  transform: scale(1.05);
}

.subscription-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subscription-badge {
  background: var(--hub-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.subscription-badge.basic {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.subscription-badge.pro {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.subscription-badge.plus {
  background: var(--hub-gradient);
}

.upgrade-btn-small {
  background: transparent;
  border: 1px solid var(--hub-primary);
  color: var(--hub-primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--hub-transition);
}

.upgrade-btn-small:hover {
  background: var(--hub-primary);
  color: white;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--hub-text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--hub-text);
}

.dropdown-item i {
  width: 18px;
  font-size: 14px;
  color: var(--hub-primary);
}

.dropdown-item.logout {
  color: var(--hub-error);
  border-top: 1px solid var(--hub-border);
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--hub-error);
}

.dropdown-item.logout i {
  color: var(--hub-error);
}

.dropdown-item.admin-link {
  color: var(--hub-warning);
  background: rgba(245, 158, 11, 0.1);
}

.dropdown-item.admin-link:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.dropdown-item.admin-link i {
  color: var(--hub-warning);
}

.dropdown-divider {
  height: 1px;
  background: var(--hub-border);
  margin: 8px 0;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.profile-modal {
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius-lg);
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--hub-border);
}

.modal-header h3 {
  color: var(--hub-text);
  font-size: 1.25rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--hub-text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--hub-text);
}

.modal-body {
  padding: 20px;
}

.profile-section {
  text-align: center;
  margin-bottom: 20px;
}

.user-avatar-large img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--hub-primary);
  margin-bottom: 10px;
}

.profile-section h4 {
  color: var(--hub-text);
  margin-bottom: 5px;
}

.profile-section p {
  color: var(--hub-text-secondary);
}

.token-section, .subscription-section {
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--hub-radius-sm);
  padding: 15px;
  margin-bottom: 15px;
}

.token-section h4, .subscription-section h4 {
  color: var(--hub-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.token-display-large {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 15px;
}

.token-display-large .token-count {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hub-warning);
}

.token-display-large .token-label {
  color: var(--hub-text-secondary);
}

.current-plan {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-badge {
  background: var(--hub-gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.plan-badge.basic {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.plan-badge.pro {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.plan-badge.plus {
  background: var(--hub-gradient);
}

/* ==================== LIGHT THEME FIXES ==================== */
:root:not(.dark) .automation-hub,
body:not(.dark) .automation-hub {
  background: #f8fafc;
}

:root:not(.dark) .automation-flow-diagram,
body:not(.dark) .automation-flow-diagram {
  background: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

:root:not(.dark) .flow-node,
body:not(.dark) .flow-node {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

:root:not(.dark) .flow-node span,
body:not(.dark) .flow-node span {
  color: #1f2937 !important;
}

:root:not(.dark) .flow-arrow,
body:not(.dark) .flow-arrow {
  color: #6366f1 !important;
}

:root:not(.dark) .flow-arrow i,
body:not(.dark) .flow-arrow i {
  color: #6366f1 !important;
}

:root:not(.dark) .hero-title,
body:not(.dark) .hero-title {
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
}

:root:not(.dark) .hero-subtitle,
body:not(.dark) .hero-subtitle {
  color: #4b5563 !important;
}

:root:not(.dark) .hub-header,
body:not(.dark) .hub-header {
  background: rgba(248, 250, 252, 0.95);
}

:root:not(.dark) .section-title,
body:not(.dark) .section-title {
  color: #1f2937 !important;
}

:root:not(.dark) .section-description,
body:not(.dark) .section-description {
  color: #4b5563 !important;
}

:root:not(.dark) .automation-card,
body:not(.dark) .automation-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

:root:not(.dark) .automation-card h3,
body:not(.dark) .automation-card h3 {
  color: #1f2937 !important;
}

:root:not(.dark) .automation-card p,
body:not(.dark) .automation-card p {
  color: #4b5563 !important;
}

:root:not(.dark) .coming-soon-card,
body:not(.dark) .coming-soon-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

:root:not(.dark) .coming-soon-card h3,
body:not(.dark) .coming-soon-card h3 {
  color: #1f2937 !important;
}

:root:not(.dark) .coming-soon-card p,
body:not(.dark) .coming-soon-card p {
  color: #4b5563 !important;
}

/* Mobile light theme improvements */
@media (max-width: 768px) {
  :root:not(.dark) .flow-arrow,
  body:not(.dark) .flow-arrow {
    color: #6366f1 !important;
    font-size: 1.8rem;
    margin: 10px 0;
  }
  
  :root:not(.dark) .flow-arrow i,
  body:not(.dark) .flow-arrow i {
    color: #6366f1 !important;
  }
  
  :root:not(.dark) .automation-flow-diagram,
  body:not(.dark) .automation-flow-diagram {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 15px;
  }
}
