/* ══════════════════════════════════════════════════════════════
   MAINTLYS — Landing Page Styles
   Architectural Precision Design System
   ══════════════════════════════════════════════════════════════ */

/* ─── Base & Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* ─── Custom Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a1628;
}
::-webkit-scrollbar-thumb {
  background: #1a365d;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* ─── Selection ────────────────────────────────────────────── */
::selection {
  background: rgba(37, 99, 235, 0.25);
  color: inherit;
}

/* ─── Hero Gradient Mesh ───────────────────────────────────── */
.hero-gradient {
  background:
    radial-gradient(ellipse 60% 50% at 15% 45%, rgba(37, 99, 235, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 15%, rgba(59, 130, 246, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 55% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    linear-gradient(165deg, #0a1628 0%, #0f1d32 40%, #152540 70%, #1a365d 100%);
}

/* ─── Blueprint Grid Pattern ──────────────────────────────── */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── Dot Pattern ──────────────────────────────────────────── */
.dot-pattern {
  background-image: radial-gradient(circle, #0a1628 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── Primary Button ───────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
.btn-primary span,
.btn-primary i {
  position: relative;
}

/* ─── Header ───────────────────────────────────────────────── */
#header {
  background: transparent;
  transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
#header.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
#header.scrolled .header-logo-text {
  color: white;
}


/* ─── Metric Cards (Hero) ──────────────────────────────────── */
.metric-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
}

/* ─── Feature Cards ────────────────────────────────────────── */
.feature-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.03);
  border-color: rgba(37, 99, 235, 0.15);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s ease;
}

/* ─── Step Cards ───────────────────────────────────────────── */
.step-card {
  position: relative;
}
.step-number {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.step-icon-ring {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.15));
  border: 2px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.step-card:hover .step-icon-ring {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.25));
  border-color: rgba(37, 99, 235, 0.4);
  transform: scale(1.05);
}

/* ─── Tech Cards ───────────────────────────────────────────── */
.tech-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}
.tech-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ─── Pipeline ─────────────────────────────────────────────── */
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

/* ─── Audience Cards ───────────────────────────────────────── */
.audience-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.35s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}

/* ─── ROI Cards ────────────────────────────────────────────── */
.roi-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
}
.roi-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.roi-bar {
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.roi-bar.animated {
  width: var(--target-width);
}

/* ─── Plan Cards ───────────────────────────────────────────── */
.plan-card {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.04);
  border-radius: 1.25rem;
  transition: all 0.3s ease;
  overflow: visible;
  display: flex;
  flex-direction: column;
}
.plan-card > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.plan-card ul {
  flex: 1;
}
.plan-card a[href="#contact"] {
  margin-top: auto;
}
.plan-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.plan-card-featured {
  border-color: #2563eb;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}
.plan-card-featured:hover {
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq-item {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  transition: all 0.3s ease;
  overflow: hidden;
}
.faq-item:hover {
  border-color: rgba(37, 99, 235, 0.15);
}
.faq-item.active {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.faq-trigger {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #2563eb;
}
.faq-content {
  animation: faqOpen 0.3s ease forwards;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Language Dropdown ────────────────────────────────────── */
#lang-dropdown.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ─── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}

@keyframes pulseSoft {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.05); }
}

/* Scroll animation - elements start hidden */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay support */
.animate-on-scroll[style*="--delay"] {
  transition-delay: var(--delay);
}

/* ─── Product Mockup ───────────────────────────────────────── */
.product-mockup {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-mockup:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0.5deg);
}

/* ─── Problem Cards ────────────────────────────────────────── */
.problem-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.problem-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.problem-card:hover::after {
  transform: scaleX(1);
}

/* ─── ML Timeline ──────────────────────────────────────────── */
.ml-step {
  text-align: center;
  position: relative;
}
.ml-step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  border: 2px solid rgba(37, 99, 235, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  transition: all 0.3s ease;
}
.ml-step:hover .ml-step-number {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  transform: scale(1.1);
}

/* ─── Deploy Timeline ──────────────────────────────────────── */
.deploy-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.35s ease;
  position: relative;
}
.deploy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(37, 99, 235, 0.15);
}
.deploy-phase {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 1rem;
}

/* ─── Form Inputs ──────────────────────────────────────────── */
input, select, textarea {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.875rem;
}
select option {
  background: #0a1628;
  color: white;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .product-mockup {
    transform: none;
  }
  .product-mockup:hover {
    transform: none;
  }
}

@media (max-width: 639px) {
  .hero-gradient {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  h1 {
    font-size: 2.25rem !important;
  }
  h2 {
    font-size: 1.75rem !important;
  }
  .metric-card {
    padding: 0.75rem;
  }
  .metric-card span:first-child {
    font-size: 1.25rem;
  }
}

/* ─── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  .product-mockup {
    transform: none;
  }
}
