/* ==========================================================================
   AI MicroMind Official Design System - MicroMind Connect (Master Revision)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #070912;
  --bg-card: rgba(14, 19, 36, 0.75);
  --bg-card-hover: rgba(22, 30, 56, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.035);

  /* Official AI MicroMind Brand Identity */
  --brand-yellow: #f6eb0f;
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-yellow: rgba(246, 235, 15, 0.35);
  --border-cyan: rgba(0, 242, 254, 0.35);

  --shadow-yellow: 0 4px 30px rgba(246, 235, 15, 0.25);
  --shadow-glow: 0 0 50px rgba(0, 242, 254, 0.18);
  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.65);

  --radius-2xl: 24px;
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Glow Blobs */
body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(246, 235, 15, 0.07) 0%, transparent 65%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-yellow); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(7, 9, 18, 0.85);
  border-bottom: 1px solid var(--border-glass);
  padding: 14px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.official-logo-svg {
  height: 32px;
  width: auto;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin-left: 20px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-yellow);
  background: rgba(246, 235, 15, 0.12);
  border: 1px solid rgba(246, 235, 15, 0.3);
  box-shadow: 0 2px 15px rgba(246, 235, 15, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto; /* Push to extreme right edge */
}

/* Buttons */
.btn-yellow {
  background: var(--brand-yellow);
  color: #000;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-yellow:hover {
  transform: translateY(-2px);
  background: #fffb4d;
  box-shadow: 0 6px 35px rgba(246, 235, 15, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.btn-meta {
  background: linear-gradient(135deg, #1877F2, #0052b4);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-meta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

/* Hero Section */
.hero {
  padding: 85px 0 50px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 235, 15, 0.08);
  color: var(--brand-yellow);
  border: 1px solid rgba(246, 235, 15, 0.25);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.brand-yellow-accent { color: var(--brand-yellow); }

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

/* Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: var(--border-yellow);
  background: rgba(246, 235, 15, 0.04);
  box-shadow: var(--shadow-yellow);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card), var(--shadow-yellow);
}

.plan-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.plan-badge.starter { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); }
.plan-badge.popular { background: rgba(246, 235, 15, 0.15); color: var(--brand-yellow); border: 1px solid var(--border-yellow); }
.plan-badge.enterprise { background: rgba(0, 242, 254, 0.15); color: var(--accent-cyan); border: 1px solid var(--border-cyan); }

.plan-price {
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  margin: 10px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-features-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-features-list li.check { color: var(--text-primary); }
.plan-features-list li.check strong { color: var(--brand-yellow); }
.plan-features-list li.cross { color: var(--text-muted); opacity: 0.6; text-decoration: line-through; }

.check-icon {
  color: var(--accent-emerald);
  font-weight: 900;
}

.cross-icon {
  color: var(--text-muted);
}

/* Cycle Console & Test Suite */
.cycle-console {
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  padding: 32px;
  margin-bottom: 60px;
}

.cycle-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.step-card {
  background: rgba(20, 26, 44, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.step-card.active { border-color: var(--brand-yellow); background: rgba(246, 235, 15, 0.08); }
.step-card.completed { border-color: var(--accent-emerald); background: rgba(16, 185, 129, 0.08); }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  margin: 0 auto 10px;
}

.step-card.active .step-num { background: var(--brand-yellow); color: #000; }
.step-card.completed .step-num { background: var(--accent-emerald); color: #fff; }
.step-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 2px; }
.step-status { font-size: 0.75rem; color: var(--text-muted); }

/* Terminal Log Box */
.terminal-box {
  background: #04060c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  font-family: 'Consolas', monospace;
  font-size: 0.85rem;
  color: #00f2fe;
  height: 200px;
  overflow-y: auto;
  text-align: left;
}

.terminal-line { margin-bottom: 4px; }
.terminal-line.success { color: var(--accent-emerald); }
.terminal-line.warning { color: var(--brand-yellow); }

/* Shared Inbox Workspace */
.inbox-mockup {
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  height: 600px;
}

.inbox-sidebar { border-right: 1px solid var(--border-glass); background: rgba(12, 16, 28, 0.8); display: flex; flex-direction: column; }
.sidebar-header { padding: 18px; border-bottom: 1px solid var(--border-glass); font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.chat-list { overflow-y: auto; flex: 1; }
.chat-item { padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.03); display: flex; align-items: center; gap: 12px; cursor: pointer; }
.chat-item:hover, .chat-item.active { background: rgba(246, 235, 15, 0.08); }
.chat-item.active { border-left: 3px solid var(--brand-yellow); }

.avatar { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; font-size: 0.9rem; flex-shrink: 0; }
.chat-info { flex: 1; min-width: 0; }
.chat-name { font-weight: 700; font-size: 0.9rem; display: flex; justify-content: space-between; margin-bottom: 2px; }
.chat-time { font-size: 0.75rem; color: var(--text-muted); }
.chat-preview { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-main { display: flex; flex-direction: column; background: rgba(6, 8, 16, 0.95); }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; background: rgba(14, 18, 32, 0.6); }
.chat-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }

.msg { max-width: 72%; padding: 10px 16px; border-radius: 14px; font-size: 0.9rem; }
.msg-in { align-self: flex-start; background: rgba(26, 34, 54, 0.9); color: #fff; border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: linear-gradient(135deg, #0284c7, #2563eb); color: #fff; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); margin-top: 4px; text-align: right; }

.chat-footer { padding: 14px 20px; border-top: 1px solid var(--border-glass); display: flex; gap: 10px; background: rgba(14, 18, 32, 0.6); }
.chat-input { flex: 1; background: rgba(24, 32, 52, 0.8); border: 1px solid var(--border-glass); border-radius: 30px; padding: 10px 18px; color: #fff; outline: none; font-size: 0.9rem; }

.inbox-details { border-left: 1px solid var(--border-glass); background: rgba(12, 16, 28, 0.8); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.detail-card { background: rgba(20, 27, 46, 0.5); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 14px; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-2xl); padding: 32px; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-yellow); box-shadow: var(--shadow-yellow); }

/* Modal Box & Dialog Overlays */
.modal-overlay { 
  position: fixed; 
  top: 0; left: 0; 
  width: 100vw; height: 100vh; 
  background: rgba(4, 6, 12, 0.85); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px);
  display: none; 
  align-items: center; 
  justify-content: center; 
  z-index: 99999; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.25s ease; 
}
.modal-overlay.active,
.modal-overlay.open { 
  display: flex !important; 
  opacity: 1 !important; 
  pointer-events: auto !important; 
  visibility: visible !important;
}
.modal-box { background: rgba(14, 19, 36, 0.95); border: 1px solid var(--border-yellow); border-radius: var(--radius-2xl); width: 90%; max-width: 460px; padding: 32px; box-shadow: var(--shadow-card); text-align: center; position: relative; }
.close-modal { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }

/* Footer */
footer { border-top: 1px solid var(--border-glass); padding: 40px 0; margin-top: 80px; background: rgba(4, 6, 12, 0.95); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand-yellow); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.75rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cycle-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .inbox-mockup { grid-template-columns: 1fr; }
  .inbox-sidebar, .inbox-details { display: none; }
  .features-grid { grid-template-columns: 1fr; }
}
