/* ==========================================================================
   lejurist - Reverse-Engineered Stripe.com/fr Design System & Photographic Bento
   Exact Visual Craft, High-Resolution Real Imagery, Aurora Ribbon & Micro-interactions
   ========================================================================== */

:root {
  --stripe-blurple: #635bff;
  --stripe-blue: #2563eb;
  --stripe-blue-hover: #1d4ed8;
  --stripe-dark: #0a2540;
  --stripe-dark-card: #0d2f53;
  --stripe-text: #425466;
  --stripe-text-dark: #0a2540;
  --stripe-bg-light: #f6f9fc;
  --stripe-cyan: #00d4ff;
  --stripe-teal: #20c997;
  --stripe-amber: #f59e0b;
  --stripe-magenta: #ff5277;
  --stripe-border: #e6ebf1;
  --stripe-shadow-sm: 0 2px 4px rgba(50,50,93,0.1), 0 1px 2px rgba(0,0,0,0.08);
  --stripe-shadow-md: 0 13px 27px -5px rgba(50,50,93,0.25), 0 8px 16px -8px rgba(0,0,0,0.3);
  --stripe-shadow-lg: 0 30px 60px -12px rgba(50,50,93,0.25), 0 18px 36px -18px rgba(0,0,0,0.3);
  --stripe-shadow-card: 0 50px 100px -20px rgba(50,50,93,0.2), 0 30px 60px -30px rgba(0,0,0,0.25);
}

/* Base Reset & Stripe Söhne / Inter Typographic Feel */
html {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Cairo', 'Tajawal';
  color: var(--stripe-text);
  background-color: #ffffff;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

/* Stripe Animated Aurora Mesh Background */
.stripe-gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(150deg, #fdfbf7 0%, #ffffff 35%, #f6f9fc 100%);
}

.stripe-gradient-mesh::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 950px;
  height: 750px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.28) 0%, rgba(0, 212, 255, 0.22) 35%, rgba(255, 82, 119, 0.16) 65%, transparent 75%);
  filter: blur(80px);
  animation: aurora-float-1 12s infinite alternate ease-in-out;
}

.stripe-gradient-mesh::after {
  content: '';
  position: absolute;
  top: 10%;
  left: -12%;
  width: 850px;
  height: 650px;
  background: radial-gradient(circle at 50% 50%, rgba(99, 91, 255, 0.22) 0%, rgba(245, 158, 11, 0.15) 40%, transparent 70%);
  filter: blur(90px);
  animation: aurora-float-2 16s infinite alternate ease-in-out;
}

@keyframes aurora-float-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-60px, 40px) scale(1.1) rotate(6deg); }
  100% { transform: translate(30px, -30px) scale(0.95) rotate(-3deg); }
}

@keyframes aurora-float-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -50px) scale(1.08); }
  100% { transform: translate(-40px, 30px) scale(0.92); }
}

/* Stripe Signature Buttons */
.btn-stripe-primary {
  background-color: var(--stripe-blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  padding: 12px 24px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.25), 0 2px 4px -1px rgba(37, 99, 235, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-stripe-primary:hover {
  background-color: var(--stripe-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -5px rgba(37, 99, 235, 0.4), 0 6px 12px -5px rgba(37, 99, 235, 0.25);
}
.btn-stripe-primary:active {
  transform: translateY(0);
}

.btn-stripe-dark {
  background-color: var(--stripe-dark);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(10, 37, 64, 0.15);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-stripe-dark:hover {
  background-color: #1a3b5c;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.25);
}

.btn-stripe-link {
  color: var(--stripe-blue);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-stripe-link:hover {
  color: var(--stripe-dark);
  gap: 10px;
}

/* High-End Real Photography Bento Cards */
.bento-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(230, 235, 241, 0.9);
  background-color: #ffffff;
  box-shadow: var(--stripe-shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--stripe-shadow-lg);
  border-color: #bfdbfe;
}
.bento-photo-card .bento-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.bento-photo-card .bento-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-photo-card:hover .bento-image-wrapper img {
  transform: scale(1.06);
}

/* Glassmorphic floating badges over real photos */
.glass-pill-badge {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--stripe-dark);
}

/* Hero Cinematic Composite */
.hero-photo-cinematic {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 90px -15px rgba(10, 37, 64, 0.28), 0 25px 50px -20px rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.hero-photo-cinematic img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}
.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.1) 0%, rgba(10, 37, 64, 0.75) 100%);
  pointer-events: none;
}

/* Stripe Dark Section */
.stripe-dark-section {
  background-color: var(--stripe-dark);
  color: #adbdcc;
  position: relative;
  overflow: hidden;
}

.stripe-dark-card {
  background: var(--stripe-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Eyebrow Label */
.stripe-eyebrow {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stripe-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Custom Stripe Pill Badge */
.stripe-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--stripe-border);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--stripe-dark);
  box-shadow: var(--stripe-shadow-sm);
  transition: all 0.2s ease;
}
.stripe-pill:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(50,50,93,0.12);
  transform: translateY(-1px);
}

/* Code Highlighting in Terminal */
.code-kw { color: #ff70a6; font-weight: 700; }
.code-fn { color: #00d4ff; }
.code-str { color: #79ffe1; }
.code-comment { color: #718096; font-style: italic; }
.code-num { color: #ffd166; }

/* ==========================================================================
   Continuous Infinite Moving Marquee Ticker (Partner Logos Bar)
   ========================================================================== */
@keyframes ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
  user-select: none;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f6f9fc, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f6f9fc, transparent);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: ticker-scroll 24s linear infinite;
  will-change: transform;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 900;
  color: #0a2540;
  font-size: 0.875rem;
  letter-spacing: -0.025em;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.marquee-item:hover {
  opacity: 1;
  transform: translateY(-1px);
}
