/* ================================================
   Vrai Bien Landing Page - Premium Design System
   ================================================ */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Design Tokens */
:root {
  /* Colors */
  --color-primary: #2A4849;
  --color-primary-light: #3E6667;
  --color-primary-dark: #1A3031;
  --color-secondary: #D4AF37;
  --color-secondary-light: #E5C55D;
  --color-secondary-dark: #AA8C2C;
  --color-background: #0F1A1B;
  --color-surface: rgba(30, 40, 40, 0.7);
  --color-glass: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.1);
  --color-text: #FFFFFF;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-subtle: rgba(255, 255, 255, 0.5);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing (8pt grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Background Effects */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(42, 72, 73, 0.4), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 175, 55, 0.1), transparent),
    var(--color-background);
}

/* Glass Card */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-xl);
}

/* ================================================
   Navigation
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-2) 0;
  transition: background var(--transition-base);
}

.nav.scrolled {
  background: rgba(15, 26, 27, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-glass-border);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  text-decoration: none;
  color: var(--color-text);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.nav-logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--color-secondary);
  color: var(--color-background);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

.nav-cta:hover {
  background: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-12) 0 var(--space-8);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 480px;
}

.hero-title .highlight,
.hero-subtitle .highlight {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-background);
}

.btn-primary:hover {
  background: var(--color-secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: var(--color-glass);
  color: var(--color-text);
  border: 1px solid var(--color-glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn svg {
  width: 20px;
  height: 20px;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App Screenshot */
/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  background: linear-gradient(145deg, #1a2a2b, #0d1516);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--color-background);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-content-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Elements */
.floating-card {
  position: absolute;
  animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
  top: 10%;
  right: -20%;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  left: -15%;
  animation-delay: -3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.stat-card {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card svg {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

.stat-card-content strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
}

.stat-card-content span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ================================================
   Features Section
   ================================================ */
.features {
  padding: var(--space-12) 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.feature-card {
  padding: var(--space-4);
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ================================================
   How It Works Section
   ================================================ */
.how-it-works {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, transparent, rgba(42, 72, 73, 0.1), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-glass-border), var(--color-secondary), var(--color-glass-border), transparent);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--color-background);
  border: 2px solid var(--color-secondary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.step-description {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ================================================
   CTA Section
   ================================================ */
.cta {
  padding: var(--space-12) 0;
}

.cta-card {
  padding: var(--space-8);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(42, 72, 73, 0.5), rgba(15, 26, 27, 0.8)),
    radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.15), transparent 60%);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.cta-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

/* ================================================
   Footer
   ================================================ */
.footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer-logo span {
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-text-subtle);
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    width: 240px;
    height: 500px;
    /* Conserving aspect ratio roughly */
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .nav-logo span {
    display: none;
  }
}

/* Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
  }

  .fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .delay-1 {
    animation-delay: 0.1s;
  }

  .delay-2 {
    animation-delay: 0.2s;
  }

  .delay-3 {
    animation-delay: 0.3s;
  }

  .delay-4 {
    animation-delay: 0.4s;
  }
}