/* ===================================
   MATE VPN Help - Styles
   =================================== */

:root {
  --color-bg: #000000;
  --color-bg-secondary: #0a0a0a;
  --color-bg-card: #111111;
  --color-bg-card-hover: #1a1a1a;
  --color-border: #222222;
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-text-muted: rgba(255, 255, 255, 0.4);
  --color-primary: #009D54;
  --color-primary-light: #03E55C;
  --color-gradient: linear-gradient(135deg, #009D54 0%, #03E55C 100%);
  
  --font-family: 'Commissioner', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Sen', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --sidebar-width: 280px;
  --header-height: 60px;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --transition: all 0.2s ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  line-height: 1.3;
}

.text-gradient {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   Menu Toggle (Mobile)
   =================================== */

.menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: var(--color-bg-card-hover);
}

/* ===================================
   Sidebar
   =================================== */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--color-bg-secondary);
  border-right: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar__header {
  padding: 24px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar__logo:hover {
  color: var(--color-text);
}

.sidebar__logo svg {
  flex-shrink: 0;
}

.logo-sup {
  font-size: 0.6em;
  vertical-align: super;
  color: var(--color-primary-light);
}

.sidebar__nav {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Navigation Items */
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.nav-item--active {
  background: rgba(0, 157, 84, 0.1);
  color: var(--color-primary-light);
}

.nav-item--sub {
  padding: 10px 16px 10px 48px;
  font-size: 0.9rem;
}

/* Navigation Groups */
.nav-group {
  display: flex;
  flex-direction: column;
}

.nav-group__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.nav-group__header:hover {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.nav-group__arrow {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-group.open .nav-group__arrow {
  transform: rotate(180deg);
}

.nav-group__items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding-top: 4px;
}

.nav-group.open .nav-group__items {
  display: flex;
}

/* ===================================
   Main Content
   =================================== */

.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding: 40px;
}

.content {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 48px;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--color-primary);
}

/* ===================================
   Platforms Grid
   =================================== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  color: var(--color-text);
}

.platform-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  color: var(--color-text);
  transform: translateY(-4px);
}

.platform-card__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 157, 84, 0.1);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--color-primary-light);
  transition: var(--transition);
}

.platform-card:hover .platform-card__icon {
  background: rgba(0, 157, 84, 0.2);
}

.platform-card__title {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.platform-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===================================
   Info Card
   =================================== */

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(0, 157, 84, 0.1);
  border: 1px solid rgba(0, 157, 84, 0.3);
  border-radius: var(--radius-lg);
}

.info-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: 50%;
  color: white;
}

.info-card__content {
  flex: 1;
}

.info-card__title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.info-card__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ===================================
   Page Content Styles
   =================================== */

.page-header {
  margin-bottom: 40px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.page-breadcrumb a {
  color: var(--color-text-secondary);
}

.page-breadcrumb svg {
  width: 16px;
  height: 16px;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.page-description {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gradient);
  border-radius: 50%;
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.step__content {
  flex: 1;
}

.step__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step__text {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.step__text a {
  color: var(--color-primary-light);
  font-weight: 500;
}

.step__image {
  margin-top: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-gradient);
  color: white;
}

.btn--primary:hover {
  opacity: 0.9;
  color: white;
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-primary);
  color: var(--color-text);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Code Block */
.code-block {
  position: relative;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.code-block code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  color: var(--color-primary-light);
  word-break: break-all;
}

.code-block__copy {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.code-block__copy:hover {
  background: var(--color-bg-card-hover);
  color: var(--color-text);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item__question:hover {
  background: var(--color-bg-card-hover);
}

.faq-item__arrow {
  transition: transform 0.2s ease;
}

.faq-item.open .faq-item__arrow {
  transform: rotate(180deg);
}

.faq-item__answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.faq-item.open .faq-item__answer {
  display: block;
}

/* Warning Block */
.warning-block {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.warning-block__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFC107;
  border-radius: 50%;
  color: #000;
}

.warning-block__content {
  flex: 1;
}

.warning-block__title {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #FFC107;
}

.warning-block__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* ===================================
   Image Gallery / Screenshots
   =================================== */

.step__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-width: 500px;
}

.step__gallery--single {
  grid-template-columns: 1fr;
  max-width: 220px;
}

.step__gallery--pair {
  grid-template-columns: repeat(2, 1fr);
  max-width: 460px;
}

/* Десктопные галереи (Windows, Linux, macOS) - увеличенные размеры */
.step__gallery--desktop {
  max-width: 700px;
}

.step__gallery--desktop.step__gallery--single {
  max-width: 500px;
}

.step__gallery--desktop.step__gallery--pair {
  max-width: 700px;
}

.step__gallery--desktop .screenshot--wide {
  max-width: 600px;
}

.screenshot {
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 220px;
}

/* Иконка увеличения */
.screenshot::after {
  content: '';
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M14 10l6.1-6.1M9 21H3v-6M10 14l-6.1 6.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.screenshot:hover::after {
  opacity: 1;
}

/* Скрываем иконку если нет картинки */
.screenshot:has(.screenshot__placeholder)::after {
  display: none;
}

.screenshot--wide {
  max-width: 400px;
}

.screenshot--square {
  max-width: 220px;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  /* Улучшение качества при масштабировании */
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
  /* Отключаем сглаживание для чёткости */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.screenshot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.screenshot__placeholder-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--color-text-muted);
}

.screenshot__placeholder-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.screenshot__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

/* Numbered Markers on Screenshots */
.screenshot__marker {
  position: absolute;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ===================================
   Mobile Responsive
   =================================== */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 80px 16px 40px;
  }

  .content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .platform-card {
    flex-direction: row;
    text-align: left;
    padding: 16px;
  }

  .platform-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
    margin-right: 12px;
  }

  .platform-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-description {
    font-size: 0.95rem;
  }

  .page-breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .steps {
    gap: 16px;
    margin-bottom: 24px;
  }

  .step {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .step__number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step__title {
    font-size: 1rem;
  }

  .step__text {
    font-size: 0.9rem;
  }

  .step__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 100%;
  }

  .step__gallery--single {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .step__gallery--pair {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .step__gallery--desktop {
    max-width: 100%;
  }

  .step__gallery--desktop.step__gallery--single {
    max-width: 100%;
  }

  .step__gallery--desktop.step__gallery--pair {
    max-width: 100%;
  }

  .screenshot {
    max-width: 100%;
  }

  .screenshot--wide {
    max-width: 100%;
  }

  .screenshot__placeholder-icon {
    width: 32px;
    height: 32px;
  }

  .screenshot__placeholder-text {
    font-size: 0.7rem;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .info-card__icon {
    margin: 0 auto 8px;
  }

  .info-card__title {
    font-size: 0.95rem;
  }

  .info-card__text {
    font-size: 0.85rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .warning-block {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .warning-block__icon {
    margin: 0 auto 8px;
  }

  .code-block {
    padding: 12px;
  }

  .code-block code {
    font-size: 0.75rem;
  }

  .faq-item__question {
    padding: 16px;
    font-size: 0.9rem;
  }

  .faq-item__answer {
    padding: 0 16px 16px;
    font-size: 0.85rem;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .main {
    padding: 70px 12px 32px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .step__gallery--pair {
    grid-template-columns: 1fr;
  }

  .platform-card__icon {
    width: 40px;
    height: 40px;
  }

  .platform-card__icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Safe area for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
  .main {
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .sidebar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Touch-friendly tap targets */
@media (pointer: coarse) {
  .nav-item,
  .nav-group__header {
    min-height: 48px;
  }

  .btn {
    min-height: 48px;
  }

  .slider-dot {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Overlay for mobile menu */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* ===================================
   Animations - GPU Accelerated
   =================================== */

/* Fade in animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Base animation class - GPU optimized */
.animate-on-load {
  will-change: opacity, transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Hero section */
.hero-section {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

/* Section titles */
.section-title {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
  will-change: opacity, transform;
}

/* Platform cards with staggered animation */
.platform-card {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.platforms-grid .platform-card:nth-child(1) { animation-delay: 0.05s; }
.platforms-grid .platform-card:nth-child(2) { animation-delay: 0.1s; }
.platforms-grid .platform-card:nth-child(3) { animation-delay: 0.15s; }
.platforms-grid .platform-card:nth-child(4) { animation-delay: 0.2s; }
.platforms-grid .platform-card:nth-child(5) { animation-delay: 0.25s; }
.platforms-grid .platform-card:nth-child(6) { animation-delay: 0.3s; }

/* Page header */
.page-header {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
}

/* Steps with staggered animation */
.step {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.steps .step:nth-child(1) { animation-delay: 0.05s; }
.steps .step:nth-child(2) { animation-delay: 0.1s; }
.steps .step:nth-child(3) { animation-delay: 0.15s; }
.steps .step:nth-child(4) { animation-delay: 0.2s; }
.steps .step:nth-child(5) { animation-delay: 0.25s; }
.steps .step:nth-child(6) { animation-delay: 0.3s; }
.steps .step:nth-child(7) { animation-delay: 0.35s; }

/* Info and warning cards */
.info-card {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
  will-change: opacity, transform;
}

.warning-block {
  opacity: 0;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  will-change: opacity, transform;
}

/* FAQ item open animation */
.faq-item__answer {
  animation: fadeIn 0.25s ease-out;
}

/* Nav group items animation */
.nav-group__items {
  animation: fadeIn 0.2s ease-out;
}

/* ===================================
   Lightbox - Click to Enlarge
   =================================== */

.screenshot {
  cursor: zoom-in;
}

.screenshot img {
  pointer-events: none;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
  padding: 20px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Button press */
.btn {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.2s ease;
}

.btn:hover {
  transform: translate3d(0, -2px, 0);
}

.btn:active {
  transform: scale(0.97) translate3d(0, 0, 0);
}

/* Platform card hover */
.platform-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              background 0.3s ease, 
              border-color 0.3s ease, 
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.platform-card:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 16px 48px rgba(0, 157, 84, 0.2);
}

/* Step hover */
.step {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              border-color 0.3s ease;
}

.step:hover {
  transform: translate3d(6px, 0, 0);
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Nav items */
.nav-item {
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.nav-item:hover {
  transform: translate3d(4px, 0, 0);
}

/* Sidebar slide animation for mobile */
.sidebar {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Overlay fade */
.sidebar-overlay {
  transition: opacity 0.35s ease;
}

/* ===================================
   Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  
  .hero-section,
  .section-title,
  .platform-card,
  .page-header,
  .step,
  .info-card,
  .warning-block {
    opacity: 1 !important;
    transform: none !important;
  }
}
