/* ========================================
   LUNA MARKETING - Design System & Styles
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors - Cosmic dark theme */
  --color-bg-primary: #06081A;
  --color-bg-secondary: #0C0F2E;
  --color-bg-card: rgba(15, 18, 50, 0.65);
  --color-bg-card-hover: rgba(25, 30, 70, 0.75);
  --color-bg-glass: rgba(130, 100, 255, 0.06);

  /* Accent Colors */
  --color-accent-violet: #8B5CF6;
  --color-accent-violet-light: #A78BFA;
  --color-accent-cyan: #06D6A0;
  --color-accent-pink: #E040FB;
  --color-accent-blue: #3B82F6;
  --color-accent-gold: #F59E0B;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #06D6A0 100%);
  --gradient-hero: linear-gradient(180deg, rgba(6, 8, 26, 0) 0%, rgba(6, 8, 26, 0.9) 100%);
  --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.12) 0%, rgba(6, 214, 160, 0.08) 100%);
  --gradient-text: linear-gradient(135deg, #A78BFA 0%, #06D6A0 50%, #E040FB 100%);
  --gradient-border: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 214, 160, 0.4));
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

  /* Text Colors */
  --color-text-primary: #F1F0FB;
  --color-text-secondary: #B1AED0;
  --color-text-muted: #7C7A9C;
  --color-text-accent: #A78BFA;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Font Sizes */
  --fs-hero: clamp(2.5rem, 6vw, 5rem);
  --fs-h1: clamp(2rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --fs-small: 0.875rem;
  --fs-tiny: 0.75rem;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(139, 92, 246, 0.08), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 16px 48px rgba(139, 92, 246, 0.15), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.2);
  --shadow-glow-strong: 0 0 60px rgba(139, 92, 246, 0.35);
  --shadow-btn: 0 4px 20px rgba(139, 92, 246, 0.3);
  --shadow-btn-hover: 0 8px 30px rgba(139, 92, 246, 0.45);

  /* Transitions */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-card: 10;
  --z-nav: 50;
  --z-modal: 100;
  --z-toast: 999;

  /* Content Width */
  --max-width: 1200px;
  --content-padding: clamp(1rem, 4vw, 2rem);

  /* Phone mockup scale */
  --phone-scale: 1;

  /* Standardized Hero Height */
  --service-hero-min-height: 810px;
}

@media (max-width: 1023px) {
  :root {
    --phone-scale: 0.85;
  }
}

@media (max-width: 639px) {
  :root {
    --phone-scale: 0.72;
  }
}

@media (max-width: 380px) {
  :root {
    --phone-scale: 0.60;
  }
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent-violet) var(--color-bg-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary);
}

a {
  color: var(--color-accent-violet-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-cyan);
}

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

/* --- Custom Scrollbar (Webkit) --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent-violet);
  border-radius: var(--radius-full);
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 650px;
  line-height: 1.8;
}

/* --- Animated background stars --- */
.stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: var(--z-nav);
  background: rgba(6, 8, 26, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(6, 8, 26, 0.92);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-card);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.navbar-logo-img {
  height: 40px;
  width: auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.4));
  transition: filter var(--transition-base);
}

.navbar-logo:hover .navbar-logo-img {
  filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.6));
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar-links a:hover {
  color: var(--color-text-primary);
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.5rem var(--content-padding) 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.layer-bg {
  background-image: url('assets/images/hero-bg.png');
  opacity: 0.6;
}

.layer-moon {
  background-image: url('assets/images/moon.png');
  background-size: 70%;
  background-position: right top;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.1));
}

.layer-astronaut {
  background-image: url('assets/images/astronaut.png');
  background-size: 45%;
  background-position: right 10% bottom -5%;
  background-repeat: no-repeat;
  z-index: 2;
  filter: drop-shadow(-10px 20px 30px rgba(0, 0, 0, 0.8));
}

.cursor-rocket {
  position: fixed;
  top: -60px;
  left: -30px;
  width: 60px;
  height: 120px;
  background: url('assets/images/rocket.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
}

body.rocket-cursor-active,
body.rocket-cursor-active * {
  cursor: none !important;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(6, 8, 26, 0.1) 0%,
      rgba(6, 8, 26, 0.3) 50%,
      rgba(6, 8, 26, 0.95) 100%);
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
}

.hero-glow-1 {
  top: 15%;
  left: 10%;
  background: var(--color-accent-violet);
}

.hero-glow-2 {
  bottom: 20%;
  right: 10%;
  background: var(--color-accent-cyan);
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  text-align: left;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1.2rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 500;
  color: var(--color-accent-violet-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  animation: pulse-border 3s ease infinite;
}

@keyframes pulse-border {

  0%,
  100% {
    border-color: rgba(139, 92, 246, 0.25);
  }

  50% {
    border-color: rgba(139, 92, 246, 0.5);
  }
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0;
  max-width: 650px;
}

.hero-title-sub {
  font-size: 0.5em;
  /* Two times smaller than base hero-title */
  font-weight: 500;
  opacity: 0.8;
  display: inline-block;
  margin-top: 5px;
}

.hero-title .gradient-text {
  font-size: clamp(2rem, 4vw, 3.2rem);
  display: block;
  line-height: 1.15;
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2.2rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-btn);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  border-radius: inherit;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-primary--sm {
  font-size: 0.875rem;
  padding: 0.65rem 1.6rem;
  gap: 7px;
}

.btn-primary--sm svg {
  width: 15px;
  height: 15px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 2rem;
  background: transparent;
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--color-accent-violet);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
  color: var(--color-text-primary);
}

.btn-secondary--sm {
  font-size: 0.875rem;
  padding: 0.65rem 1.6rem;
  gap: 7px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-weight: 400;
}

.hero-stat-price {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float-down 2s ease infinite;
  cursor: pointer;
}

.hero-scroll-indicator span {
  font-size: var(--fs-tiny);
  color: var(--color-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-scroll-indicator svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-violet-light);
}

@keyframes float-down {

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

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

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  position: relative;
  padding: var(--space-3xl) 0;
  z-index: var(--z-base);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.about-glass-panel::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: rgba(139, 92, 246, 0.4);
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
}

.text-glass {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  position: relative;
  display: inline-block;
}

.about-content {
  max-width: 560px;
}

.about-text {
  color: var(--color-text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.about-text strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

.about-values {
  display: grid;
  gap: var(--space-md);
}

.about-value {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.about-value:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateX(8px);
}

.about-value-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 214, 160, 0.1) 100%);
  border-radius: var(--radius-sm);
}

.about-value-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent-violet-light);
}

.about-value h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-value p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.about-floating-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(12px);
  transition: all var(--transition-slow);
}

.about-floating-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-glow);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.about-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.about-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm);
  background: rgba(139, 92, 246, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.about-card-bar-label {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.about-card-bar-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-small);
}

.about-card-progress {
  width: 100%;
  height: 6px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.about-card-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.about-card-progress-fill.animated {
  /* Set via data attribute in JS */
  opacity: 1;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  position: relative;
  padding: var(--space-3xl) 0;
  z-index: var(--z-base);
}

.services-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.services-header .section-label {
  justify-content: center;
}

.services-header .section-description {
  margin: 0 auto;
}

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-lg);
  max-width: 1024px;
  margin: 0 auto;
}

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

.service-card-new {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 320px;
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

.service-card-new:focus {
  outline: none;
}

.service-card-new:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: var(--shadow-card-hover);
}

.service-img-container {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-img-back {
  position: absolute;
  width: 176px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  transform: rotate(-6deg);
  transition: all 400ms ease-in-out;
  object-fit: cover;
}

.service-img-front {
  position: absolute;
  width: 176px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  transform: rotate(3deg);
  transition: all 400ms ease-in-out;
  object-fit: cover;
}

.service-card-web .service-img-back,
.service-card-web .service-img-front,
.service-card-ai .service-img-back,
.service-card-ai .service-img-front {
  width: 211px;
}

.service-card-new:hover .service-img-back {
  transform: rotate(-10deg) scale(1.05);
}

.service-card-new:hover .service-img-front {
  transform: rotate(5deg) scale(1.05);
}

.service-card-new h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-top: auto;
  text-align: left;
  transition: opacity 300ms ease;
}

/* Service Overlay Styles */
.service-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 44, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
  border-radius: inherit;
  transform: translateY(10px);
}

.service-card-new:hover .service-overlay,
.service-card-new.active .service-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.service-card-new:hover h3,
.service-card-new.active h3 {
  opacity: 0;
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  text-align: center;
  font-family: var(--font-body);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.5);
  text-align: center;
  align-self: center;
  width: fit-content;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  text-decoration: none;
}

.service-card-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px -5px rgba(139, 92, 246, 0.6);
  filter: brightness(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.service-card-link:active {
  transform: translateY(-1px) scale(0.98);
}

a.service-card-new {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 480px) {
  .service-card-new {
    height: 380px;
    padding: 1.25rem;
  }

  .service-desc {
    font-size: 0.875rem;
  }
}

/* ========================================
   CASES SECTION
   ======================================== */
.cases {
  position: relative;
  padding: var(--space-3xl) 0;
  z-index: var(--z-base);
}

.cases::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.cases-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.cases-header .section-label {
  justify-content: center;
}

.cases-header .section-description {
  margin: 0 auto;
}

.cases-experience {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-lg);
}

.cases-exp-item {
  text-align: center;
}

.cases-exp-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.cases-exp-label {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.cases-divider {
  width: 1px;
  height: 50px;
  background: rgba(139, 92, 246, 0.2);
}

.marquee-wrapper {
  position: relative;
  display: flex;
  width: 100vw;
  max-width: 100vw;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 10px 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.marquee-wrapper::-webkit-scrollbar {
  display: none;
}

.marquee-wrapper.grabbing {
  cursor: grabbing;
}

.marquee-container {
  display: flex;
  width: max-content;
  flex-direction: row;
  will-change: transform;
}

.cases-marquee-content {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  min-width: max-content;
  justify-content: space-around;
  gap: var(--space-lg);
  padding-right: var(--space-lg);
  flex-direction: row;
}

.cases-marquee-content .case-card {
  width: 380px;
  max-width: 90vw;
  /* For very small screens */
  flex-shrink: 0;
}

/* Animations replaced by JS infinite scroll */

.marquee-fade-left,
.marquee-fade-right {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10vw;
  min-width: 80px;
  z-index: 10;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--color-bg-primary) 0%, transparent 100%);
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--color-bg-primary) 0%, transparent 100%);
}

.case-card {
  position: relative;
  display: block;
  background: var(--color-bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.case-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(139, 92, 246, 0.25);
  background: var(--color-bg-card-hover);
}

.case-card-badge {
  display: inline-flex;
  padding: 4px 12px;
  background: rgba(6, 214, 160, 0.08);
  border: 1px solid rgba(6, 214, 160, 0.25);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--color-accent-cyan);
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.case-card-location {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-card-location svg {
  width: 14px;
  height: 14px;
}

.case-card-result {
  padding: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(6, 214, 160, 0.04) 100%);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 12px;
}

.case-card-result-value {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.case-card-result-label {
  font-size: var(--fs-tiny);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.case-card-link {
  margin-top: var(--space-md);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-base);
}

.case-card:hover .case-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  padding: var(--space-3xl) 0;
  z-index: var(--z-base);
}

.cta-card {
  position: relative;
  background: var(--gradient-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(6, 214, 160, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-card-content {
  position: relative;
  z-index: 1;
}

.cta-card .section-label {
  justify-content: center;
}

.cta-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.cta-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.cta-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.cta-benefit svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-cyan);
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-messenger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border: 1.5px solid;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  background: transparent;
}

.btn-messenger svg {
  width: 20px;
  height: 20px;
}

.btn-telegram {
  border-color: rgba(40, 160, 222, 0.35);
  color: #28A0DE;
}

.btn-telegram:hover {
  background: rgba(40, 160, 222, 0.1);
  border-color: #28A0DE;
  color: #28A0DE;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 160, 222, 0.2);
}

.btn-vk {
  border-color: rgba(79, 117, 182, 0.35);
  color: #4F75B6;
}

.btn-vk:hover {
  background: rgba(79, 117, 182, 0.1);
  border-color: #4F75B6;
  color: #4F75B6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(79, 117, 182, 0.2);
}

.btn-whatsapp {
  border-color: rgba(37, 211, 102, 0.35);
  color: #25D366;
}

.btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  border-color: #25D366;
  color: #25D366;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.2);
}

.cta-timezone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-xl);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.cta-timezone svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-cyan);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  position: relative;
  z-index: var(--z-base);
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-copy {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.footer-links a:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--color-accent-violet);
  color: var(--color-accent-violet-light);
  transform: translateY(-2px);
}

.footer-links a svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   SECTION DIVIDER
   ======================================== */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  margin: 0 auto;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes float {

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

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

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 0.15;
  }

  50% {
    opacity: 0.3;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-visual {
    order: -1;
  }

  .about-card-stack {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .cases-grid .case-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 0.6rem 1rem;
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(6, 8, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .navbar-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .hero-stats {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 22px 10px !important;
    border-radius: 16px !important;
    justify-content: space-around !important;
    margin-top: 2.5rem !important;
    background: rgba(0, 0, 0, 0.5) !important;
  }

  .hero-stat {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .hero-stat-number {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    font-weight: 700 !important;
  }

  .hero-stat-label {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
    opacity: 0.8;
  }

  /* Moon: shift right so hero text is readable */
  .layer-moon {
    background-size: 85%;
    background-position: right -30% top -5%;
    filter: none !important;
  }

  /* Astronaut: position higher and closer to moon */
  .layer-astronaut {
    background-size: 30%;
    background-position: right 10% bottom 35%;
    filter: none !important;
    z-index: 1;
  }

  /* Disable rocket cursor on touch */
  .cursor-rocket {
    display: none !important;
  }

  body.rocket-cursor-active,
  body.rocket-cursor-active * {
    cursor: auto !important;
  }

  /* Reduce expensive backdrop-filter on mobile */
  .hero-stats {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(0, 0, 0, 0.4) !important;
  }

  /* Reduce glow sizes to save GPU */
  .hero-glow {
    width: 200px;
    height: 200px;
    filter: blur(80px);
    opacity: 0.15;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-experience {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .cases-divider {
    width: 50px;
    height: 1px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .btn-primary--sm,
  .btn-secondary--sm {
    width: auto;
  }

  .hero-stats {
    gap: var(--space-md);
    padding-top: var(--space-lg);
  }
}

/* ========================================
   ROADMAP CARD (PROCESS SECTION)
   ======================================== */
.process {
  padding: var(--space-3xl) 0;
}

.roadmap-card {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: none;
  transition: all 0.3s ease;
  overflow: visible;
  width: 100%;
  margin: 0 auto;
}

.roadmap-card:hover {
  box-shadow: none;
}

.roadmap-card-header {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  text-align: center;
}

.roadmap-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.roadmap-card-description {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.roadmap-card-content {
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
}

.roadmap-timeline-wrapper {
  position: relative;
}

.roadmap-timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  /* center of the 12px dot */
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.roadmap-items {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.roadmap-item {
  position: relative;
  width: 20%;
  text-align: center;
  padding-top: 2rem;
  transition: transform 0.3s ease;
}

.roadmap-item:hover {
  transform: translateY(-5px);
}

.roadmap-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}

.roadmap-item:hover .roadmap-dot {
  transform: translateX(-50%) scale(1.3);
}

.roadmap-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-bg-primary);
  border-radius: 50%;
}

.roadmap-item.done .roadmap-dot,
.roadmap-item.in-progress .roadmap-dot {
  background: var(--color-accent-violet);
}

.roadmap-item.done .roadmap-dot::after,
.roadmap-item.in-progress .roadmap-dot::after {
  background: #fff;
}

.roadmap-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
  letter-spacing: 0.5px;
}

.roadmap-item:hover .roadmap-badge {
  background: var(--color-accent-violet);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.roadmap-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 1.25rem auto;
  color: var(--color-text-secondary);
  transition: all 0.3s ease;
}

.roadmap-item:hover .roadmap-icon {
  color: var(--color-accent-violet);
  transform: translateY(-3px) scale(1.05);
}

.roadmap-item-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text-primary);
}

.roadmap-item-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0 auto;
  max-width: 90%;
}

/* Responsive Roadmap */
@media (max-width: 768px) {
  .roadmap-items {
    flex-direction: column;
    gap: 2rem;
  }

  .roadmap-item {
    width: 100%;
    padding-top: 0;
    padding-left: 2.5rem;
    text-align: left;
  }

  .roadmap-timeline-line {
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }

  .roadmap-dot {
    left: 0;
    top: 6px;
    transform: none;
  }

  .roadmap-item:hover .roadmap-dot {
    transform: scale(1.3);
  }

  .roadmap-item-desc {
    margin: 0;
    max-width: 100%;
  }

  .roadmap-icon {
    margin: 0 0 1rem 0;
  }
}

/* ========================================
   SUBPAGE SYSTEM
   Все блоки используют существующие токены
   ======================================== */

/* --- Navbar dropdown (Услуги) --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown__trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-base);
}

.nav-dropdown.is-open .nav-dropdown__trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  padding: 12px 0.5rem 0.5rem;
  /* 12px padding-top as bridge */
  background: transparent;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: var(--z-nav);
}

.nav-dropdown.is-open .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Background for the panel items, excluding the top bridge */
.nav-dropdown__panel::before {
  content: '';
  position: absolute;
  top: 12px;
  /* Starts after the bridge */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 8, 26, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: -1;
}

.nav-dropdown__panel li {
  list-style: none;
  position: relative;
  z-index: 1;
}

.nav-dropdown__panel a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.nav-dropdown__panel a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-text-primary);
}

.nav-dropdown__panel li {
  list-style: none;
}

.nav-dropdown__panel a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.nav-dropdown__panel a::after {
  display: none;
}

.nav-dropdown__panel a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-text-primary);
}

.navbar-dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.22);
  flex-shrink: 0;
}

.navbar-dropdown-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent-violet-light);
}

/* --- Subpage hero --- */
.subpage-hero {
  position: relative;
  min-height: var(--service-hero-min-height);
  display: flex;
  align-items: center;
  padding: 7rem var(--content-padding) 4rem;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.subpage-hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.14) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.subpage-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
  /* Allow columns to fill height for metrics alignment */
}

.subpage-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  max-width: 620px;
}

.subpage-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-violet-light);
  width: fit-content;
}

.subpage-hero-eyebrow svg {
  width: 14px;
  height: 14px;
}

.subpage-hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.subpage-hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

.subpage-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.subpage-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-top: auto;
  /* Push to the bottom of the column */
  padding-top: var(--space-md);
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.subpage-hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.subpage-hero-stat-label {
  font-size: var(--fs-tiny);
  color: var(--color-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Visual on the right of subpage hero */
.subpage-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.subpage-hero-visual-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: var(--shadow-card-hover), 0 0 80px rgba(139, 92, 246, 0.18);
  animation: float 8s ease-in-out infinite;
}

.subpage-hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.subpage-hero-visual-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 8, 26, 0.5) 100%);
  pointer-events: none;
}

.subpage-hero-visual-orbit {
  position: absolute;
  inset: -10%;
  border: 1px dashed rgba(139, 92, 246, 0.18);
  border-radius: 50%;
  animation: spin-slow 60s linear infinite;
  pointer-events: none;
}

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

  to {
    transform: rotate(360deg);
  }
}

/* --- 3D Isometric Marquee --- */
.marquee3d-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee3d-scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 180%;
  height: 100%;
  transform: rotateX(45deg) rotateZ(45deg);
  transform-style: preserve-3d;
  transform-origin: center center;
  position: relative;
  right: -45%;
  top: -30%;
}

.marquee3d-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marquee3d-col img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  user-select: none;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.marquee3d-col--down {
  animation: marquee3d-down 20s linear infinite;
}

.marquee3d-col--up {
  animation: marquee3d-up 25s linear infinite;
}

@keyframes marquee3d-down {
  0% {
    transform: translateY(0);
  }

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

@keyframes marquee3d-up {
  0% {
    transform: translateY(-50%);
  }

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

/* --- Phone mockup with animated notifications --- */

/* Wrapper reserves correct layout space; animation lives here */
.phone-mockup-wrapper {
  position: relative;
  width: calc(300px * var(--phone-scale));
  height: calc(634px * var(--phone-scale));
  animation: float 8s ease-in-out infinite;
  flex-shrink: 0;
}

/* Phone is fixed 300×634px, scaled via transform */
.phone-mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: 634px;
  border-radius: 46px;
  background: linear-gradient(155deg, #1a1d3d 0%, #0a0c20 60%, #050616 100%);
  padding: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1.5px rgba(139, 92, 246, 0.35),
    inset 0 0 0 3px rgba(255, 255, 255, 0.04),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(139, 92, 246, 0.28);
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  z-index: 1;
}

.phone-mockup-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* --- Design Hero Gallery Styles --- */
.design-hero-gallery {
  position: relative;
  width: 100%;
  height: 500px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  perspective: 1000px;
  z-index: 0;
  
  /* Fade out on Top, Bottom, Left AND Right sides */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%), linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
}

.gallery-track {
  display: flex;
  flex-direction: row; /* Desktop: side-by-side */
  gap: 16px;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  transform: rotateZ(3deg) rotateY(-5deg) scale(1.1); /* slight 3D isometric tilt */
  transform-style: preserve-3d;
}

.gallery-column {
  display: flex;
  flex-direction: column; /* Desktop: stack vertically */
  gap: 16px;
  flex: 1;
}

.column-up {
  animation: scroll-up 20s linear infinite;
}

.column-down {
  animation: scroll-down 25s linear infinite;
  transform: translateY(-50%); /* Start halfway up so it can scroll down without blank space */
}

.gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(20%) brightness(0.9);
}

.gallery-img:hover {
  transform: scale(1.05) translateZ(20px);
  filter: grayscale(0%) brightness(1.1);
  z-index: 10;
  border-color: rgba(139, 92, 246, 0.5);
}

@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(calc(-50% - 8px)); } /* 50% because we duplicated 3 images, -8px for half gap */
}

@keyframes scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@media (max-width: 768px) {
  .design-hero-gallery {
    position: relative;
    top: auto;
    right: auto;
    width: 100vw;
    margin-left: -5vw; /* Pull it slightly to bleed on mobile */
    height: 320px; /* adjusted for two horizontal rows */
    transform: none;
    margin-top: 20px;
    
    /* On mobile, fade just left and right */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  
  .gallery-track {
    flex-direction: column; /* Mobile: stack the two rows vertically */
    transform: rotateZ(0) scale(1);
    height: 100%;
    align-items: flex-start;
    padding: 0;
  }

  .gallery-column {
    flex-direction: row; /* Mobile: stack images horizontally */
    width: 100%;
    height: 140px; /* height of the row */
    flex: none;
  }

  .gallery-img {
    width: auto;
    height: 100%;
    aspect-ratio: 4/3;
  }

  .column-up {
    animation: scroll-left 20s linear infinite;
  }

  .column-down {
    animation: scroll-right 25s linear infinite;
    transform: translateX(-50%);
  }
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 8px)); }
}

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


/* All Landscape paths */
.ls {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-width: 1.5;
  will-change: stroke-dashoffset, opacity, fill-opacity;
  transition: fill-opacity 0.8s ease;
}

/* Layer styles */
.ls-sun {
  stroke: #FCD34D;
  stroke-width: 2.5;
  fill: #FCD34D;
  fill-opacity: 0;
}

.ls-layer-1 {
  stroke: #7C3AED;
  fill: #4C1D95;
  /* Deep violet */
  fill-opacity: 0;
}

.ls-layer-2 {
  stroke: #A78BFA;
  fill: #5B21B6;
  /* Mid violet */
  fill-opacity: 0;
}

.ls-layer-3 {
  stroke: #DDD6FE;
  fill: #7C3AED;
  /* Brand violet */
  fill-opacity: 0;
}

.ls-water {
  stroke: #22D3EE;
  fill: #0891B2;
  /* Cyan water */
  fill-opacity: 0;
}

.ls-tree {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
}

.ls-sky {
  stroke: none;
  transition: opacity 1.5s ease;
}

/* Phase-driven animation via JS classes on #designAnim */
/* Phase 1: Sky + Sun */
.easel-canvas.ph-1 .ls-sky {
  opacity: 1;
}

.easel-canvas.ph-1 .ls-sun {
  stroke-dashoffset: 0 !important;
  fill-opacity: 0.8;
  transition: stroke-dashoffset 0.6s ease, fill-opacity 0.6s ease 0.4s;
}

/* Phase 2: Layer 1 (Back Peaks) */
.easel-canvas.ph-2 .ls-sun {
  stroke-dashoffset: 0 !important;
  fill-opacity: 0.8;
}

.easel-canvas.ph-2 .ls-layer-1 {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
  transition: stroke-dashoffset 1s ease, fill-opacity 0.8s ease 0.5s;
}

/* Phase 3: Layer 2 (Mid Mountains) */
.easel-canvas.ph-3 .ls-sun,
.easel-canvas.ph-3 .ls-layer-1 {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
}

.easel-canvas.ph-3 .ls-layer-2 {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
  transition: stroke-dashoffset 0.9s ease, fill-opacity 0.7s ease 0.4s;
}

/* Phase 4: Layer 3 (Front Hills) */
.easel-canvas.ph-4 .ls-sun,
.easel-canvas.ph-4 .ls-layer-1,
.easel-canvas.ph-4 .ls-layer-2 {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
}

.easel-canvas.ph-4 .ls-layer-3 {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
  transition: stroke-dashoffset 0.8s ease, fill-opacity 0.6s ease 0.3s;
}

/* Phase 5: Water */
.easel-canvas.ph-5 .ls-sun,
.easel-canvas.ph-5 .ls-layer-1,
.easel-canvas.ph-5 .ls-layer-2,
.easel-canvas.ph-5 .ls-layer-3 {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
}

.easel-canvas.ph-5 .ls-water {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
  transition: stroke-dashoffset 0.7s ease, fill-opacity 0.5s ease 0.3s;
}

/* Phase 6: Detail Trees */
.easel-canvas.ph-6 .ls:not(.ls-tree) {
  stroke-dashoffset: 0 !important;
  fill-opacity: 1;
}

.easel-canvas.ph-6 .ls-tree {
  stroke-dashoffset: 0 !important;
  transition: stroke-dashoffset 0.6s ease;
}

/* Final glow / Breath (Ph 6 still) */
.easel-canvas.ph-6 .landscape-svg {
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.5));
  transform: scale(1.02);
}

/* Phase 7: Fade out */
.easel-canvas.ph-7 .ls {
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}

/* Brush */
.easel-brush {
  position: absolute;
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  z-index: 10;
  pointer-events: none;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  will-change: top, left, opacity;
}

.easel-brush svg {
  width: 100%;
  height: 100%;
}

.easel-brush-drop {
  position: absolute;
  bottom: -3px;
  left: 1px;
  width: 5px;
  height: 5px;
  background: #5EEAD4;
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 6px rgba(94, 234, 212, 0.6);
}

@media (max-width: 1024px) {
  .easel-wrapper {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .easel-wrapper {
    width: 260px;
    margin-top: 20px;
  }
}

/* Timer Badge */
.design-timer-badge {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(20, 20, 50, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  z-index: 10;
}

.design-timer-dot {
  width: 6px;
  height: 6px;
  background: #06D6A0;
  border-radius: 50%;
  box-shadow: 0 0 10px #06D6A0;
  animation: pulse-green 2s infinite;
}

.design-timer-text {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

.design-timer-badge.done .design-timer-dot {
  background: var(--color-accent-cyan);
  box-shadow: 0 0 10px var(--color-accent-cyan);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 8px 14px;
  background: rgba(25, 28, 60, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: badge-fade-in 0.8s forwards, badge-float 5s ease-in-out infinite;
  z-index: 5;
}

.fb-1 {
  top: 5%;
  left: -35px;
  animation-delay: 0.5s, 0s;
}

.fb-2 {
  bottom: 25%;
  right: -45px;
  animation-delay: 1.2s, 0.5s;
}

@keyframes badge-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes badge-float {

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

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

@media (max-width: 768px) {
  .floating-badge {
    display: none;
  }

  .design-timer-badge {
    bottom: -35px;
    scale: 0.9;
  }
}

.phone-mockup-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 0%, rgba(139, 92, 246, 0.32), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(6, 214, 160, 0.22), transparent 55%),
    #07091e;
  padding: 58px 13px 16px;
}

.phone-mockup-statusbar {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  z-index: 4;
  pointer-events: none;
}

.phone-mockup-time {
  letter-spacing: 0.2px;
}

/* Левая пара (время + сигнал) и правая пара (wifi + батарея) */
.phone-sb-left,
.phone-sb-right {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.92);
}

.phone-sb-left svg,
.phone-sb-right svg {
  height: 12px;
  width: auto;
}

.phone-mockup-day {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

.phone-mockup-notifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(20, 24, 50, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(-14px) scale(0.94);
  animation: phoneNotifSequence 8s ease-in-out infinite;
}

.phone-notif-1 {
  animation-delay: 0s;
}

.phone-notif-2 {
  animation-delay: 0.8s;
}

.phone-notif-3 {
  animation-delay: 1.6s;
}

.phone-notif-4 {
  animation-delay: 2.4s;
}

@keyframes phoneNotifSequence {

  0%,
  2% {
    opacity: 0;
    transform: translateY(-12px) scale(0.95);
  }

  12% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  58% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

.phone-notif-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.phone-notif-icon svg {
  width: 21px;
  height: 21px;
}

.phone-notif-icon-lead {
  background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.45);
}

.phone-notif-icon-pay {
  background: linear-gradient(135deg, #06D6A0 0%, #3B82F6 100%);
  box-shadow: 0 0 18px rgba(6, 214, 160, 0.4);
}

.phone-notif-body {
  flex: 1;
  min-width: 0;
}

.phone-notif-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.1px;
}

.phone-notif-app {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.phone-notif-time {
  flex-shrink: 0;
}

.phone-notif-title {
  font-size: 15px;
  font-weight: 700;
  color: #F1F0FB;
  margin-bottom: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-notif-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-notif-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-accent-cyan);
  letter-spacing: -0.01em;
  margin-top: 2px;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(6, 214, 160, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .phone-notif {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .phone-mockup-wrapper {
    animation: none;
  }
}

/* --- Laptop mockup with interactive mini-site --- */

.laptop-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
  animation: float 8s ease-in-out infinite;
  perspective: 1200px;
}

.laptop-mockup {
  position: relative;
  width: 100%;
}

/* === LID (screen half) === */
.laptop-lid {
  position: relative;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 70px rgba(139, 92, 246, 0.18));
}

.laptop-screen-bezel {
  position: relative;
  background: linear-gradient(155deg, #1c1e38 0%, #0c0e22 60%, #070918 100%);
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 6px;
  border: 2px solid #232545;
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.laptop-camera {
  width: 5px;
  height: 5px;
  background: radial-gradient(circle, #2a2d50 40%, #1a1d3d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin: 0 auto 5px;
  box-shadow: 0 0 3px rgba(139, 92, 246, 0.2);
}

.laptop-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  overflow: hidden;
  background: #0b0d1f;
  border: 1px solid rgba(0, 0, 0, 0.6);
}

/* === HINGE === */
.laptop-hinge {
  width: 102%;
  margin-left: -1%;
  height: 8px;
  background: linear-gradient(180deg, #1a1d38 0%, #2a2d50 30%, #15172e 70%, #0d0f22 100%);
  border-radius: 0 0 2px 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

/* === BASE (bottom deck) === */
.laptop-base {
  position: relative;
  width: 110%;
  margin-left: -5%;
  background: linear-gradient(180deg, #191c36 0%, #12142a 60%, #0e1024 100%);
  border-radius: 0 0 8px 8px / 0 0 8px 8px;
  border: 2px solid #232545;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keyboard grid */
.laptop-keyboard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.keyboard-row {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.key {
  height: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.key-sm {
  flex: 1;
}

.key-tab {
  flex: 1.5;
}

.key-caps {
  flex: 1.7;
}

.key-shift {
  flex: 2.2;
}

.key-enter {
  flex: 2;
}

.key-backspace {
  flex: 1.6;
}

.key-space {
  flex: 5;
}

.keyboard-row--bottom {
  padding: 0 10%;
}

/* Trackpad */
.laptop-trackpad {
  width: 30%;
  height: 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
}

/* Front lip */
.laptop-front-lip {
  width: 110%;
  margin-left: -5%;
  height: 4px;
  background: linear-gradient(180deg, #0e1024 0%, #181b34 50%, #12142a 100%);
  border-radius: 0 0 10px 10px;
  border: 2px solid #232545;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* === Build-scene: browser bar === */
.build-browser {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(15, 18, 40, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  flex-shrink: 0;
}

.build-dots {
  display: flex;
  gap: 4px;
}

.build-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.build-dots span:nth-child(1) {
  background: #ff5f57
}

.build-dots span:nth-child(2) {
  background: #ffbd2e
}

.build-dots span:nth-child(3) {
  background: #28c840
}

.build-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-family: var(--font-heading);
}

.build-lock {
  width: 9px;
  height: 9px;
  color: #28c840;
  flex-shrink: 0;
}

.build-caret {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  animation: caretBlink 0.6s steps(2) infinite;
}

@keyframes caretBlink {
  0% {
    opacity: 1
  }

  100% {
    opacity: 0
  }
}

/* === Build-scene: content area === */
.build-content {
  position: relative;
  flex: 1;
  background: radial-gradient(circle at 20% 10%, rgba(139, 92, 246, 0.14), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(6, 214, 160, 0.08), transparent 50%), #0F1027;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.build-accent-btn {
  background: linear-gradient(135deg, #5EEAD4, #A78BFA);
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.build-outline-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.build-el {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.build-el.show {
  opacity: 1;
  transform: translateY(0);
}

.build-title-ph,
.build-sub-ph,
[data-word="btns"],
[data-word="img"] {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.build-title-ph.show,
.build-sub-ph.show,
[data-word="btns"].show,
[data-word="img"].show {
  opacity: 1;
  transform: translateY(0);
}

/* === Header === */
.build-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
  transform: translateY(-100%);
}

.build-header.show {
  transform: translateY(0);
}

.build-logo-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.build-logo {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5EEAD4, #A78BFA);
}

.build-brand {
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.build-nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.build-nav-links span {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-heading);
}

.build-header-cta {
  font-size: 6px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* === Hero === */
.build-hero {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px 6px;
  flex-shrink: 0;
}

.build-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.build-hero-h1 {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.build-hero-sub {
  font-size: 6px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin-top: 3px;
}

.build-hero-btns {
  display: flex;
  gap: 4px;
  margin-top: 5px;
}

.build-hero-cta-btn {
  font-size: 5.5px;
  padding: 3px 7px;
  border-radius: 4px;
}

.build-hero-demo-btn {
  font-size: 5.5px;
  padding: 3px 7px;
  border-radius: 4px;
}

/* Mini dashboard widget */
.build-hero-dashboard {
  width: 72px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 5px 6px;
}

.build-dash-top {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}

.build-dash-emoji {
  font-size: 8px;
}

.build-dash-metric {
  font-size: 9px;
  font-weight: 800;
  color: #34D399;
  font-family: var(--font-heading);
}

.build-dash-graph {
  margin-bottom: 4px;
}

.build-dash-svg {
  width: 100%;
  height: auto;
}

.build-dash-badges {
  display: flex;
  gap: 3px;
}

.build-badge {
  font-size: 5px;
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.6);
}

/* === Cards === */
.build-cards {
  display: flex;
  gap: 5px;
  padding: 0 12px 6px;
  flex-shrink: 0;
}

.build-card {
  flex: 1;
  padding: 6px 4px 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  text-align: center;
}

.build-card-emoji {
  font-size: 12px;
  line-height: 1;
  margin-bottom: 2px;
}

.build-card-title {
  font-size: 6.5px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 1px;
}

.build-card-desc {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

/* === Chart section === */
.build-chart-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 8px;
  flex-shrink: 0;
}

.build-chart-left {
  flex: 1;
  min-width: 0;
}

.build-chart-title {
  font-size: 7px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
  margin-bottom: 2px;
}

.build-chart-desc {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
  margin-bottom: 3px;
}

.build-chart-metric {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #5EEAD4, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-heading);
}

.build-chart-right {
  flex-shrink: 0;
}

.build-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 65px;
  height: 36px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
}

.build-bar {
  flex: 1;
  height: 0;
  background: linear-gradient(to top, #5EEAD4, #A78BFA);
  border-radius: 2px 2px 0 0;
  transition: height 0.35s ease;
}

.build-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 2px 3px 0;
}

.build-chart-labels span {
  font-size: 4.5px;
  color: rgba(255, 255, 255, 0.35);
}

/* Cursor */
.build-cursor {
  position: absolute;
  bottom: 20%;
  right: 20%;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), top 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.8s cubic-bezier(0.4, 0, 0.2, 1), right 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.build-cursor.show {
  opacity: 1;
}

.build-accent-btn.pulse {
  animation: ctaPulse 0.4s ease 2;
}

@keyframes ctaPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(94, 234, 212, 0);
  }

  50% {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.5);
  }
}



/* Responsive laptop */
@media (max-width: 1024px) {
  .laptop-mockup-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .laptop-mockup-wrapper {
    max-width: 360px;
  }

  .mini-hero-visual {
    display: none;
  }

  .mini-nav-links {
    display: none;
  }

  .laptop-keyboard {
    display: none;
  }

  .laptop-base {
    padding: 6px 10px;
  }

  .laptop-trackpad {
    height: 16px;
  }
}

@media (max-width: 480px) {
  .laptop-mockup-wrapper {
    max-width: 300px;
  }

  .mini-features {
    gap: 4px;
  }

  .mini-feature-card {
    padding: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laptop-mockup-wrapper {
    animation: none;
  }

  .laptop-cursor {
    display: none;
  }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-accent-cyan);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-accent-violet-light);
}

.breadcrumbs-sep {
  opacity: 0.4;
  font-size: 0.85em;
}

.breadcrumbs-current {
  color: var(--color-text-secondary);
}

/* --- Generic subpage section wrapper --- */
.subpage-section {
  position: relative;
  padding: var(--space-2xl) 0;
}

.subpage-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-xl) auto;
}

.subpage-section-header.left {
  text-align: left;
  margin-left: 0;
}

/* --- Feature split (асимметричный 7/5 grid) --- */
.feature-split {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-xl);
  align-items: stretch;
}

.feature-split-anchor {
  position: relative;
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 380px;
}

.feature-split--cases {
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .feature-split--cases {
    grid-template-columns: 1fr;
  }
}

.feature-split-anchor::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 160%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.feature-split-anchor>* {
  position: relative;
  z-index: 1;
}

.feature-split-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.feature-item:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feature-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--color-accent-violet-light);
}

.feature-item-icon svg {
  width: 22px;
  height: 22px;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.feature-item p {
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
  line-height: 1.6;
  margin: 0;
}

/* --- Sub-service alternating sections --- */
.subservice-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-xl) 0;
}

.subservice-block.reverse .subservice-text {
  order: 2;
}

.subservice-block.reverse .subservice-visual {
  order: 1;
}

.subservice-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.subservice-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
}

.subservice-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.subservice-text p {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.subservice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
}

.subservice-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.subservice-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"),
    var(--gradient-primary);
  background-size: 12px 12px, cover;
  background-position: center;
  background-repeat: no-repeat;
}

.subservice-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.2);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.subservice-visual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.subservice-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subservice-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, transparent 50%, rgba(6, 214, 160, 0.1) 100%);
  pointer-events: none;
}

/* --- Automation Grid (Horizontal Cards) --- */
.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}

.automation-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.automation-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.automation-card-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.2rem;
}

.automation-card h3 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.automation-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.automation-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  width: 100%;
  margin-bottom: 1.5rem;
}

/* Tablet: 2 columns, 3rd centered */
@media (max-width: 1024px) {
  .automation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .automation-grid > .automation-card:last-child:nth-child(odd) {
    grid-column: span 2;
    width: calc(50% - 10px);
    margin: 0 auto;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .automation-grid {
    grid-template-columns: 1fr;
  }
  .automation-grid > .automation-card:last-child:nth-child(odd) {
    width: 100%;
    grid-column: span 1;
  }
}

.subservice-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.subservice-logo-wrap>svg,
.subservice-logo-img {
  height: 60%;
  width: auto;
}

.subservice-visual--logo {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.subservice-visual--logo:hover {
  transform: none;
  box-shadow: none;
}

.subservice-visual--logo::after {
  display: none;
}

/* --- Pricing grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.pricing-card {
  position: relative;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.pricing-card>* {
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.pricing-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--color-bg-secondary), var(--color-bg-secondary)) padding-box,
    var(--gradient-primary) border-box;
  border: 2px solid transparent;
  transform: translateY(-8px);
}

.pricing-card.featured:hover {
  transform: translateY(-12px);
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.pricing-tag {
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
}

.pricing-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px 0;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 0 0 8px 0;
}

.pricing-price-num {
  font-size: 36px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.pricing-term {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 0 24px 0;
  width: 100%;
}

.pricing-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.pricing-desc {
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
  margin: 0 0 24px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.pricing-features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-accent-cyan);
  margin-top: 2px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  width: 100%;
}

.btn-outline:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
}

.pricing-btn {
  margin-top: auto;
}

/* Bonus pricing block */
.pricing-bonus {
  margin: var(--space-lg) auto 0;
  max-width: 70%;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(224, 64, 251, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(224, 64, 251, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.pricing-bonus-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(224, 64, 251, 0.18);
  border: 1px solid rgba(224, 64, 251, 0.4);
  color: var(--color-accent-pink);
}

.pricing-bonus-icon svg {
  width: 24px;
  height: 24px;
}

.pricing-bonus-text {
  color: var(--color-text-secondary);
  line-height: 1.6;
  font-size: var(--fs-small);
  margin: 0;
}

.pricing-bonus-text strong {
  color: var(--color-accent-pink);
  font-weight: 700;
}

@media (max-width: 768px) {
  .pricing-bonus {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
    gap: var(--space-sm);
  }
}

/* --- Design gallery (mosaic) --- */
.design-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.design-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: var(--color-bg-card);
  cursor: zoom-in;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.design-tile.tall {
  grid-row: span 2;
  aspect-ratio: 1 / 2;
}

.design-tile.wide {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}

.design-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.design-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.design-tile:hover img {
  transform: scale(1.06);
}

.design-tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-md);
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 26, 0.92) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.design-tile:hover .design-tile-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer extension: services links --- */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 360px;
}

.footer-brand-logo {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.3));
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent-violet-light);
}

/* --- Why us cards (general purpose stats/benefits row) --- */
.benefits-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.benefit-card {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all var(--transition-base);
}

.benefit-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.benefit-card-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Specific 5-card layout for Design page */
.benefits-row-5 {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.benefits-row-5 .benefit-card {
  width: calc(33.333% - (var(--space-md) * 2 / 3));
  flex: 0 1 auto;
  min-width: 240px;
}

.benefit-card-dashed {
  border-style: dashed !important;
  border-color: rgba(167, 139, 250, 0.4) !important;
}

@media (max-width: 1100px) {
  .benefits-row-5 .benefit-card {
    width: calc(50% - var(--space-md) * 0.5);
  }
}

@media (max-width: 768px) {
  .benefits-row-5 {
    flex-direction: column;
  }

  .benefits-row-5 .benefit-card {
    width: 100%;
  }
}

.benefit-card h4 {
  font-size: 1rem;
  margin: 0;
}

.benefit-card p {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Subpage responsive --- */
@media (max-width: 1024px) {
  .subpage-hero {
    min-height: auto;
    padding: 6rem var(--content-padding) 3rem;
  }

  .subpage-hero-stats {
    margin-top: var(--space-md);
  }

  .subpage-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .subpage-hero-visual {
    min-height: 280px;
    justify-content: flex-start;
  }

  .subpage-hero-visual-frame {
    max-width: 320px;
  }

  .marquee3d-scene {
    width: 160%;
    right: -35%;
    top: -20%;
    gap: 10px;
  }

  .marquee3d-col {
    gap: 10px;
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .subservice-block,
  .subservice-block.reverse {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .subservice-block.reverse .subservice-text,
  .subservice-block.reverse .subservice-visual {
    order: initial;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

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

  .design-tile.wide {
    grid-column: span 2;
  }

  .design-tile.tall {
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 768px) {
  .subpage-hero {
    padding: 5.5rem var(--content-padding) 2rem;
  }

  .subpage-hero-stats {
    gap: var(--space-md);
  }

  .subpage-hero-visual {
    min-height: 200px;
  }

  .marquee3d-scene {
    width: 220%;
    right: -55%;
    top: -10%;
    gap: 8px;
  }

  .marquee3d-col {
    gap: 8px;
  }

  .marquee3d-col img {
    border-radius: 6px;
  }

  .nav-dropdown__panel {
    position: static;
    transform: none;
    display: none;
    /* Hidden by default on mobile, shown via .is-open */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0.4rem 0 0 0;
    min-width: 0;
    width: 100%;
    transform: none !important;
  }

  .nav-dropdown.is-open .nav-dropdown__panel {
    display: flex;
  }

  .nav-dropdown__panel::before {
    display: none;
  }

  .nav-dropdown__panel a {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.06);
  }

  .nav-dropdown .nav-dropdown__trigger svg {
    display: none;
  }

  .design-gallery {
    grid-template-columns: 1fr;
  }

  .design-tile,
  .design-tile.tall,
  .design-tile.wide {
    aspect-ratio: 4 / 3;
    grid-row: auto;
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefits-row {
    grid-template-columns: 1fr;
  }
}

/* --- Cases Video Styles --- */
.case-card-video {
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.case-card-video:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.case-video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-card);
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-video {
  width: 100%;
  height: 103%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.case-card-video:hover .case-video {
  transform: scale(1.03);
}

.case-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.case-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.case-stat-value {
  font-size: 1.2rem;
}

/* ========================================
   PORTFOLIO GRID & FILTERS
   ======================================== */
.portfolio-grid-section {
  padding-top: var(--space-xl);
}

.portfolio-filters-wrapper {
  margin-bottom: var(--space-xl);
  position: relative;
}

.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
  padding: 10px 5px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.portfolio-filters::-webkit-scrollbar {
  display: none;
}

/* Mobile Fade for Scroll */
@media (max-width: 640px) {
  .portfolio-filters-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--color-bg));
    pointer-events: none;
  }
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--color-bg-card);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(10, 10, 40, 0.85);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.portfolio-item:hover img {
  transform: scale(1.04);
}

.portfolio-item:hover .portfolio-item-overlay {
  transform: translateY(0);
}

.portfolio-item-category {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.portfolio-item-title {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

/* Filtering Animations */
.portfolio-item.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

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

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

/* ========== SPLINE 3D CARD & SPOTLIGHT ========== */
.spline-card {
  position: relative;
  background: rgba(0, 0, 0, 0.96);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-height: 600px;
  display: flex;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
  margin: 2rem 0;
}

.spline-card-inner {
  display: flex;
  width: 100%;
  min-height: 600px;
  position: relative;
  z-index: 10;
}

.spline-card-text {
  flex: 1.2;
  padding: 4rem 3rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 20;
}

.spline-card-visual {
  flex: 1;
  position: relative;
  min-height: 600px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
}

.spline-card-visual spline-viewer {
  width: 100%;
  height: 100%;
  outline: none;
}

.spotlight {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  height: 169%;
  width: 138%;
  opacity: 0;
  top: -40%;
  left: 0;
}

@keyframes spotlight {
  0% {
    opacity: 0;
    transform: translate(-72%, -62%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -40%) scale(1);
  }
}

.animate-spotlight {
  animation: spotlight 2s ease 0.75s 1 forwards;
}

.spline-card .subpage-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.spline-card .subpage-hero-subtitle {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Optimization */
@media (max-width: 1024px) {
  .spline-card {
    border-radius: 24px;
    margin: 1rem 0;
  }
  .spline-card-inner {
    flex-direction: column;
    min-height: auto;
  }
  .spline-card-text {
    padding: 3rem 2rem;
    align-items: center;
    text-align: center;
  }
  .spline-card-visual {
    height: 450px;
    flex: none;
  }
  .spline-card .subpage-hero-subtitle {
    margin: 0 auto 2rem;
  }
}

@media (max-width: 576px) {
  .spline-card-text {
    padding: 2.5rem 1.5rem;
  }
  .spline-card-visual {
    height: 350px;
  }
}

/* ========== 2D ROBOT ANIMATION ========== */
.robot-2d-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.robot-2d-img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  z-index: 5;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.3));
}

.robot-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
}

@keyframes floatRobot {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.floating-anim {
  animation: floatRobot 6s ease-in-out infinite;
}

/* ========== CHAT MESSENGER MOCKUP ========== */
.chat-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  z-index: 10;
}

.chat-window {
  background: rgba(15, 16, 40, 0.95);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
  backdrop-filter: blur(20px);
}

.chat-header {
  height: 56px;
  background: rgba(10, 10, 30, 0.9);
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-right: 12px;
}

.chat-info {
  flex: 1;
}

.chat-name {
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.chat-status {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 5px;
}

.chat-menu {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.chat-messages {
  flex: 1;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  will-change: transform, opacity;
  animation: msg-appear 0.3s ease-out forwards;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg-client {
  align-self: flex-end;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  color: white;
  border-radius: 16px 16px 4px 16px;
}

.msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 16px 16px 16px 4px;
  margin-top: 15px; /* space for avatar */
}

.bot-avatar-mini {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%);
  border-radius: 50%;
  position: absolute;
  top: -18px;
  left: 0;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.msg-time {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  text-align: right;
}

.typing-indicator {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #22d3ee;
  border-radius: 50%;
  animation: dot-pulse 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.4); opacity: 1; }
}

.chat-input {
  height: 52px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-input-placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.chat-send-btn {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
}

/* Floating Badges */
.chat-badge {
  position: absolute;
  background: rgba(20, 20, 50, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 14px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}

.chat-badge-1 {
  top: 70px;
  left: -80px;
  animation: badge-fade-in 0.5s 0.5s forwards, badge-float 4s 1s ease-in-out infinite;
}

.chat-badge-2 {
  bottom: 40px;
  right: -40px;
  animation: badge-fade-in 0.5s 1.2s forwards, badge-float 5s 1.7s ease-in-out infinite reverse;
}

@keyframes badge-fade-in {
  to { opacity: 1; }
}

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

/* Mobile Responsive */
@media (max-width: 1200px) {
  .chat-badge { display: none; }
}

@media (max-width: 992px) {
  .chat-container {
    max-width: 320px;
    margin-top: 3rem;
  }
  .chat-window { height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .msg, .typing-indicator span, .chat-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   AI BENEFITS SECTION (CHATBOTS)
   ======================================== */
.ai-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.ai-benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ai-benefit-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.ai-benefit-icon {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1;
}

.ai-benefit-title {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.ai-benefit-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.ai-metrics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
}

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

.ai-metric-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.ai-metric-label {
  font-size: var(--fs-tiny);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ai-metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 640px) {
  .ai-benefits-grid {
    grid-template-columns: 1fr;
  }
  .ai-metrics-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .ai-metric-divider {
    display: none;
  }
}

/* ========================================
   CHATBOT CASE SECTION
   ======================================== */
.chatbot-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

.chatbot-case-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chatbot-case-block p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.chatbot-case-label {
  font-size: 10px;
  color: var(--color-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.chatbot-case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.chatbot-case-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.chatbot-case-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: var(--space-sm) 0;
}

.chatbot-case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chatbot-case-metric-val {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.chatbot-case-metric-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Video Column */
.chatbot-case-video-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.chatbot-phone-mockup {
  width: 100%;
  max-width: 260px;
  border-radius: 36px;
  background: linear-gradient(155deg, #1a1d3d 0%, #0a0c20 60%, #050616 100%);
  padding: 12px;
  box-shadow:
    inset 0 0 0 1.5px rgba(139, 92, 246, 0.35),
    inset 0 0 0 3px rgba(255, 255, 255, 0.04),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(139, 92, 246, 0.28);
  position: relative;
  margin: 0 auto;
}

.chatbot-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.chatbot-case-video-wrapper {
  background: rgba(10, 10, 30, 0.5);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.chatbot-tg-header {
  height: 38px;
  background: rgba(10, 10, 30, 0.9);
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chatbot-tg-avatar {
  width: 28px;
  height: 28px;
  background: var(--color-accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  margin-right: 10px;
}

.chatbot-tg-info {
  display: flex;
  flex-direction: column;
}

.chatbot-tg-name {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.chatbot-tg-status {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chatbot-case-video {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner */
.chatbot-case-banner {
  margin-top: var(--space-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.chatbot-case-banner-title {
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.chatbot-case-banner-content p {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Review */
.chatbot-case-review {
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chatbot-case-review-title {
  color: var(--color-text-secondary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  text-align: center;
}

.chatbot-case-review-img-wrap {
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.chatbot-case-review-img {
  width: 100%;
  height: auto;
  display: block;
}

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

@media (max-width: 640px) {
  .chatbot-case-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Floating "Back to Home" button ===== */
.float-home-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px 12px 16px;
  background: rgba(10, 12, 30, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(139, 92, 246, 0.1) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: floatHomeAppear 0.5s ease forwards 1s;
}

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

.float-home-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(94, 234, 212, 0.5);
  box-shadow:
    0 8px 32px rgba(139, 92, 246, 0.25),
    0 0 0 1px rgba(94, 234, 212, 0.15) inset;
}

.float-home-btn:active {
  transform: translateY(-1px) scale(0.97);
}

.float-home-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: var(--color-accent-cyan);
  transition: transform 0.3s ease;
}

.float-home-btn:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .float-home-btn {
    bottom: 20px;
    left: 20px;
    padding: 10px 18px 10px 14px;
    font-size: 10px;
  }
}
