/* ==========================================================================
   MindDock - Modern Landing Page Stylesheet
   ========================================================================== */

:root {
  --bg-dark: #0A0B0E;
  --bg-card: #13151C;
  --bg-card-hover: #1A1D26;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(94, 106, 210, 0.4);
  
  --primary: #5E6AD2;
  --primary-hover: #727DE3;
  --accent-pink: #EC4899;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;

  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-glow: 0 0 50px rgba(94, 106, 210, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Radial Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 20% 20%, rgba(94, 106, 210, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, #A5B4FC 0%, #6366F1 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 11, 14, 0.8);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4F46E5 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(94, 106, 210, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(94, 106, 210, 0.5);
  background: linear-gradient(135deg, var(--primary-hover) 0%, #6366F1 100%);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.lang-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--primary);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(94, 106, 210, 0.12);
  border: 1px solid rgba(94, 106, 210, 0.3);
  color: #A5B4FC;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 36px;
}

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

.hero-highlights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Interactive App Showcase Window */
.preview-section {
  padding: 20px 0 80px;
}

.window-frame {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-glow), 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.mode-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.mode-btn {
  padding: 4px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn.active {
  background: var(--primary);
  color: #fff;
}

.window-body {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.preview-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Feature Cards Grid */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: all 0.25s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(94, 106, 210, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Comparison Table Section */
.comparison-section {
  padding: 80px 0;
}

.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.compare-table th {
  background: rgba(0, 0, 0, 0.3);
  font-weight: 700;
  color: var(--text-main);
}

.compare-table th.highlight-header {
  background: rgba(94, 106, 210, 0.15);
  color: #A5B4FC;
  border-top: 2px solid var(--primary);
}

.compare-table td.highlight-cell {
  background: rgba(94, 106, 210, 0.05);
  font-weight: 600;
}

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

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

/* Personas / Use Cases */
.personas-section {
  padding: 60px 0 80px;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.persona-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(94, 106, 210, 0.04) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(94, 106, 210, 0.25);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-pink) 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 16px 0;
}

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

.feature-list {
  list-style: none;
  margin: 24px 0 32px;
  flex-grow: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-section {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 24px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.2s;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================================
   Scroll Reveal Animations & Micro-Interactions
   ========================================================================== */

/* Reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active visible state */
.reveal.is-visible,
.reveal-fade.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays for Grid Items */
.grid-3 > *:nth-child(1) { transition-delay: 0.05s; }
.grid-3 > *:nth-child(2) { transition-delay: 0.15s; }
.grid-3 > *:nth-child(3) { transition-delay: 0.25s; }
.grid-3 > *:nth-child(4) { transition-delay: 0.10s; }
.grid-3 > *:nth-child(5) { transition-delay: 0.20s; }
.grid-3 > *:nth-child(6) { transition-delay: 0.30s; }

/* Micro-Interaction Hover Enhancements */
.feature-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 32px -8px rgba(94, 106, 210, 0.25);
  border-color: rgba(94, 106, 210, 0.5);
}

.feature-icon {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-4deg);
}

.pricing-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(94, 106, 210, 0.7);
  box-shadow: 0 16px 40px rgba(94, 106, 210, 0.35);
}

.pricing-card:hover .btn-glass {
  background: rgba(94, 106, 210, 0.25);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(94, 106, 210, 0.3);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 50px rgba(94, 106, 210, 0.5);
}

/* Dim non-hovered card when hovering over the pricing grid */
.pricing-grid:hover .pricing-card:not(:hover) {
  opacity: 0.75;
}

/* Active Nav Indicator */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Floating Back-to-Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(19, 21, 28, 0.85);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(94, 106, 210, 0.4);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
