@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f7f7f6;
  --surface-hover: #f3f1ef;
  --border: rgba(20, 20, 20, 0.09);
  --border-hover: rgba(83, 53, 39, 0.35);

  --brand: #533527;
  --brand-hover: #3f271c;
  --brand-soft: rgba(83, 53, 39, 0.07);
  --amber: #d97706;
  --amber-light: #b45309;
  --emerald: #059669;
  --violet: #6d28d9;

  --text-main: #141414;
  --text-muted: #5d626b;
  --text-subtle: #787d87;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
}

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

/* Subtle BarberFlow-style micro-dot matrix background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(83, 53, 39, 0.16) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 35%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 35%, rgba(0, 0, 0, 0.25) 80%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Soft warm ambient light at top */
.ambient-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 40% at 50% 0%, rgba(83, 53, 39, 0.05) 0%, transparent 70%),
    radial-gradient(circle 500px at 85% 30%, rgba(217, 119, 6, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container with generous margins */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

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

/* Crisp elevated cards */
.clean-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.03);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.clean-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -16px rgba(83, 53, 39, 0.12), 0 4px 12px rgba(20, 20, 20, 0.04);
}

/* Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-live {
  background: rgba(5, 150, 105, 0.09);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.22);
}

.badge-soon {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Primary Espresso Button (BarberFlow style) */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(83, 53, 39, 0.18);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-gold:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(83, 53, 39, 0.28);
}

.btn-gold:active {
  transform: scale(0.98);
}

/* Secondary Clean Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ghost:hover {
  background-color: var(--surface-muted);
  border-color: rgba(83, 53, 39, 0.25);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: scale(0.98);
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

/* Logo clean presentation on light theme */
.logo-glow-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-glow-wrap:hover {
  opacity: 0.85;
}

/* BarberFlow-style smooth entrance & scroll reveal animations */
@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.animate-hero-1 {
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-hero-2 {
  opacity: 0;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}
.animate-hero-3 {
  opacity: 0;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}
.animate-hero-4 {
  opacity: 0;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s forwards;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .animate-hero-1, .animate-hero-2, .animate-hero-3, .animate-hero-4, .reveal-on-scroll {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
}
