﻿/* ClayTeam Premium Landing v3.0 - 3D Cinematic Effects + Glassmorphism */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --bg2: #050508;
  --bg3: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.15);
  --purple: #8b5cf6;
  --purple-d: #7c3aed;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.5);
  --indigo: #6366f1;
  --indigo-bg: rgba(99, 102, 241, 0.1);
  --cyan: #22d3ee;
  --cyan-bg: rgba(34, 211, 238, 0.1);
  --cyan-glow: rgba(34, 211, 238, 0.5);
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.1);
  --red: #f87171;
  --amber: #fbbf24;
  --t1: #ffffff;
  --t2: #a1a1aa;
  --t3: #71717a;
  --t4: #52525b;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --max-w: 1280px;
  --px: clamp(20px, 5vw, 64px);
  --r: 16px;
  --r2: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Global 3D Canvas - Fixed background */
.global-3d-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}
a:hover {
  color: var(--cyan);
  transform: translateY(-2px);
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* Aurora Background - Global */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

.aurora-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 40%,
      rgba(139, 92, 246, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 60%,
      rgba(99, 102, 241, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 30% at 50% 80%,
      rgba(34, 211, 238, 0.08) 0%,
      transparent 40%
    );
  background-size: 200% 200%;
  animation: aurora-drift 20s ease-in-out infinite;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  pointer-events: none;
  animation: aurora-float 30s ease-in-out infinite;
}

.aurora-blob-1 {
  width: 800px;
  height: 800px;
  background: var(--purple);
  top: -300px;
  left: -200px;
  animation-delay: 0s;
}

.aurora-blob-2 {
  width: 600px;
  height: 600px;
  background: var(--indigo);
  bottom: -200px;
  right: -150px;
  animation-delay: -10s;
}

.aurora-blob-3 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: 60%;
  left: 40%;
  animation-delay: -20s;
}

@keyframes aurora-drift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes aurora-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  25% {
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 30px) scale(0.95);
    opacity: 0.45;
  }
  75% {
    transform: translate(40px, 20px) scale(1.05);
    opacity: 0.55;
  }
}

/* Stars - Global */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
}

/* Reveal animations with 3D */
.reveal {
  opacity: 0;
  transform: translateY(40px) translateZ(-100px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
  will-change: opacity, transform, filter;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* Navigation - Glassmorphism */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.8);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--t1);
  letter-spacing: -0.02em;
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.7);
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t2);
  position: relative;
  padding: 8px 0;
}

.nav__links a:hover {
  color: var(--t1);
}

.nav__links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.3s var(--ease);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
}

/* Hero Section - Cinematic */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
  perspective: 1000px;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--px);
  transform-style: preserve-3d;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
  }
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--t1) 0%, var(--t2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(50px);
}

.hero__title span {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--t2);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero__sub strong {
  color: var(--t1);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
  transform: translateZ(30px);
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.8;
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--t3);
  transition: all 0.3s;
}

.hero__trust span:hover {
  color: var(--t1);
  transform: translateY(-2px);
}

.hero__trust svg {
  color: var(--green);
}

/* Buttons - Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn--fill {
  padding: 18px 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-d), var(--purple));
  border-radius: var(--r);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn--fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  opacity: 0;
  transition: opacity 0.4s;
}

.btn--fill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5);
}

.btn--fill:hover::before {
  opacity: 1;
}
.btn--fill span {
  position: relative;
  z-index: 1;
}

.btn--line {
  padding: 18px 36px;
  color: var(--t2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
}

.btn--line:hover {
  border-color: var(--purple);
  color: var(--t1);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-3px);
}

.btn--ghost {
  padding: 12px 24px;
  font-size: 0.9rem;
  color: var(--t2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border2);
  color: var(--t1);
}

.btn--sm {
  padding: 14px 28px;
  font-size: 0.9rem;
}
.btn--block {
  width: 100%;
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    var(--purple),
    var(--cyan),
    var(--purple)
  );
  border-radius: calc(var(--r) + 2px);
  z-index: -1;
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.4s;
  animation: glow-rotate 3s linear infinite;
}

@keyframes glow-rotate {
  0% {
    filter: blur(15px) hue-rotate(0deg);
  }
  100% {
    filter: blur(15px) hue-rotate(360deg);
  }
}

.btn-glow:hover::after {
  opacity: 0.6;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple-light);
}

.btn--outline:hover {
  background: var(--purple);
  color: #fff;
}

/* 3D Interactive Effects Styles */

/* Button shine effect */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
  pointer-events: none;
}

.btn:hover::before {
  left: 100%;
}

/* Pricing card badge 3D effect */
.pricing-v2-card__badge {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Feature card float effect base */
.feature-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Product showcase card 3D */
.product-showcase-card {
  transform-style: preserve-3d;
}

/* Portal cards 3D */
.portal {
  transform-style: preserve-3d;
}

/* Enhanced hover states - will be controlled by JS */
[data-3d="true"]:hover {
  z-index: 10;
}

/* Mesh background styles */
.mesh-background {
  position: fixed;
  inset: 0;
  z-index: -15;
  overflow: hidden;
  pointer-events: none;
}

.mesh-background canvas {
  display: block;
}

/* Sections - Unified transparent background */
.section {
  position: relative;
  padding: clamp(100px, 12vw, 160px) 0;
  transform-style: preserve-3d;
  background: transparent;
}

.section--dark {
  background: transparent;
}

.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(60px, 8vw, 100px);
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.section__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section__title span {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__desc {
  font-size: 1.15rem;
  color: var(--t2);
  line-height: 1.8;
}

/* Terminal Cinematic Section */
.terminal-section {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(139, 92, 246, 0.03) 50%,
    transparent 100%
  );
}

.terminal-cinematic-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}

.terminal-cinematic-wrapper:hover {
  transform: perspective(1000px) rotateX(0deg) scale(1.01);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 10px;
}
.terminal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.terminal-dot--red {
  background: #ff5f56;
}
.terminal-dot--yellow {
  background: #ffbd2e;
}
.terminal-dot--green {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 8px;
}

.terminal-live {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--green);
}

.terminal-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}

.terminal-cinematic-body {
  padding: 32px;
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.8;
  min-height: 350px;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-line {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: line-appear 0.3s forwards;
}

@keyframes line-appear {
  to {
    opacity: 1;
  }
}

.terminal-line__time {
  color: var(--t4);
  flex-shrink: 0;
}

.terminal-line__content {
  color: var(--cyan);
}

.terminal-line__content--success {
  color: var(--green);
}
.terminal-line__content--info {
  color: var(--purple-light);
}
.terminal-line__content--warning {
  color: var(--amber);
}
.terminal-line__content--error {
  color: var(--red);
}

/* Features Grid - 3D Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1000px;
}

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

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 40px 32px;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.feature-card:hover {
  transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) translateZ(20px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(139, 92, 246, 0.1);
}

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

.feature-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-bg), var(--indigo-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: transform 0.5s;
}

.feature-card:hover .feature-card__icon {
  transform: scale(1.1) rotateY(180deg);
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Products Showcase */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  perspective: 1000px;
}

@media (max-width: 1024px) {
  .products-showcase {
    grid-template-columns: 1fr;
  }
}

.product-showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 48px 40px;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.product-showcase-card:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateZ(30px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.product-showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.05),
    transparent,
    rgba(34, 211, 238, 0.05)
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.product-showcase-card:hover::after {
  opacity: 1;
}

.product-showcase__badge {
  display: inline-flex;
  padding: 8px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.product-showcase__badge.is-3d-active {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.pill.is-3d-active {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.pill--green {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.product-showcase__badge--green {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.product-showcase__badge--purple {
  color: var(--purple-light);
  background: var(--purple-bg);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.product-showcase__badge--red {
  color: var(--red);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.product-showcase__name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.product-showcase__desc {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-showcase__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.product-showcase__features li {
  padding-left: 24px;
  position: relative;
  font-size: 0.95rem;
  color: var(--t2);
}

.product-showcase__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* Pricing Section - Glassmorphism */
.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.pricing-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(10px);
}

.pricing-toggle__btn {
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--t3);
  background: transparent;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-toggle__btn--active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--t1);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.pricing-toggle__badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 999px;
  font-weight: 600;
  transform-style: preserve-3d;
  will-change: transform;
  display: inline-block;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out;
}

.pricing-toggle__badge[data-3d="true"] {
  cursor: pointer;
}

.pricing-category {
  text-align: center;
  margin: 80px 0 40px;
}

.pricing-category:first-child {
  margin-top: 40px;
}

.pricing-category__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--purple-light);
}

.pricing-category__subtitle {
  font-size: 0.95rem;
  color: var(--t3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1000px;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

.pricing-v2-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r2);
  padding: 50px 32px 40px;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
  position: relative;
  overflow: visible;
}

.pricing-v2-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
}

.pricing-v2-card:hover:not(.badge-hover-active) {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateZ(20px);
}

.pricing-v2-card--highlighted:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateZ(30px);
}

.pricing-v2-card--highlighted {
  background: rgba(139, 92, 246, 0.05);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
}

.pricing-v2-card--highlighted:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateZ(30px);
}

.pricing-v2-card__badge {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--indigo));
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  will-change: transform;
  z-index: 100;
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out;
}

.pricing-v2-card__badge.is-3d-active {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.pricing-v2-card__badge.is-3d-pressed {
  transform: translateX(-50%) perspective(800px) rotateX(0) rotateY(0)
    translateZ(-10px) scale(0.95) !important;
}

/* Card con badge active - disabilita transform */
.pricing-v2-card[data-badge-active="true"] {
  transform: none !important;
}

.pricing-v2-card[data-badge-active="true"]:hover {
  transform: none !important;
}

.pricing-v2-card__header {
  margin-bottom: 28px;
}

.pricing-v2-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-v2-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.pricing-v2-card__amount {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--t1), var(--t2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-v2-card__period {
  font-size: 0.95rem;
  color: var(--t3);
}

.pricing-v2-card__desc {
  font-size: 0.9rem;
  color: var(--t3);
}

.pricing-v2-card__token-badge {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--r);
  margin-bottom: 24px;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out;
}

.pricing-v2-card__token-badge[data-3d="true"] {
  cursor: pointer;
}

.pricing-v2-card__token-badge--highlighted {
  background: linear-gradient(90deg, var(--purple-bg), var(--indigo-bg));
  border-color: rgba(139, 92, 246, 0.3);
}

.pricing-v2-card__token-badge--unlimited {
  background: linear-gradient(90deg, var(--green-bg), rgba(52, 211, 153, 0.2));
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}

.pricing-v2-card__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.pricing-v2-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--t2);
}

.pricing-v2-card__feature svg {
  flex-shrink: 0;
  color: var(--green);
}

.pricing-v2-card__feature--disabled {
  opacity: 0.5;
}

.pricing-v2-card__feature--disabled svg {
  color: var(--t4);
}

.pricing-v2-card__cta {
  display: block;
  width: 100%;
  padding: 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--t1);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  transition: all 0.3s;
}

.pricing-v2-card__cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--purple);
  transform: translateY(-2px);
}

.pricing-v2-card__cta--primary {
  background: linear-gradient(135deg, var(--purple-d), var(--purple));
  border: none;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.pricing-v2-card__cta--primary:hover {
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

/* Chat Preview */
.chat-preview-section {
  background: transparent;
}

.chat-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .chat-preview-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.chat-preview-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.chat-preview-text p {
  font-size: 1.1rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 32px;
}

.chat-preview-widget {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s var(--ease);
}

.chat-preview-widget:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-preview-channel {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--purple-light);
}

.chat-preview-messages {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message-preview {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: message-fade-in 0.5s ease forwards;
  opacity: 0;
  transform: translateX(-20px);
}

@keyframes message-fade-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-message-preview:nth-child(1) {
  animation-delay: 0.1s;
}
.chat-message-preview:nth-child(2) {
  animation-delay: 0.3s;
}
.chat-message-preview:nth-child(3) {
  animation-delay: 0.5s;
}
.chat-message-preview:nth-child(4) {
  animation-delay: 0.7s;
}

.chat-message-preview__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-message-preview__content {
  flex: 1;
}

.chat-message-preview__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.chat-message-preview__username {
  font-weight: 600;
  font-size: 0.9rem;
}

.chat-message-preview__time {
  font-size: 0.75rem;
  color: var(--t4);
}

.chat-message-preview__text {
  font-size: 0.9rem;
  color: var(--t2);
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0.3;
  animation: line-pulse 4s ease-in-out infinite;
}

@keyframes line-pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.4;
  }
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.cta-content h2 span {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--t2);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Portals */
.portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  perspective: 1000px;
}

@media (max-width: 1024px) {
  .portals {
    grid-template-columns: 1fr;
  }
}

.portal {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r2);
  padding: 48px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.5s var(--ease);
  transform-style: preserve-3d;
}

.portal:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateZ(20px);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(139, 92, 246, 0.1);
}

.portal__emoji {
  font-size: 3.5rem;
  margin-bottom: 8px;
  transition: transform 0.5s;
}

.portal:hover .portal__emoji {
  transform: scale(1.2) rotateY(360deg);
}

.portal__name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.portal__desc {
  font-size: 0.95rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  transform-style: preserve-3d;
  will-change: transform;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
}

.pill.is-3d-active {
  transform: perspective(800px) rotateX(-15deg) rotateY(15deg) translateZ(40px)
    scale(1.15);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.pill--green {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

/* Footer */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 800;
}

.footer__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--t1);
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--t3);
  margin-left: 8px;
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--t3);
}

.footer__links a:hover {
  color: var(--t1);
}

/* Telegram FAB */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2aabee;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px rgba(42, 171, 238, 0.4);
  z-index: 999;
  transition: all 0.3s var(--ease);
  font-size: 0;
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(42, 171, 238, 0.5);
}

.fab::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.64 6.8c-.15 1.58-.8 5.42-1.13 7.19-.14.75-.42 1-.68 1.03-.58.05-1.02-.38-1.58-.75-.88-.58-1.38-.94-2.23-1.5-.99-.65-.35-1.01.22-1.59.15-.15 2.71-2.48 2.76-2.69a.2.2 0 00-.05-.18c-.06-.05-.14-.03-.21-.02-.09.02-1.49.95-4.22 2.79-.4.27-.76.41-1.08.4-.36-.01-1.04-.2-1.55-.37-.63-.2-1.12-.31-1.08-.66.02-.18.27-.36.74-.55 2.92-1.27 4.86-2.11 5.83-2.51 2.78-1.16 3.35-1.36 3.73-1.36.08 0 .27.02.39.12.09.08.13.19.14.3z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}
::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav__toggle {
    display: flex;
  }
  .hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .products-showcase {
    grid-template-columns: 1fr;
  }
  .portals {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .terminal-cinematic-wrapper {
    transform: none;
  }
}

/* Smooth scroll polyfill support */
html {
  scroll-behavior: smooth;
}

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