/* ===== CSS Variables (Design Tokens) ===== */
html {
  zoom: 0.67;
}

:root {
  /* Colors - Light Mode */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.625rem;
  
  /* Custom Variables */
  --emerald-400: #10b981;
  --emerald-500: #059669;
  --sky-400: #38bdf8;
  --fuchsia-400: #c084fc;
  --purple-600: #7c3aed;
  --rose-300: #fda4af;
  
  /* Fonts */
  --font-sans: 'Geist Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-space-grotesk: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-inter: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Dark mode variables */
.dark,
:root {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
}

/* ===== Global Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  border: 0 solid var(--border);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* ===== Base Styles ===== */
html {
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-feature-settings: "rlig" 1, "calt" 1;
  overflow-x: hidden;
}

/* ===== App Container ===== */
.app-container {
  position: relative;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Typography ===== */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
  position: fixed;
  z-index: 60;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: transform;
  border: 1.4px solid rgba(16, 185, 129, 0.8);
  box-shadow: 
    0 0 18px rgba(16, 185, 129, 0.55),
    inset 0 0 10px rgba(16, 185, 129, 0.35);
  transition: transform 0.1s ease-out;
}

.custom-cursor.scale {
  transform: scale(1.35);
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.particles-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.glitch-badge {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  user-select: none;
  transform: translateY(0);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0); 
  }
  50% { 
    transform: translateY(-6px); 
  }
}

.glitch-badge span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgb(167, 243, 208);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.glitch-text {
  position: relative;
  text-shadow:
    0 0 8px rgba(45, 255, 196, 0.7),
    0 0 16px rgba(124, 58, 237, 0.6);
}

.glitch-text::before,
.glitch-text::after {
  content: "Enterprise-ready";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
}

.glitch-text::before {
  transform: translate(1px, 0);
  color: rgba(59, 130, 246, 0.9);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
  animation: glitch-anim 2.6s infinite linear alternate-reverse;
}

.glitch-text::after {
  transform: translate(-1px, 0);
  color: rgba(16, 185, 129, 0.9);
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip-path: inset(0 0 60% 0); }
  50% { clip-path: inset(0 0 40% 0); }
  100% { clip-path: inset(0 0 50% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(50% 0 0 0); }
  50% { clip-path: inset(40% 0 0 0); }
  100% { clip-path: inset(45% 0 0 0); }
}

.hero-bg-gradients {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at top, rgba(0, 255, 200, 0.08), transparent 50%),
    radial-gradient(ellipse at bottom, rgba(120, 0, 255, 0.08), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.hero-title {
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.hero-title-text {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-inter);
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Mockup */
.hero-mockup {
  margin-top: 2.5rem;
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.mockup-card {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(40px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 60px rgba(0, 255, 200, 0.15),
    inset 0 0 60px rgba(120, 0, 255, 0.12);
  cursor: pointer;
  transition: transform 0.3s ease-out;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.mockup-card:hover {
  transform: rotateX(6deg) rotateY(-6deg) scale(1.02);
}

.mockup-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 200, 0.15), rgba(120, 0, 255, 0.15));
  opacity: 0.4;
}

.mockup-radial-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%);
}

.mockup-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-demo {
  padding: 1.5rem 1rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.mockup-progress-bar {
  height: 0.5rem;
  width: 12rem;
  background: linear-gradient(to right, 
    rgba(16, 185, 129, 0.6), 
    rgba(56, 189, 248, 0.6), 
    rgba(196, 132, 252, 0.6));
  border-radius: 9999px;
  animation: pulse 2s ease-in-out infinite;
}

.mockup-secondary-bar {
  margin-top: 0.5rem;
  height: 0.5rem;
  width: 16rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

.mockup-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.mockup-item {
  height: 4rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero CTA */
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

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

.cta-primary,
.cta-secondary {
  padding: 1.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.cta-primary {
  background: rgba(16, 185, 129, 0.2);
  color: rgb(167, 243, 208);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.cta-primary:hover {
  background: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 36px rgba(16, 185, 129, 0.7);
  transform: translateY(-2px);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.6);
  transform: translateY(-2px);
}

.cta-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ===== Features Section ===== */
.features-section {
  position: relative;
  padding: 6rem 0;
  background: #000000;
}

.features-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.feature-card {
  position: relative;
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(40px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.18);
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(0deg);
  opacity: 0;
  animation: fadeInRotate 0.6s ease-out forwards;
}

.feature-card:nth-child(even) {
  animation-delay: 0.1s;
  transform: rotate(-1.5deg);
}

.feature-card:nth-child(odd) {
  animation-delay: 0.05s;
  transform: rotate(1.5deg);
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rotate, 1deg));
  }
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.02) rotate(var(--rotate, 1deg));
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.25);
}

.feature-bg-gradient {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  background: linear-gradient(135deg, 
    rgba(16, 185, 129, 0.1), 
    rgba(56, 189, 248, 0.05), 
    rgba(196, 132, 252, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-bg-gradient {
  opacity: 1;
}

.feature-icon {
  color: rgb(110, 231, 183);
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.clickable-icon {
  cursor: pointer;
  position: relative;
  overflow: visible;
  padding: 8px;
  border-radius: 8px;
  background: rgba(110, 231, 183, 0.1);
  border: 1px solid rgba(110, 231, 183, 0.2);
}

.clickable-icon:hover {
  background: rgba(110, 231, 183, 0.2);
  border-color: rgb(110, 231, 183);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(110, 231, 183, 0.4);
}

.clickable-icon:active {
  transform: scale(1.05);
}

.clickable-icon::before {
  content: "Click aquí";
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(110, 231, 183, 0.9);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.clickable-icon:hover::before {
  opacity: 1;
  bottom: -35px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ===== Integrations Section ===== */
.integrations-section {
  position: relative;
  padding: 6rem 0;
  background: #000000;
}

.integrations-bg-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08), transparent 60%);
}

.logos-marquee {
  margin-top: 2rem;
  overflow: hidden;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  animation: scroll 24s linear infinite;
}

/* Removed hover pause - animation should be continuous */

@keyframes scroll {
  from { 
    transform: translateX(0); 
  }
  to { 
    transform: translateX(-50%); 
  }
}

.logo-item {
  height: 3rem;
  width: auto;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: grayscale(70%) brightness(1.2);
  max-width: 8rem;
  object-fit: contain;
}

.logo-item:hover {
  opacity: 1;
  filter: grayscale(0%) drop-shadow(0 0 12px rgba(16, 185, 129, 0.6));
  transform: scale(1.1);
}

.integrations-toggle {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.integrations-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Integrations Gallery */
.integrations-gallery {
  margin-top: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px);
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.integrations-gallery:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

.gallery-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.tab-button.active,
.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

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

.gallery-item {
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.gallery-logo {
  height: 2.5rem;
  width: auto;
  margin: 0 auto 0.75rem;
  opacity: 0.85;
}

.gallery-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  position: relative;
  padding: 6rem 0;
  background: #000000;
}

.testimonials-cube-container {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  perspective: 1000px;
}

.testimonials-cube {
  position: relative;
  width: 20rem;
  height: 20rem;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}

/* Fallback simple rotation for better performance */
@keyframes rotateCube {
  0% { 
    transform: rotateY(0deg); 
  }
  100% { 
    transform: rotateY(360deg); 
  }
}

.cube-face {
  position: absolute;
  width: 20rem;
  height: 20rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cube-face.front {
  transform: rotateY(0deg) translateZ(10rem);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(10rem);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(10rem);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(10rem);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(10rem);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(10rem);
}

/* Default state: show front face if JavaScript fails to load */
.cube-face {
  opacity: 1;
  z-index: 1;
}

.cube-face.front {
  opacity: 1;
  z-index: 10;
}

/* Optimized carousel styles (applied by JavaScript) */
.testimonials-cube.optimized {
  animation: none;
  transform: none;
  transform-style: flat;
  overflow: hidden;
}

.testimonials-cube.optimized .cube-face {
  transform: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonials-cube.optimized .cube-face.active {
  opacity: 1;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .testimonials-cube {
    animation: none !important;
  }
  
  .testimonials-cube .cube-face {
    transition: opacity 0.2s ease !important;
  }
}

.testimonial {
  text-align: center;
}

.testimonial p {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  color: #ffffff;
}

.author-title {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.cube-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
}

.cube-control {
  width: 0.875rem;
  height: 0.875rem;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cube-control::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--emerald-400);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cube-control:hover::before {
  transform: scale(0.8);
}

.cube-control.active::before {
  transform: scale(1);
}

.cube-control:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(16, 185, 129, 0.3);
  transform: scale(1.1);
}

.cube-control.active {
  background: var(--emerald-400);
  border-color: var(--emerald-400);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

/* Responsive design for testimonials */
@media (max-width: 768px) {
  .testimonials-carousel {
    height: 18rem;
  }
  
  .testimonial-slide {
    padding: 1.5rem;
  }
  
  .testimonial p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .author-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .author-name {
    font-size: 0.875rem;
  }
  
  .author-title {
    font-size: 0.75rem;
  }
  
  .cube-control {
    width: 1rem;
    height: 1rem;
    margin: 0.25rem;
  }
  
  .cube-controls {
    gap: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .testimonials-carousel {
    height: 16rem;
  }
  
  .testimonial-slide {
    padding: 1rem;
  }
  
  .testimonial p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .author-avatar {
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
  }
}

/* ===== Product Story Section ===== */
.product-story-section {
  position: relative;
  padding: 6rem 0;
  background: #000000;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.story-paragraph {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-400), var(--sky-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

.story-visual {
  display: flex;
  justify-content: center;
}

.story-image {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
}

/* ===== Lead Form Section ===== */
.lead-form-section {
  position: relative;
  padding: 6rem 0;
  background: #000000;
}

.form-container {
  max-width: 48rem;
  margin: 0 auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.form-bg-gradients {
  position: absolute;
  inset: -0.25rem;
  opacity: 0.3;
  background: 
    radial-gradient(600px circle at 70% 20%, rgba(16, 185, 129, 0.25), transparent),
    radial-gradient(600px circle at 20% 80%, rgba(168, 85, 247, 0.25), transparent);
  pointer-events: none;
}

.lead-form {
  position: relative;
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .form-row:not(:last-child) {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #ffffff;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-error {
  color: var(--rose-300);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.form-submit {
  width: 100%;
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: rgb(167, 243, 208);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.form-submit:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-loading {
  display: none;
}

.form-submit.loading .submit-text {
  display: none;
}

.form-submit.loading .submit-loading {
  display: inline;
}

.form-loading-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(to right, var(--emerald-400), var(--sky-400), var(--fuchsia-400));
  transform: translateX(-100%);
  transition: transform 1.6s linear;
}

.loading-progress.animate {
  animation: progress 1.6s linear infinite;
}

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

/* ===== Blog Section ===== */
.blog-section {
  position: relative;
  padding: 6rem 0;
  background: #000000;
}

.blog-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.blog-card {
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card.featured {
  grid-row: 1 / -1;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
}

.blog-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.blog-card.featured .blog-image {
  height: 16rem;
}

.blog-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  color: rgb(167, 243, 208);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card.featured .blog-title {
  font-size: 1.5rem;
}

.blog-excerpt {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Footer ===== */
.tech-footer {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr 3fr;
  }
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.logo-symbol {
  font-size: 1.5rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.5rem;
}

.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-list a:hover {
  color: var(--emerald-400);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

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

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--emerald-400);
}

/* ===== Diagonal Menu ===== */
.diagonal-menu-fab {
  position: fixed;
  z-index: 110;
  bottom: 1.5rem;
  right: 1.5rem;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: rgb(167, 243, 208);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagonal-menu-fab:hover {
  background: rgba(16, 185, 129, 0.35);
  transform: scale(1.05);
}

.fab-icon {
  font-size: 1.5rem;
}

.diagonal-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.diagonal-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.diagonal-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.diagonal-menu-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 86vw;
  max-width: 55rem;
  height: 70vh;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 12%);
  transform: scale(0.9) translate(40px, 40px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.diagonal-menu-overlay.active .diagonal-menu-panel {
  transform: scale(1) translate(0, 0);
}

.menu-panel-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.22), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.22), transparent 55%);
}

.menu-panel-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 180deg at 100% 0%, rgba(16, 185, 129, 0.35), rgba(16, 185, 129, 0) 60%);
  mix-blend-mode: screen;
}

.menu-panel-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: 2.5rem;
}

.menu-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-close:hover {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.menu-header {
  margin-bottom: 1.5rem;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgb(167, 243, 208);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.35);
  transform: translateY(-2px);
}

.menu-icon {
  color: rgb(110, 231, 183);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.menu-item:hover .menu-icon {
  transform: scale(1.1);
}

.menu-label {
  font-weight: 500;
}

.menu-cta {
  width: 100%;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: rgb(167, 243, 208);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
  font-family: var(--font-sans);
  font-weight: 500;
}

.menu-cta:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

/* ===== Video Modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  max-width: 48rem;
  width: 90vw;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.video-modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.modal-description {
  color: rgba(255, 255, 255, 0.7);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.modal-video {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  margin: 1rem;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* ===== Toast Container ===== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.1);
}

.toast.error {
  border-color: var(--rose-300);
  background: rgba(239, 68, 68, 0.1);
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast-description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Utility Classes ===== */
.hidden {
  display: none !important;
}

.visible {
  visibility: visible !important;
}

.opacity-0 {
  opacity: 0 !important;
}

.opacity-100 {
  opacity: 1 !important;
}

/* ===== Responsive Utilities ===== */
.md\:block {
  display: block;
}

@media (max-width: 767px) {
  .md\:block {
    display: none;
  }
  
  .hidden {
    display: none;
  }
}

/* ===== Animation Utilities ===== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--emerald-400);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .feature-card,
  .blog-card,
  .menu-item {
    border-color: #ffffff;
  }
}