:root {
  --color-background: hsl(0, 0%, 8%);
  --color-foreground: hsl(0, 4%, 91%);
  --color-border: hsl(0, 0%, 16%);
  --color-card: hsl(0, 0%, 12%);
  --color-card-border: hsl(0, 0%, 16%);
  --color-primary: hsl(11, 89%, 26%);
  --color-primary-foreground: hsl(0, 4%, 91%);
  --color-muted: hsl(0, 3%, 16%);
  --color-muted-foreground: hsl(0, 0%, 65%);

  --gradient-red-1: linear-gradient(135deg, #dc2626, #991b1b);
  --gradient-red-2: linear-gradient(135deg, #ef4444, #be123c);
  --gradient-red-3: linear-gradient(135deg, #dc2626, #7f1d1d);
  --gradient-red-4: linear-gradient(135deg, #b91c1c, #7f1d1d);
  --gradient-red-5: linear-gradient(135deg, #e11d48, #991b1b);

  --elevate-1: rgba(255, 255, 255, 0.04);
  --elevate-2: rgba(255, 255, 255, 0.09);

  --shadow-md: 0px 6px 12px -2px hsl(0 0% 0% / 0.35), 0px 3px 6px -2px hsl(0 0% 0% / 0.30);
  --shadow-lg: 0px 10px 20px -4px hsl(0 0% 0% / 0.40), 0px 4px 8px -2px hsl(0 0% 0% / 0.30);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 1.5rem;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}


.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
    text-align: left;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section {
    text-align: left;
    overflow-x: hidden;
    width: 100%;
  }

  .grid {
    justify-items: stretch;
    width: 100%;
  }
}

.hidden {
  display: none !important;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes dropdownBounce {
  0% {
    transform: translateX(-50%) translateY(-8px) scale(0.96);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) translateY(3px) scale(1.01);
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes mobileMenuBounce {
  0% {
    transform: translateY(-8px) scale(0.96);
    opacity: 0;
  }
  60% {
    transform: translateY(3px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes dropdownItemFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes advantageWave {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.navbar {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: 100%;
}

.navbar-logo-left {
  position: absolute;
  left: calc(max(2rem, calc((100vw - 1280px) / 2 + 2rem)) - 1rem);
  z-index: 52;
  padding-top: 4.25rem;
}

.navbar-logo-left img {
  height: 2.5rem;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease;
}

.navbar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 0.75rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  margin-top: 4.25rem;
}

.navbar-center:hover {
  background-color: rgba(20, 20, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}

.navbar-menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.navbar-link:hover {
  color: var(--color-foreground);
  background-color: rgba(255, 255, 255, 0.06);
}

.dropdown-arrow {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 1.25rem);
  left: 50%;
  transform: translateX(-50%) translateY(-12px) scale(0.95);
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.75rem;
  min-width: 220px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1.25rem;
  left: 0;
  right: 0;
  height: 1.25rem;
  background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: dropdownBounce 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.dropdown-item {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
}

.dropdown:hover .dropdown-item,
.dropdown-menu:hover .dropdown-item {
  animation: dropdownItemFadeIn 0.4s ease-out forwards;
}

.dropdown:hover .dropdown-item:nth-child(1),
.dropdown-menu:hover .dropdown-item:nth-child(1) {
  animation-delay: 0.1s;
}

.dropdown:hover .dropdown-item:nth-child(2),
.dropdown-menu:hover .dropdown-item:nth-child(2) {
  animation-delay: 0.15s;
}

.dropdown:hover .dropdown-item:nth-child(3),
.dropdown-menu:hover .dropdown-item:nth-child(3) {
  animation-delay: 0.2s;
}

.dropdown:hover .dropdown-item:nth-child(4),
.dropdown-menu:hover .dropdown-item:nth-child(4) {
  animation-delay: 0.25s;
}

.dropdown:hover .dropdown-item:nth-child(5),
.dropdown-menu:hover .dropdown-item:nth-child(5) {
  animation-delay: 0.3s;
}

.dropdown-item:hover {
  color: var(--color-foreground);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-right {
  position: absolute;
  right: calc(max(2rem, (100vw - 1280px) / 2 + 2rem) - 1.3rem);
  z-index: 52;
  padding-top: 4.25rem;
}

.telegram-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.telegram-icon-img {
  width: 2rem;
  height: 2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.telegram-icon-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1;
  filter: blur(8px);
}

.telegram-icon-link:hover::before {
  opacity: 1;
  width: 140%;
  height: 140%;
}

.telegram-icon-link:hover .telegram-icon-img {
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-foreground);
  padding: 0.5rem;
  z-index: 52;
  position: absolute;
  right: 1rem;
  top: 1.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu-toggle svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle .hamburger-line {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-box: fill-box;
  transform-origin: center center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translate(0px, 6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translate(0px, -6px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 3.5rem);
  right: -0.5rem;
  left: auto;
  background-color: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.75rem;
  min-width: 220px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scale(0.95);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.mobile-menu.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.mobile-menu-items li {
  opacity: 0;
  transform: translateY(-8px);
}

.mobile-menu.visible .mobile-menu-items li {
  animation: dropdownItemFadeIn 0.4s ease-out forwards;
}

.mobile-menu.visible .mobile-menu-items li:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu.visible .mobile-menu-items li:nth-child(2) {
  animation-delay: 0.15s;
}

.mobile-menu.visible .mobile-menu-items li:nth-child(3) {
  animation-delay: 0.2s;
}

.mobile-menu.visible .mobile-menu-items li:nth-child(4) {
  animation-delay: 0.25s;
}

.mobile-menu.visible .mobile-menu-items li:nth-child(5) {
  animation-delay: 0.3s;
}

.mobile-menu-items a,
.mobile-menu-items button {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.mobile-menu-items a:hover,
.mobile-menu-items button:hover {
  color: var(--color-foreground);
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .navbar-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .navbar-right {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .navbar-center {
    display: none;
  }

  .navbar-right .telegram-icon-link {
    display: none;
  }

  .navbar-logo-left {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    right: 1rem;
    top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    right: 1rem;
    top: 1.25rem;
  }

  .mobile-menu {
    right: -0.5rem;
    top: calc(100% + 3.25rem);
  }
}

@media (max-width: 480px) {
  .mobile-menu-toggle {
    right: 0.75rem;
    top: 1rem;
  }

  .mobile-menu-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-menu {
    right: -0.5rem;
    min-width: 200px;
    top: calc(100% + 3rem);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-primary-foreground);
  padding: 0.5rem 1rem;
}

.btn-primary:hover {
  background-color: hsl(0, 85%, 50%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-foreground);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background-color: var(--elevate-1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-foreground);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background-color: var(--elevate-1);
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.card {
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

@media (max-width: 768px) {
  .card {
    text-align: left;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
  }

  .card-header {
    justify-content: flex-start !important;
  }

  .card-description {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .card {
    min-height: 300px;
  }
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: background-color 0.3s;
}

.card:hover::after {
  background-color: var(--elevate-1);
}

.card:active::after {
  background-color: var(--elevate-2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  line-height: 0;
}

.card-icon i {
  font-size: 1.75rem;
  color: var(--color-primary);
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-primary);
  display: block;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color:  hsl(0, 4%, 91%);
}

.card-description {
  color: var(--color-muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex: 1;
}

.card-features {
  list-style: none;
}

.card-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  margin-bottom: 0.5rem;
}

.card-feature::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover .card-gradient-overlay {
  opacity: 0.1;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 0.3s;
  pointer-events: none;
}

.card:hover::before {
  border-color: rgba(220, 38, 38, 0.3);
}

.code-block-wrapper {
  max-width: 100%;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}

.code-block {
  background-color:  hsl(0, 0%, 8%);
  border-radius: 1.5rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
}

.code-block pre {
  margin: 0;
  white-space: pre;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.code-block code {
  color: hsl(0, 0%, 65%);
  font-family: inherit;
}

.code-block .variable {
  color: hsl(11, 89%, 29%);
}

.code-block .operator {
  color: hsl(0, 0%, 65%);
}

.code-block .string {
  color: hsl(0, 0%, 65%);
}

.code-block .bracket {
  color: hsl(0, 0%, 65%);
}

@media (max-width: 768px) {
  .code-block {
    padding: 0.875rem 1rem;
    border-radius: 1.5rem;
    max-width: 100%;
    overflow-x: auto;
  }

  .code-block pre {
    font-size: 0.7rem;
    max-width: 100%;
    overflow-x: auto;
  }

  .code-block-wrapper {
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .code-block {
    padding: 0.75rem 0.875rem;
    max-width: 100%;
    border-radius: 1.5rem;
  }

  .code-block pre {
    font-size: 0.65rem;
    max-width: 100%;
  }
}

.mail-code-container {
  display: flex;
  flex-direction: column;
  gap: 3.3rem;
  max-width: 100%;
  min-height: 240px;
  justify-content: center;
}

.mail-code-block {
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mail-code-block.left {
  align-self: flex-start;
  margin-left: 0rem;
  background-color: hsl(0, 0%, 8%);
  padding: 0.5rem 1.5rem 0.5rem 3.5rem;
}

.mail-code-block.right {
  align-self: flex-end;
  margin-right: 0rem;
  background-color: hsl(0, 0%, 8%);
  padding: 0.5rem 2rem 0.5rem 4rem;
}

.mail-code-content {
  color: #ffffff;
  white-space: pre;
  font-family: 'Courier New', monospace;
  line-height: 1.4;
  margin-left: -2rem;
}

.python-block .variable {
  color: hsl(11, 89%, 29%);
}

.python-block .operator {
  color: hsl(0, 0%, 65%);
}

.python-block .module {
  color: hsl(0, 0%, 65%);
}

.python-block .method {
  color: hsl(0, 0%, 65%);
}

.python-block .string {
  color: hsl(0, 0%, 65%);
}

.python-block .parameter {
  color: hsl(0, 0%, 65%);
}

.python-block .punctuation {
  color: hsl(0, 0%, 65%);
}

.json-block .punctuation {
  color: hsl(0, 0%, 65%);
}

.json-block .json-key {
  color: hsl(0, 0%, 65%);
}

.json-block .json-string {
  color: hsl(0, 0%, 65%);
}

@media (max-width: 768px) {
  .mail-code-container {
    max-width: 100%;
    overflow-x: hidden;
  }

  .mail-code-block {
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    max-width: 100%;
    overflow-x: auto;
  }

  .mail-code-block.left {
    margin-left: 0;
  }

  .mail-code-block.right {
    margin-right: 0;
  }

  .mail-code-content {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .mail-code-block {
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
    border-radius: 1rem;
    max-width: 100%;
  }

  .mail-code-block.left {
    margin-left: 0;
  }

  .mail-code-block.right {
    margin-right: 0;
  }

  .mail-code-content {
    margin-left: 0;
    max-width: 100%;
  }
}

.parsing-logo-card {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  padding-top: 2rem;
  padding-bottom: 0;
  min-height: 120px;
}

.parsing-logo-item {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
}

.parsing-logo-item:hover {
  background: transparent;
  transform: translateY(-5px);
}

.parsing-logo-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-muted-foreground);
  transition: width 0.3s ease;
}

.parsing-logo-item:hover::after {
  width: 80%;
}

.parsing-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0) saturate(100%) invert(61%) sepia(0%) saturate(0%) hue-rotate(198deg) brightness(93%) contrast(90%);
}

.parsing-logo-item:hover img {
  transform: scale(1.1);
  filter: brightness(0) saturate(100%) invert(18%) sepia(97%) saturate(1826%) hue-rotate(352deg) brightness(89%) contrast(96%);
}

@media (max-width: 1024px) {
  .parsing-logo-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .parsing-logo-item {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .parsing-logo-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding-top: 2rem;
    padding-bottom: 0;
  }

  .parsing-logo-item {
    height: 35px;
    pointer-events: none;
  }

  .parsing-logo-item:hover {
    background: transparent;
    transform: none;
  }

  .parsing-logo-item::after {
    display: none;
  }

  .parsing-logo-item:hover::after {
    width: 0;
  }

  .parsing-logo-item img {
    transform: none !important;
  }

  .parsing-logo-item:hover img {
    transform: none !important;
    filter: brightness(0) saturate(100%) invert(61%) sepia(0%) saturate(0%) hue-rotate(198deg) brightness(93%) contrast(90%);
  }
}

@media (max-width: 480px) {
  .parsing-logo-card {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.25rem;
    padding-top: 1.5rem;
    padding-bottom: 0;
  }

  .parsing-logo-item {
    height: 35px;
    pointer-events: none;
  }
}

.registration-platform-card {
  background-color: hsl(0, 0%, 8%);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: hsl(0, 0%, 65%);
  line-height: 1.8;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 2rem;
  min-height: 120px;
}

.registration-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.registration-platform-line,
.registration-accounts-line {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.registration-label {
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.95;
}

.registration-platform-name {
  font-weight: 500;
  transition: opacity 0.3s ease;
  display: inline-block;
  min-width: 100px;
  position: relative;
}

.registration-account-count {
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 20px;
  text-shadow: 0 0 10px rgba(168, 44, 11, 0.3);
}

@keyframes countUp {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.registration-account-count {
  animation: countUp 0.4s ease;
}

@keyframes pulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(168, 44, 11, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(168, 44, 11, 0.6);
  }
}

.registration-account-count.pulse {
  animation: pulse 0.5s ease;
}

@media (max-width: 768px) {
  .registration-platform-card {
    padding: 1.25rem 1.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .registration-platform-card {
    padding: 1rem 1.25rem;
    font-size: 0.65rem;
    border-radius: 1rem;
  }
}

.sender-platform-card {
  background-color: hsl(0, 0%, 8%);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: hsl(0, 0%, 65%);
  line-height: 1.8;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 2rem;
  min-height: 120px;
}

.sender-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.sender-platform-line,
.sender-messages-line {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.sender-label {
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.95;
}

.sender-platform-name {
  font-weight: 500;
  transition: opacity 0.3s ease;
  display: inline-block;
  min-width: 100px;
  position: relative;
}

.sender-message-count {
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 20px;
  text-shadow: 0 0 10px rgba(168, 44, 11, 0.3);
}

@media (max-width: 768px) {
  .sender-platform-card {
    padding: 1.25rem 1.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .sender-platform-card {
    padding: 1rem 1.25rem;
    font-size: 0.65rem;
    border-radius: 1rem;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding-top: 5rem;
}

.hero-background {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-glow-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background-color: rgba(220, 38, 38, 0.2);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-glow-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background-color: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  filter: blur(120px);
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  animation-delay: 1s;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(20, 20, 20, 0.5), var(--color-background));
}

.hero-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 1280px;
  pointer-events: none;
}

.hero-logo {
  max-width: 85%;
  height: auto;
  max-height: 320px;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 8px 30px rgba(138, 29, 12, 0.6));
  transition: filter 0.3s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-scroll-indicator {
  margin-top: 4rem;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-indicator svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-muted-foreground);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .hero-content {
    text-align: center;
    padding: 0 1rem;
  }

  .hero-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-logo {
    max-height: 320px;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}

.section-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-indicator.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.section-indicator-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-foreground);
  white-space: nowrap;
}

.section-header {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 11;
  padding: 2rem 0;
}

#services .section-header {
  opacity: 0;
  color: var(--color-muted-foreground);
  transform: translateY(20px);
  filter: blur(0px);
  transition: opacity 1s ease-out, 
              transform 1s ease-out, 
              filter 1s ease-out;
}

#services .section-header.services-visible {
  color: var(--color-muted-foreground);
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.section .container {
  position: relative;
  z-index: 11;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(0, 4%, 91%);
}

.section-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 767px) {
  .section-header {
    text-align: center;
  }

  .section-title {
    text-align: center;
  }

  .section-description {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 8rem 0;
  }

  .section-title {
    font-size: 3rem;
  }

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

  .grid-cols-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3.75rem;
  }
}

.advantages-section {
  position: relative;
}

.advantages-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(220, 38, 38, 0.05), transparent);
}

.advantage-item {
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.advantage-item.animate-fade-in {
  animation: advantageWave 0.8s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

.advantage-item:nth-child(1).animate-fade-in {
  animation-delay: 0.1s;
}

.advantage-item:nth-child(2).animate-fade-in {
  animation-delay: 0.3s;
}

.advantage-item:nth-child(3).animate-fade-in {
  animation-delay: 0.5s;
}

.advantage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.advantage-icon i {
  font-size: 3rem;
  color: var(--color-primary);
}

.advantage-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: hsl(0, 4%, 91%);
}

.advantage-description {
  font-size: 1rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

.telegram-section {
  padding-top: 3rem !important;
}

.telegram-content {
  padding: 3rem;
  text-align: center;
}


.telegram-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: hsl(0, 4%, 91%);
}

.telegram-description {
  font-size: 1.25rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .telegram-section {
    text-align: center;
  }

  .telegram-section .container {
    text-align: center;
  }

  .telegram-content {
    text-align: center;
  }

  .telegram-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 2rem;
  }

  .telegram-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .telegram-title {
    font-size: 1.75rem;
  }

  .telegram-description {
    font-size: 0.95rem;
  }
}

@media (min-width: 768px) {
  .telegram-content {
    padding: 4rem;
  }

  .telegram-title {
    font-size: 3rem;
  }
}

.footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.footer-container {
  background-color: rgba(30, 30, 30, 0.5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  backdrop-filter: blur(4px);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.footer-logo {
  height: 2.5rem;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.footer-section-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(0, 4%, 91%);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

@media (max-width: 767px) {
  .footer-grid {
    text-align: left;
  }

  .footer-section-title {
    text-align: left;
  }

  .footer-links {
    text-align: left;
  }

  .footer-bottom {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fade-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.page-container {
  min-height: 100vh;
  background-color: var(--color-background);
  padding: 5rem 0 3rem;
}

.page-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.back-button {
  margin-bottom: 2rem;
}

.article {
  line-height: 1.7;
}

.article h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-foreground);
}

.article .date {
  font-style: italic;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  display: block;
}

.article section {
  margin-bottom: 2rem;
}

.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.article p {
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

.article ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--color-muted-foreground);
}

.article li {
  margin-bottom: 0.5rem;
}

.article a {
  color: var(--color-primary);
  transition: opacity 0.2s;
}

.article a:hover {
  text-decoration: underline;
}

.article strong {
  font-weight: 600;
  color: var(--color-foreground);
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-foreground);
}

.article h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-foreground);
}

.intro-text {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-muted);
  color: var(--color-foreground);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--color-card-border);
  transition: all 0.2s ease;
}

.badge:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.feature-box {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.feature-box:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(100, 19, 5, 0.3);
}

.feature-box h4 {
  margin-bottom: 1rem;
}

.benefit-card {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-primary);
  font-size: 1.5rem;
}

.benefit-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.benefit-card p {
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
  margin: 0;
}

.code-example {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 0.75rem;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
}

.code-example pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.code-example code {
  color: var(--color-muted-foreground);
}

.cta-section {
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-foreground);
}

.cta-section p {
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-cols-md-3 {
  grid-template-columns: repeat(1, 1fr);
}

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

  .grid-cols-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

a .card {
  cursor: pointer;
  transition: all 0.3s ease;
}

a .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
