/*
Theme Name: BNPL.AI Domain Landing
Theme URI: https://bnpl.ai
Description: Premium landing page theme for the BNPL.AI domain — For Sale or Lease. Dark fintech aesthetic with animated gradients, glassmorphism cards, and scroll-reveal animations.
Version: 1.0.0
Author: BNPL.AI
Author URI: https://bnpl.ai
License: All Rights Reserved
Text Domain: bnpl-ai
*/

/* ══════════════════════════════════════
   CSS Variables
   ══════════════════════════════════════ */
:root {
  --bg-deep: #04060B;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-1: #00E5A0;
  --accent-2: #00B4FF;
  --accent-3: #7B61FF;
  --text-primary: #F0F2F5;
  --text-secondary: rgba(240, 242, 245, 0.55);
  --text-dim: rgba(240, 242, 245, 0.25);
  --border: rgba(255, 255, 255, 0.06);
  --glow-green: rgba(0, 229, 160, 0.15);
  --glow-blue: rgba(0, 180, 255, 0.12);
}

/* ══════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ══════════════════════════════════════
   Ambient Background
   ══════════════════════════════════════ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-bg .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-bg .orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-green), transparent 70%);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.ambient-bg .orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-blue), transparent 70%);
  top: 30%;
  right: -10%;
  animation-delay: -7s;
}

.ambient-bg .orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.08), transparent 70%);
  bottom: -5%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ══════════════════════════════════════
   Grid Overlay
   ══════════════════════════════════════ */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

/* ══════════════════════════════════════
   Noise Texture
   ══════════════════════════════════════ */
.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════
   Content Wrapper
   ══════════════════════════════════════ */
.site-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ══════════════════════════════════════
   Top Bar / Header
   ══════════════════════════════════════ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  opacity: 0;
  animation: fadeSlideDown 0.8s ease forwards 0.2s;
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-1);
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.15);
  padding: 8px 16px;
  border-radius: 100px;
}

.topbar-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.topbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.topbar-nav a:hover {
  color: var(--text-primary);
}

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

.hero-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-1) 40%, var(--accent-2) 70%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: fadeScaleIn 1s ease forwards 0.4s, gradientShift 8s ease-in-out infinite 1.4s;
}

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

.hero-ext {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 300;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeScaleIn 1s ease forwards 0.55s;
  display: inline;
}

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 32px;
  letter-spacing: -0.3px;
  line-height: 1.5;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.hero-tagline strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-top: 16px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.85s;
}

/* ══════════════════════════════════════
   Status Banner
   ══════════════════════════════════════ */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 60px auto 0;
  padding: 24px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 700px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 1s;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.status-item {
  text-align: center;
}

.status-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.status-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-1);
}

.status-value.blue {
  color: var(--accent-2);
}

.status-value.purple {
  color: var(--accent-3);
}

.status-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ══════════════════════════════════════
   Section Shared Styles
   ══════════════════════════════════════ */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-2);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  letter-spacing: -1px;
  margin-bottom: 64px;
  color: var(--text-primary);
}

/* ══════════════════════════════════════
   Value Proposition Cards
   ══════════════════════════════════════ */
.value-section {
  padding: 100px 0 60px;
}

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

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.value-card:hover {
  border-color: rgba(0, 229, 160, 0.15);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.value-card:hover::before {
  opacity: 1;
}

.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  margin-bottom: 24px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.12);
}

.value-card:nth-child(2) .value-icon {
  background: rgba(0, 180, 255, 0.08);
  border-color: rgba(0, 180, 255, 0.12);
}

.value-card:nth-child(3) .value-icon {
  background: rgba(123, 97, 255, 0.08);
  border-color: rgba(123, 97, 255, 0.12);
}

.value-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.value-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════
   Market Stats
   ══════════════════════════════════════ */
.market-section {
  padding: 60px 0 80px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.market-stat {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}

.market-stat:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.market-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.market-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

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

.usecase-list {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.usecase-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s;
}

.usecase-item:hover {
  border-color: rgba(0, 229, 160, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.usecase-bullet {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent-1);
  flex-shrink: 0;
}

.usecase-item:nth-child(2) .usecase-bullet { background: var(--accent-2); }
.usecase-item:nth-child(3) .usecase-bullet { background: var(--accent-3); }
.usecase-item:nth-child(4) .usecase-bullet { background: #FF6B6B; }
.usecase-item:nth-child(5) .usecase-bullet { background: #FFD93D; }

.usecase-text {
  font-size: 16px;
  font-weight: 500;
  flex: 1;
}

.usecase-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ══════════════════════════════════════
   CTA Section
   ══════════════════════════════════════ */
.cta-section {
  padding: 80px 0 60px;
  text-align: center;
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.04), rgba(0, 180, 255, 0.04), rgba(123, 97, 255, 0.04));
  border: 1px solid rgba(0, 229, 160, 0.1);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-1), var(--accent-2), transparent);
}

.cta-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   Buttons
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), #00C78A);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(0, 229, 160, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 229, 160, 0.35);
  color: var(--bg-deep);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.3s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ══════════════════════════════════════
   Footer
   ══════════════════════════════════════ */
.site-footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-text a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-text a:hover {
  text-decoration: underline;
}

/* ══════════════════════════════════════
   Scroll Reveal (JS-driven states)
   ══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.value-card.reveal:nth-child(1) { transition-delay: 0s; }
.value-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.value-card.reveal:nth-child(3) { transition-delay: 0.2s; }

.market-stat.reveal:nth-child(1) { transition-delay: 0s; }
.market-stat.reveal:nth-child(2) { transition-delay: 0.08s; }
.market-stat.reveal:nth-child(3) { transition-delay: 0.16s; }
.market-stat.reveal:nth-child(4) { transition-delay: 0.24s; }

.usecase-item.reveal:nth-child(1) { transition-delay: 0s; }
.usecase-item.reveal:nth-child(2) { transition-delay: 0.06s; }
.usecase-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.usecase-item.reveal:nth-child(4) { transition-delay: 0.18s; }
.usecase-item.reveal:nth-child(5) { transition-delay: 0.24s; }

/* ══════════════════════════════════════
   Keyframe Animations
   ══════════════════════════════════════ */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ══════════════════════════════════════
   WordPress Admin Bar Fix
   ══════════════════════════════════════ */
body.admin-bar .ambient-bg,
body.admin-bar .grid-overlay,
body.admin-bar .noise {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .ambient-bg,
  body.admin-bar .grid-overlay,
  body.admin-bar .noise {
    top: 46px;
  }
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  .site-content {
    padding: 0 20px;
  }

  .hero-section {
    padding: 60px 0 50px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-banner {
    flex-direction: column;
    gap: 20px;
    padding: 28px 32px;
  }

  .status-divider {
    width: 40px;
    height: 1px;
  }

  .cta-box {
    padding: 40px 28px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .site-header {
    flex-direction: column;
    gap: 16px;
  }

  .topbar-nav {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-number {
    font-size: 26px;
  }

  .usecase-tag {
    display: none;
  }
}
