/* ============================================
   NovaCode VLC — 90s / early 2000s interface
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Custom cursors from static/cursor/ — .cur then .png (root + relative paths) */
:root {
  --cursor-night: url('/static/cursor/cursor-night.cur') 4 4, url('/static/cursor/cursor-night.png') 4 4, url('../static/cursor/cursor-night.cur') 4 4, url('../static/cursor/cursor-night.png') 4 4;
  --cursor-day: url('/static/cursor/cursor-day.cur') 4 4, url('/static/cursor/cursor-day.png') 4 4, url('../static/cursor/cursor-day.cur') 4 4, url('../static/cursor/cursor-day.png') 4 4;
}

/* Dark theme (default) — light cursor */
html, body,
*, *::before, *::after {
  cursor: var(--cursor-night), auto !important;
}

a:hover, button:hover, [role="button"]:hover, .theme-toggle:hover, .nav-burger:hover,
.btn:hover, .btn-cta:hover, .lang-item:hover, .lang-item, .pricing-collapsible-trigger:hover, .pricing-collapsible-trigger {
  cursor: var(--cursor-night), pointer !important;
}

input:focus, textarea:focus, input, textarea {
  cursor: var(--cursor-night), text !important;
}

/* Light theme — dark cursor */
[data-theme="light"] html,
[data-theme="light"] body,
[data-theme="light"] *,
[data-theme="light"] *::before,
[data-theme="light"] *::after {
  cursor: var(--cursor-day), auto !important;
}

[data-theme="light"] a:hover,
[data-theme="light"] button:hover,
[data-theme="light"] [role="button"]:hover,
[data-theme="light"] .theme-toggle:hover,
[data-theme="light"] .nav-burger:hover,
[data-theme="light"] .btn:hover,
[data-theme="light"] .btn-cta:hover,
[data-theme="light"] .lang-item:hover,
[data-theme="light"] .lang-item,
[data-theme="light"] .pricing-collapsible-trigger:hover,
[data-theme="light"] .pricing-collapsible-trigger {
  cursor: var(--cursor-day), pointer !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus,
[data-theme="light"] input,
[data-theme="light"] textarea {
  cursor: var(--cursor-day), text !important;
}

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  -webkit-font-smoothing: none;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  image-rendering: pixelated;
}

[data-theme="light"] body {
  background: #c0c0c0;
  color: #0a0a0a;
  text-shadow: 1px 1px 0 #fff;
}
[data-theme="dark"] body {
  background: #0d1117;
  color: #e6edf3;
  text-shadow: none;
}

/* Page content above scanlines/noise (body::before 9999, body::after 9998) so ACS images are visible */
.page-content {
  position: relative;
  z-index: 10000;
  isolation: isolate;
}

/* Background noise texture — subtle grain (light mode only) */
[data-theme="light"] body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9998;
}
/* Smooth transition when switching themes */
body {
  transition: background-color 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

/* CRT scanlines — above noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.02) 2px, rgba(0,0,0,0.02) 4px);
  pointer-events: none;
  z-index: 9999;
}
[data-theme="dark"] body::before {
  background: repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px);
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ========== Language menu (inline header) ========== */
.lang-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-item {
  padding: 6px 10px;
  min-height: 32px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: inherit;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.2s step-end;
}

/* Day mode (light) */
[data-theme="light"] .lang-item {
  color: #0a0a0a;
}
[data-theme="light"] .lang-item:hover {
  color: #0000ff;
  text-decoration: underline;
}
[data-theme="light"] .lang-item.active {
  border-color: #000;
}

/* Night mode (dark) */
[data-theme="dark"] .lang-item {
  color: #e0e0e0;
}
[data-theme="dark"] .lang-item:hover {
  color: #4ec9b0;
  text-decoration: underline;
}
[data-theme="dark"] .lang-item.active {
  border-color: #e0e0e0;
}

/* Mobile: lang-nav in header — hide on small screens, show in burger panel */
.lang-nav--mobile {
  display: none;
}
@media (max-width: 768px) {
  .lang-nav:not(.lang-nav--mobile) {
    display: none;
  }
  .lang-nav--mobile {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
  }
  .lang-nav--mobile .lang-item {
    min-height: 44px;
    padding: 8px 14px;
  }
}

/* Header: logo left, nav center, CTA right — compact layout */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid #000;
  background: #c0c0c0;
  min-height: 44px;
  transition: none;
}
[data-theme="dark"] .header {
  border-color: #21262d;
  background: #0d1117;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 24px;
  flex-wrap: nowrap;
  min-height: 140px;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

/* Site logo - 2x size for visibility, responsive, theme-based */
#site-logo,
.site-logo {
  height: 190px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease, filter 0.3s ease;
}
#site-logo:hover,
.site-logo:hover {
  transform: scale(1.05);
}

/* Neon glow - dark mode only, stronger for visibility */
#site-logo.logo-neon,
.site-logo.logo-neon {
  filter: drop-shadow(0 0 8px rgba(0, 140, 255, 0.8))
          drop-shadow(0 0 16px rgba(0, 140, 255, 0.5))
          drop-shadow(0 0 24px rgba(0, 140, 255, 0.3));
  animation: neonPulse 2.5s ease-in-out infinite alternate;
}
@keyframes neonPulse {
  from {
    filter: drop-shadow(0 0 6px rgba(0, 140, 255, 0.6))
            drop-shadow(0 0 12px rgba(0, 140, 255, 0.4))
            drop-shadow(0 0 20px rgba(0, 140, 255, 0.25));
  }
  to {
    filter: drop-shadow(0 0 12px rgba(0, 140, 255, 0.9))
            drop-shadow(0 0 24px rgba(0, 140, 255, 0.6))
            drop-shadow(0 0 36px rgba(0, 140, 255, 0.35));
  }
}

@media (max-width: 1024px) {
  #site-logo,
  .site-logo {
    height: 154px;
  }
  .header-inner { min-height: 120px; }
}
@media (max-width: 600px) {
  #site-logo,
  .site-logo {
    height: 132px;
  }
  .header-inner { min-height: 100px; }
}

.nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.nav-links a {
  font-family: 'Courier Prime', 'Courier New', monospace !important;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  padding: 8px 10px;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: text-shadow 0.1s step-end;
}
.nav-links a:hover {
  color: #0000ff;
  text-decoration: underline;
}
[data-theme="dark"] .nav-links a {
  color: #e6edf3;
}
[data-theme="dark"] .nav-links a[href="#for-whom"] { color: #4ec9b0; }
[data-theme="dark"] .nav-links a[href="#problems"] { color: #d19a66; }
[data-theme="dark"] .nav-links a[href="#solutions"] { color: #00ff88; }
[data-theme="dark"] .nav-links a[href="#process"] { color: #569cd6; }
[data-theme="dark"] .nav-links a[href="#clients"] { 
  color: #ffaa00 !important; 
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.7);
}
[data-theme="dark"] .nav-links a[href="#clients"]:hover {
  color: #ffcc33 !important;
  text-shadow: 0 0 12px rgba(255, 170, 0, 0.9);
}
[data-theme="dark"] .nav-links a:hover {
  text-decoration: underline;
  text-shadow: 0 0 4px currentColor;
}
.nav-links a:active {
  color: #0000cc;
}
[data-theme="dark"] .nav-links a:active {
  color: #c084f5;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
}

/* Mobile controls: theme + burger, horizontal flex, no overlap */
.header-mobile-controls {
  display: none;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Classic interface button */
.btn-cta {
  display: inline-block;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 50%, #c0c0c0 100%);
  border: 2px solid #808080;
  border-top-color: #fff;
  border-left-color: #fff;
  box-shadow: 1px 1px 0 #000;
  text-decoration: none;
  transition: all 0.2s step-end;
}
.btn-cta:hover {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 50%, #b8b8b8 100%);
  border-color: #606060;
}
.btn-cta:active {
  background: #a0a0a0;
  box-shadow: inset 1px 1px 2px #000;
  border-color: #808080;
  border-top-color: #606060;
  border-left-color: #606060;
}
[data-theme="dark"] .btn-cta {
  color: #c084f5;
  background: #161b22;
  border-color: #c084f5;
  box-shadow: none;
}
[data-theme="dark"] .btn-cta:hover {
  color: #d4a8ff;
  border-color: #d4a8ff;
  text-shadow: 0 0 4px rgba(192,132,245,0.5);
}
[data-theme="dark"] .btn-cta:active {
  background: #0d1117;
  box-shadow: inset 0 0 4px rgba(192,132,245,0.2);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
}
.lang-btn {
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.2s step-end;
}
.lang-btn:hover {
  color: #0000ff;
  text-decoration: underline;
}
[data-theme="dark"] .lang-btn {
  color: #e6edf3;
}
[data-theme="dark"] .lang-btn:hover {
  color: #4ec9b0;
  text-decoration: underline;
}
.lang-btn.active {
  border-color: #000;
  background: rgba(0,0,0,0.1);
}
[data-theme="dark"] .lang-btn.active {
  border-color: #4ec9b0;
  background: rgba(78,201,176,0.1);
}

/* Burger — part of header-mobile-controls on mobile */
.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 3px solid #000;
  background: #c0c0c0;
  transition: none;
  flex-shrink: 0;
}
[data-theme="dark"] .nav-burger {
  border-color: #21262d;
  background: #0d1117;
}
.burger-bar {
  display: block;
  width: 20px;
  height: 3px;
  background: #000;
  margin: 0 auto;
}
[data-theme="dark"] .burger-bar { background: #abb2bf; }
.nav-burger:hover { border-color: #00f; }
[data-theme="dark"] .nav-burger:hover { border-color: #4ec9b0; }
.nav-burger:hover .burger-bar { background: #00f; }
[data-theme="dark"] .nav-burger:hover .burger-bar { background: #4ec9b0; }

/* Mobile full-screen overlay */
.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #c0c0c0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s step-end, visibility 0.2s step-end;
}
[data-theme="dark"] .nav-panel { background: #0d1117; }
.nav-panel.nav-panel--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  font-size: 2em;
  line-height: 1;
  border: 3px solid #000;
  background: #c0c0c0;
  color: #000;
  padding: 0;
  transition: none;
}
[data-theme="dark"] .nav-close {
  border-color: #21262d;
  background: #0d1117;
  color: #abb2bf;
}
.nav-close:hover { border-color: #00f; color: #00f; }
[data-theme="dark"] .nav-close:hover { border-color: #4ec9b0; color: #4ec9b0; }

.nav-panel-links {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.nav-panel-links li { margin: 0; }
.nav-panel-links a {
  display: block;
  font-size: 1.25rem;
  padding: 16px 24px;
  min-height: 48px;
  color: inherit;
  text-decoration: none;
  border: 2px solid transparent;
  transition: none;
}
.nav-panel-links a:hover {
  color: #0000ff;
  text-decoration: underline;
  border-color: #0000ff;
}
[data-theme="dark"] .nav-panel-links a {
  color: #e6edf3;
}
[data-theme="dark"] .nav-panel-links a:hover {
  color: #4ec9b0;
  text-decoration: underline;
  border-color: #4ec9b0;
  text-shadow: 0 0 4px rgba(78,201,176,0.5);
}
.nav-panel-cta {
  margin-top: 1rem;
  font-weight: 700;
  text-align: center;
}

.nav-panel-lang {
  display: flex;
  gap: 8px;
  margin-top: 2rem;
  justify-content: center;
}
.nav-panel-lang .lang-btn {
  min-width: 44px;
  min-height: 44px;
}

/* Theme toggle — inside header, no fixed positioning */
.theme-toggle {
  font-family: inherit;
  font-size: 9px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 40px;
}
[data-theme="dark"] .theme-toggle { color: #c084f5; }
.theme-toggle input { display: none; }
.theme-toggle-label { white-space: nowrap; }
.theme-toggle--mobile .theme-toggle-label { display: none; }
.toggle-slider {
  display: inline-block;
  width: 52px;
  height: 24px;
  min-height: 24px;
  background: #111;
  border: 3px ridge #000;
  position: relative;
  flex-shrink: 0;
}
[data-theme="light"] .toggle-slider {
  background: #333;
  border-color: #666;
}
[data-theme="dark"] .toggle-slider { border-color: #c084f5; }
.toggle-slider::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  background: #000;
  transition: none;
}
[data-theme="light"] .toggle-slider::before {
  background: #e8e8e8;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
}
[data-theme="dark"] .toggle-slider::before {
  left: 28px;
  background: #c084f5;
}
.theme-toggle--mobile {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  justify-content: center;
}
.theme-toggle--mobile .toggle-slider {
  width: 44px;
  height: 22px;
}
.theme-toggle--mobile .toggle-slider::before {
  width: 12px;
  height: 12px;
}
[data-theme="dark"] .theme-toggle--mobile .toggle-slider::before {
  left: 24px;
}

/* Sections */
.section {
  padding: 48px 0;
  border-bottom: 4px solid #000;
}
[data-theme="dark"] .section { border-color: #21262d; }
.section-alt {
  background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .section-alt {
  background: rgba(33,38,45,0.5);
}
.section-hero {
  position: relative;
  text-align: center;
  padding: 80px 0;
}
.section-hero .container {
  padding-left: 24px;
  padding-right: 24px;
}

/* acs1 — right side, starting from gray section divider (bottom of hero) */
.acs1-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35%;
  max-width: 480px;
  height: 55%;
  pointer-events: none;
  z-index: 10000;
}
.acs1-img {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* Headings — Press Start 2P, retro glow */
h1, h2, h3, .hero-title, .section-title, .card-title,
.problem-item h3, .step-content h3 {
  font-family: 'Press Start 2P', 'Courier Prime', monospace;
}
h1, .hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: 0.08em;
  word-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(0,0,255,0.4), 0 0 24px rgba(0,0,255,0.2), 1px 1px 0 #fff;
}
[data-theme="dark"] h1, [data-theme="dark"] .hero-title {
  text-shadow: 0 0 6px rgba(192,132,245,0.35), 0 0 12px rgba(192,132,245,0.2), 1px 1px 0 #0d1117;
}
h2, .section-title {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  border-bottom: 3px solid #000;
  padding-bottom: 0.5rem;
  display: inline-block;
  text-shadow: 0 0 8px rgba(0,0,255,0.3), 1px 1px 0 #fff;
}
[data-theme="dark"] .section-title { border-color: #21262d; }
[data-theme="dark"] #hero .hero-title { color: #c084f5; }
[data-theme="dark"] #for-whom .section-title { color: #4ec9b0; text-shadow: 0 0 4px rgba(78,201,176,0.4), 0 0 8px rgba(78,201,176,0.15); }
[data-theme="dark"] #problems .section-title { color: #d19a66; text-shadow: 0 0 4px rgba(209,154,102,0.4), 0 0 8px rgba(209,154,102,0.15); }
/* Solutions block — Matching stroke style like "Боли бизнеса" */
[data-theme="light"] #solutions .section-title {
  color: #000 !important;
  text-shadow: 1px 1px 0 #fff;
  border-bottom: 3px solid #000;
  -webkit-text-stroke: 0.5px #000;
  text-stroke: 0.5px #000;
}
/* Day mode: Solutions labels/icons = BLUE (#0066cc) */
[data-theme="light"] .solutions-block .card-solution .card-icon { 
  color: #0066cc !important; 
}
[data-theme="light"] .solutions-block .badge,
[data-theme="light"] .solutions-block .tag,
[data-theme="light"] .solutions-item .label {
  color: #0066cc !important;
  border-color: #0066cc !important;
  background: rgba(0, 102, 204, 0.1);
}
[data-theme="light"] .solutions-item:hover {
  border-color: #0066cc !important;
  box-shadow: 0 0 15px rgba(0, 102, 204, 0.3) !important;
}
/* Dark mode: Solutions stay green, reduced glow for eye comfort */
[data-theme="dark"] .solutions-block .card-icon,
[data-theme="dark"] #solutions .section-title,
[data-theme="dark"] .solutions-block .card-title { 
  color: #5dd39e !important; 
  text-shadow: 0 0 4px rgba(93,211,158,0.4), 0 0 8px rgba(93,211,158,0.15);
  -webkit-text-stroke: 0.5px #5dd39e;
  text-stroke: 0.5px #5dd39e;
}
[data-theme="dark"] .solutions-item:hover {
  border-color: #5dd39e !important;
  box-shadow: 0 0 8px rgba(93,211,158,0.3);
}
[data-theme="dark"] #process .section-title { color: #569cd6; text-shadow: 0 0 4px rgba(86,156,214,0.4), 0 0 8px rgba(86,156,214,0.15); }
[data-theme="dark"] #clients .section-title { 
  color: #e69b2e !important; 
  border-bottom-color: #e69b2e !important;
  text-shadow: 0 0 4px rgba(230,155,46,0.4), 0 0 8px rgba(230,155,46,0.15);
}
[data-theme="dark"] #contact .section-title { color: #b794f6; text-shadow: 0 0 4px rgba(183,148,246,0.4), 0 0 8px rgba(183,148,246,0.15); }
h3, .card-title, .problem-item h3, .step-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 6px rgba(0,0,255,0.25), 1px 1px 0 #fff;
}
[data-theme="dark"] .card-title, [data-theme="dark"] .problem-item h3, [data-theme="dark"] .step-content h3 {
  text-shadow: 0 0 3px rgba(255,255,255,0.2);
}
.section-subtitle {
  margin: 0 0 2rem;
  font-size: 1rem;
}
/* Light theme: improve visibility — form-label style (bold, dark, clear) */
[data-theme="light"] .hero-lead,
[data-theme="light"] .section-subtitle {
  color: #0a0a0a !important;
  font-weight: 700;
  text-shadow: 1px 1px 0 #fff, 0 0 1px rgba(0,0,0,0.1);
}
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .hero-lead { color: #c9d1d9; text-shadow: none; }

/* Hero */
.hero-lead {
  font-size: 1.25rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
  max-width: 640px;
  padding: 0 0.5rem;
}

/* Hero slogan — retro interface highlight */
.hero-slogan {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.8px;
  margin: 14px auto 1.5rem;
  max-width: 90%;
  line-height: 1.4;
  pointer-events: none;
  user-select: none;
}

/* Day mode: dark blue/graphite with subtle CRT highlight */
[data-theme="light"] .hero-slogan {
  color: #2c3e50;
  text-shadow: 0 0 3px rgba(41, 128, 185, 0.15), 
               0 0 4px rgba(41, 128, 185, 0.1);
}

/* Night mode: neon cyan/green like old terminal */
[data-theme="dark"] .hero-slogan {
  color: #00d9ff;
  text-shadow: 0 0 4px rgba(0, 217, 255, 0.6), 
               0 0 8px rgba(0, 217, 255, 0.3);
}

/* Subtle retro pulse animation (optional) */
@keyframes retro-pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes retro-flicker {
  0%, 90%, 100% { opacity: 1; }
  92%, 94% { opacity: 0.88; }
}

.hero-slogan {
  animation: retro-pulse 4s steps(4) infinite;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-slogan {
    animation: none;
    opacity: 1;
  }
}

/* Hero nostalgic video — small corner element */
.hero-nostalgic {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.5;
}
@media (max-width: 767px) {
  .hero-nostalgic { width: 48px; height: 48px; top: 12px; right: 12px; }
}
.hero-nostalgic-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  background: linear-gradient(180deg, #fff 0%, #e0e0e0 50%, #c0c0c0 100%);
  border: 2px solid #808080;
  border-top-color: #fff;
  border-left-color: #fff;
  box-shadow: 1px 1px 0 #000;
  text-decoration: none;
  transition: all 0.2s step-end;
}
.btn:hover {
  background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 50%, #b8b8b8 100%);
}
.btn:active {
  background: #a0a0a0;
  box-shadow: inset 1px 1px 2px #000;
}
[data-theme="dark"] .btn {
  color: #98c379;
  background: #161b22;
  border-color: #98c379;
}
[data-theme="dark"] .btn:hover { color: #b5d99a; border-color: #b5d99a; }

/* Primary CTA — metallic, neon outline, glitch hover */
.btn-primary, .btn-cta-hero {
  padding: 16px 32px;
  font-size: 1.1rem;
  background: linear-gradient(180deg, #e8e8e8 0%, #c8c8c8 25%, #a8a8a8 50%, #909090 75%, #787878 100%);
  border: 3px solid #606060;
  border-top-color: #fff;
  border-left-color: #e0e0e0;
  box-shadow: 0 0 12px rgba(0,0,255,0.4), 0 0 24px rgba(0,0,255,0.2), 2px 2px 0 #000;
  position: relative;
}
.btn-primary:hover, .btn-cta-hero:hover {
  box-shadow: 0 0 16px rgba(0,0,255,0.6), 0 0 32px rgba(0,0,255,0.3), 2px 2px 0 #000;
}
[data-theme="dark"] .btn-primary, [data-theme="dark"] .btn-cta-hero {
  background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 50%, #0d0d15 100%);
  border-color: #c084f5;
  color: #e6edf3;
  box-shadow: 0 0 12px rgba(192,132,245,0.5), 0 0 24px rgba(192,132,245,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] .btn-primary:hover, [data-theme="dark"] .btn-cta-hero:hover {
  box-shadow: 0 0 20px rgba(192,132,245,0.7), 0 0 40px rgba(192,132,245,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Glitch hover — subtle, no layout shift */
@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
  100% { transform: translate(0); }
}
.btn-primary:hover, .btn-cta-hero:hover {
  animation: glitch 0.3s ease-in-out;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  padding: 24px;
  border: 3px solid #000;
  background: #e8e8e8;
  transition: all 0.2s step-end;
}
[data-theme="dark"] .card {
  border-color: #21262d;
  background: #161b22;
}
.card:hover {
  border-color: #00f;
  box-shadow: 0 0 20px rgba(0,0,255,0.2);
}
[data-theme="dark"] .card:hover {
  border-color: #4ec9b0;
  box-shadow: 0 0 8px rgba(78,201,176,0.2);
}
.card-icon {
  margin-bottom: 1rem;
}
[data-theme="dark"] .card-icon { color: #4ec9b0; }
[data-theme="light"] .card-icon { color: #00f; }
.card-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.card-text {
  margin: 0;
  font-size: 0.95rem;
}
[data-theme="light"] .card-text { color: #0a0a0a; }
[data-theme="dark"] .card-text { color: #e6edf3; }

/* ========== Our Clients logo marquee ========== */
.clients-section .section-title {
  margin-bottom: 1.5rem;
}
.logo-marquee {
  overflow: hidden;
  padding: 2rem 0;
}
.logo-track {
  display: flex;
  animation: scroll-left 20s linear infinite;
}
.logo-track img {
  height: 60px;
  width: auto;
  margin: 0 3rem;
  opacity: 0.7;
  flex-shrink: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.logo-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

/* ========== Services & Pricing (collapsible) ========== */
.pricing-collapsible {
  border: 3px solid #000;
  background: #e8e8e8;
  overflow: hidden;
}
[data-theme="dark"] .pricing-collapsible {
  border-color: #21262d;
  background: #161b22;
}

.pricing-collapsible-trigger {
  width: 100%;
  padding: 24px;
  text-align: left;
  font-family: inherit;
  background: transparent;
  border: none;
  color: inherit;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}
.pricing-collapsible-trigger:hover {
  background: rgba(0,0,0,0.05);
}
[data-theme="dark"] .pricing-collapsible-trigger:hover {
  background: rgba(255,255,255,0.05);
}

.pricing-collapsible-title {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.pricing-collapsible-subtitle {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}
.pricing-collapsible-icon {
  margin-left: auto;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.pricing-collapsible.is-expanded .pricing-collapsible-icon {
  transform: rotate(180deg);
}

.pricing-collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}
.pricing-collapsible.is-expanded .pricing-collapsible-body {
  max-height: 4200px;
  opacity: 1;
}

[data-theme="dark"] #services-pricing .pricing-collapsible-title {
  color: #00ff88 !important;
  text-shadow: 0 0 8px rgba(0,255,136,0.5), 0 0 16px rgba(0,255,136,0.25);
}
[data-theme="dark"] #services-pricing .pricing-collapsible-subtitle {
  color: #00ff88 !important;
}
[data-theme="dark"] #services-pricing .pricing-badge {
  color: #00ff88 !important;
  border-color: #00ff88 !important;
  background: rgba(0,255,136,0.1) !important;
}
[data-theme="dark"] #services-pricing .pricing-card-btn,
[data-theme="dark"] #services-pricing .btn-cta {
  color: #00ff88 !important;
  border-color: #00ff88 !important;
  text-shadow: 0 0 5px rgba(0,255,136,0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 24px 24px;
}

.pricing-card {
  position: relative;
  padding: 24px;
  border: 3px solid #000;
  background: #fff;
  transition: all 0.2s step-end;
}
[data-theme="dark"] .pricing-card {
  border-color: #21262d;
  background: #0d1117;
}
.pricing-card:hover {
  border-color: #00f;
  box-shadow: 0 0 20px rgba(0,0,255,0.15);
}
[data-theme="dark"] .pricing-card:hover {
  border-color: #4ec9b0;
  box-shadow: 0 0 8px rgba(78,201,176,0.2);
}

.pricing-card-badges {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pricing-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
.pricing-badge--popular {
  background: rgba(0,0,255,0.15);
  color: #0000cc;
  border: 1px solid rgba(0,0,255,0.3);
}
[data-theme="dark"] .pricing-badge--popular {
  background: rgba(78,201,176,0.2);
  color: #4ec9b0;
  border-color: rgba(78,201,176,0.4);
}
.pricing-badge--best {
  background: rgba(0,128,0,0.15);
  color: #006600;
  border: 1px solid rgba(0,128,0,0.3);
}
[data-theme="dark"] .pricing-badge--best {
  background: rgba(152,195,121,0.2);
  color: #98c379;
  border-color: rgba(152,195,121,0.4);
}
.pricing-card--badge .pricing-card-category { padding-right: 50px; }
.pricing-badge--new { font-size: 0.9rem; }
.pricing-card--badge-green .pricing-card-badges .pricing-badge { color: #0a0; }
.pricing-card--badge-yellow .pricing-card-badges .pricing-badge { color: #aa0; }
.pricing-card--badge-blue .pricing-card-badges .pricing-badge { color: #06c; }

.pricing-card-category {
  font-family: 'Press Start 2P', 'Courier Prime', monospace;
  font-size: 0.9rem;
  margin: 0 0 1rem;
  padding-right: 80px;
  text-shadow: 0 0 6px rgba(0,0,255,0.25), 1px 1px 0 #fff;
}
[data-theme="dark"] .pricing-card-category {
  text-shadow: 0 0 6px currentColor;
}
[data-theme="dark"] #services-pricing .pricing-card-category {
  color: #00ff88 !important;
  text-shadow: 0 0 6px rgba(0,255,136,0.5);
}

.pricing-plans {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pricing-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.pricing-plan-name {
  font-weight: 700;
  font-size: 1rem;
}
.pricing-plan-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0000cc;
  flex-shrink: 0;
}
[data-theme="dark"] .pricing-plan-price {
  color: #4ec9b0;
  text-shadow: 0 0 8px rgba(78,201,176,0.4);
}
[data-theme="dark"] #services-pricing .pricing-plan-price {
  color: #00ff88 !important;
  text-shadow: 0 0 8px rgba(0,255,136,0.4);
}
.pricing-plan-desc {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

.pricing-benefit {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.85;
}

.pricing-card-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.pricing-cta-wrap {
  text-align: center;
  padding: 24px 24px 0;
  margin-top: 8px;
  border-top: 2px solid rgba(0,0,0,0.2);
}
[data-theme="dark"] .pricing-cta-wrap {
  border-top-color: rgba(255,255,255,0.15);
}
.btn-cta--large {
  padding: 12px 24px;
  font-size: 1rem;
}

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

/* Problem grid */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.problem-item {
  padding: 20px;
  border: 3px solid #000;
  background: #e8e8e8;
  transition: all 0.2s step-end;
}
[data-theme="dark"] .problem-item {
  border-color: #21262d;
  background: #161b22;
}
.problem-item:hover {
  border-color: #00f;
}
[data-theme="dark"] .problem-item:hover { border-color: #d19a66; }
.problem-icon {
  margin-bottom: 0.75rem;
}
[data-theme="dark"] .problem-icon { color: #d19a66; }
.problem-item h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.problem-item p { margin: 0; font-size: 0.95rem; }
[data-theme="light"] .problem-item p { color: #0a0a0a; }
[data-theme="dark"] .problem-item p { color: #e6edf3; }

/* Process steps */
.process-steps {
  margin-top: 2rem;
}
.process-step {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
  border: 3px solid #000;
  background: #e8e8e8;
  transition: all 0.2s step-end;
}
[data-theme="dark"] .process-step {
  border-color: #21262d;
  background: #161b22;
}
.step-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  border: 2px solid #000;
  background: #fff;
}
[data-theme="dark"] .step-number {
  border-color: #569cd6;
  background: #0d1117;
  color: #569cd6;
}
.step-content h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.step-content p { margin: 0; font-size: 0.95rem; }
[data-theme="light"] .step-content p { color: #0a0a0a; }
[data-theme="dark"] .step-content p { color: #e6edf3; }

/* Testimonials */
.testimonials-slider {
  margin-top: 2rem;
}
.testimonial-track {
  position: relative;
  min-height: 120px;
}
.testimonial-card {
  display: none;
  padding: 24px;
  border: 3px solid #000;
  background: #e8e8e8;
}
[data-theme="dark"] .testimonial-card {
  border-color: #0f0;
  background: rgba(0,20,0,0.5);
}
.testimonial-card.active { display: block; }
.testimonial-card blockquote {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.testimonial-author strong { display: block; }
.testimonial-author span { font-size: 0.9rem; opacity: 0.9; }

.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1rem;
}
.dot {
  width: 12px;
  height: 12px;
  border: 2px solid #000;
  background: transparent;
  padding: 0;
  transition: all 0.2s step-end;
}
[data-theme="dark"] .dot { border-color: #6b8e9b; }
.dot:hover { background: rgba(0,0,255,0.3); }
[data-theme="dark"] .dot:hover { background: rgba(107,142,155,0.3); }
.dot.active { background: #000; }
[data-theme="dark"] .dot.active { background: #6b8e9b; }

/* Contact form */
/* acs2 — right side, starting from green line (bottom of contact section) */
.contact-section {
  position: relative;
  padding-bottom: 140px;
}
.acs2-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  max-width: 420px;
  height: 140px;
  pointer-events: none;
  z-index: 10000;
}
.acs2-img {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.contact-form {
  max-width: 480px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #333;
  background: rgba(255,255,255,0.95);
  color: #0a0a0a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  border-color: #2d3748;
  background: rgba(22, 27, 34, 0.9);
  color: #c9d1d9;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 1px rgba(74, 111, 165, 0.25);
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  border-color: #388bfd;
  box-shadow: 0 0 0 1px rgba(56, 139, 253, 0.2);
}
.contact-form .btn { margin-top: 0.5rem; }
.form-error {
  max-width: 480px;
  margin: 0.5rem auto 0;
  padding: 12px;
  border: 2px solid #c00;
  background: rgba(200,0,0,0.1);
  color: #c00;
  font-size: 0.9rem;
}
[data-theme="dark"] .form-error {
  border-color: #f66;
  background: rgba(255,100,100,0.15);
  color: #f66;
}
.form-success {
  max-width: 480px;
  margin: 1rem auto 0;
  padding: 20px;
  border: 3px solid #0a0;
  background: rgba(0,160,0,0.1);
  text-align: center;
}
[data-theme="dark"] .form-success {
  border-color: #98c379;
  background: rgba(152,195,121,0.1);
}

/* Footer */
.footer {
  padding: 24px 0;
  border-top: 4px solid #000;
  text-align: center;
}
[data-theme="dark"] .footer { border-color: #0f0; }
.footer-text { margin: 0; font-size: 0.95rem; }
.footer a {
  color: inherit;
  text-decoration: none;
  transition: none;
}
.footer a:hover {
  color: #0000ff;
  text-decoration: underline;
}
[data-theme="dark"] .footer a:hover {
  color: #4ec9b0;
  text-decoration: underline;
}

/* Infinite scrolling marquee -online since 1992- */
.marquee-wrap {
  width: 100%;
  height: 36px;
  overflow: hidden;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.15);
  text-align: left;
}
[data-theme="dark"] .marquee-wrap {
  border-top-color: rgba(192, 132, 245, 0.25);
  background: rgba(0, 0, 0, 0.35);
}
.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.marquee-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #555;
  padding: 0 2rem;
  flex-shrink: 0;
  line-height: 36px;
}
[data-theme="dark"] .marquee-text {
  color: #c084f5;
  text-shadow: 0 0 8px rgba(192, 132, 245, 0.8), 0 0 16px rgba(192, 132, 245, 0.4);
  animation: marquee-flicker 2.5s ease-in-out infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.88; }
}

/* ========== Breakpoints ========== */
@media (min-width: 360px) {
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 390px) {
  .hero-title { font-size: 3rem; }
}
@media (min-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .section-hero { padding: 100px 0; }
  .container { padding-left: 32px; padding-right: 32px; }
  .nav-desktop { display: flex; }
  .header-right { display: flex; }
  .header-mobile-controls { display: none; }
  .nav-burger { display: none; }
}
@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .container { max-width: 1024px; padding-left: 40px; padding-right: 40px; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 3.5rem; }
}
@media (min-width: 1440px) {
  .container { max-width: 1200px; }
  .section { padding: 80px 0; }
  .section-hero { padding: 120px 0; }
  .hero-title { font-size: 4rem; }
}

/* Mobile: show burger + theme in header-mobile-controls, hide desktop nav */
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .header-right { display: none; }
  .header-mobile-controls {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .nav-burger { display: flex; }
  .header-inner {
    padding: 12px 16px;
    gap: 16px;
    min-height: 80px;
  }
  body { padding-bottom: 0; }
  .hero-title { font-size: 2rem; }
  .hero-lead { font-size: 1.1rem; }
  .hero-slogan { 
    font-size: 0.85rem;
    margin: 12px auto 1.25rem;
    max-width: 95%;
  }
  .section { padding: 40px 0; }
  .section-hero { padding: 60px 0; }
  .acs1-wrap { width: 45%; max-width: 280px; height: 50%; }
  .contact-section { padding-bottom: 100px; }
  .acs2-wrap { width: 50%; max-width: 300px; height: 100px; }
  .nav-panel-links a { font-size: 1.1rem; padding: 16px 24px; min-height: 52px; }
  .nav-panel-links li + li { margin-top: 4px; }
}
@media (max-width: 389px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: 1.75rem; }
  .hero-slogan { 
    font-size: 0.75rem;
    letter-spacing: 0.6px;
  }
  .section-title { font-size: 1.5rem; }
}
