@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..800;1,9..144,300..700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', Menlo, monospace;
  
  --bg-canvas: #F8F7F4;
  --bg-card: #FFFFFF;
  --bg-subtle: #F2EFE9;
  --bg-card-tint: #FAF9F6;
  
  --text-primary: #141416;
  --text-secondary: #4A4A52;
  --text-tertiary: #737380;
  
  --border-subtle: #E6E3DB;
  --border-card: rgba(20, 20, 22, 0.08);
  
  --accent-emerald: #059669;
  --accent-emerald-bg: #ECFDF5;
  --accent-blue: #2563EB;
  --accent-blue-bg: #EFF6FF;
  --accent-purple: #7C3AED;
  --accent-purple-bg: #F5F3FF;
  --accent-amber: #D97706;
  --accent-amber-bg: #FFFBEB;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  letter-spacing: -0.012em;
}

body {
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  width: 100%;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif-editorial {
  font-family: var(--font-serif);
  font-weight: 400;
}

.font-mono-spec {
  font-family: var(--font-mono);
}

/* Ambient noise / texture & gradients */
.bg-canvas-pattern {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(rgba(20, 20, 22, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

/* Navigation Animated Links */
.nav-link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: #52525b;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #18181b;
  border-radius: 999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #18181b;
}

.nav-link:hover::after {
  width: 100%;
}

/* Unique card hover & micro-interactions */
.bespoke-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 6px 16px -4px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.bespoke-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.07), 0 6px 14px -2px rgba(0, 0, 0, 0.03);
  border-color: rgba(20, 20, 22, 0.18);
}

/* FAQ Accordion Styling */
.faq-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
  overflow: hidden;
}

.faq-card.is-open,
.faq-card[open] {
  border-color: rgba(20, 20, 22, 0.22);
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.faq-card summary {
  outline: none;
  cursor: pointer;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card .faq-content {
  overflow: hidden;
  will-change: height, opacity;
}

.faq-chevron {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.faq-card.is-open .faq-chevron {
  transform: rotate(180deg);
  background-color: #18181b;
  color: #ffffff;
}

/* Custom button styles with responsive tactile feedback */
.btn-magnetic {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
}

.btn-magnetic:active {
  transform: translateY(0px) scale(0.97);
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Interactive Animated Links */
.link-hover-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-hover-underline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: currentColor;
  border-radius: 999px;
  transition: width 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-hover-underline:hover::after {
  width: 100%;
}

/* Arrow Icon Hover Transitions */
.arrow-right {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-magnetic:hover .arrow-right,
.group:hover .arrow-right,
button:hover .arrow-right,
a:hover .arrow-right {
  transform: translateX(4px);
}

.arrow-diagonal {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-magnetic:hover .arrow-diagonal,
.group:hover .arrow-diagonal,
a:hover .arrow-diagonal {
  transform: translate(2px, -2px);
}

/* Pulse indicator */
.live-pulse {
  position: relative;
  display: inline-flex;
}

.live-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  animation: live-pulse-anim 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes live-pulse-anim {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}

::-webkit-scrollbar-thumb {
  background: #D4D0C5;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #A8A294;
}

/* Modal animation */
.modal-enter {
  animation: modal-fade-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Initial Load Entrance Animations */
@keyframes header-slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-portrait-slide-up {
  from {
    opacity: 0;
    transform: translateY(54px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-down {
  animation: header-slide-down 0.95s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-slide-up {
  animation: hero-slide-up 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-portrait-slide-up {
  animation: hero-portrait-slide-up 1.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-75 { animation-delay: 90ms; }
.delay-100 { animation-delay: 110ms; }
.delay-150 { animation-delay: 190ms; }
.delay-200 { animation-delay: 240ms; }
.delay-250 { animation-delay: 300ms; }
.delay-300 { animation-delay: 380ms; }
.delay-400 { animation-delay: 480ms; }
.delay-500 { animation-delay: 580ms; }

@media (prefers-reduced-motion: reduce) {
  .animate-slide-down,
  .animate-slide-up,
  .animate-portrait-slide-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hide scrollbar for clean horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
