/* PREMIUM AESTHETICS OVERRIDES */

/* 1. Glassmorphism & Modern Hover States */
.entry-card, .product-card, .price-card, .case-card, .faq-card, .cta-card, .footer-card, .drawer-tools, .nav-drawer {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease !important;
}

html[data-theme="light"] .entry-card, 
html[data-theme="light"] .product-card, 
html[data-theme="light"] .price-card, 
html[data-theme="light"] .case-card, 
html[data-theme="light"] .faq-card, 
html[data-theme="light"] .cta-card, 
html[data-theme="light"] .footer-card {
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

.entry-card:hover, .product-card:hover, .price-card:hover, .case-card:hover, .faq-card:hover, .cta-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 16px 48px 0 rgba(0, 198, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .entry-card:hover, 
html[data-theme="light"] .product-card:hover, 
html[data-theme="light"] .price-card:hover, 
html[data-theme="light"] .case-card:hover, 
html[data-theme="light"] .faq-card:hover {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 16px 48px 0 rgba(0, 114, 255, 0.15) !important;
}

/* 2. Smooth Gradients & Vibrant Colors */
.btn--primary {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%) !important;
  z-index: 1;
  overflow: visible !important;
  transition: all 0.4s ease !important;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.btn--primary:hover::before {
  opacity: 1;
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 28px rgba(0, 198, 255, 0.4) !important;
}

/* 3. Micro-animations for page transitions */
@keyframes pageFadeInSlide {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

body {
  animation: pageFadeInSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. Transparent Agentic Loops - Elegant Loaders */
.agentic-loop {
  position: relative;
  overflow: visible !important;
}
.agentic-loop::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: agenticPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: -2;
  opacity: 0.7;
  filter: blur(6px);
  border-radius: inherit;
}
.agentic-loop.active::after {
  animation: agenticPulseFast 1s linear infinite;
  filter: blur(8px);
  opacity: 1;
}

@keyframes agenticPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes agenticPulseFast {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Enhanced Subdued animated mesh gradients */
.shell {
  position: relative;
}
.shell::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(0, 198, 255, 0.1), transparent 60%);
  z-index: 0;
  mix-blend-mode: screen;
  animation: meshFloat 15s ease-in-out infinite alternate;
}

html[data-theme="light"] .shell::after {
  background: radial-gradient(circle at 50% 0%, rgba(0, 114, 255, 0.08), transparent 60%);
  mix-blend-mode: multiply;
}

@keyframes meshFloat {
  0% { opacity: 0.6; transform: scale(1) translateY(0); }
  50% { opacity: 1; transform: scale(1.05) translateY(2%); }
  100% { opacity: 0.6; transform: scale(1) translateY(0); }
}

/* Premium text gradient */
.grad {
  background: linear-gradient(to right, var(--accent), #00ff88) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: textShine 4s linear infinite;
  background-size: 200% auto !important;
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

/* Floating interactive elements */
.nav-links a:hover {
  text-shadow: 0 0 12px rgba(0, 198, 255, 0.5);
  color: var(--accent) !important;
  transform: translateY(-1px);
}
.nav-links a {
  transition: all 0.3s ease;
}

/* Premium Hover Glow Effect for Cards */
.entry-card, .case-card, .price-card, .product-card, .cta-card {
  position: relative;
}
.entry-card::after, .case-card::after, .price-card::after, .product-card::after, .cta-card::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(135deg, rgba(0, 198, 255, 0), rgba(0, 198, 255, 0), rgba(0, 198, 255, 0.6), rgba(0, 198, 255, 0));
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.entry-card:hover::after, .case-card:hover::after, .price-card:hover::after, .product-card:hover::after, .cta-card:hover::after {
  opacity: 1;
  animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
  0% { background: linear-gradient(0deg, rgba(0,198,255,0) 0%, rgba(0,198,255,0.8) 50%, rgba(0,198,255,0) 100%); }
  25% { background: linear-gradient(90deg, rgba(0,198,255,0) 0%, rgba(0,198,255,0.8) 50%, rgba(0,198,255,0) 100%); }
  50% { background: linear-gradient(180deg, rgba(0,198,255,0) 0%, rgba(0,198,255,0.8) 50%, rgba(0,198,255,0) 100%); }
  75% { background: linear-gradient(270deg, rgba(0,198,255,0) 0%, rgba(0,198,255,0.8) 50%, rgba(0,198,255,0) 100%); }
  100% { background: linear-gradient(360deg, rgba(0,198,255,0) 0%, rgba(0,198,255,0.8) 50%, rgba(0,198,255,0) 100%); }
}

/* Refined Conic Border Glow for Cards */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.entry-card::after, .case-card::after, .price-card::after, .product-card::after, .cta-card::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: conic-gradient(from var(--angle), transparent 0%, transparent 60%, var(--accent) 80%, var(--accent2) 100%);
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.entry-card:hover::after, .case-card:hover::after, .price-card:hover::after, .product-card:hover::after, .cta-card:hover::after {
  opacity: 1;
  animation: borderSpin 3s linear infinite;
}

@keyframes borderSpin {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* Agentic brand glow */
.brand:hover .brand-icon {
  filter: drop-shadow(0 0 12px var(--accent));
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* Blackrack platform system pass: calmer trust-first UI. */
:root {
  --accent: #37b7e8;
  --accent2: #2a7fd6;
  --ok: #27d68a;
  --warn: #e8b94d;
  --bg: #050810;
  --bg2: #0b111b;
  --card: rgba(10, 16, 25, .9);
  --border: rgba(135, 171, 204, .16);
  --bhi: rgba(55, 183, 232, .38);
  --muted: #9cafc4;
  --dim: rgba(156, 175, 196, .62);
  --ink: #eef6ff;
  --shadow: 0 18px 42px rgba(0, 0, 0, .26);
}

html[data-theme="light"] {
  --accent: #075fc9;
  --accent2: #0a4ea3;
  --ok: #087f5b;
  --warn: #946000;
  --bg: #f8fafc;
  --bg2: #eef3f8;
  --card: #ffffff;
  --border: #d8e2ee;
  --bhi: #8ab3e8;
  --muted: #43566a;
  --dim: #6b7c8e;
  --ink: #07111f;
  --shadow: 0 12px 28px rgba(22, 43, 66, .07);
}

body {
  animation: none !important;
}

.shell {
  background:
    radial-gradient(ellipse 80% 34% at 50% -8%, rgba(55, 183, 232, .12), transparent 68%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 48%, var(--bg) 100%) !important;
}

.shell::after,
.agentic-loop::after,
.entry-card::after,
.case-card::after,
.price-card::after,
.product-card::after,
.cta-card::after {
  animation: none !important;
  background: none !important;
  opacity: 0 !important;
  filter: none !important;
}

.grad {
  background: none !important;
  color: var(--accent) !important;
  -webkit-text-fill-color: currentColor !important;
  animation: none !important;
}

.nav {
  min-height: 4.25rem;
  background: rgba(5, 8, 16, .92) !important;
  border-bottom-color: var(--border) !important;
  box-shadow: none !important;
}

html[data-theme="light"] .nav {
  background: rgba(255, 255, 255, .96) !important;
}

.nav-a,
.drawer-a,
.footer-a,
.lang-btn,
.cur-select {
  letter-spacing: .06em !important;
}

.nav-a:hover,
.nav-a.active {
  color: var(--ink) !important;
  text-shadow: none !important;
  transform: none !important;
}

.btn,
.nav-cta,
.drawer-cta-a,
.price-cta,
.plan-cta a,
.cookie-btn {
  border-radius: 6px !important;
  box-shadow: none !important;
}

.btn:hover,
.nav-cta:hover,
.drawer-cta-a:hover,
.price-cta:hover,
.plan-cta a:hover {
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

.card,
.footer-card,
.panel,
.tile,
.step,
.feature,
.skill-card,
.trust-card,
.price-card,
.pricing-card,
.plan,
.plan-card,
.entry-card,
.product-card,
.contact-card,
.doc-card,
.toc,
.toc-card,
.legal-card,
.case-card,
.metric,
.matrix-card,
.cta-card,
.faq-item,
.sla-strip,
.guarantee-box,
.arch,
.hstep,
.comp-item,
.hiw-card,
.pt-card,
.cost-card,
.trust-strip,
.bento-tile {
  border-radius: 8px !important;
  border-color: var(--border) !important;
  background: var(--card) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.entry-card:hover,
.product-card:hover,
.price-card:hover,
.case-card:hover,
.faq-card:hover,
.cta-card:hover,
.plan:hover,
.panel:hover,
.skill-card:hover,
.trust-card:hover,
.bento-tile:hover {
  transform: translateY(-2px) !important;
  border-color: var(--bhi) !important;
  box-shadow: var(--shadow) !important;
}

.page-header .eyebrow,
.kicker,
.plan-label,
.product-label,
.entry-label,
.panel-label,
.guarantee-title,
.price-name,
.sla-label,
.toc-title,
.section-kicker {
  color: var(--accent) !important;
}

.kicker::before,
.page-header .eyebrow::before,
.scarcity-line::before,
.status-dot {
  animation: none !important;
  box-shadow: none !important;
  background: var(--accent) !important;
}

.hero-h1,
.page-h1,
.section-title,
.compare-title,
.cta-h2,
.cta-title {
  letter-spacing: -.025em !important;
}

.section-lead,
.hero-lead,
.page-lead,
.cta-lead,
.panel-body,
.entry-desc,
.product-desc,
.case-sub,
.case-item,
.price-desc,
.plan-tagline,
.faq-a,
.trust-body,
.guarantee-body,
.cost-copy,
.price-disclaimer {
  color: var(--muted) !important;
}

.trust-strip,
.guarantee-box,
.cost-card,
.plan-ideal {
  background: rgba(55, 183, 232, .045) !important;
}

html[data-theme="light"] .trust-strip,
html[data-theme="light"] .guarantee-box,
html[data-theme="light"] .cost-card,
html[data-theme="light"] .plan-ideal {
  background: #ffffff !important;
}

.trust-center-strip {
  padding: 0 0 3rem;
}

.trust-center-head {
  display: grid;
  grid-template-columns: minmax(10rem, 18rem) minmax(0, 1fr);
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.trust-center-head p {
  max-width: 48rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

.trust-center-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
}

.trust-center-item {
  min-height: 9.5rem;
  padding: 1.25rem;
  border-right: 1px solid var(--border);
}

.trust-center-item:last-child {
  border-right: 0;
}

.trust-center-label {
  display: block;
  margin-bottom: .75rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trust-center-item strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.billing-pill,
.pricing-currency,
.drawer-chip,
.theme-toggle {
  border-radius: 6px !important;
  box-shadow: none !important;
}

.billing-pill button.active,
.lang-btn.active,
.br-region button.active,
html[lang="en"] .drawer-chip[data-set-lang="en"],
html[lang="es"] .drawer-chip[data-set-lang="es"] {
  background: rgba(55, 183, 232, .12) !important;
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.price-main {
  letter-spacing: -.025em !important;
}

/* Official 02b identity: preserve the supplied raster geometry and quiet palette. */
:root {
  --brand-night: #03090e;
  --brand-ivory: #f2efeb;
}

.brand {
  position: relative;
  width: clamp(10rem, 13vw, 12rem);
  height: 3rem;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.brand-lockup {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 600 / 168;
  object-fit: contain;
  transition: opacity .15s ease;
}

.brand-lockup--light {
  opacity: 0;
}

.brand:hover .brand-lockup {
  filter: none;
  transform: none;
}

html[data-theme="light"] .brand-lockup--dark {
  opacity: 0;
}

html[data-theme="light"] .brand-lockup--light {
  opacity: 1;
}

@media (max-width: 640px) {
  .brand {
    width: 10rem;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 960px) {
  .nav {
    min-height: 4.25rem;
  }

  .nav-inner {
    width: 100% !important;
  }

  .page-header,
  .hero {
    padding-top: 2.6rem !important;
  }

  .hero-actions,
  .cta-actions,
  .cta-acts {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .trust-center-head,
  .trust-center-grid {
    grid-template-columns: 1fr;
  }

  .trust-center-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-center-item:last-child {
    border-bottom: 0;
  }
}
