@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Roboto:wght@300;400;500;700&display=swap');

/* ============================================================
   AIPERMIND OFFICIAL BRAND DESIGN SYSTEM
   Palette:
   - Obsidian Black: #0A0E1A (Base Dark & High Contrast)
   - Obsidian Card:  #121829 (Card Background)
   - Obsidian Border:#1F293D (Borders)
   - Neon Orange:    #F27121 (Primary CTA & Conversion Action)
   - Orange Hover:   #D95D12
   - Razzmatazz Red: #E94057 (Risk, Sunk Costs & Friction)
   - Lagoon Blue:    #06B6D4 (World Model, Simulation & Tech)
   - Royal Blue:     #3B82F6 (Strategy & Auditable Decisions)
   Typography:
   - Primary Serif:  Playfair Display
   - Sans:           Plus Jakarta Sans & Roboto
   - Mono:           JetBrains Mono
   ============================================================ */

:root {
  --bg-main: #0A0E1A;
  --bg-card: rgba(18, 24, 41, 0.78);
  --bg-card-hover: rgba(26, 35, 60, 0.92);
  --border-subtle: #1F293D;
  --border-glow: rgba(242, 113, 33, 0.35);
  --primary: #F27121;
  --primary-hover: #D95D12;
  --primary-glow: rgba(242, 113, 33, 0.3);
  --accent-cyan: #06B6D4;
  --accent-red: #E94057;
  --accent-blue: #3B82F6;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif: 'Playfair Display', serif;
}

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

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow background layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 18% 15%, rgba(242, 113, 33, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 82% 25%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(233, 64, 87, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
  background: linear-gradient(135deg, #ff853a 0%, #F27121 55%, #D95D12 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(242, 113, 33, 0.3);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 0 24px -4px var(--primary-glow);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #F27121 0%, #E05D0D 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  box-shadow: 0 4px 18px 0 rgba(242, 113, 33, 0.38);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(242, 113, 33, 0.58);
  background: linear-gradient(135deg, #ff853a 0%, #D95D12 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Badge styles */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: #06B6D4;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F27121;
  box-shadow: 0 0 8px #F27121;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 113, 33, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(242, 113, 33, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(242, 113, 33, 0); }
}

/* Interactive slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F27121;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(242, 113, 33, 0.7);
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Accordion details */
details summary::-webkit-details-marker {
  display: none;
}

details summary {
  list-style: none;
  cursor: pointer;
}

/* Modal styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #121829;
  border: 1px solid #1F293D;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(242, 113, 33, 0.2);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-box::-webkit-scrollbar {
  width: 6px;
}
.modal-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.modal-box::-webkit-scrollbar-thumb {
  background: rgba(242, 113, 33, 0.4);
  border-radius: 3px;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}

/* Scroll reveal helper */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TRUSTED CLIENT LOGOS MARQUEE
   ============================================================ */
.trusted-logos-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  user-select: none;
  padding: 0.5rem 0;
}

.trusted-logos-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scrollMarquee 42s linear infinite;
}

.trusted-logos-marquee:hover .trusted-logos-track {
  animation-play-state: paused;
}

.trusted-logos-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
  flex-shrink: 0;
}

.trusted-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.75rem; /* 60px */
  min-width: 145px;
  max-width: 185px;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trusted-logo:hover {
  background: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(242, 113, 33, 0.45);
  box-shadow: 0 10px 22px -2px rgba(242, 113, 33, 0.2);
}

.trusted-logo img {
  max-height: 2.1rem; /* ~33px */
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .trusted-logo {
    height: 3.25rem;
    min-width: 125px;
    padding: 0.4rem 1rem;
    border-radius: 10px;
  }
  .trusted-logo img {
    max-height: 1.75rem;
  }
  .trusted-logos-group {
    gap: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   PLATFORM SHOWCASE & SCREENSHOT LIGHTBOX
   ============================================================ */
.platform-macro-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.platform-macro-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.platform-macro-btn.active[data-macro-phase="phase1"] {
  background: rgba(242, 113, 33, 0.12);
  border-color: rgba(242, 113, 33, 0.5);
  box-shadow: 0 0 30px -5px rgba(242, 113, 33, 0.25);
}

.platform-macro-btn.active[data-macro-phase="phase1"] .macro-num {
  background: rgba(242, 113, 33, 0.25);
  color: #F27121;
  border-color: rgba(242, 113, 33, 0.5);
}

.platform-macro-btn.active[data-macro-phase="phase2"] {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 30px -5px rgba(14, 165, 233, 0.25);
}

.platform-macro-btn.active[data-macro-phase="phase2"] .macro-num {
  background: rgba(14, 165, 233, 0.25);
  color: #0EA5E9;
  border-color: rgba(14, 165, 233, 0.5);
}

.platform-macro-btn.active[data-macro-phase="phase3"] {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 30px -5px rgba(99, 102, 241, 0.25);
}

.platform-macro-btn.active[data-macro-phase="phase3"] .macro-num {
  background: rgba(99, 102, 241, 0.25);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.5);
}

.platform-tab-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-tab-btn.active {
  background: rgba(242, 113, 33, 0.12);
  border-color: rgba(242, 113, 33, 0.5);
  box-shadow: 0 0 25px -5px rgba(242, 113, 33, 0.25);
}

.platform-tab-btn.active .platform-tab-icon {
  background: rgba(242, 113, 33, 0.2);
  color: #F27121;
  border-color: rgba(242, 113, 33, 0.4);
}

.platform-tab-btn.active .platform-tab-title {
  color: #ffffff;
}

/* Cyan accent for phase 2 sub-tabs when active */
[data-active-macro="phase2"] .platform-tab-btn.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 0 25px -5px rgba(14, 165, 233, 0.25);
}
[data-active-macro="phase2"] .platform-tab-btn.active .platform-tab-icon {
  background: rgba(14, 165, 233, 0.2);
  color: #0EA5E9;
  border-color: rgba(14, 165, 233, 0.4);
}

/* Indigo accent for phase 3 sub-tabs when active */
[data-active-macro="phase3"] .platform-tab-btn.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.25);
}
[data-active-macro="phase3"] .platform-tab-btn.active .platform-tab-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.4);
}

.platform-subtab-btn {
  transition: all 0.2s ease;
}

.platform-subtab-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.platform-screen-frame {
  position: relative;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(242, 113, 33, 0.08);
}

.platform-screen-img-container {
  position: relative;
  overflow: hidden;
  background: #080c16;
  cursor: zoom-in;
}

.platform-screen-img-container img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.platform-screen-img-container:hover img {
  transform: scale(1.015);
}

/* Lightbox Modal */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
}

.screenshot-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.screenshot-lightbox-box {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #0d1220;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.95), 0 0 45px rgba(242, 113, 33, 0.2);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-lightbox.active .screenshot-lightbox-box {
  transform: scale(1);
}

.screenshot-lightbox-content {
  overflow: auto;
  max-height: calc(92vh - 65px);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080c16;
}

.screenshot-lightbox-content img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}




