/* Base Setup & Utilities */
:root {
  --color-bg: #050505;
  --color-surface: #0a0a0b;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text-primary: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-glow: rgba(255, 255, 255, 0.05);
}

/* Custom Reset to expand on Tailwind's if used, but we're mostly raw CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  overscroll-behavior: none; /* Premium scroll feel */
}

/* Hide default cursor on desktop where custom cursor is used */
@media (min-width: 768px) {
  body, a, button {
    cursor: none;
  }
}

h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: 'Outfit', sans-serif;
}

/* Tailwind-like utilities hardcoded to avoid Tailwind dependency but keep the workflow fast */
.container { width: 100%; margin-right: auto; margin-left: auto; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-20 { padding-top: 5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

.grid { display: grid; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:pl-20 { padding-left: 5rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
@media (min-width: 768px) {
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:text-8xl { font-size: 6rem; line-height: 1; }
}

.font-light { font-weight: 300; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-transparent { color: transparent; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-white { --tw-gradient-stops: #fff, rgba(255,255,255,0) auto; }
.via-gray-300 { --tw-gradient-stops: #fff, #d1d5db, rgba(210,213,219,0) auto; }
.to-gray-500 { --tw-gradient-stops: #fff, #d1d5db, #6b7280; }

.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.bg-black { background-color: #000; }
.bg-zinc-950 { background-color: #09090b; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-l { border-left-width: 1px; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.border-2 { border-width: 2px; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1 { top: 0.25rem; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: 9999px; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.hidden { display: none; }
.italic { font-style: italic; }
.rounded-2xl { border-radius: 1rem; }
.border-b { border-bottom-width: 1px; }
.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-8 { padding-left: 2rem; }
.transform { transform: var(--tw-transform, none); }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-9xl { font-size: 8rem; line-height: 1; }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.min-h-\[60px\] { min-height: 60px; }
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-col { flex-direction: column; }
}
@media (min-width: 768px) {
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:-translate-y-4 { transform: translateY(-1rem); }
  .md\:pl-16 { padding-left: 4rem; }
}
@media (min-width: 1024px) {
  .lg\:text-9xl { font-size: 8rem; line-height: 1; }
  .lg\:px-12 { padding-left: 3rem; padding-right: 3rem; }
}
@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:inline-flex { display: inline-flex; }
  .md\:block { display: block; }
}

/* Pricing Grid Enhancements Override Base Spotlight */
.pricing-card.feature-tier::after {
    background-color: #ffffff;
}
.pricing-card.feature-tier:hover::after {
    background-color: #f4f4f5;
}

/* ==========================================================================
   4. Interactive Utility Components
   ========================================================================== */

/* Magnetic Button Utility */
.btn-magnetic {
    display: inline-flex;
    position: relative;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}
.btn-magnetic::after {
    content: '';
    position: absolute;
    inset: -20px; /* Expands the hover detection radius outside the visible button layer */
    z-index: -1;
}

/* ==========================================================================
   5. Interactive Case Study Assets
   ========================================================================== */

/* ==========================================================================
   1.5 Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateY(10px);
    animation: preloaderReveal 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes preloaderReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    30% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   2. Typography & Animations
   ========================================================================== */

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.text-gradient-premium {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Base Aesthetics */
a {
  text-decoration: none;
  color: inherit;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--color-border);
}
.text-center.section-title {
  justify-content: center;
}
.text-center.section-title::before {
  display: none;
}

/* Glass Header */
.glass-header {
  background: rgba(5, 5, 5, 0.0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
}
.glass-header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-link {
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
  position: relative;
}
.nav-link:hover {
  color: var(--color-text-primary);
}
.md-nav-link {
  color: var(--color-text-primary);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.md-nav-link:hover {
  opacity: 1;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}
.btn-primary:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}
.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Cards */
/* Services & Capabilities Grid */
.service-card, .services-card, .pricing-card {
  background-color: #0a0a0b;
  border: 1px solid rgba(255, 255, 255, 0.05); /* initial dim border */
  border-radius: 12px;
  padding: 3rem 2rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Base states */
.service-card, .services-card, .pricing-card {
    background-color: #0a0a0b;
}

/* 
 * Spotlight Effect using pseudo-elements
 * Before creates the outer illuminated border stroke
 * After restores the inner dark background padding
 */
.service-card::before, .services-card::before, .pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: radial-gradient(
        600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
        rgba(255, 255, 255, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card::after, .services-card::after, .pricing-card::after {
    content: '';
    position: absolute;
    inset: 1px; /* 1px inner margin leaves the radial background visible strictly as a border */
    z-index: -1;
    background-color: #0a0a0b;
    border-radius: inherit;
    transition: background-color 0.3s ease;
}

.service-card:hover, .services-card:hover, .pricing-card:hover {
  transform: translateY(-5px);
}

.service-card:hover::before, .services-card:hover::before, .pricing-card:hover::before {
    opacity: 1;
}

.service-card:hover::after, .services-card:hover::after, .pricing-card:hover::after {
    background-color: #0f0f11;
}

.service-card .text-gray-400, .services-card .text-gray-400, .pricing-card .text-gray-400 {
    position: relative;
    z-index: 2;
}

.service-card h3, .services-card h3, .pricing-card h3 {
    position: relative;
    z-index: 2;
}

.services-number {
  color: #3f3f46;
  font-family: 'Space Mono', monospace;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  display: block;
  position: relative;
  z-index: 2;
}

.pricing-card.featured {
  background: #0f0f11;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.03);
}

/* Custom Magnetic Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transition: width 0.2s, height 0.2s;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-sizing: border-box;
  will-change: transform;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .glow-bg, .floating-element, .reveal, .stagger-reveal .slide-up,
  .results-card-content, .cursor-dot, .cursor-outline {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Hover states for cursor */
.cursor-hover .cursor-dot {
  width: 0;
  height: 0;
}
.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  backdrop-filter: blur(2px);
}

/* ==========================================================================
   Header Voice Button
   ========================================================================== */

.header-voice-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.2rem 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.header-voice-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.06), 0 0 60px rgba(255, 255, 255, 0.03);
}

/* Ambient pulse behind button */
.header-voice-pulse {
    position: absolute;
    inset: -1px;
    border-radius: 99px;
    background: transparent;
    z-index: -1;
    animation: header-voice-ambient 3s ease-in-out infinite;
}
@keyframes header-voice-ambient {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: 0 0 18px 2px rgba(255, 255, 255, 0.06); }
}
.header-voice-btn:hover .header-voice-pulse {
    animation: header-voice-ambient-hover 1.5s ease-in-out infinite;
}
@keyframes header-voice-ambient-hover {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: 0 0 24px 4px rgba(255, 255, 255, 0.1); }
}

/* Voice icon container */
.header-voice-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    transition: all 0.4s ease;
}
.header-voice-btn:hover .header-voice-icon {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

/* Voice wave bars */
.voice-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
}
.voice-wave-bar {
    display: block;
    width: 2px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.5);
    animation: voice-wave-idle 2s ease-in-out infinite;
}
.voice-wave-bar:nth-child(1) { animation-delay: 0s;    height: 5px; }
.voice-wave-bar:nth-child(2) { animation-delay: 0.15s; height: 8px; }
.voice-wave-bar:nth-child(3) { animation-delay: 0.3s;  height: 11px; }
.voice-wave-bar:nth-child(4) { animation-delay: 0.15s; height: 8px; }
.voice-wave-bar:nth-child(5) { animation-delay: 0s;    height: 5px; }

@keyframes voice-wave-idle {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50%      { transform: scaleY(1);   opacity: 0.8; }
}

/* Hover state: bars animate more energetically */
.header-voice-btn:hover .voice-wave-bar {
    background: rgba(255, 255, 255, 0.9);
    animation: voice-wave-active 0.6s ease-in-out infinite;
}
.header-voice-btn:hover .voice-wave-bar:nth-child(1) { animation-delay: 0s; }
.header-voice-btn:hover .voice-wave-bar:nth-child(2) { animation-delay: 0.08s; }
.header-voice-btn:hover .voice-wave-bar:nth-child(3) { animation-delay: 0.16s; }
.header-voice-btn:hover .voice-wave-bar:nth-child(4) { animation-delay: 0.08s; }
.header-voice-btn:hover .voice-wave-bar:nth-child(5) { animation-delay: 0s; }

@keyframes voice-wave-active {
    0%, 100% { transform: scaleY(0.35); }
    50%      { transform: scaleY(1.3); }
}

/* Label text */
.header-voice-label {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Mobile variant */
.header-voice-btn--mobile {
    padding: 0.75rem 1.6rem 0.75rem 1rem;
    font-size: 0.95rem;
    gap: 0.75rem;
}
.header-voice-btn--mobile .header-voice-icon {
    width: 34px;
    height: 34px;
}
.header-voice-btn--mobile .voice-wave-bar {
    width: 2.5px;
}

/* ==========================================================================
   Riz Voice Agent UI
   ========================================================================== */

/* Trigger button area */
.riz-cta-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}
.riz-cta-or {
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Riz trigger button */
.btn-riz {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.btn-riz:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}
.btn-riz svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.btn-riz:hover svg {
    transform: scale(1.15);
}

/* Full-screen overlay */
.riz-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.riz-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal card */
.riz-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    padding: 3rem 2.5rem;
    width: min(440px, 90vw);
    background: rgba(8, 8, 9, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.riz-overlay.active .riz-modal {
    transform: translateY(0) scale(1);
}

/* Modal header */
.riz-badge {
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
}
.riz-name {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1;
    margin-top: -0.5rem;
}
.riz-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.6;
    margin-top: -0.75rem;
}

/* Animated orb */
.riz-orb-container {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.riz-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: riz-idle 3.5s ease-in-out infinite;
    will-change: transform, box-shadow;
}
.riz-orb::before,
.riz-orb::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: riz-ring 3.5s ease-out infinite;
}
.riz-orb::before { inset: -16px; animation-delay: 0s; }
.riz-orb::after  { inset: -32px; animation-delay: 0.6s; }

@keyframes riz-idle {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 20px rgba(255,255,255,0.04); }
    50%       { transform: scale(1.06); box-shadow: 0 0 40px rgba(255,255,255,0.08); }
}
@keyframes riz-ring {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.35); }
}

/* Listening state */
.riz-orb.listening {
    animation: riz-listen 1.1s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.4);
    background: radial-gradient(circle at 38% 38%, rgba(255,255,255,0.22), rgba(255,255,255,0.05));
}
.riz-orb.listening::before,
.riz-orb.listening::after {
    border-color: rgba(255, 255, 255, 0.12);
    animation-duration: 1.1s;
}
@keyframes riz-listen {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 30px rgba(255,255,255,0.1); }
    50%       { transform: scale(1.1); box-shadow: 0 0 60px rgba(255,255,255,0.2); }
}

/* Speaking state */
.riz-orb.speaking {
    animation: riz-speak 0.55s ease-in-out infinite;
    border-color: rgba(255, 255, 255, 0.65);
    background: radial-gradient(circle at 38% 38%, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
    box-shadow: 0 0 60px rgba(255,255,255,0.18), 0 0 120px rgba(255,255,255,0.06);
}
.riz-orb.speaking::before,
.riz-orb.speaking::after {
    border-color: rgba(255, 255, 255, 0.18);
    animation-duration: 0.7s;
}
@keyframes riz-speak {
    0%, 100% { transform: scale(1); }
    30%       { transform: scale(1.07); }
    70%       { transform: scale(1.03); }
}

/* Waveform bars (visible when speaking) */
.riz-orb-inner {
    display: flex;
    align-items: center;
    gap: 3px;
}
.riz-bar {
    width: 3px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.5);
    transition: height 0.1s ease;
}
.riz-orb.speaking .riz-bar {
    animation: riz-wave 0.75s ease-in-out infinite;
}
.riz-orb.speaking .riz-bar:nth-child(1) { animation-delay: 0.00s; }
.riz-orb.speaking .riz-bar:nth-child(2) { animation-delay: 0.12s; }
.riz-orb.speaking .riz-bar:nth-child(3) { animation-delay: 0.24s; }
.riz-orb.speaking .riz-bar:nth-child(4) { animation-delay: 0.12s; }
.riz-orb.speaking .riz-bar:nth-child(5) { animation-delay: 0.00s; }
@keyframes riz-wave {
    0%, 100% { height: 4px; }
    50%       { height: 22px; }
}

/* Status text */
.riz-status-text {
    font-size: 0.8rem;
    font-family: ui-monospace, monospace;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    min-height: 1.25rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}
.riz-status-text.active {
    color: rgba(255, 255, 255, 0.6);
}

/* End call button */
.riz-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
}
.riz-end-btn:hover {
    background: rgba(220, 50, 50, 0.12);
    border-color: rgba(220, 80, 80, 0.3);
    color: rgba(255, 160, 160, 0.9);
}

/* Noise Overlay Texture */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.05;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Updated Ambient Glow for Parallax */
.glow-bg {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  will-change: transform;
  transform: translateZ(0);
}
.top-glow {
  top: -300px;
  right: -200px;
  background: radial-gradient(circle, #ffffff 0%, transparent 60%);
}
.bottom-glow {
  bottom: -300px;
  left: -200px;
  background: radial-gradient(circle, #333333 0%, transparent 60%);
}

/* Highly Polished Animations */
.stagger-reveal .slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Clip Path Text Reveal for absolutely premium headers */
.clip-text-reveal {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.clip-text-reveal > span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 1s ease;
}
.clip-text-reveal.active > span,
.reveal.active .clip-text-reveal > span {
  transform: translateY(0);
  opacity: 1;
}

/* Slow hovering animation for premium feeling */
@keyframes slowFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.floating-element {
  animation: slowFloat 8s ease-in-out infinite;
  will-change: transform;
}

/* Custom Results Card Component */
.results-card-wrapper {
  position: relative;
  width: 100%;
}
.results-card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top right, rgba(255,255,255,0.1), transparent);
  border-radius: 1rem;
  opacity: 0.1;
  filter: blur(40px);
  transition: opacity 0.5s ease;
  z-index: 0;
}
.results-card-wrapper:hover .results-card-glow {
  opacity: 0.3;
}
.results-card-content {
  position: relative;
  display: block;
  z-index: 10;
  background: #0f0f11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.5s ease, transform 0.5s ease;
}
@media (min-width: 768px) {
  .results-card-content {
    padding: 3rem;
  }
}
.results-card-content:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.results-card-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}
.results-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease, transform 0.3s ease;
}
.results-card-content:hover .results-card-icon {
  color: #fff;
  transform: translate(4px, -4px);
}
.status-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,0.5);
}
.status-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

/* ==========================================================================
   Footer Legal Links
   ========================================================================== */
.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.8rem;
  color: #6b7280;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
}
.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Legal Pages Styling
   ========================================================================== */
.legal-content {
  color: #9ca3af;
  line-height: 1.8;
}
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.legal-section:last-child {
  border-bottom: none;
}
.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1rem;
}
.legal-section h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #d1d5db;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-section p {
  margin-bottom: 0.75rem;
}
.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.legal-section ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
}
.legal-section strong {
  color: #d1d5db;
}
.legal-contact-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0;
}
.legal-contact-block p {
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Contact Form Styling
   ========================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group .required {
  color: #ef4444;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-group select option {
  background: #0a0a0b;
  color: #ffffff;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}
.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: #ffffff;
  cursor: pointer;
}
.form-checkbox label {
  text-transform: none;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6b7280;
}
.field-error {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.05) !important;
}
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  color: #22c55e;
  margin-top: 1rem;
}
.form-error {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  margin-top: 1rem;
}
.text-red-400 { color: #f87171; }
.w-full { width: 100%; }

/* Contact Sidebar */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.contact-info-item:last-child {
  border-bottom: none;
}
.contact-info-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-info-value {
  font-size: 0.9rem;
  color: #d1d5db;
  transition: color 0.3s ease;
}
a.contact-info-value:hover {
  color: #ffffff;
}
.regulatory-list {
  list-style: none;
  padding: 0;
}
.regulatory-list li {
  font-size: 0.8rem;
  color: #6b7280;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.regulatory-list li:last-child {
  border-bottom: none;
}
.regulatory-list li strong {
  color: #9ca3af;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.selection\:bg-white ::selection { background: #fff; }
.selection\:text-black ::selection { color: #000; }
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration: underline; }
.tracking-wide { letter-spacing: 0.025em; }
