/* MCP-1C Landing Page — Custom Overrides */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Inter font fine-tuning */
body {
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation blur backdrop */
.nav-blur {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

/* Hero gradient animation */
.hero-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #1d4ed8 40%, #10B981 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Animated hero background orbs ===== */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
  animation: heroFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2563EB, transparent 70%);
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #10B981, transparent 70%);
  bottom: -150px;
  right: -100px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #6366F1, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -13s;
}

.hero-orb-4 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #f59e0b, transparent 70%);
  top: -50px;
  right: 25%;
  animation-delay: -4s;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20%      { transform: translate(80px, -60px) scale(1.1); }
  40%      { transform: translate(-60px, 40px) scale(0.9); }
  60%      { transform: translate(100px, 60px) scale(1.05); }
  80%      { transform: translate(-40px, -80px) scale(0.95); }
}

/* Orb-3 needs special handling because it uses transform for centering */
.hero-orb-3 {
  animation-name: heroFloatCenter;
}

@keyframes heroFloatCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  20%      { transform: translate(calc(-50% + 80px), calc(-50% - 60px)) scale(1.1); }
  40%      { transform: translate(calc(-50% - 60px), calc(-50% + 40px)) scale(0.9); }
  60%      { transform: translate(calc(-50% + 100px), calc(-50% + 60px)) scale(1.05); }
  80%      { transform: translate(calc(-50% - 40px), calc(-50% - 80px)) scale(0.95); }
}

/* Dark mode: brighter orbs */
.dark .hero-orb {
  opacity: 0.5;
}

/* Table cell borders — vertical + horizontal separators */
.table-wrap table td,
.table-wrap table th {
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.table-wrap table td:last-child,
.table-wrap table th:last-child {
  border-right: none;
}
.dark .table-wrap table td,
.dark .table-wrap table th {
  border-right-color: #334155;
  border-bottom-color: #334155;
}

/* Dark mode: code blocks INSIDE cards — darker to contrast with card bg.
   Uses .card-code-dark marker class on parent cards. */
.dark .card-code-dark .code-block {
  background-color: #0f172a !important; /* slate-950 */
}

/* Subtle grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  opacity: 0;
}

/* Grid only visible in dark mode */
.dark .hero-grid {
  opacity: 1;
}

/* Light mode: subtler grid with gray tones */
.hero-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.dark .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-orb {
    animation: none;
  }
}

/* Feature card hover */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}

/* Pricing card highlight */
.pricing-highlight {
  position: relative;
  border: 2px solid #2563EB;
  box-shadow: 0 8px 32px -8px rgba(37, 99, 235, 0.2);
}

/* No top gradient bar — clean border only */

/* Terminal mockup */
.terminal {
  background: #1E293B;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.3);
}

.terminal-header {
  background: #334155;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.terminal-body {
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.terminal-body .prompt {
  color: #10B981;
}

.terminal-body .comment {
  color: #64748b;
}

.terminal-body .string {
  color: #fbbf24;
}

.terminal-body .keyword {
  color: #818cf8;
}

/* Checkmark and dash icons in tables */
.check-icon {
  color: #10B981;
}

.dash-icon {
  color: #cbd5e1;
}

/* FAQ accordion — grid trick for smooth animation */
.faq-grid {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-grid.faq-open {
  grid-template-rows: 1fr;
}

.faq-grid > .faq-inner {
  overflow: hidden;
}

/* Social proof counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-stat {
  animation: countUp 0.6s ease forwards;
}

/* Badge styles */
.badge-community {
  background: #dbeafe;
  color: #1e40af;
}

.badge-advanced {
  background: #d1fae5;
  color: #065f46;
}

.badge-pro {
  background: #fef3c7;
  color: #92400e;
}

.badge-enterprise {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-soon {
  background: #f1f5f9;
  color: #64748b;
}

/* Sticky pricing header on mobile scroll */
@media (max-width: 768px) {
  .pricing-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-table-wrap table {
    min-width: 640px;
  }

  .pricing-table-wrap th:first-child,
  .pricing-table-wrap td:first-child {
    position: sticky;
    left: 0;
    background: white;
    z-index: 1;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
  }
}

/* Pulse animation for CTA */
.cta-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* Step connector line */
/* Step cards — no connector lines, numbered steps are self-explanatory */

/* ===== Dark Mode ===== */

/* Smooth transition for theme switching */
html.dark {
  color-scheme: dark;
}

html, body, nav, main, footer, section, div, header, aside {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Dark mode sticky pricing first-column override */
@media (max-width: 768px) {
  .dark .pricing-table-wrap th:first-child,
  .dark .pricing-table-wrap td:first-child {
    background: #1e293b;
  }
}

/* Dark mode cookie banner override */
.dark #cookie-banner > div {
  background: #1e293b !important;
  border-color: #334155 !important;
}
.dark #cookie-banner p {
  color: #cbd5e1 !important;
}
.dark #cb-necessary {
  background: #334155 !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}
.dark #cb-settings-btn {
  color: #94a3b8 !important;
}
.dark #cb-settings-panel {
  border-color: #334155 !important;
}
.dark #cb-settings-panel label {
  color: #cbd5e1 !important;
}

/* Feature toggle animations */
.features-collapsed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out, margin-top 0.3s ease-out;
}
.features-expanded {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.3s ease-in, opacity 0.2s 0.05s ease-in, margin-top 0.3s ease-in;
}
.features-expanded.grid {
  margin-top: 2rem;
}
.chevron-rotate {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Dark mode section separators */
.dark section + section {
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

/* Prevent double borders on nested sections */
.dark section section + section {
  border-top: none;
}
