/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #ffffff;
  color: #222222;
  line-height: 1.5;
}

/* Color Variables */
:root {
  --telegram-blue: #3390ec;
  --telegram-dark: #1c93e3;
  --telegram-link: #2481cc;
  --gray-50: #f9fafb;
  --gray-100: #f4f4f5;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-100);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.header-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-button {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--telegram-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: background-color 0.2s;
}

.logo-button:hover .logo-circle {
  background: var(--telegram-dark);
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-size: 15px;
  font-weight: 500;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  transition: color 0.2s;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--telegram-blue);
}

.nav-link.active {
  color: var(--gray-900);
  font-weight: 700;
}

.twitter-link {
  display: flex;
  align-items: center;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.twitter-link:hover {
  color: var(--telegram-blue);
}

.twitter-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.25rem;
  fill: currentColor;
}

.twitter-text {
  display: none;
}

/* Hero Section */
.hero-section {
  background: white;
  padding: 4rem 1rem 3rem;
  text-align: center;
}

.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-circle {
  width: 160px;
  height: 160px;
  background: var(--telegram-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  max-width: 36rem;
  line-height: 1.6;
}

.hero-button {
  position: relative;
  background: var(--telegram-blue);
  color: white;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 9999px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: 0 20px 25px -5px rgba(51, 144, 236, 0.3);
  text-decoration: none;
  border: none;
  cursor: pointer;
  margin-bottom: 2rem;
}

.hero-button:hover {
  background: var(--telegram-dark);
  box-shadow: 0 25px 50px -12px rgba(51, 144, 236, 0.4);
  transform: translateY(-4px);
}

.hero-button svg {
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  fill: currentColor;
  opacity: 0.9;
  transition: transform 0.3s;
}

.hero-button:hover svg {
  transform: scale(1.1);
}

.hero-links {
  font-size: 15px;
  color: var(--gray-500);
}

.hero-links a {
  color: var(--telegram-link);
  text-decoration: none;
  font-weight: 500;
}

.hero-links a:hover {
  text-decoration: underline;
}

/* Features Section */
.features-section {
  padding: 4rem 1rem;
}

.features-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--gray-800);
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 3rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.feature-card:hover {
  transform: scale(1.1) translateY(-0.5rem);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: white;
}

.feature-icon {
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon img {
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* FAQ Page */
.faq-container {
  display: flex;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 5rem;
}

.faq-sidebar {
  display: none;
  width: 224px;
  flex-shrink: 0;
  margin-right: 2.5rem;
}

.faq-sidebar-sticky {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 1rem;
}

.faq-sidebar ul {
  list-style: none;
}

.faq-sidebar li {
  margin-bottom: 0.5rem;
}

.faq-sidebar-link {
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: var(--telegram-link);
  transition: color 0.2s;
}

.faq-sidebar-link:hover {
  text-decoration: underline;
}

.faq-sidebar-link.active {
  color: var(--gray-900);
  font-weight: 700;
  text-decoration: none;
}

.faq-content {
  flex: 1;
  min-width: 0;
}

.faq-main-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}

.faq-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.faq-section {
  scroll-margin-top: 80px;
}

.faq-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--telegram-blue);
  margin-bottom: 1.25rem;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  position: relative;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
  cursor: pointer;
}

.faq-item:hover .faq-question {
  color: var(--telegram-blue);
}

.faq-question a {
  display: flex;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.faq-anchor {
  color: var(--telegram-blue);
  opacity: 0;
  margin-left: -1.25rem;
  margin-right: 0.5rem;
  width: 0.75rem;
  transition: opacity 0.2s;
  font-weight: 400;
  font-size: 1rem;
  margin-top: 0.25rem;
}

.faq-item:hover .faq-anchor {
  opacity: 1;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
}

/* Apps Page */
.apps-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  animation: fadeIn 0.3s ease-in;
}

.apps-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.apps-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--telegram-blue);
  margin-bottom: 1.5rem;
}

.apps-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.app-item {
  display: flex;
  align-items: start;
}

.app-icon {
  width: 64px;
  height: 64px;
  margin-right: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.app-icon.android {
  background: var(--telegram-blue);
}

.app-icon.ios {
  background: #1f2937;
}

.app-icon.desktop {
  background: #2563eb;
}

.app-icon.web-k {
  background: #0ea5e9;
}

.app-icon.web-z {
  background: #14b8a6;
}

.app-details {
  flex: 1;
}

.app-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.app-buttons {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.app-button-primary {
  background: var(--telegram-blue);
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.app-button-primary:hover {
  background: var(--telegram-dark);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.app-button-secondary {
  color: var(--telegram-link);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0 0.5rem;
  text-decoration: none;
}

.app-button-secondary:hover {
  text-decoration: underline;
}

.app-description {
  margin-top: 0.75rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.apps-web-section {
  margin-top: 3rem;
}

/* Footer */
footer {
  background: white;
  padding: 3rem 0;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column h5 {
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: var(--telegram-link);
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in;
}

.page-content {
  animation: fadeIn 0.3s ease-in;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (min-width: 640px) {
  .logo-text {
    display: block;
  }

  .twitter-text {
    display: inline;
  }

  .hero-section {
    padding: 6rem 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .faq-container {
    flex-direction: row;
  }

  .faq-sidebar {
    display: block;
  }

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

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

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

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

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

/* Divider */
.divider {
  border-top: 1px solid var(--gray-100);
}

/* SVG Icons */
svg {
  display: block;
}