@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-paper: #FFFFFF;
  --color-paper-2: #F0F9FA;
  --color-ink: #0F172A;
  --color-ink-soft: #475569;
  --color-line: #E2E8F0;
  
  --color-forest: #000000;
  --color-forest-700: #1A1A1A;
  --color-sage: #94A3B8;
  --color-accent: rgb(98 171 180);
  --color-accent-600: #4B929A;

  --color-paper-dark: #000000;
  --color-paper-2-dark: #0A0A0A;
  --color-ink-dark: #FFFFFF;
  --color-line-dark: #222222;

  --font-serif: "Outfit", sans-serif;
  --font-sans: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lift: 0 10px 40px rgba(0,0,0,0.8);
}

/* Custom base adjustments */
html {
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  scroll-behavior: auto; /* Managed by Lenis */
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* Focus styling */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--color-sage);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-forest);
}

/* Global noise overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  content: "";
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Custom cursor hover states */
.custom-cursor.hovering {
  width: 24px;
  height: 24px;
  background-color: rgba(232, 176, 75, 0.2);
}

.custom-cursor-ring.hovering {
  width: 48px;
  height: 48px;
  background-color: rgba(232, 176, 75, 0.1);
  border-color: var(--color-accent-600);
}

/* Fluid Typography and Utilities */
.text-display-xl {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.text-fluid-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-fluid-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* Tabular numbers for counters */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Button drawing hover animations */
.btn-sweep {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-sweep::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color-forest-700);
  z-index: -1;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-sweep:hover::after {
  height: 100%;
}

.btn-ghost-draw {
  position: relative;
  overflow: hidden;
}

.btn-ghost-draw::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color-forest);
  z-index: -1;
  transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-ghost-draw:hover::after {
  height: 100%;
}

/* Testimonial system */
.testimonial-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  border: 1px solid var(--color-line);
  background: color-mix(in srgb, var(--color-paper) 92%, transparent);
  color: var(--color-forest);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.testimonial-nav-btn:hover {
  transform: translateY(-2px);
  background: var(--color-forest);
  color: var(--color-paper);
  border-color: var(--color-forest);
}

.testimonial-nav-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.testimonial-shell {
  isolation: isolate;
}

.testimonial-shell-glow {
  position: absolute;
  inset: -20% auto auto -15%;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(178, 235, 242, 0.22) 0%, rgba(178, 235, 242, 0.05) 45%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}

.testimonial-shell-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(226, 232, 240, 0.38) 1px, transparent 1px), linear-gradient(to bottom, rgba(226, 232, 240, 0.38) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  pointer-events: none;
}

.testimonial-card {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(240,249,250,0.84) 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 28px 0 0 28px;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-forest) 100%);
}

.testimonial-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.testimonial-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--color-forest) 0%, var(--color-forest-700) 100%);
  color: var(--color-paper);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.testimonial-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-forest);
}

.testimonial-role {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--color-ink-soft);
}

.testimonial-rating {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--color-accent-600);
  white-space: nowrap;
}

.testimonial-quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
  color: var(--color-forest);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.testimonial-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 9999px;
  background: rgba(178, 235, 242, 0.38);
  color: var(--color-forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-controls {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial-counter {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--color-ink-soft);
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.25rem;
  }

  .testimonial-card-header {
    grid-template-columns: auto 1fr;
  }

  .testimonial-rating {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .testimonial-controls {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* New Pill Button from blashq theme */
.btn-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--color-forest);
  color: var(--color-paper);
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-pill:hover {
  background-color: var(--color-forest-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  color: var(--color-paper);
}
.btn-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-forest);
  margin-left: 1.25rem;
  transition: transform 0.3s ease;
}
.btn-pill:hover .btn-pill-icon {
  transform: scale(1.05) rotate(45deg);
}

/* Navigation frosted styling */
.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

/* Smooth clip-mask slider reveal animations */
.split-word-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.split-word-inner {
  display: inline-block;
  transform: translateY(110%);
}

/* Horizontal scroll components */
@media (min-width: 769px) {
  .horizontal-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
  }
}

/* Chart draw animation */
.chart-stroke {
  animation: drawChart 2.5s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: 0.5s;
}

@keyframes drawChart {
  to {
    stroke-dashoffset: 0;
  }
}

/* Disable styles for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  
  .custom-cursor, .custom-cursor-ring {
    display: none !important;
  }
  
  .split-word-inner {
    transform: none !important;
  }
}

/* Sticky Stepper active/inactive styles */
.sticky-step {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  border-left: 4px solid transparent;
  opacity: 0.45;
}

.sticky-step.active-step {
  border-left-color: var(--color-accent-600);
  opacity: 1 !important;
}

@media (min-width: 1024px) {
  .sticky-step.active-step {
    transform: translateX(16px);
  }
}

/* Premium background animations */
@keyframes float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
}
@keyframes float-reverse {
  0%, 100% { transform: translateY(0) scale(1.08); }
  50% { transform: translateY(30px) scale(1); }
}
.animate-float-slow {
  animation: float-slow 15s ease-in-out infinite;
}
.animate-float-reverse {
  animation: float-reverse 18s ease-in-out infinite;
}

