* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  html { scroll-behavior: smooth; }
  body {
    background: #0A0A0A;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
  }
  
  /* (custom cursor removed — native browser cursor) */

  /* Grid background */
  .grid-bg {
    background-image: 
      linear-gradient(rgba(0, 255, 136, 0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 255, 136, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  }

  /* Gradient text */
  .grad-text {
    background: linear-gradient(135deg, #00FF88 0%, #00D4FF 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .grad-text-2 {
    background: linear-gradient(135deg, #8B5CF6 0%, #00D4FF 50%, #00FF88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Glass */
  .glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  .glass-strong {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Glow */
  .glow-green { box-shadow: 0 0 40px rgba(0, 255, 136, 0.15), 0 0 80px rgba(0, 255, 136, 0.05); }
  .glow-purple { box-shadow: 0 0 40px rgba(139, 92, 246, 0.2); }
  .glow-cyan { box-shadow: 0 0 40px rgba(0, 212, 255, 0.15); }

  /* Magnetic button */
  .btn-magnetic {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
  }
  .btn-magnetic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0,255,136,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .btn-magnetic:hover::before { opacity: 1; }

  /* Typewriter cursor */
  .type-cursor {
    display: inline-block;
    width: 3px;
    background: #00FF88;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
  }
  @keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
  }

  /* Code highlight */
  .code-kw { color: #8B5CF6; }
  .code-fn { color: #00D4FF; }
  .code-str { color: #00FF88; }
  .code-num { color: #FFB86C; }
  .code-cm { color: #6272A4; font-style: italic; }
  .code-prop { color: #F8F8F2; }

  /* Syntax line */
  .code-line {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.7;
  }
  .code-line .ln {
    color: #4B5563;
    user-select: none;
    min-width: 24px;
    text-align: right;
  }


  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
  .reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
  .reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
  .reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
  .reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
  .reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

  /* Service card hover animation */
  .service-card {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
    transform-style: preserve-3d;
  }
  .service-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.4s;
    pointer-events: none;
  }
  .service-card:hover::before {
    background: linear-gradient(135deg, #00FF88, #00D4FF, #8B5CF6);
  }
  .service-card:hover { transform: translateY(-6px); }
  .service-card .hover-anim { opacity: 0; transform: translateY(10px); transition: all 0.4s; }
  .service-card:hover .hover-anim { opacity: 1; transform: translateY(0); }

  /* Timeline */
  .timeline-progress {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  .timeline-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #00FF88, #00D4FF, #8B5CF6);
    width: var(--progress, 0%);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  }
  .timeline-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: #0A0A0A;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.4s;
  }
  .timeline-dot.active {
    border-color: #00FF88;
    background: #00FF88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
  }

  /* Tech logo card */
  .tech-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .tech-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.04);
    transform: translateY(-4px);
  }

  /* Case card */
  .case-card { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  .case-card:hover { transform: translateY(-8px); }
  .case-card img { transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
  .case-card:hover img { transform: scale(1.06); }

  /* FAQ */
  .faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.3s;
  }
  .faq-item.open { background: rgba(0, 255, 136, 0.02); }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .faq-item.open .faq-answer { max-height: 300px; }
  .faq-icon { transition: transform 0.4s; }
  .faq-item.open .faq-icon { transform: rotate(45deg); color: #00FF88; }

  /* Modal */
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .modal-backdrop.open { opacity: 1; pointer-events: auto; }
  .modal-panel {
    transform: translateY(30px) scale(0.96);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .modal-backdrop.open .modal-panel { transform: translateY(0) scale(1); }

  /* Floating CTA */
  .floating-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s;
  }
  .floating-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

  /* Input */
  .field {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    transition: all 0.3s;
  }
  .field:focus {
    outline: none;
    border-color: #00FF88;
    background: rgba(0, 255, 136, 0.03);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.08);
  }
  select.field {
    background-color: #0D1117;
    color: #fff;
  }
  select.field option,
  select.field optgroup {
    background-color: #0D1117;
    color: #fff;
  }

  /* Comparison table */
  .comp-row:hover { background: rgba(255,255,255,0.02); }
  .comp-col-us {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.04), rgba(139, 92, 246, 0.02));
    border-left: 1px solid rgba(0, 255, 136, 0.15);
    border-right: 1px solid rgba(0, 255, 136, 0.15);
  }
  .comp-col-us-head {
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.3);
  }

  /* Marquee */
  .marquee {
    display: flex;
    animation: marquee 30s linear infinite;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Scrollbar */
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: #0A0A0A; }
  ::-webkit-scrollbar-thumb { background: #1F2937; border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: #00FF88; }

  /* Particle floating */
  .particle {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(0, 255, 136, 0.15);
    font-size: 20px;
    user-select: none;
    pointer-events: none;
    animation: floatUp linear infinite;
  }
  @keyframes floatUp {
    from { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    to { transform: translateY(-100px) rotate(360deg); opacity: 0; }
  }

  /* Noise */
  .noise::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* Success overlay */
  .success-overlay {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
  }
  .success-overlay.show { opacity: 1; pointer-events: auto; }

  .underline-anim {
    position: relative;
    display: inline-block;
  }
  .underline-anim::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 1px;
    background: currentColor;
    transition: width 0.3s;
  }
  .underline-anim:hover::after { width: 100%; }

  /* Confetti */
  .confetti {
    position: absolute;
    width: 8px; height: 14px;
    top: 50%; left: 50%;
  }

  /* Brand colors — гарантированно работают вне Tailwind JIT */
  .text-nGreen { color: #00FF88; }
  .text-nCyan { color: #00D4FF; }
  .text-nPurple { color: #8B5CF6; }
  .bg-nGreen { background-color: #00FF88; }
  .bg-nCyan { background-color: #00D4FF; }
  .bg-nPurple { background-color: #8B5CF6; }
  .border-nGreen { border-color: #00FF88; }

  /* Сравнение: мобильные карточки */
  .comp-mobile-us {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.08), rgba(0, 212, 255, 0.04));
    border: 1px solid rgba(0, 255, 136, 0.2);
  }
  .comp-mobile-card {
    border: 1px solid rgba(255, 255, 255, 0.06);
  }