@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Lexend:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --background: #050505;
  --foreground: #f2f2f2;
  --brand: #dc2626;
  --brand-bright: #ef4444;
  --lime: #f87171;
  --lime-deep: #b91c1c;
  --surface: #0a0a0a;
  --surface-2: #121212;
  --border-brand: rgba(220, 38, 38, 0.22);
  --amber: #f87171;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: 'Lexend', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

/* softer long-form reading (blogs) */
.prose-flash p,
.prose-flash li {
  color: #bdbdbd;
  line-height: 1.8;
}
.prose-flash strong,
.prose-flash h1,
.prose-flash h2,
.prose-flash h3 {
  color: #f2f2f2;
}

.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-display { font-family: 'Space Grotesk', sans-serif; }

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar { display: none; }

.text-balance { text-wrap: balance; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.contact-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow { animation: spin-slow 20s linear infinite; }
.animate-spin-slower { animation: spin-slow 26s linear infinite; }
.animate-spin-fast { animation: spin-slow 15s linear infinite; }

.faq-content {
  display: grid;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}
.faq-content.collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}
.faq-content.expanded {
  grid-template-rows: 1fr;
  opacity: 1;
}

.features-track {
  cursor: grab;
}
.features-track:active {
  cursor: grabbing;
}

/* ── Pricing-card style system (apply site-wide) ── */
:root {
  --card-glow: 0 0 0 1px rgba(220, 38, 38, 0.1),
    0 0 48px -14px rgba(220, 38, 38, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --card-glow-hover: 0 0 0 1px rgba(239, 68, 68, 0.18),
    0 0 64px -10px rgba(220, 38, 38, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --card-bg: linear-gradient(180deg, #161616 0%, #0a0a0a 100%);
  --card-bg-featured: linear-gradient(180deg, rgba(220, 38, 38, 0.22) 0%, #0a0a0a 72%);
}

.flash-card,
.flash-panel {
  background: var(--card-bg) !important;
  border: 1px solid rgba(220, 38, 38, 0.34) !important;
  border-radius: 1.5rem;
  box-shadow: var(--card-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.flash-card:hover,
.flash-panel:hover {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: var(--card-glow-hover);
  transform: translateY(-3px);
}

.flash-card-featured {
  background: var(--card-bg-featured) !important;
  border: 1px solid rgba(220, 38, 38, 0.55) !important;
  border-radius: 1.5rem;
  box-shadow: 0 0 70px -12px rgba(220, 38, 38, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.flash-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: rgba(220, 38, 38, 0.14);
  padding: 0.25rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ef4444;
}

.flash-badge-hot {
  border: none;
  background: linear-gradient(90deg, #f87171, #b91c1c);
  color: #050505;
  box-shadow: 0 4px 18px rgba(185, 28, 28, 0.45);
  font-weight: 700;
}

.flash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f87171, #b91c1c);
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #050505 !important;
  box-shadow: 0 8px 28px rgba(185, 28, 28, 0.4);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.flash-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Auto-style common Tailwind cards to match pricing cards */
.rounded-3xl.border-border-brand,
.rounded-2xl.border-border-brand,
.rounded-xl.border-border-brand.p-4,
.rounded-xl.border-border-brand.p-5,
.rounded-xl.border-border-brand.p-6,
.rounded-xl.border-border-brand.p-8,
.rounded-\[28px\].border-border-brand,
.rounded-\[27px\],
a.rounded-2xl.border-border-brand,
div.rounded-2xl.border.border-border-brand,
div.rounded-3xl.border.border-border-brand {
  background-image: var(--card-bg) !important;
  background-color: #0a0a0a !important;
  border-color: rgba(220, 38, 38, 0.34) !important;
  box-shadow: var(--card-glow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rounded-3xl.border-border-brand:hover,
.rounded-2xl.border-border-brand:hover,
a.rounded-2xl.border-border-brand:hover,
div.rounded-2xl.border.border-border-brand:hover,
div.rounded-3xl.border.border-border-brand:hover {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: var(--card-glow-hover);
  transform: translateY(-3px);
}

/* Featured / popular cards */
.border-brand\/60.bg-gradient-to-b,
.rounded-3xl.border-brand\/60,
[class*="from-brand/20"][class*="to-surface"],
[class*="from-brand/15"][class*="to-surface"] {
  background-image: var(--card-bg-featured) !important;
  border-color: rgba(220, 38, 38, 0.55) !important;
  box-shadow: 0 0 70px -12px rgba(220, 38, 38, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Soften flat fills only when paired with card borders (handled above via !important bg) */

/* CTA gradient buttons consistency */
.bg-gradient-to-b.from-lime.to-lime-deep,
.bg-gradient-to-r.from-lime.to-lime-deep {
  box-shadow: 0 8px 28px rgba(185, 28, 28, 0.42) !important;
}

/* Icon tiles inside cards */
.rounded-xl.border-border-brand.bg-surface-2,
.rounded-xl.bg-surface-2.text-brand-bright {
  border-color: rgba(220, 38, 38, 0.35) !important;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Checkmarks / lime accents stay vivid on black cards */
.text-lime {
  color: #f87171 !important;
  filter: drop-shadow(0 0 6px rgba(248, 113, 113, 0.35));
}

#google_translate_element {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}


/* ── Motion system ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-left { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-scale { transform: scale(0.94); }
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible { transform: none; }

.stagger-children > .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children > .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-children > .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-children > .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-children > .reveal:nth-child(6) { transition-delay: 0.4s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes float-y-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(2deg); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
  50% { box-shadow: 0 0 28px 4px rgba(239, 68, 68, 0.35); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes border-glow {
  0%, 100% { border-color: rgba(220, 38, 38, 0.34); }
  50% { border-color: rgba(239, 68, 68, 0.65); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes soft-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

.anim-float { animation: float-y 5s ease-in-out infinite; }
.anim-float-slow { animation: float-y-slow 8s ease-in-out infinite; }
.anim-pulse-glow { animation: pulse-glow 2.8s ease-in-out infinite; }
.anim-border-glow { animation: border-glow 3.2s ease-in-out infinite; }
.anim-bounce-soft { animation: soft-bounce 2.4s ease-in-out infinite; }

.text-shimmer {
  background-size: 200% auto;
  animation: shimmer 4.5s linear infinite;
}

.hero-cta-shimmer {
  position: relative;
  overflow: hidden;
}
.hero-cta-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.35) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

.page-enter main,
.page-enter header {
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.page-enter header { animation-delay: 0.05s; }
.page-enter main { animation-delay: 0.12s; }

.flash-card,
.flash-panel,
a.rounded-2xl.border-border-brand,
div.rounded-3xl.border.border-border-brand {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.flash-card:hover,
.flash-panel:hover {
  transform: translateY(-6px) scale(1.01);
}

.magnetic-btn {
  transition: transform 0.2s ease;
  will-change: transform;
}

.nav-scrolled {
  box-shadow: 0 8px 32px -12px rgba(220, 38, 38, 0.35) !important;
  border-bottom-color: rgba(239, 68, 68, 0.35) !important;
}

.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  animation: float-y-slow 10s ease-in-out infinite;
}
.orb-gold { background: #dc2626; }
.orb-bright { background: #ef4444; animation-delay: -3s; }

.tilt-hover {
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

/* Mouse glow (also set inline by JS for pages without the HTML node) */
#cursor-glow {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 520px !important;
  height: 520px !important;
  border-radius: 9999px !important;
  pointer-events: none !important;
  z-index: 40 !important;
  mix-blend-mode: screen;
  filter: blur(28px);
  background: radial-gradient(
    circle,
    rgba(239, 68, 68, 0.45) 0%,
    rgba(220, 38, 38, 0.28) 32%,
    rgba(248, 113, 113, 0.1) 55%,
    transparent 72%
  ) !important;
  will-change: transform, opacity;
}
@media (pointer: coarse) {
  #cursor-glow { display: none !important; }
}


/* ── AI Assistance (bottom-left) ── */
#ai-assist-root {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 55;
  font-family: 'Lexend', sans-serif;
}
#ai-assist-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(220, 38, 38, 0.45);
  background: linear-gradient(180deg, #1a0a0a, #0a0a0a);
  color: #f2f2f2;
  border-radius: 9999px;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  box-shadow: 0 10px 36px -8px rgba(220, 38, 38, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#ai-assist-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(239, 68, 68, 0.65);
}
#ai-assist-toggle .ai-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  display: grid;
  place-items: center;
  color: #050505;
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.55);
  animation: pulse-glow 2.8s ease-in-out infinite;
}
#ai-assist-panel {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  width: min(360px, calc(100vw - 2rem));
  border-radius: 1.25rem;
  border: 1px solid rgba(220, 38, 38, 0.4);
  background: linear-gradient(180deg, #161010 0%, #0a0a0a 100%);
  box-shadow: 0 20px 60px -16px rgba(220, 38, 38, 0.45);
  overflow: hidden;
}
#ai-assist-root.open #ai-assist-panel { display: flex; flex-direction: column; max-height: 420px; }
#ai-assist-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
}
#ai-assist-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ai-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.ai-msg.bot {
  align-self: flex-start;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.28);
  color: #e8e8e8;
}
.ai-msg.user {
  align-self: flex-end;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #050505;
  font-weight: 600;
}
#ai-assist-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(220, 38, 38, 0.25);
}
#ai-assist-input {
  flex: 1;
  border-radius: 0.75rem;
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: #121212;
  color: #f2f2f2;
  padding: 0.65rem 0.8rem;
  font-size: 0.8125rem;
  outline: none;
}
#ai-assist-input:focus { border-color: rgba(239, 68, 68, 0.7); }
#ai-assist-send {
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #050505;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0 0.9rem;
  border: none;
  cursor: pointer;
}
@media (max-width: 640px) {
  #ai-assist-root { left: 0.85rem; bottom: 5.5rem; }
  #ai-assist-toggle span.ai-label { display: none; }
  #ai-assist-toggle { padding: 0.55rem; }
}
