/* ========================================
   SCALYNN - Design System & Styles
   ======================================== */

/* --- CSS Variables (Design Tokens from Stitch) --- */
:root {
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --bg-dark: #0B0D12;
  --surface-dark: #16181D;
  --charcoal-card: #111318;
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(124, 58, 237, 0.4);
  --glow-sm: 0 0 20px rgba(124, 58, 237, 0.4);
  --glow-md: 0 0 30px rgba(124, 58, 237, 0.6);
  --violet-gradient: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  --font-display: 'Manrope', sans-serif;
  --nav-bg: rgba(11, 13, 18, 0.85);
}

body.light-mode {
  --bg-dark: #F9FAFB;
  --surface-dark: #FFFFFF;
  --charcoal-card: #F3F4F6;
  --text-main: #111827;
  --text-muted: #374151;
  /* Darker slate for better legibility */
  --border-subtle: rgba(124, 58, 237, 0.15);
  /* Tinted subtle borders */
  --border-hover: rgba(124, 58, 237, 0.5);
  --nav-bg: rgba(249, 250, 251, 0.9);
  --glass-bg: rgba(124, 58, 237, 0.08);
  /* Replaces faint white with violet tint */
  --glass-bg-hover: rgba(124, 58, 237, 0.15);
  --glass-border: rgba(124, 58, 237, 0.25);
}

/* Force dark text and icons on scrolled navbar in light mode */
body.light-mode .glass-nav.scrolled .nav-links a,
body.light-mode .glass-nav.scrolled .nav-contact {
  color: #111827 !important;
}

body.light-mode .glass-nav.scrolled .nav-links a:hover,
body.light-mode .glass-nav.scrolled .nav-contact:hover {
  color: var(--primary) !important;
}

body.light-mode .glass-nav.scrolled #themeIcon {
  filter: brightness(0) !important;
}

/* Force white text on top transparent navbar (over dark video) */
body.light-mode .glass-nav:not(.scrolled) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.light-mode .glass-nav:not(.scrolled) .nav-links a,
body.light-mode .glass-nav:not(.scrolled) .nav-contact,
body.light-mode .glass-nav:not(.scrolled) #themeIcon {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.light-mode .glass-nav:not(.scrolled) .nav-links a:hover,
body.light-mode .glass-nav:not(.scrolled) .nav-contact:hover {
  color: #FFFFFF !important;
}

body.light-mode .glass-nav:not(.scrolled) #mainLogo {
  filter: none !important;
}

/* Force white text on hero and top transparent navbar (over dark video) */
body.light-mode .glass-nav:not(.scrolled) {
  --text-main: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.15);
}

body.light-mode .hero {
  color: #FFFFFF !important;
}

body.light-mode .hero .h1,
body.light-mode .hero p:not(.text-muted):not(.text-primary),
body.light-mode .hero span:not(.material-symbols-outlined):not(.text-primary),
body.light-mode .hero strong {
  color: #FFFFFF !important;
}

body.light-mode .hero .text-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.light-mode .hero .text-primary {
  color: var(--primary) !important;
}

body.light-mode #footerLogo {
  filter: brightness(0);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
   Typing Cursor & Aura
   ======================================== */
.typewrite>.wrap {
  border-right: 0.08em solid var(--primary);
  animation: blink-caret .75s step-end infinite;
  display: inline-block;
  padding-right: 4px;
}

.subtitle-aura>.wrap {
  color: #fff;
}

body.light-mode .subtitle-aura>.wrap {
  color: var(--text-main);
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--primary);
  }
}

/* ========================================
   SERVICE TICKER / MARQUEE
   ======================================== */
.service-ticker-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  position: relative;
  display: flex;
}

/* Fade ends */
.service-ticker-wrapper::before,
.service-ticker-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.service-ticker-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}

.service-ticker-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}

.service-ticker {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scrollTicker 30s linear infinite;
  padding-right: 4rem;
  /* Match the gap */
}

.service-ticker:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  min-width: 80px;
  cursor: default;
}

.ticker-item:hover {
  color: var(--text-main);
}

.ticker-item .material-symbols-outlined {
  font-size: 1.75rem;
  opacity: 0.8;
}

.ticker-item span.text {
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Ticker overrides for Light Mode */
body.light-mode .service-ticker-wrapper {
  background: var(--surface-dark);
  /* Changed from --surface-light to --surface-dark as per existing light-mode vars */
}

body.light-mode .service-ticker-wrapper::before {
  background: linear-gradient(to right, var(--surface-dark) 0%, transparent 100%);
  /* Changed from --surface-light */
}

body.light-mode .service-ticker-wrapper::after {
  background: linear-gradient(to left, var(--surface-dark) 0%, transparent 100%);
  /* Changed from --surface-light */
}

body.light-mode .ticker-item {
  color: var(--text-muted);
}

body.light-mode .ticker-item:hover {
  color: var(--primary);
}

body.light-mode .social-link:hover {
  color: var(--primary) !important;
}

/* ========================================
   Light Mode Trust Logos
   ======================================== */
body.light-mode .logo-invert-light {
  filter: brightness(0) opacity(60%);
}

body.light-mode .logo-invert-light:hover {
  filter: brightness(0) opacity(100%);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--primary);
  color: white;
}

/* --- Layout --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Typography --- */
.h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
  font-weight: 300;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-muted {
  color: var(--text-muted);
}

.text-primary {
  color: var(--primary);
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary), #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.4));
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.2em;
}

.uppercase {
  text-transform: uppercase;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-gradient);
  color: white;
  font-weight: 700;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: var(--glow-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: var(--glow-md);
  transform: scale(1.05);
}

.btn-primary.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

.btn-primary.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  color: var(--primary);
  font-weight: 700;
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(124, 58, 237, 0.5);
}

/* --- Navigation --- */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  transition: height 0.3s ease;
}

.glass-nav.scrolled .nav-inner {
  height: 3.5rem;
}

@media (min-width: 640px) {
  .nav-inner {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 0 3rem;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 2.5rem;
  transition: height 0.3s ease;
}

.glass-nav.scrolled .nav-logo img {
  height: 2rem;
}

.nav-logo-icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  overflow: hidden;
}

.nav-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.nav-logo-text span {
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-contact {
  display: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-contact:hover {
  color: var(--text-main);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-contact {
    display: inline-flex;
  }
}

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: rgba(11, 13, 18, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem;
  z-index: 49;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--text-main);
}

/* --- Cards --- */
.tech-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tech-card:hover {
  border-color: var(--service-border-hover);
  background: var(--service-hover-tint);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
  transition: background 0.3s;
}

.tech-card:hover .card-icon {
  background: var(--glass-bg-hover);
}

.card-icon .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.tech-card:hover .card-icon .material-symbols-outlined {
  transform: scale(1.1);
}

/* --- Sections --- */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-border {
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 5rem;
}

/* --- Service List Layout (Minimal / Krab-e style) --- */
.krabe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .krabe-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .krabe-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* CORE grid: 1 col mobile → 2 cols tablet → 4 cols desktop */
.krabe-grid.krabe-grid-core {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .krabe-grid.krabe-grid-core {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .krabe-grid.krabe-grid-core {
    grid-template-columns: repeat(4, 1fr);
  }
}

.krabe-grid.complementary-grid {
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .krabe-grid.complementary-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.krabe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.5rem;
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.krabe-card.core {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.05);
  padding: 2.5rem 1.5rem;
}

.core-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.1em;
}

.krabe-card:hover {
  background: var(--glass-bg);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

.krabe-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--text-muted);
  transition: all 0.4s ease;
  margin-bottom: 1rem;
}

.krabe-card.core .material-symbols-outlined {
  color: var(--primary);
}

.krabe-card:hover .material-symbols-outlined {
  color: var(--primary);
  transform: scale(1.1);
}

.krabe-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.05em;
  transition: transform 0.4s ease;
}

.krabe-card.core .krabe-card-title {
  font-size: 1.125rem;
}

.krabe-card-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.krabe-card.core .krabe-card-desc {
  margin-top: 1rem;
  max-height: 150px;
  opacity: 1;
  visibility: visible;
}

.krabe-card:hover .krabe-card-desc {
  margin-top: 1rem;
  max-height: 150px;
  /* Safe upper bound for text */
  opacity: 1;
  visibility: visible;
}

/* --- Testimonials / Results Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
}

.testimonial-metrics {
  display: flex;
  gap: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.testimonial-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  border-left: 3px solid rgba(124, 58, 237, 0.4);
  padding-left: 1rem;
  margin: 0;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--violet-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-avatar-img {
  background: transparent;
  padding: 0;
  border: none;
}

.testimonial-avatar-img .client-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
  margin: 0;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Comparison /* --- 6. DOLORES (PAIN POINTS) --- */
.pain-container {
  max-width: 64rem;
  margin: 0 auto;
}

.comparison-table-wrapper {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
}

.comparison-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.table-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.cost-value {
  color: #F87171;
  font-weight: 600;
}

.table-total {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text-main);
}

.total-value {
  color: #EF4444;
  font-size: 1.5rem;
}

.comparison-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .comparison-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.comp-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.comp-card.scalynn-highlight {
  border: 2px solid var(--primary);
  background: rgba(124, 58, 237, 0.05);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
  transform: scale(1.03);
}

.comp-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.comp-price-main {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.comp-price-secondary {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
  font-size: 0.9375rem;
}

.comp-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
}

.comp-list li::before {
  content: "check_circle";
  font-family: 'Material Symbols Outlined';
  color: var(--primary);
  font-size: 1.125rem;
}

.comp-card:not(.scalynn-highlight) .comp-list li::before {
  content: "cancel";
  color: #EF4444;
}

.savings-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.125rem;
}

.savings-banner .material-symbols-outlined {
  color: #10B981;
  font-size: 2rem;
}

.highlight-green {
  color: #10B981;
  font-weight: 800;
}

/* --- 6. HERO --- */
.hero {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0 10rem;
  }
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  width: 100%;
}

.hero-visual {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-visual {
    order: 2;
    justify-content: flex-end;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 9999px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

.hero-badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .hero-btns {
    flex-direction: row;
  }
}

/* Hero Animated Background (Mesh Gradient) */
.hero {
  padding: 5rem 0 6rem;
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: #0B0D12 !important;
  /* Forces black behind transparent video in light mode */
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0 10rem;
    min-height: 90vh;
  }
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  /* Slight opacity to blend nicely if needed */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient overlay to ensure text readability, krab-e style */
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.3) 0%, rgba(7, 7, 7, 0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  /* Removed solid background to let the video shine through */
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 60vw;
  height: 60vh;
  background: rgba(124, 58, 237, 0.4);
  /* Primary Purple */
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.orb-2 {
  width: 50vw;
  height: 50vh;
  background: rgba(167, 139, 250, 0.3);
  /* Lighter Purple */
  bottom: -20%;
  right: -10%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  width: 40vw;
  height: 40vh;
  background: rgba(59, 130, 246, 0.2);
  /* Soft Blue/Indigo */
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 28s;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(5%, 10%) scale(1.1);
  }

  66% {
    transform: translate(-5%, -5%) scale(0.9);
  }

  100% {
    transform: translate(10%, -10%) scale(1.05);
  }
}

/* --- Service Marquee --- */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  white-space: nowrap;
  position: relative;
  display: flex;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: scrollMarquee 30s linear infinite;
  padding-left: 3rem;
  /* Same as gap to keep space even */
  width: fit-content;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  cursor: default;
}

.marquee-item:hover {
  color: var(--primary);
}

.marquee-item .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--primary);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 1.5rem));
  }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--surface-dark);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 4rem 0;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem 6rem;
}

.trust-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(60%);
  transition: all 0.3s ease;
  cursor: pointer;
}

.trust-logo-img:hover {
  filter: grayscale(0%) opacity(100%);
}

/* --- Pain Points (Dolores) --- */
.pain-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.pain-grid {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.pain-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pain-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  width: 66.666%;
  max-width: 800px;
}

.pain-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pain-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at 50% 0%, rgba(124, 58, 237, 0.05), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: -1;
}

.pain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1), 0 0 20px rgba(124, 58, 237, 0.1);
}

.pain-card:hover::before {
  opacity: 1;
}

.pain-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s;
}

.pain-card:hover .pain-icon-wrapper {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.pain-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.pain-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 991px) {

  .pain-grid-3,
  .pain-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

@media (max-width: 767px) {

  .pain-grid-3,
  .pain-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* --- Calculator --- */
.calc-wrapper {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
}

@media (min-width: 768px) {
  .calc-wrapper {
    padding: 3rem;
  }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-input-group {
  margin-bottom: 1.75rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.calc-value {
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-dark);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
  cursor: pointer;
  border: 2px solid white;
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
  cursor: pointer;
  border: 2px solid white;
}

.calc-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: help;
  position: relative;
}

.calc-tooltip .tip-text {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-dark);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  width: 220px;
  border: 1px solid var(--border-subtle);
  z-index: 10;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.calc-tooltip:hover .tip-text {
  display: block;
}

/* Results */
.calc-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.calc-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.calc-result-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.calc-result-value.loss {
  color: #EF4444;
}

.calc-result-value.gain {
  color: #10B981;
}

.calc-total {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

.calc-total-label {
  font-size: 0.875rem;
  color: #F87171;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.calc-total-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: #EF4444;
}

/* Blurred gate */
.calc-gate-blur {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.5s;
}

.calc-gate-blur.unlocked {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.calc-gate-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  background: rgba(11, 13, 18, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: opacity 0.5s;
}

.calc-gate-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.gate-email-input {
  width: 100%;
  max-width: 320px;
  padding: 0.875rem 1rem;
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: var(--text-main);
  font-size: 0.875rem;
  margin-top: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.gate-email-input:focus {
  border-color: var(--primary);
}

.gate-email-input::placeholder {
  color: var(--text-muted);
}

/* --- Team --- */
.team-card {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.team-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.1);
}

.team-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--surface-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-card:hover .team-avatar {
  border-color: rgba(124, 58, 237, 0.5);
}

.team-avatar .material-symbols-outlined {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.team-card:hover .team-avatar .material-symbols-outlined {
  color: var(--primary);
}

.team-role {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  color: var(--text-main);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .material-symbols-outlined {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform 0.3s;
}

.faq-item.open .faq-question .material-symbols-outlined {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1), var(--bg-dark), var(--bg-dark));
  pointer-events: none;
}

.micro-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-dark);
  padding: 4rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-main);
}

/* --- Popups --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.popup-overlay.active .popup-modal {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.popup-close:hover {
  color: var(--text-main);
}

.popup-decline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: none;
  margin-top: 1rem;
  transition: color 0.2s;
  display: block;
}

.popup-decline:hover {
  color: var(--text-main);
}

/* Slide-in */
.popup-slidein {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  background: var(--charcoal-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 380px;
  width: calc(100% - 3rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(120%);
  transition: transform 0.4s ease;
}

.popup-slidein.active {
  transform: translateY(0);
}

.popup-slidein .popup-close {
  top: 0.75rem;
  right: 0.75rem;
}

/* Sticky banner */
.popup-banner {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 49;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, top 0.3s ease, opacity 0.4s ease, visibility 0.4s;
  flex-wrap: wrap;
}

.glass-nav.scrolled~.popup-banner {
  top: 3.5rem;
}

.popup-banner.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.popup-banner p {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.popup-banner .popup-close {
  position: static;
  font-size: 1.25rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes trailPulse {

  0%,
  100% {
    opacity: 0.4;
    height: 40px;
  }

  50% {
    opacity: 0.8;
    height: 60px;
  }
}

@keyframes dashFlow {
  0% {
    stroke-dashoffset: 28;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

/* --- Utility --- */
.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.gap-5 {
  gap: 1.25rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-grow {
  flex-grow: 1;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.leading-relaxed {
  line-height: 1.625;
}