:root {
  --background: 0 0% 100%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 221 83% 53%;
  --primary-foreground: 0 0% 100%;
  --secondary: 222 47% 11%;
  --secondary-foreground: 0 0% 98%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 188 94% 43%;
  --accent-foreground: 222 47% 11%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 98%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 221 83% 53%;
  --radius: 1rem;
  --surface: 210 40% 98%;
}
.dark {
  --background: 222 47% 5%;
  --foreground: 210 40% 98%;
  --card: 222 40% 8%;
  --card-foreground: 210 40% 98%;
  --popover: 222 40% 8%;
  --popover-foreground: 210 40% 98%;
  --primary: 217 91% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 40% 98%;
  --secondary-foreground: 222 47% 11%;
  --muted: 217 33% 14%;
  --muted-foreground: 215 20% 65%;
  --accent: 188 94% 48%;
  --accent-foreground: 222 47% 11%;
  --destructive: 0 63% 45%;
  --destructive-foreground: 0 0% 98%;
  --border: 217 33% 17%;
  --input: 217 33% 17%;
  --ring: 217 91% 60%;
  --surface: 222 44% 7%;
}

* { border-color: hsl(var(--border)); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', system-ui, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .font-display { font-family: 'Poppins', system-ui, sans-serif; }
::selection { background: hsl(var(--primary) / 0.2); }

/* ---------- component classes (ported from @layer components) ---------- */
.container-x { margin-left: auto; margin-right: auto; width: 100%; max-width: 80rem; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 768px) { .container-x { padding-left: 2.5rem; padding-right: 2.5rem; } }
.container-narrow { margin-left: auto; margin-right: auto; width: 100%; max-width: 56rem; padding-left: 1.5rem; padding-right: 1.5rem; }

.gradient-text {
  background: linear-gradient(100deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  color: hsl(var(--primary-foreground));
  transition: all .3s;
  background: linear-gradient(100deg, hsl(var(--primary)), hsl(var(--accent)));
  box-shadow: 0 10px 30px -10px hsl(var(--primary) / 0.6);
  border: none;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px hsl(var(--primary) / 0.7); transform: translateY(-2px); }
.btn-primary.\!px-4 { padding-left: 1rem; padding-right: 1rem; }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; border: 1px solid hsl(var(--border)); padding: 0.75rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; transition: all .3s; background: transparent; color: inherit;
}
.btn-ghost:hover { background: hsl(var(--muted)); }
.btn-ghost:active { transform: scale(0.97); }
.glass {
  background: hsl(var(--card) / 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--border) / 0.8);
}
.card-surface {
  border-radius: 1.5rem; border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  padding: 1.75rem; transition: all .5s;
  box-shadow: 0 1px 2px hsl(var(--foreground) / 0.04);
}
.card-surface:hover {
  box-shadow: 0 30px 60px -30px hsl(var(--primary) / 0.35);
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-4px);
}
.cw-input {
  width: 100%; border-radius: 1rem; border: 1px solid hsl(var(--border)); background: hsl(var(--background));
  padding: 0.75rem 1rem; font-size: 0.875rem; outline: none; transition: border-color .2s;
}
.cw-input:focus { border-color: hsl(var(--primary)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2); background: hsl(var(--primary) / 0.05);
  padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: hsl(var(--primary));
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

.grid-bg {
  background-image: linear-gradient(hsl(var(--border) / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--border) / 0.5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

@keyframes float-blob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.1); } }
.animate-blob { animation: float-blob 14s ease-in-out infinite; }

@keyframes hero-quote-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-quote-in { animation: hero-quote-in .7s cubic-bezier(.16,1,.3,1) both; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 32s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 9999px; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); }
.cursor-dot { width: 7px; height: 7px; background: hsl(var(--primary)); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid hsl(var(--primary) / 0.5); transition: transform .15s ease, width .2s, height .2s; }

@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .animate-blob, .animate-marquee { animation: none; }
}

/* utility helpers not covered by Tailwind Play CDN defaults */
.bg-surface { background-color: hsl(var(--surface)); }
.text-surface { color: hsl(var(--surface)); }
[data-lucide] { display: inline-block; }
.lucide-icon { width: 1em; height: 1em; stroke: currentColor; vertical-align: -0.125em; }

.faq-panel { display: grid; }

/* prose for legal pages */
.prose-cw h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.prose-cw p { line-height: 1.75; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 40;
  display: flex; align-items: center; gap: 0.5rem;
  border-radius: 9999px; padding: 0.875rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  box-shadow: 0 20px 45px -15px hsl(var(--foreground) / 0.4);
  transition: transform .3s;
}
.whatsapp-float:hover { transform: translateY(-4px); }

/* mobile nav overlay */
.mobile-nav { position: fixed; inset: 0; z-index: 50; background: hsl(var(--background) / 0.97); backdrop-filter: blur(20px); display: none; }
.mobile-nav.open { display: block; }
.mobile-nav a.active { background: hsl(var(--muted)); color: hsl(var(--primary)); }

/* scroll progress bar */
.scroll-progress-track { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; background: transparent; }
.scroll-progress-bar { height: 100%; transition: width .15s; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent))); width: 0%; }

/* page loader */
.page-loader { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: hsl(var(--background)); transition: opacity .5s; }
.page-loader.gone { opacity: 0; pointer-events: none; }

/* header */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: all .3s; padding-top: 1rem; padding-bottom: 1rem; }
.site-header.scrolled { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.site-nav { display: flex; align-items: center; justify-content: space-between; border-radius: 1rem; padding: 0.5rem 1rem; transition: all .3s; }
.site-header.scrolled .site-nav { background: hsl(var(--card) / 0.7); backdrop-filter: blur(16px); border: 1px solid hsl(var(--border) / 0.8); box-shadow: 0 10px 30px -10px hsl(var(--foreground)/0.15); }
