/* ============================================
   Copy page butonlarını gizle
   ============================================ */
/* Copy page butonlarını gizle */
.copy-button,
.md-clipboard,
button[data-clipboard-target],
.md-content__button,
button[title="Copy"],
button[title="Copy to clipboard"],
[data-md-component="content"] button,
.md-typeset button.md-clipboard,
button:has(svg[class*="copy"]),
button:has(svg[class*="clipboard"]),
.prose button,
article button {
  display: none !important;
}

/* GitHub ikonunu gizle */
a[href="None"][target="_blank"] {
  display: none !important;
}

/* Stargazers span'ı içeren linki gizle */
a:has(#stargazers) {
  display: none !important;
}

/* Header'daki GitHub linki */
header a[target="_blank"][rel="noreferrer"] {
  display: none !important;
}

/* Header logo düzeltmesi */
header > div > a[href="/"] img,
header > div > a[href*="127.0.0.1"] img,
header a[href="/"] img,
header a[href*="127.0.0.1"] img {
  width: 140px !important;
  height: 36px !important;
  object-fit: contain !important;
}

/* Logo span container */
header a span.size-8,
header a .size-8 {
  width: 140px !important;
  height: 36px !important;
}

header a span.size-8 img,
header a .size-8 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Logo linkini düzgün göster */
header > div > a[href="/"],
header > div > a[href*="127.0.0.1"] {
  display: flex !important;
  align-items: center !important;
}

/* Navbar menüleri için stil */
header nav {
  display: flex !important;
  gap: 0.5rem;
}

header nav a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

header nav a:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.dark header nav a {
  color: #94a3b8;
}

.dark header nav a:hover {
  color: #f8fafc;
  background: #1e293b;
}

/* "Modüller"den sonraki navbar linklerini gizle */
header nav a.hidden-after-modules {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* FOUC önleme: Navbar linklerini baştan gizle, JavaScript ile göster */
header nav a {
  /* JavaScript yüklenene kadar tüm linkler gizli olsun */
  /* JavaScript "Modüller"e kadar olanları gösterecek */
}

/* JavaScript yüklenmeden önce navbar'ı işaretle */
header nav:not(.navbar-initialized) a:nth-child(n+7) {
  /* "Modüller" genellikle 6. veya 7. link olabilir, sonrasını gizle */
  display: none !important;
  visibility: hidden !important;
}

/* Mobil görünümde düzenlemeler */
@media (max-width: 1024px) {
  header nav {
    display: none !important;
  }
  
  /* Mobil header'da logo göster */
  header > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  
  header > div > a[href="/"],
  header > div > a[href*="127.0.0.1"],
  header a[href="/"],
  header a[href*="127.0.0.1"] {
    display: flex !important;
    order: 2 !important;
  }
  
  /* Hamburger menu */
  header button:has(svg) {
    order: 1 !important;
  }
  
  /* Search ve theme toggle */
  header > div > div:last-child {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }
  
  header button[data-slot="dialog-trigger"] {
    display: inline-flex !important;
  }
  
  /* Logo mobil boyutu */
  header a span.size-8,
  header a .size-8 {
    width: 100px !important;
    height: 28px !important;
  }
}

/* ============================================
   Collapsible Navigation Stilleri
   ============================================ */

/* Sidebar grup stilleri */
[data-slot="sidebar-group"] {
  margin-bottom: 0.25rem;
}

[data-slot="sidebar-group-label"] {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  color: #334155;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.dark [data-slot="sidebar-group-label"] {
  color: #e2e8f0;
}

[data-slot="sidebar-group-label"]:hover {
  background: rgba(0, 0, 0, 0.03);
}

.dark [data-slot="sidebar-group-label"]:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* FOUC önleme: Sidebar içeriğini baştan gizle, JavaScript ile göster */
/* "Giriş Rehberi" ve "Başlangıç Rehberi" gibi alt menüleri baştan kapat */
[data-slot="sidebar-group-content"]:not(.sidebar-initialized) {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  transition: none !important;
}

/* JavaScript yüklendiğinde bu class eklenir */
[data-slot="sidebar-group-content"].sidebar-initialized {
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease !important;
}

/* Nav group content - açılır kapanır için */
[data-slot="sidebar-group-content"].nav-group-content {
  overflow: hidden !important;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease !important;
}

[data-slot="sidebar-group"].nav-group.collapsed [data-slot="sidebar-group-content"].nav-group-content {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

[data-slot="sidebar-group"].nav-group.expanded [data-slot="sidebar-group-content"].nav-group-content {
  opacity: 1 !important;
}

/* Toggle icon rotation */
.nav-toggle-icon {
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

[data-slot="sidebar-group"].nav-group.collapsed .nav-toggle-icon svg {
  transform: rotate(-90deg) !important;
}

[data-slot="sidebar-group"].nav-group.expanded .nav-toggle-icon svg {
  transform: rotate(0deg) !important;
}

/* Collapsible menu item */
.nav-collapsible {
  position: relative;
}

.nav-collapsible > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 2rem !important;
}

/* Toggle butonu */
.nav-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  border-radius: 4px;
  transition: all 0.2s ease;
  padding: 0;
}

.nav-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dark .nav-toggle {
  color: #94a3b8;
}

.dark .nav-toggle:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* Toggle icon rotation */
.nav-toggle svg {
  transition: transform 0.2s ease;
}

.nav-collapsible.collapsed .nav-toggle svg {
  transform: rotate(-90deg);
}

.nav-collapsible.expanded .nav-toggle svg {
  transform: rotate(0deg);
}

/* Submenu - collapsed state */
.nav-submenu {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
  max-height: 1000px;
  opacity: 1;
}

.nav-submenu.collapsed {
  max-height: 0 !important;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
}

/* Active link highlight */
aside a.active,
nav a.active,
[class*="sidebar"] a.active {
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 500;
  border-radius: 6px;
}

.dark aside a.active,
.dark nav a.active,
.dark [class*="sidebar"] a.active {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}

/* Nested list indentation */
.nav-submenu {
  padding-left: 1rem !important;
  margin-left: 0.5rem;
  border-left: 1px solid #e2e8f0;
}

.dark .nav-submenu {
  border-left-color: #334155;
}

/* Legacy nav group list stilleri */
.nav-group-list {
  overflow: hidden !important;
  transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease !important;
  padding-left: 0.75rem !important;
  margin-left: 0.5rem !important;
  border-left: 2px solid #e2e8f0 !important;
}

.dark .nav-group-list {
  border-left-color: #334155 !important;
}

.nav-group.collapsed .nav-group-list {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-left: none !important;
}

.nav-group.expanded .nav-group-list {
  opacity: 1 !important;
}

/* Parent item with children - style */
.nav-collapsible > a {
  font-weight: 500;
  color: #334155;
}

.dark .nav-collapsible > a {
  color: #e2e8f0;
}

/* Smooth hover for all nav items */
aside li a,
nav li a,
[class*="sidebar"] li a {
  transition: all 0.15s ease;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  display: block;
}

aside li a:hover,
nav li a:hover,
[class*="sidebar"] li a:hover {
  background: #f8fafc;
  color: #0f172a;
}

.dark aside li a:hover,
.dark nav li a:hover,
.dark [class*="sidebar"] li a:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* ============================================
   Modüller Modal Stilleri
   ============================================ */

/* Dropdown ikonu */
.modules-dropdown-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  color: inherit;
  transition: transform 0.2s ease;
}

.modules-dropdown-icon svg {
  transition: transform 0.2s ease;
}

/* Modal backdrop */
.modules-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modules-modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.dark .modules-modal-backdrop {
  background: rgba(0, 0, 0, 0.7);
}

/* Modal container */
.modules-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  min-height: 400px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modules-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: all;
}

.dark .modules-modal {
  background: #1e293b;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Modal header */
.modules-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.dark .modules-modal-header {
  border-bottom-color: #334155;
}

.modules-modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.dark .modules-modal-title {
  color: #f8fafc;
}

.modules-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0;
}

.modules-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dark .modules-modal-close {
  color: #94a3b8;
}

.dark .modules-modal-close:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* Modal content */
.modules-modal-content {
  padding: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.modules-modal-content.content-loaded {
  opacity: 1;
}

.modules-modal-content::-webkit-scrollbar {
  width: 8px;
}

.modules-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modules-modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.modules-modal-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark .modules-modal-content {
  scrollbar-color: #475569 transparent;
}

.dark .modules-modal-content::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark .modules-modal-content::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Loading state */
.modules-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  min-height: 200px;
}

.modules-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: modules-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

.dark .modules-loading-spinner {
  border-color: #334155;
  border-top-color: #0ea5e9;
}

.modules-loading-text {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.dark .modules-loading-text {
  color: #94a3b8;
}

@keyframes modules-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modules grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding-bottom: 0.5rem;
}

/* Module card - Sayfa tasarımıyla uyumlu */
.module-card {
  display: block;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: #0ea5e9;
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-left-color: #0ea5e9;
  background: #ffffff;
}

.module-card:hover::before {
  transform: scaleY(1);
}

.dark .module-card {
  background: #0f172a;
  border-color: #334155;
  border-left-color: #334155;
}

.dark .module-card:hover {
  background: #1e293b;
  border-left-color: #0ea5e9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.module-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

.dark .module-card-title {
  color: #f8fafc;
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .modules-modal {
    width: 95%;
    max-height: 90vh;
    min-height: 300px;
    border-radius: 12px 12px 0 0;
    top: auto;
    bottom: 0;
    transform: translate(-50%, 100%) scale(1);
  }

  .modules-modal.active {
    transform: translate(-50%, 0) scale(1);
  }

  .modules-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .module-card {
    padding: 0.875rem 1rem;
  }

  .modules-modal-header {
    padding: 1.25rem 1rem;
    flex-shrink: 0;
  }

  .modules-modal-content {
    padding: 1rem;
  }

  .modules-modal-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .modules-modal {
    width: 100%;
    max-height: 95vh;
    border-radius: 0;
  }

  .modules-grid {
    gap: 0.625rem;
  }

  .module-card {
    padding: 0.75rem 1rem;
  }

  .module-card-title {
    font-size: 0.875rem;
  }
}

/* ============================================
   Modüller Sayfası Özel Stilleri
   ============================================ */

.moduller-sayfa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.moduller-sayfa-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.moduller-sayfa-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.dark .moduller-sayfa-card {
  background: #1e293b;
  border-color: #334155;
}

.dark .moduller-sayfa-card:hover {
  background: #0f172a;
  border-color: #0ea5e9;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.moduller-sayfa-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.moduller-sayfa-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.3;
}

.dark .moduller-sayfa-title {
  color: #f1f5f9;
}

@media (max-width: 1024px) {
  .moduller-sayfa-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .moduller-sayfa-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .moduller-sayfa-card {
    padding: 0.875rem 1rem;
  }

  .moduller-sayfa-icon {
    font-size: 1.25rem;
  }

  .moduller-sayfa-title {
    font-size: 0.9rem;
  }
}

/* ============================================
   Language Switcher Styles
   ============================================ */
.lang-switcher {
    position: relative;
    margin-right: 0.5rem;
    z-index: 1000;
    display: flex !important;
    align-items: center;
}

/* Mobilde body'e fixed olarak eklenen wrapper içindeki buton için stil */
@media (max-width: 768px) {
    .lang-switcher {
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 0.1rem;
        margin-right: 0;
    }

    .dark .lang-switcher {
        background-color: #1e293b;
        border-color: #334155;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

}

.lang-btn {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: inherit;
    border-radius: 0.375rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: rgba(128, 128, 128, 0.1);
}

.dark .lang-btn {
    color: #94a3b8;
}

.dark .lang-btn:hover {
    background-color: #1e293b;
    color: #f8fafc;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 160px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 0.25rem;
    z-index: 1001;
    display: none;
}

.lang-dropdown:not(.hidden) {
    display: block;
}

.dark .lang-dropdown {
    background-color: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.lang-dropdown a:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.dark .lang-dropdown a {
    color: #94a3b8;
}

.dark .lang-dropdown a:hover {
    background-color: #334155;
    color: #f8fafc;
}

.lang-dropdown a.active-lang {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}

.dark .lang-dropdown a.active-lang {
    background-color: #334155;
    color: #f8fafc;
}

/* ============================================
   Landing Page Styles
   ============================================ */

/* Sadece landing-no-sidebar ve landing-page class'ı olan elementleri etkiler */
/* Diğer sayfalar etkilenmez */

.landing-no-sidebar {
  grid-template-columns: minmax(0, 1fr) !important;
}

.landing-no-sidebar > [data-slot="sidebar"] {
  display: none !important;
}

.landing-no-sidebar [view-transition-name="toc"],
.landing-no-sidebar .w-72 {
  display: none !important;
}

/* Tam genişlik + ortalama: typography/article üzerindeki padding kısıtlamalarını kaldır */
.landing-page {
  --accent: #0ea5e9;
  --accent-light: #38bdf8;
  --accent-dark: #0284c7;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --border: #e2e8f0;
  --radius: 12px;
  margin: 0;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100%;
  overflow-x: hidden;
}

.dark .landing-page {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --bg-muted: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border: #334155;
}

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes lp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  25% { transform: translate(10px, -20px) scale(1.1); opacity: 0.6; }
  50% { transform: translate(-5px, -40px) scale(0.9); opacity: 0.3; }
  75% { transform: translate(15px, -20px) scale(1.05); opacity: 0.5; }
}

.landing-page .animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.landing-page .animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero */
.landing-page .hero {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
}

.landing-page .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.landing-page .hero-gradient {
  position: absolute;
  inset: -50%;
  background: radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.03) 0%, transparent 70%);
  animation: lp-float 20s ease-in-out infinite;
}

.dark .landing-page .hero-gradient {
  background: radial-gradient(ellipse at 30% 20%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
}

.landing-page .hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: particle-float 8s ease-in-out infinite;
}

.landing-page .particle.p1 { width: 4px; height: 4px; top: 20%; left: 15%; animation-delay: 0s; }
.landing-page .particle.p2 { width: 6px; height: 6px; top: 60%; left: 80%; animation-delay: 1.5s; }
.landing-page .particle.p3 { width: 3px; height: 3px; top: 40%; left: 60%; animation-delay: 3s; }
.landing-page .particle.p4 { width: 5px; height: 5px; top: 70%; left: 25%; animation-delay: 4.5s; }
.landing-page .particle.p5 { width: 4px; height: 4px; top: 15%; left: 75%; animation-delay: 2s; }
.landing-page .particle.p6 { width: 3px; height: 3px; top: 80%; left: 50%; animation-delay: 5s; }

.landing-page .hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.landing-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--bg-muted);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.landing-page .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

.landing-page .hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.02em;
}

.landing-page .highlight {
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-page .hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.landing-page .hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-page .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
}

.landing-page .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.landing-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.landing-page .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--text) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.landing-page .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: rgba(14, 165, 233, 0.05);
}

/* Stats */
.landing-page .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 3rem auto 0;
  max-width: 900px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.landing-page .stat {
  background: var(--bg-soft);
  text-align: center;
  padding: 1.75rem 1rem;
  transition: background 0.3s;
}

.landing-page .stat:hover {
  background: var(--bg);
}

.landing-page .stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.landing-page .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* Section Headers */
.landing-page .section-header {
  text-align: center;
  padding: 3rem 1.5rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.landing-page .section-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.landing-page .section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.landing-page .section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0.75rem auto 0;
  max-width: 500px;
}

/* Features */
.landing-page .features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  max-width: 900px;
}

.landing-page .feature {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-page .feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.dark .landing-page .feature:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.landing-page .feature-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--accent);
  transition: all 0.3s;
}

.landing-page .feature:hover .feature-icon-wrap {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}

.landing-page .feature-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
  color: var(--text);
}

.landing-page .feature-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Platforms Marquee */
.landing-page .platforms-marquee {
  overflow: hidden;
  margin: 2rem 0 0;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.landing-page .marquee-track {
  display: flex;
  gap: 0.75rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.landing-page .platforms-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.landing-page .platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-soft);
  color: var(--text-muted);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: all 0.3s;
  flex-shrink: 0;
  text-decoration: none !important;
  cursor: pointer;
}

.landing-page .platform-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.landing-page .platform-badge svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.landing-page .platform-badge:hover svg {
  opacity: 1;
}

/* Modules Grid */
.landing-page .modules-grid-landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  max-width: 900px;
}

.landing-page .module-card-landing {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.landing-page .module-card-landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(139, 92, 246, 0.03));
  opacity: 0;
  transition: opacity 0.3s;
}

.landing-page .module-card-landing:hover::before {
  opacity: 1;
}

.landing-page .module-card-landing:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  border-color: var(--accent);
}

.dark .landing-page .module-card-landing:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.landing-page .module-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  flex-shrink: 0;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}

.landing-page .module-card-landing:hover .module-card-icon {
  transform: scale(1.08);
}

.landing-page .module-card-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.landing-page .module-card-icon.emerald { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.landing-page .module-card-icon.violet { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.landing-page .module-card-icon.sky { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.landing-page .module-card-icon.amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.landing-page .module-card-icon.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.landing-page .module-card-icon.cyan { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.landing-page .module-card-icon.indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.landing-page .module-card-icon.orange { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.landing-page .module-card-icon.teal { background: rgba(20, 184, 166, 0.1); color: #14b8a6; }
.landing-page .module-card-icon.pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.landing-page .module-card-icon.lime { background: rgba(132, 204, 22, 0.1); color: #84cc16; }
.landing-page .module-card-icon.fuchsia { background: rgba(192, 38, 211, 0.1); color: #c026d3; }
.landing-page .module-card-icon.green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.landing-page .module-card-icon.slate { background: rgba(100, 116, 139, 0.1); color: #64748b; }
.landing-page .module-card-icon.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.landing-page .module-card-icon.neutral { background: rgba(115, 115, 115, 0.1); color: #737373; }

.landing-page .module-card-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.landing-page .module-card-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.landing-page .module-card-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.landing-page .module-card-desc.badge-new {
  color: var(--accent);
  font-weight: 500;
}

.landing-page .module-card-arrow {
  flex-shrink: 0;
  color: var(--text-subtle);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.landing-page .module-card-landing:hover .module-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* CTA */
.landing-page .cta {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
  border-radius: 16px;
  margin: 3rem auto 2rem;
  max-width: 900px;
  overflow: hidden;
}

.landing-page .cta-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.1), transparent 50%);
  animation: lp-float 10s ease-in-out infinite;
}

.landing-page .cta-content {
  position: relative;
  z-index: 1;
}

.landing-page .cta h2 {
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.75rem 0;
}

.landing-page .cta p {
  color: #94a3b8;
  margin: 0 0 1.75rem 0;
  font-size: 1rem;
}

.landing-page .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.landing-page .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
}

/* Mobile */
@media (max-width: 1024px) {
  .landing-page .modules-grid-landing {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .landing-page .hero {
    padding: 3rem 1rem 2rem;
  }

  .landing-page .stats-row {
    grid-template-columns: repeat(2, 1fr);
    margin: 2rem auto 0;
    max-width: 100%;
  }

  .landing-page .features {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .landing-page .modules-grid-landing {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .landing-page .section-header {
    padding: 2.5rem 1rem 0;
  }

  .landing-page .cta {
    margin: 2.5rem auto 1rem;
    padding: 3rem 1.5rem;
    max-width: calc(100% - 2rem);
  }

  .landing-page .stat-value {
    font-size: 1.35rem;
  }

  .landing-page .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .landing-page .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .landing-page .btn-primary,
  .landing-page .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .landing-page .stats-row {
    gap: 1px;
  }

  .landing-page .stat {
    padding: 1.25rem 0.5rem;
  }
}
