/* Сброс стилей и базовые настройки */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(255, 182, 193, 0.28) 0%, transparent 58%),
    radial-gradient(720px 460px at 18% 88%, rgba(255, 214, 102, 0.22) 0%, transparent 55%),
    radial-gradient(640px 420px at 52% 100%, rgba(255, 138, 61, 0.16) 0%, transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
}

body.index-landing {
  min-height: 100vh;
  overflow-x: hidden;
}

body.index-landing main {
  display: block;
  position: relative;
  z-index: 1;
}

.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 55% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0.94) 40%, transparent 72%),
    #ffffff;
  transform: translateY(28vh);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

/* Светлый aurora Яндекс Музыки: розовый → персик → жёлтый */
.aurora-blob--pink {
  width: 64vw;
  height: 50vw;
  min-width: 440px;
  min-height: 340px;
  left: -18%;
  bottom: -24%;
  background: #ff7eb6;
  opacity: 0.62;
}

.aurora-blob--orange {
  width: 60vw;
  height: 48vw;
  min-width: 420px;
  min-height: 320px;
  right: -16%;
  bottom: -26%;
  background: #ff9f5a;
  opacity: 0.58;
}

.aurora-blob--yellow {
  width: 54vw;
  height: 40vw;
  min-width: 380px;
  min-height: 280px;
  left: 22%;
  bottom: -28%;
  background: #ffcc00;
  opacity: 0.64;
}

.aurora-blob--peach {
  width: 38vw;
  height: 32vw;
  min-width: 260px;
  min-height: 220px;
  left: 8%;
  top: 36%;
  background: #ffc28a;
  opacity: 0.36;
}

.aurora-blob--coral {
  width: 36vw;
  height: 30vw;
  min-width: 240px;
  min-height: 200px;
  right: 6%;
  top: 34%;
  background: #ff9bb8;
  opacity: 0.38;
}

@media (max-width: 768px) {
  .aurora-blob {
    filter: blur(70px);
  }

  .aurora-blob--pink,
  .aurora-blob--orange,
  .aurora-blob--yellow {
    width: 90vw;
    height: 70vw;
  }
}

body.index-landing .hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  border-bottom: none;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.index-landing .hero .aurora {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 78%, transparent 100%);
}

body.index-landing .hero > .container {
  position: relative;
  z-index: 1;
}

body.index-landing .hero-search,
body.index-landing .search-bar {
  max-width: 800px;
  width: 100%;
}

.page-tail {
  position: relative;
  background: transparent;
  isolation: isolate;
}

.page-tail > .aurora {
  top: 35%;
  transform: none;
  background: transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
}

body.index-landing .catalog {
  position: relative;
  z-index: 1;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 88px 0 48px;
}

body.index-landing .catalog > .container {
  padding-left: 80px;
  padding-right: 80px;
}

.catalog-heading {
  grid-area: heading;
  max-width: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
}

.catalog-heading h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #111111;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: normal;
}

.catalog-heading p {
  margin-top: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #6b7280;
}

.site-header {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 10px 18px;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.22) 100%
  );
  backdrop-filter: blur(28px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 10% -20%, rgba(255, 255, 255, 0.7) 0%, transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 48%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

.header-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.header-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-actions [data-auth-actions] {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  appearance: none;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background: #111111;
  color: #ffffff;
}

.theme-toggle--float {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.theme-icon {
  display: none;
}

html[data-theme="light"] .theme-icon--moon,
html:not([data-theme]) .theme-icon--moon {
  display: block;
}

html[data-theme="dark"] .theme-icon--sun {
  display: block;
}

.btn-login,
.btn-signup,
.btn-lang {
  appearance: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #111111;
}

.btn-lang:hover {
  background: #f3f4f6;
}

.btn-login {
  background: #ffffff;
  color: #111111;
  border: 1px solid #111111;
}

.btn-login:hover {
  background: #f3f4f6;
}

.btn-signup {
  background: #111111;
  color: #ffffff;
  border: 1px solid #111111;
}

.btn-signup:hover {
  background: #000000;
}

.auth-user {
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.35);
  padding: 20px;
}

.auth-modal.is-open {
  display: flex;
}

.auth-dialog {
  width: 100%;
  max-width: 400px;
  background: #111111;
  color: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid #2a2a2a;
}

.auth-dialog h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #ffffff;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.auth-field input {
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #111111;
  color: #ffffff;
}

.auth-field input::placeholder {
  color: #9ca3af;
}

.auth-error {
  min-height: 20px;
  margin-bottom: 12px;
  color: #f87171;
  font-size: 13px;
}

.auth-submit {
  width: 100%;
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  background: #e5e5e5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #9ca3af;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #3f3f46;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #ffffff;
  border-radius: 12px;
  background: #111111;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.social-btn:hover {
  background: #1f1f1f;
}

.social-btn[data-social="github"] svg {
  filter: invert(1);
}

.social-btn svg {
  display: block;
  flex-shrink: 0;
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}

.auth-switch {
  color: #ffffff;
}

.auth-switch button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  cursor: pointer;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
}

.logo-egg {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}
.brand-logo-sm { height: 28px; }
.brand-logo-lg { height: 44px; }
.brand-logo-dark { display: none; }
html[data-theme="dark"] .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-dark { display: block; }
.hero-brand { display: block; }
.hero-brand-dark { display: none; }
html[data-theme="dark"] .hero-brand-light { display: none; }
html[data-theme="dark"] .hero-brand-dark { display: block; }

.logo-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text .accent {
  color: #000000;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #111111;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}

.nav-link:hover {
  color: #4b5563;
}

.nav-link.is-active {
  color: #111111;
}

@media (max-width: 768px) {
  .site-header {
    top: 8px;
    left: 10px;
    right: 10px;
    padding: 8px 12px;
    gap: 12px;
    border-radius: 20px;
    flex-wrap: wrap;
  }

  .header-left {
    gap: 16px;
    flex-wrap: wrap;
  }

  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .nav-link,
  .logo-text {
    font-size: 14px;
  }

  .auth-user {
    display: none;
  }
}

.inner-page {
  position: relative;
  z-index: 1;
  padding: 120px 0 60px;
  min-height: 100vh;
}

.inner-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 32px;
  color: #0f172a;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: #ffffff;
  border: 1px solid #111111;
  border-radius: 16px;
  padding: 28px 24px;
}

.price-card h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.price-sum {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
}

.price-card--featured {
  background: #111111;
  color: #ffffff;
}

.price-cta {
  display: inline-flex;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font-weight: 600;
}

.price-card--featured .price-cta {
  background: #ffffff;
  color: #111111;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }
}

/* Контейнер */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero блок в стиле Jam AI */
.hero {
  padding: 120px 0 80px;
  position: relative;
  background: #ffffff;
  border-bottom: none;
}

.hero-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px;
}

.hero-title {
  font-family: 'Unbounded', cursive;
  font-size: 80px;
  font-weight: 300;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-title .accent {
  color: #000000;
  display: inline-block;
}

.hero-subtitle {
  font-family: 'Unbounded', cursive;
  font-size: 20px;
  color: #000000;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 20px;
}


.hero-search {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/* Поисковая строка в бело-черных тонах */
.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.search-bar:hover {
  border-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar:focus-within {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 16px;
  background: transparent;
  outline: none;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  background: transparent;
  color: #0f172a;
}

.search-btn {
  padding: 8px;
  border: 1px solid #000000;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.generate-btn {
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  overflow: hidden;
}

.generate-btn img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  display: block;
}

.generate-btn:hover {
  transform: scale(1.04);
}



/* Основной контент */
.catalog {
  padding: 0;
  background: #ffffff;
  margin: 0;
  overflow: visible;
}

.catalog-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "heading"
    "content";
  gap: 0;
  min-height: 0;
  padding: 0;
  align-items: start;
}

.catalog-content {
  grid-area: content;
  min-width: 0;
}

/* Фильтры */
.filters {
  grid-area: filters;
  background: white;
  padding: 0;
  border: none;
  border-radius: 4px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  position: sticky;
  top: 88px;
  width: 100%;
  height: fit-content;
}

.filters-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 8px;
  font-size: 1rem;
  color: #000000;
  cursor: pointer;
  margin-top: 10px;
  align-self: flex-end;
  padding: 8px 16px;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.filters-toggle:hover {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filters-toggle-text {
  font-weight: 500;
}

.filters-toggle-arrow {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.filters-content.show + .filters-toggle .filters-toggle-arrow {
  transform: rotate(180deg);
}

.filters-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.filters-title {
  font-family: 'Unbounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 24px;
  margin-top: 32px;
}

.filters-search {
  display: block;
  width: 100%;
  margin: 8px 0 20px;
}

.filters-search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #111111;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  outline: none;
}

.filters-search-input::placeholder {
  color: #94a3b8;
}

.filters-search-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5px 9px;
  background: transparent;
  color: #111111;
  border: 1px solid #000000;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.tag--active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #000000;
}

/* Сетка карточек — 3 в ряд на широком экране */
.cards-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
  padding: 0 !important;
}

/* Карточки */
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #f1f5f9;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title .muted {
  color: #6b7280;
  font-weight: 400;
}

.card-title strong {
  color: #1f2937;
  font-weight: 700;
}

.card-desc {
  color: #6b7280;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags .hash {
  padding: 3px 6px;
  background: transparent;
  color: #374151;
  border: 1px solid #000000;
  border-radius: 8px;
  font-size: 0.625rem;
  font-weight: 500;
}

/* CTA секция */
.cta {
  text-align: center;
  padding: 60px 0;
  background: #f8fafc;
}

.cta-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
}

.btn-primary:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-ghost {
  background: transparent;
  color: #64748b;
  border-color: #e2e8f0;
}

.btn-ghost:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

/* Пагинация */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 32px;
  border-top: none;
}

.pager-btn {
  padding: 14px 24px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #374151;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pager-btn:hover:not(:disabled) {
  border-color: #a855f7;
  color: #a855f7;
  background: #faf5ff;
}

.pager-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pager-info {
  color: #6b7280;
  font-weight: 600;
  font-size: 1rem;
}

/* Футер */
.site-footer {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  padding: 32px 0 56px;
  margin-top: 0;
  color: #111111;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-card {
  display: grid;
  grid-template-columns: 140px repeat(5, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
  padding: 48px 44px 52px;
  background: #ffffff;
  border-radius: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.footer-logo {
  display: inline-flex;
  width: fit-content;
}

.footer-lang {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding: 7px 10px;
  border: 1px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.footer-col {
  min-width: 0;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.footer-col a {
  display: block;
  margin: 0;
  padding: 2px 0;
  color: #3f3f46;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-decoration: none;
}

.footer-col a:hover {
  color: #111111;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .footer-card {
    grid-template-columns: 120px repeat(5, minmax(0, 1fr));
    gap: 24px 20px;
    padding: 40px 28px 44px;
  }

  .catalog-inner {
    grid-template-columns: 1fr;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
  }
}
  .footer-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    min-height: 0;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .catalog-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "content";
    gap: 20px;
    padding: 0;
  }
  
  .filters {
    margin: 0;
    position: static;
    width: 100%;
  }
  
  .filters-toggle {
    display: flex;
    margin-top: 5px;
    align-self: flex-end;
  }
  
  .filters-content {
    display: none;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 0 !important;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .card-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .card-desc {
    font-size: 0.75rem;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
  }
  
  .card-tags .hash {
    font-size: 0.6rem;
    padding: 2px 5px;
  }
  }
  
  @media (max-width: 1200px) {
    .hero-title {
      font-size: 64px;
    }
  }
  
  @media (max-width: 1000px) {
    .hero-title {
      font-size: 56px;
    }
  }
  
  @media (max-width: 900px) {
    .cards-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 12px !important;
      padding: 0 !important;
    }
    
    .card-body {
      padding: 16px;
    }
    
    .card-title {
      font-size: 0.9rem;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .card-desc {
      font-size: 0.7rem;
      margin-bottom: 8px;
      -webkit-line-clamp: 1;
    }
    
    .card-tags .hash {
      font-size: 0.55rem;
      padding: 2px 4px;
    }
  }
  
  .filters-content.show {
    display: flex;
  }
  
  .search-bar {
    flex-wrap: nowrap;
  }
  
  .search-input {
    flex: 1;
    min-width: 0;
  }
  
  .search-btn, .filter-btn {
    flex-shrink: 0;
  }
  
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
  }
  }
  
  @media (max-width: 600px) {
    .hero-title {
      font-size: 63px;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      line-height: 1.2;
    }
    
    .hero-subtitle {
      font-size: 16px;
      font-weight: 300;
      color: #000000;
    }
  }
  
@media (max-width: 768px) {
  .footer-card {
    grid-template-columns: 1fr 1fr;
    padding: 28px 20px 32px;
    border-radius: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .catalog-heading {
    margin: 0 0 28px;
  }

  .catalog-heading h2 {
    font-size: 22px;
    white-space: nowrap;
  }

  .catalog-heading p {
    font-size: 13px;
  }

  .hero {
    padding: 80px 0 60px;
  }
  
  .hero-content {
    margin-bottom: 15px;
  }
  
  .hero-title {
    font-size: 72px;
    font-weight: 300;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #000000;
  }
  
  .search-bar {
    flex-direction: row;
    gap: 8px;
    max-width: 100%;
    flex-wrap: nowrap;
  }
  
  .search-input {
    flex: 1;
    font-size: 1rem;
    padding: 16px 20px;
    min-width: 0;
  }
  
  .search-btn, .generate-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 16px;
  }
  
  .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .container {
    padding: 0 16px;
  }

  body.index-landing .catalog > .container {
    padding-left: 48px;
    padding-right: 48px;
  }
  
  .catalog {
    margin: 0;
    padding: 48px 0 40px;
  }
  
  .cta-inner {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 54px;
    font-weight: 300;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #000000;
  }
  
  
  .filters {
    padding: 20px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 12px;
  }
  
  .card-body {
    padding: 20px;
  }
  
  .tags {
    gap: 8px;
  }
  
  .tag {
    padding: 4px 8px;
    font-size: 0.6875rem;
  }
  }
  
  @media (max-width: 400px) {
    .hero-title {
      font-size: 45px;
      white-space: normal;
      overflow: visible;
      text-overflow: unset;
      line-height: 1.2;
    }
    
    .hero-subtitle {
      font-size: 14px;
      font-weight: 300;
      color: #000000;
    }
  }
  
/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-out;
}

/* Улучшения для доступности */
.tag:focus,
.pager-btn:focus {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Скрытие элементов загрузки */
.loading {
  display: none;
}

.loading.show {
  display: block;
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

/* ===== Тёмная тема (Яндекс Музыка) ===== */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #000000;
  color: #f5f5f5;
}

html[data-theme="dark"] body.index-landing {
  background: #000000;
}

html[data-theme="dark"] body.index-landing .hero {
  background: #000000;
}

html[data-theme="dark"] .page-tail {
  background: #000000;
}

html[data-theme="dark"] .aurora {
  background:
    radial-gradient(ellipse 95% 55% at 50% 0%, #000000 0%, rgba(0, 0, 0, 0.88) 40%, transparent 72%),
    #000000;
}

html[data-theme="dark"] .aurora-blob--pink {
  background: #ff2d78;
  opacity: 0.78;
}

html[data-theme="dark"] .aurora-blob--orange {
  background: #ff7a1a;
  opacity: 0.55;
}

html[data-theme="dark"] .aurora-blob--yellow {
  background: #ffcc00;
  opacity: 0.82;
}

html[data-theme="dark"] .aurora-blob--peach {
  background: #ff9f3d;
  opacity: 0.42;
}

html[data-theme="dark"] .aurora-blob--coral {
  background: #ff4d9a;
  opacity: 0.48;
}

html[data-theme="dark"] .site-header {
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.72) 0%,
    rgba(12, 12, 12, 0.42) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

html[data-theme="dark"] .site-header::before {
  background:
    radial-gradient(120% 80% at 10% -20%, rgba(255, 255, 255, 0.12) 0%, transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 48%);
}

html[data-theme="dark"] .site-header::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .theme-toggle:hover {
  background: #ffcc00;
  color: #111111;
  border-color: #ffcc00;
}

html[data-theme="dark"] .btn-lang,
html[data-theme="dark"] .btn-login {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .btn-lang:hover,
html[data-theme="dark"] .btn-login:hover {
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] .btn-signup {
  background: #ffcc00;
  color: #111111;
  border-color: #ffcc00;
}

html[data-theme="dark"] .btn-signup:hover {
  background: #ffe566;
  border-color: #ffe566;
}

html[data-theme="dark"] .auth-user {
  color: #ffffff;
}

html[data-theme="dark"] .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .hero-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] .search-bar {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] .search-bar:hover,
html[data-theme="dark"] .search-bar:focus-within {
  border-color: rgba(255, 204, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

html[data-theme="dark"] .search-input,
html[data-theme="dark"] .search-input:focus {
  color: #ffffff;
}

html[data-theme="dark"] .search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .search-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .search-btn:hover {
  background: #ffcc00;
  color: #111111;
  border-color: #ffcc00;
}

html[data-theme="dark"] .generate-btn {
  background: #ffcc00;
}

html[data-theme="dark"] .catalog-heading h2,
html[data-theme="dark"] .inner-title {
  color: #ffffff;
}

html[data-theme="dark"] .catalog-heading p {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .inner-page {
  background: #000000;
  color: #f5f5f5;
}

html[data-theme="dark"] .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 204, 0, 0.28);
}

html[data-theme="dark"] .card-title,
html[data-theme="dark"] .card-title strong {
  color: #ffffff;
}

html[data-theme="dark"] .card-title .muted,
html[data-theme="dark"] .card-desc {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .card-tags .hash {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}

html[data-theme="dark"] .price-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

html[data-theme="dark"] .price-card--featured {
  background: #ffcc00;
  color: #111111;
}

html[data-theme="dark"] .price-card .price-cta {
  background: #ffffff;
  color: #111111;
}

html[data-theme="dark"] .price-card--featured .price-cta {
  background: #111111;
  color: #ffffff;
}

html[data-theme="dark"] .site-footer {
  color: #ffffff;
}

html[data-theme="dark"] .footer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="dark"] .footer-lang {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .footer-col h3 {
  color: #ffffff;
}

html[data-theme="dark"] .footer-col a {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .footer-col a:hover {
  color: #ffcc00;
}

html[data-theme="dark"] .pager-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] .pager-btn:hover:not(:disabled) {
  border-color: #ffcc00;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
}

html[data-theme="dark"] .pager-info,
html[data-theme="dark"] .loading.show {
  color: rgba(255, 255, 255, 0.55);
}
/* ========== Kiko landing — mockup-faithful (index only) ========== */
body.index-landing {
  --kiko-ink: #0b0b12;
  --kiko-muted: #5c5c6a;
  --kiko-violet: #7b5cf6;
  --kiko-violet-deep: #6246ea;
  --kiko-glass: rgba(255, 255, 255, 0.48);
  --kiko-glass-border: rgba(255, 255, 255, 0.82);
  font-family: Inter, system-ui, sans-serif;
  color: var(--kiko-ink);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 12% 28%, rgba(225, 210, 255, 0.9) 0%, transparent 60%),
    radial-gradient(820px 500px at 88% 55%, rgba(180, 230, 245, 0.75) 0%, transparent 58%),
    linear-gradient(120deg, #ebe4ff 0%, #e8f2ff 45%, #d9f3f0 100%);
}

body.index-landing main {
  display: block;
  position: relative;
  z-index: 1;
}

body.index-landing .kiko-frame {
  pointer-events: none;
  position: fixed;
  inset: 12px;
  z-index: 50;
  border-radius: 26px;
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Floating glass header — mockup pill */
body.index-landing .site-header--kiko {
  position: fixed;
  top: 24px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 52px));
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: var(--kiko-glass);
  border: 1px solid var(--kiko-glass-border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 40px rgba(90, 70, 180, 0.09);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  overflow: visible;
  isolation: isolate;
}

body.index-landing .site-header--kiko::before,
body.index-landing .site-header--kiko::after {
  display: none !important;
}

body.index-landing .site-header--kiko .site-logo { justify-self: start; gap: 0; }
body.index-landing .site-header--kiko .logo-egg { display: none; }

body.index-landing .site-header--kiko .logo-text {
  font: 800 1rem/1 Inter, sans-serif;
  letter-spacing: -0.04em;
  color: var(--kiko-ink);
}

body.index-landing .site-header--kiko .logo-text .accent {
  color: var(--kiko-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.index-landing .site-header--kiko .site-nav {
  justify-self: center;
  justify-content: center;
  gap: 32px;
}

body.index-landing .site-header--kiko .nav-link {
  font: 500 0.93rem/1 Inter, sans-serif;
  color: #3f3f4a;
  text-decoration: none;
}

body.index-landing .site-header--kiko .nav-link:hover { color: var(--kiko-violet); }

body.index-landing .header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.index-landing .header-search {
  min-width: 150px;
  max-width: 190px;
}

body.index-landing .header-search-input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 13px;
  font: 500 0.8rem/1.2 Inter, sans-serif;
  color: var(--kiko-ink);
  outline: none;
}

body.index-landing .header-search-input::placeholder { color: #a1a1aa; }
body.index-landing .header-search-input:focus {
  border-color: rgba(123, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.16);
}

body.index-landing .header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--kiko-violet);
  color: #fff !important;
  font: 600 0.9rem/1 Inter, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(123, 92, 246, 0.32);
  white-space: nowrap;
}

body.index-landing .header-cta:hover { background: var(--kiko-violet-deep); }
body.index-landing .site-header--kiko [data-auth-actions] { display: none !important; }

body.index-landing .theme-toggle--float,
body.index-landing .theme-toggle--float[hidden] {
  display: none !important;
}

/* Hero — single overlapping composition */
body.index-landing .hero--kiko {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.index-landing .hero-glow {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(620px, 78vw);
  height: min(620px, 78vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, rgba(210,200,255,0.28) 40%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

body.index-landing .hero-floor {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: min(700px, 90vw);
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.8) 0%, transparent 68%);
  pointer-events: none;
  z-index: 1;
}

body.index-landing .hero-stage {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  padding: 72px 20px 88px;
}

/* Orbit canvas: copy overlays egg; cards hug sides */
body.index-landing .hero-orbit {
  position: relative;
  width: min(920px, 100%);
  height: min(640px, 86vh);
  margin: 0 auto;
}

body.index-landing .hero-copy {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 5;
  width: min(720px, 100%);
  text-align: center;
  pointer-events: none;
}

body.index-landing .hero-copy a,
body.index-landing .hero-copy button {
  pointer-events: auto;
}

body.index-landing .hero-eyebrow {
  margin: 0 0 14px;
  font: 600 0.66rem/1.2 Inter, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a5a68;
}

body.index-landing .hero-title,
body.index-landing .hero-title--stack {
  margin: 0 0 14px;
  font-family: Inter, sans-serif;
  font-size: clamp(3.8rem, 11vw, 6.6rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.055em;
  color: var(--kiko-ink);
  text-shadow: none;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

body.index-landing .hero-title-line { display: block; }

body.index-landing .hero-title--stack .accent,
body.index-landing .hero-title .accent {
  color: var(--kiko-ink);
  background: none;
  -webkit-text-fill-color: currentColor;
  animation: none;
}

body.index-landing .hero-lead {
  max-width: 420px;
  margin: 0 auto;
  font: 450 0.98rem/1.5 Inter, sans-serif;
  color: #555564;
}

/* Egg sits under title + lead (mockup overlap) */
body.index-landing .hero-mascot {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  transform: translate(-50%, -42%);
  animation: mascot-bob 7s ease-in-out infinite;
}

body.index-landing .hero-mascot img {
  width: min(440px, 58vw);
  height: auto;
  display: block;
  transform: rotate(-14deg);
  filter: drop-shadow(0 36px 60px rgba(109, 78, 245, 0.26));
}

body.index-landing .orbit-card {
  position: absolute;
  z-index: 4;
  width: 200px;
  padding: 13px 14px 14px;
  border-radius: 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 18px 38px rgba(90, 70, 180, 0.11);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  animation: hero-float 8s ease-in-out infinite;
}

body.index-landing .orbit-card--tl {
  left: 0;
  top: 22%;
  --tilt: -2.5deg;
  animation-delay: 0s;
}
body.index-landing .orbit-card--tr {
  right: 0;
  top: 26%;
  --tilt: 2deg;
  animation-delay: -2s;
}
body.index-landing .orbit-card--bl {
  left: 4%;
  bottom: 8%;
  --tilt: 1.5deg;
  animation-delay: -3.8s;
}
body.index-landing .orbit-card--br {
  right: 4%;
  bottom: 12%;
  --tilt: -1.8deg;
  animation-delay: -5.5s;
}

body.index-landing .orbit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

body.index-landing .orbit-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ebe6ff;
  color: var(--kiko-violet);
}

body.index-landing .orbit-num {
  font: 600 0.74rem/1 Inter, sans-serif;
  color: #a0a0ab;
}

body.index-landing .orbit-card h3 {
  margin: 0 0 2px;
  font: 700 0.95rem/1.15 Inter, sans-serif;
  color: var(--kiko-ink);
}

body.index-landing .orbit-card p {
  margin: 0;
  font: 450 0.76rem/1.35 Inter, sans-serif;
  color: #737384;
}

body.index-landing .hero-dock {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 35;
  display: inline-flex;
  gap: 2px;
  padding: 6px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(90, 70, 180, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.index-landing .dock-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #555564;
  text-decoration: none;
  cursor: pointer;
}

body.index-landing .dock-btn:hover {
  background: rgba(235, 230, 255, 0.95);
  color: var(--kiko-violet-deep);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); }
  50% { transform: translateY(-9px) rotate(var(--tilt, 0deg)); }
}

@keyframes mascot-bob {
  0%, 100% { transform: translate(-50%, -42%); }
  50% { transform: translate(-50%, calc(-42% - 9px)); }
}

body.index-landing .page-tail {
  position: relative;
  z-index: 1;
  background: transparent !important;
  padding: 8px 0 100px;
}

body.index-landing .catalog { background: transparent; }

body.index-landing .catalog-heading h2 {
  font-family: Inter, sans-serif;
  font-weight: 800;
  color: var(--kiko-ink);
}

body.index-landing .catalog-heading p { color: var(--kiko-muted); }

body.index-landing .card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(90, 70, 180, 0.08);
}

body.index-landing .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(109, 40, 217, 0.12);
}

body.index-landing .card-title,
body.index-landing .card-title strong {
  color: var(--kiko-ink);
  font-family: Inter, sans-serif;
}

body.index-landing .card-desc { color: var(--kiko-muted); }

body.index-landing .card-tags .hash {
  background: #ebe6ff;
  color: var(--kiko-violet-deep);
  border-radius: 999px;
}

body.index-landing .footer-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 48px rgba(90, 70, 180, 0.08);
}

@media (max-width: 980px) {
  body.index-landing .kiko-frame { inset: 6px; border-radius: 18px; }
  body.index-landing .site-header--kiko {
    grid-template-columns: auto 1fr;
    width: calc(100% - 28px);
    top: 14px;
  }
  body.index-landing .site-header--kiko .site-nav { display: none; }
  body.index-landing .hero-orbit {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  body.index-landing .hero-copy {
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
  }
  body.index-landing .hero-mascot {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    animation: none;
    order: 2;
  }
  body.index-landing .hero-mascot img {
    width: min(260px, 62vw);
    transform: rotate(-10deg);
  }
  body.index-landing .orbit-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: min(320px, 100%);
    transform: none !important;
    animation: none;
  }
  body.index-landing .orbit-card--tl,
  body.index-landing .orbit-card--tr,
  body.index-landing .orbit-card--bl,
  body.index-landing .orbit-card--br {
    order: 3;
  }
}

@media (max-width: 560px) {
  body.index-landing .header-search {
    position: absolute;
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    max-width: none;
  }
  body.index-landing .hero-stage { padding-top: 120px; }
  body.index-landing .header-cta span { display: none; }
  body.index-landing .kiko-frame { display: none; }
  body.index-landing .hero-title--stack { font-size: 3.1rem; }
}

html[data-theme="dark"] body.index-landing {
  background:
    radial-gradient(1000px 600px at 15% 30%, rgba(91, 33, 182, 0.45) 0%, transparent 55%),
    linear-gradient(160deg, #12081f 0%, #1a1030 55%, #0f172a 100%);
  color: #f4f4f5;
}
html[data-theme="dark"] body.index-landing .hero-title--stack,
html[data-theme="dark"] body.index-landing .orbit-card h3,
html[data-theme="dark"] body.index-landing .logo-text,
html[data-theme="dark"] body.index-landing .catalog-heading h2 {
  color: #fafafa;
}
html[data-theme="dark"] body.index-landing .hero-eyebrow,
html[data-theme="dark"] body.index-landing .hero-lead,
html[data-theme="dark"] body.index-landing .orbit-card p {
  color: #a1a1aa;
}
html[data-theme="dark"] body.index-landing .site-header--kiko,
html[data-theme="dark"] body.index-landing .orbit-card,
html[data-theme="dark"] body.index-landing .hero-dock,
html[data-theme="dark"] body.index-landing .card,
html[data-theme="dark"] body.index-landing .footer-card {
  background: rgba(24, 24, 37, 0.62);
  border-color: rgba(167, 139, 250, 0.2);
}
html[data-theme="dark"] body.index-landing .header-search-input {
  background: rgba(255,255,255,0.06);
  color: #fafafa;
  border-color: rgba(167,139,250,0.25);
}
html[data-theme="dark"] body.index-landing .nav-link { color: #d4d4d8; }
html[data-theme="dark"] body.index-landing .kiko-frame {
  border-color: rgba(167, 139, 250, 0.35);
}


/* ========== Clico-style landing sections (below Kiko hero) ========== */
body.index-landing .page-tail {
  background: #f3f4f7 !important;
  padding: 0 0 80px;
}

body.index-landing .clico-wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

body.index-landing .clico-wrap--narrow {
  width: min(760px, calc(100% - 40px));
}

body.index-landing .clico-serif {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1c1c22;
  text-align: center;
  margin: 0 0 14px;
}

body.index-landing .clico-serif--light { color: #f5f5f7; }

body.index-landing .clico-sub {
  max-width: 540px;
  margin: 0 auto 36px;
  text-align: center;
  font: 450 1.05rem/1.55 Inter, sans-serif;
  color: #6b6b78;
}

body.index-landing .clico-sub--light {
  color: rgba(245, 245, 247, 0.72);
  margin-bottom: 22px;
}

/* Composer */
body.index-landing .clico-composer {
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 360px at 18% 20%, rgba(210, 200, 255, 0.35), transparent 60%),
    radial-gradient(640px 340px at 82% 30%, rgba(190, 230, 245, 0.3), transparent 55%),
    #f3f4f7;
}

body.index-landing .composer-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 18px 14px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 60px rgba(40, 40, 80, 0.08);
}

body.index-landing .composer-input {
  width: 100%;
  border: none;
  resize: none;
  outline: none;
  font: 450 1.05rem/1.45 Inter, sans-serif;
  color: #1c1c22;
  background: transparent;
  min-height: 64px;
}

body.index-landing .composer-input::placeholder { color: #a0a0ab; }

body.index-landing .composer-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

body.index-landing .composer-plus {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #f7f7fa;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.index-landing .composer-model {
  margin-right: auto;
  font: 500 0.82rem/1 Inter, sans-serif;
  color: #6b6b78;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f4f8;
}

body.index-landing .composer-go {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: #6d7cff;
  color: #fff;
  font: 600 0.92rem/1 Inter, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(109, 124, 255, 0.28);
}

body.index-landing .composer-go:hover { filter: brightness(1.05); }

body.index-landing .composer-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  max-width: 720px;
}

body.index-landing .composer-mode {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.06);
  color: #3f3f4a;
  font: 500 0.86rem/1 Inter, sans-serif;
  text-decoration: none;
}

body.index-landing .composer-mode.is-active,
body.index-landing .composer-mode:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(40,40,80,0.08);
  color: #1c1c22;
}

body.index-landing .composer-note {
  max-width: 560px;
  margin: 22px auto 0;
  text-align: center;
  font: 450 0.92rem/1.5 Inter, sans-serif;
  color: #7a7a88;
}

/* Seedance — Clico showcase card */
body.index-landing .clico-seedance {
  padding: 88px 0 96px;
  background: #f2f3f6;
}

body.index-landing .seedance-shell {
  margin-top: 12px;
  padding: 28px 28px 32px;
  border-radius: 44px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.035);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 32px 80px rgba(35, 40, 70, 0.09);
}

body.index-landing .seedance-switches {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 28px;
  padding: 4px;
  border-radius: 999px;
  background: #eef0f5;
  width: fit-content;
  display: flex;
}

body.index-landing .seedance-switch {
  appearance: none;
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: 999px;
  font: 600 0.84rem/1 Inter, sans-serif;
  color: #7a7a88;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}

body.index-landing .seedance-switch.is-active {
  background: #dfe8ff;
  color: #1a2a6c;
  box-shadow: 0 6px 16px rgba(60, 90, 200, 0.12);
}

body.index-landing .seedance-panel {
  display: grid;
  grid-template-columns: 0.88fr 1.22fr;
  gap: 32px;
  align-items: center;
  padding: 4px 6px;
}

body.index-landing .seedance-panel.is-swap .seedance-in,
body.index-landing .seedance-panel.is-swap .seedance-out {
  animation: seed-swap 0.55s cubic-bezier(.22,.8,.25,1) both;
}

@keyframes seed-swap {
  0% { opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

body.index-landing .seedance-ref {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

body.index-landing .seedance-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

body.index-landing .seedance-tag {
  position: absolute;
  left: 8px;
  top: -10px;
  z-index: 2;
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  font: 600 0.7rem/1 Inter, sans-serif;
  color: #4a4a57;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

body.index-landing .seedance-thumb-wrap img {
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}

body.index-landing .seedance-prompt {
  margin: 0;
  flex: 1;
  padding: 16px 18px;
  border-radius: 20px;
  background: #eceef3;
  font: 450 0.96rem/1.5 Inter, sans-serif;
  color: #2f2f3a;
  border-bottom-left-radius: 8px;
}

body.index-landing .seedance-cta {
  display: inline-flex;
  margin-top: 22px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #111118;
  color: #fff;
  text-decoration: none;
  font: 600 0.9rem/1 Inter, sans-serif;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

body.index-landing .seedance-cta:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

body.index-landing .seedance-caption {
  margin: 0 0 14px;
  font: 650 1.05rem/1.3 Inter, sans-serif;
  color: #16161d;
  letter-spacing: -0.02em;
}

body.index-landing .seedance-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #0d0d12;
  aspect-ratio: 16 / 10;
  box-shadow: 0 28px 60px rgba(0,0,0,0.16);
}

body.index-landing .seedance-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  animation: seed-ken 14s ease-in-out infinite alternate;
}

@keyframes seed-ken {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.1) translate3d(-1.8%, -1.2%, 0); }
}

body.index-landing .seedance-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(8,8,12,0.55);
  color: #fff;
  font: 600 0.74rem/1 Inter, sans-serif;
  backdrop-filter: blur(10px);
  z-index: 2;
}

body.index-landing .seedance-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
  z-index: 2;
  animation: play-pulse 2.6s ease-in-out infinite;
}

body.index-landing .seedance-play::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 19px;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent #111;
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* Share — black section, 3 marquee rows, no overlap */
body.index-landing .clico-share {
  position: relative;
  isolation: isolate;
  background: #000;
  color: #fff;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  padding: 72px 0 56px;
}

body.index-landing .share-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

body.index-landing .share-copy {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
}

body.index-landing .share-stage {
  position: relative;
  height: 420px;
  overflow: hidden;
  perspective: 900px;
  margin: 0 -4%;
}

body.index-landing .share-perspective {
  position: absolute;
  inset: -6% -8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transform: rotateX(26deg);
  transform-style: preserve-3d;
  transform-origin: center center;
}

body.index-landing .share-row {
  display: flex;
  gap: 12px;
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
  animation: share-marquee var(--dur, 45s) linear infinite;
}

body.index-landing .share-row[data-dir="-1"] {
  animation-name: share-marquee-rev;
}

@keyframes share-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes share-marquee-rev {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

body.index-landing .share-tile {
  margin: 0;
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #16161c;
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
  transform: rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px));
  transform-style: preserve-3d;
}

body.index-landing .share-tile:nth-child(odd) {
  width: 170px;
  aspect-ratio: 3 / 4;
}

body.index-landing .share-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.index-landing .share-foot {
  text-align: center;
  margin-top: 28px;
}

body.index-landing .share-cta {
  display: inline-flex;
  padding: 13px 20px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font: 600 0.92rem/1 Inter, sans-serif;
}

body.index-landing .share-cta:hover { transform: translateY(-1px); }

/* Models — three cards at once */
body.index-landing .clico-models {
  position: relative;
  padding: 72px 0 48px;
  background: #f2f3f6;
  margin: 0;
  clear: both;
}

body.index-landing .models-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

body.index-landing .models-card {
  border-radius: 32px;
  min-height: 320px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

body.index-landing .models-card--lilac {
  background: linear-gradient(165deg, #ebe4f9 0%, #dcd3f0 100%);
}

body.index-landing .models-card--blue {
  background: linear-gradient(160deg, #2554ff 0%, #1639d8 100%);
}

body.index-landing .models-card--ink {
  background: linear-gradient(160deg, #1a1a22 0%, #111118 100%);
}

body.index-landing .models-card-title {
  margin: 0 0 6px;
  font: 700 1.15rem/1.2 Inter, sans-serif;
  color: #1c1c22;
}

body.index-landing .models-card-title--light { color: #fff; }

body.index-landing .models-card-note {
  margin: 0 0 16px;
  font: 450 0.88rem/1.4 Inter, sans-serif;
  color: #5b5b6b;
}

body.index-landing .models-card-note--light {
  color: rgba(255,255,255,0.72);
}

body.index-landing .models-ui {
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  margin-top: auto;
  box-shadow: 0 16px 40px rgba(0,0,40,0.16);
}

body.index-landing .models-card--lilac .models-grid {
  margin-top: auto;
  background: #fff;
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,40,0.12);
}

body.index-landing .models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.index-landing .model-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  padding: 12px 8px;
  border-radius: 16px;
  background: #f4f5f9;
  color: #1c1c22;
  text-decoration: none;
  font: 600 0.84rem/1.2 Inter, sans-serif;
  transition: transform .2s ease, background .2s ease;
}

body.index-landing .model-chip:hover {
  background: #ebeef8;
  transform: translateY(-2px);
}

body.index-landing .model-ico {
  font-size: 1.1rem;
  color: #1f4bff;
}

body.index-landing .vpn-pill {
  margin: 12px 0 0;
  text-align: center;
  font: 600 0.8rem/1 Inter, sans-serif;
  color: #1f4bff;
}

body.index-landing .catalog-mini-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1c1c22;
  margin: 0 0 8px;
}

body.index-landing .clico-models .catalog-heading {
  margin-top: 8px;
  text-align: left;
}

body.index-landing .clico-models .cards-grid {
  margin-top: 18px;
}

/* FAQ */
body.index-landing .clico-faq {
  position: relative;
  padding: 64px 0 48px;
  background: #f2f3f6;
}

body.index-landing .faq-list {
  margin-top: 36px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

body.index-landing .faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

body.index-landing .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font: 650 1.05rem/1.4 Inter, sans-serif;
  color: #15151c;
  position: relative;
}

body.index-landing .faq-item summary::-webkit-details-marker { display: none; }

body.index-landing .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #1f4bff;
  font: 500 1.45rem/1 Inter, sans-serif;
}

body.index-landing .faq-item[open] summary::after { content: "−"; }

body.index-landing .faq-item p {
  margin: 0 0 20px;
  max-width: 640px;
  font: 450 0.95rem/1.6 Inter, sans-serif;
  color: #5b5b6b;
}

body.index-landing .footer-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 28px;
  box-shadow: 0 12px 36px rgba(40,40,80,0.06);
}

body.index-landing .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}

body.index-landing .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Keep sections in normal paint order — no stacking fights */
body.index-landing .clico-seedance,
body.index-landing .clico-composer,
body.index-landing .clico-share,
body.index-landing .clico-models,
body.index-landing .clico-faq {
  position: relative;
  z-index: auto;
}

@media (max-width: 980px) {
  body.index-landing .seedance-panel {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body.index-landing .models-trio {
    grid-template-columns: 1fr;
  }
  body.index-landing .share-stage { height: 300px; }
  body.index-landing .share-tile { width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  body.index-landing .share-row,
  body.index-landing .seedance-frame img,
  body.index-landing .seedance-play,
  body.index-landing .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Legal document pages */
.page-legal .legal-wrap {
  max-width: 760px;
  padding-bottom: 64px;
}
.page-legal .legal-kicker {
  margin: 0 0 12px;
  font: 500 0.88rem/1.4 Inter, sans-serif;
  color: #6b6b78;
}
.page-legal .legal-kicker a {
  color: #2554ff;
  text-decoration: none;
}
.page-legal .legal-updated {
  margin: -8px 0 28px;
  font: 450 0.86rem/1.4 Inter, sans-serif;
  color: #8a8a98;
}
.page-legal .legal-wrap h2 {
  margin: 28px 0 10px;
  font: 700 1.15rem/1.3 Inter, sans-serif;
  color: #15151c;
}
.page-legal .legal-wrap p {
  margin: 0 0 12px;
  font: 450 0.98rem/1.65 Inter, sans-serif;
  color: #3f3f4a;
}
.page-legal .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.page-legal .legal-nav a {
  font: 600 0.88rem/1 Inter, sans-serif;
  color: #2554ff;
  text-decoration: none;
}
html[data-theme="dark"] .page-legal .legal-wrap h2 { color: #f2f2f6; }
html[data-theme="dark"] .page-legal .legal-wrap p { color: #c6c6d0; }
html[data-theme="dark"] .page-legal .legal-nav {
  border-top-color: rgba(255,255,255,0.1);
}
