 :root {
  color-scheme: dark;
  --bg: #07111d;
  --bg-2: #0b1526;
  --panel: rgba(12, 22, 38, 0.84);
  --panel-strong: rgba(14, 25, 43, 0.94);
  --panel-soft: rgba(9, 17, 30, 0.74);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(125, 211, 252, 0.32);
  --text: #ecf3ff;
  --muted: #a7b8d7;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --success: #34d399;
  --warning: #fbbf24;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow: 0 22px 60px rgba(2, 8, 23, 0.45);
  --shadow-soft: 0 12px 30px rgba(2, 8, 23, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #091423 40%, var(--bg) 100%);
}

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

button,
input,
select {
  font: inherit;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

[hidden] {
  display: none !important;
}

.page {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 48px;
  display: grid;
  gap: 20px;
}

.panel,
.hero,
.topbar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-badge {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

.brand-badge--morph {
  --brand-accent: #8b5cf6;
  --brand-accent-soft: rgba(139, 92, 246, 0.3);
  --brand-shadow: rgba(34, 211, 238, 0.24);
  background: transparent;
}

.brand-badge__halo,
.brand-badge__slot {
  position: absolute;
  inset: 0;
}

.brand-badge__halo {
  inset: -34%;
  border-radius: 999px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--brand-accent) 52%, transparent), transparent 62%),
    radial-gradient(circle at 72% 30%, color-mix(in srgb, var(--brand-shadow) 72%, transparent), transparent 54%);
  opacity: 0.72;
  filter: blur(14px);
  pointer-events: none;
}

.brand-badge__slot {
  display: grid;
  place-items: center;
  padding: 2px;
  color: var(--brand-accent);
  will-change: transform, opacity, filter;
}

.brand-badge__slot svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter:
    drop-shadow(0 0 14px color-mix(in srgb, currentColor 34%, transparent))
    drop-shadow(0 10px 24px rgba(3, 10, 22, 0.22));
}

.brand-badge__slot--next {
  opacity: 0;
}

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

.nav-links--dense {
  gap: 8px;
}

.nav-link,
.cta-link,
.secondary-link,
.ghost-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 17, 30, 0.86);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-link:hover,
.cta-link:hover,
.secondary-link:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(11, 22, 38, 0.98);
}

.nav-link.active {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(20, 34, 54, 0.98);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
}

.hero--with-stage {
  min-height: 430px;
  padding-right: 30px;
}

.hero--library-grid {
  padding: 30px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-library-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.library-hero-grid-shell {
  position: relative;
  display: flex;
  align-self: stretch;
  justify-self: stretch;
  min-height: 100%;
}

.library-hero-grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  justify-items: stretch;
  align-items: stretch;
  min-height: 100%;
  pointer-events: none;
}

.library-hero-grid-cell {
  --grid-icon-color: #8b5cf6;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.library-hero-grid-cell__glow,
.library-hero-grid-cell__icon {
  transition:
    opacity 320ms ease,
    transform 540ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 540ms ease,
    color 320ms ease;
  will-change: opacity, transform, filter;
}

.library-hero-grid-cell__glow {
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--grid-icon-color) 34%, transparent), transparent 66%),
    radial-gradient(circle at 68% 32%, color-mix(in srgb, var(--grid-icon-color) 18%, transparent), transparent 42%);
  opacity: 0.72;
  filter: blur(18px);
  transform: scale(0.84);
}

.library-hero-grid-cell__icon {
  position: relative;
  width: clamp(22px, 68%, 58px);
  height: clamp(22px, 68%, 58px);
  display: grid;
  place-items: center;
  color: var(--grid-icon-color);
  opacity: 0.98;
  transform: translate3d(0, 0, 0) scale(1);
  filter:
    drop-shadow(0 0 12px color-mix(in srgb, var(--grid-icon-color) 26%, transparent))
    drop-shadow(0 10px 24px rgba(2, 8, 23, 0.18));
}

.library-hero-grid-cell__icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
  overflow: visible;
}

.library-hero-grid-cell.is-empty .library-hero-grid-cell__glow,
.library-hero-grid-cell.is-empty .library-hero-grid-cell__icon {
  opacity: 0;
  transform: scale(0.66);
  filter: blur(10px);
}

.library-hero-grid-cell.is-leaving .library-hero-grid-cell__glow,
.library-hero-grid-cell.is-leaving .library-hero-grid-cell__icon {
  opacity: 0;
  transform: scale(1.16);
  filter: blur(12px);
}

.library-hero-grid-cell.is-entering .library-hero-grid-cell__glow {
  animation: libraryGridGlowIn 540ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.library-hero-grid-cell.is-entering .library-hero-grid-cell__icon {
  animation: libraryGridIconIn 540ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-background-stage {
  position: absolute;
  inset: 0;
  width: auto;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  z-index: 1;
}

.hero-background-stage::before,
.hero-background-stage::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-background-stage::before {
  background:
    radial-gradient(circle at 16% 18%, rgba(139, 92, 246, 0.11), transparent 28%),
    radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.1), transparent 24%),
    radial-gradient(circle at 76% 76%, rgba(244, 114, 182, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(7, 17, 29, 0.02), rgba(7, 17, 29, 0.2));
}

.hero-background-stage::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, rgba(7, 17, 29, 0.08) 70%, rgba(7, 17, 29, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 17, 29, 0.08), rgba(7, 17, 29, 0.18));
}

.hero-float-icon {
  position: absolute;
  top: var(--float-top);
  left: var(--float-left);
  width: var(--float-box-size);
  height: var(--float-box-size);
  display: grid;
  place-items: center;
  color: var(--float-color);
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(var(--float-arrive-x), var(--float-arrive-y), 0) scale(var(--float-start-scale)) rotate(var(--float-rotate-start));
  filter: blur(var(--float-blur-start)) saturate(0.78) drop-shadow(0 20px 36px rgba(2, 8, 23, 0.32));
  animation: heroFlyAndStick var(--float-duration) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  backface-visibility: hidden;
}

.hero-float-icon__inner {
  width: var(--float-icon-size);
  height: var(--float-icon-size);
  display: grid;
  place-items: center;
}

.hero-float-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -58% auto;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 62%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 25, 97, 0.9);
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.hero p {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 18px;
}

.cta-link {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.18));
  border-color: rgba(139, 92, 246, 0.28);
}

.secondary-link {
  background: rgba(8, 17, 30, 0.9);
}

.hero-note,
.status-bar {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(8, 17, 30, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #d9e7ff;
}

.badge-row,
.stat-row,
.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.stat-pill,
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 17, 30, 0.78);
  color: #f7fbff;
  font-size: 13px;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 18px;
}

.landing-grid--info {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.library-card,
.info-card,
.code-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.library-card--hub {
  align-content: start;
}

.library-package-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.library-package-row code {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(8, 17, 30, 0.72);
  color: #f4f8ff;
}

.library-card h2,
.info-card h2,
.catalog-header h2,
.code-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.library-card p,
.info-card p,
.catalog-header p,
.code-card p,
.status-copy,
.empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

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

.control-panel,
.theme-panel,
.catalog-panel,
.status-panel,
.snippet-panel {
  padding: 22px;
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(160px, 0.6fr)) auto;
  gap: 14px;
  align-items: end;
}

.field {
  display: grid;
  gap: 10px;
}

.field > span {
  font-size: 13px;
  color: #c5d5ef;
}

.field input,
.field select,
.field button {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 17, 30, 0.96);
  color: var(--text);
  outline: none;
}

.field input[type="range"] {
  padding: 0;
}

.field input[type="color"] {
  padding: 6px;
}

.field strong {
  font-size: 14px;
}

.catalog-header,
.status-header,
.snippet-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.theme-toolbar {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.theme-current {
  color: var(--muted);
  line-height: 1.5;
}

.theme-current strong {
  color: #ffffff;
}

.theme-current span {
  color: #c9d7ef;
}

.theme-cluster-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.theme-cluster {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(16, 28, 45, 0.94), rgba(9, 18, 31, 0.98));
  display: grid;
  gap: 14px;
}

.theme-cluster-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.theme-cluster-header h3 {
  margin: 0;
  font-size: 18px;
}

.theme-cluster-header p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.theme-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 17, 30, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dfeaff;
  white-space: nowrap;
  font-size: 13px;
}

.theme-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-chip {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(8, 17, 30, 0.78);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.theme-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(14, 26, 43, 0.98);
}

.theme-chip.is-active {
  border-color: rgba(139, 92, 246, 0.42);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.14));
}

.status-stack {
  display: grid;
  gap: 8px;
}

.status-title {
  font-size: 18px;
  font-weight: 700;
}

.status-copy strong {
  color: #ffffff;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.card {
  min-height: 192px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(18, 28, 47, 0.95), rgba(10, 18, 31, 0.98));
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.28);
  background: linear-gradient(180deg, rgba(22, 34, 55, 0.98), rgba(12, 20, 35, 1));
}

.icon-wrap {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.16), transparent 60%),
    rgba(8, 17, 30, 0.95);
  overflow: hidden;
}

.icon-wrap svg {
  width: auto;
  height: auto;
}

.icon-wrap.is-placeholder {
  color: #98a8c6;
}

.icon-wrap.is-error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(58, 17, 24, 0.72);
}

.icon-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a7ca;
}

.icon-placeholder::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(34, 211, 238, 0.22);
  border-top-color: rgba(34, 211, 238, 0.9);
  animation: spin 0.85s linear infinite;
}

.icon-error {
  font-size: 12px;
  color: #fecaca;
}

.icon-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.icon-hint {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.icon-hint code,
.snippet pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.empty {
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: rgba(8, 17, 30, 0.54);
  text-align: center;
}

.empty strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.sentinel {
  margin-top: 18px;
  min-height: 78px;
  display: grid;
  place-items: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  background: rgba(8, 17, 30, 0.48);
  color: #c2d3ee;
  text-align: center;
}

.sentinel-dots {
  display: inline-flex;
  gap: 8px;
}

.sentinel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(34, 211, 238, 0.85));
  animation: pulse 1.2s ease-in-out infinite;
}

.sentinel-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.sentinel-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.snippet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.snippet {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: var(--panel-soft);
}

.snippet h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.snippet pre {
  margin: 0;
  color: #dde8ff;
  line-height: 1.58;
  font-size: 14px;
}

.footer-note {
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.site-footer {
  gap: 18px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.site-footer__grid section {
  display: grid;
  gap: 12px;
}

.site-footer__grid h2 {
  font-size: 16px;
}

.site-footer__meta {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.site-footer__meta p {
  font-size: 14px;
}

.site-footer__meta a {
  color: #dbe8ff;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.34);
  text-underline-offset: 3px;
}

.seo-topbar {
  margin-bottom: 20px;
}

.seo-brand-badge {
  width: 44px;
  height: 44px;
}

.seo-static-hero {
  min-height: 0;
}

.seo-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.seo-panel h2,
.seo-panel h3,
.seo-card h3,
.seo-faq-item h3 {
  margin: 0;
}

.seo-panel p,
.seo-card p,
.seo-faq-item p,
.seo-panel li,
.seo-panel dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-card-grid,
.seo-faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.seo-card,
.seo-faq-item {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(16, 28, 45, 0.94), rgba(9, 18, 31, 0.98));
  display: grid;
  gap: 12px;
}

.seo-conversion-panel {
  border-color: rgba(139, 92, 246, 0.22);
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(20, 30, 48, 0.96), rgba(10, 18, 31, 0.98));
}

.seo-conversion-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.seo-conversion-panel__badges {
  justify-content: flex-end;
}

.seo-card--conversion {
  border-color: rgba(34, 211, 238, 0.18);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(18, 29, 48, 0.97), rgba(10, 18, 31, 1));
}

.seo-card--conversion .card-actions {
  margin-top: auto;
}

.seo-lead-context {
  border-color: rgba(34, 211, 238, 0.24);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(14, 27, 45, 0.96), rgba(10, 18, 31, 0.99));
}

.seo-lead-context__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.seo-lead-context__badges {
  justify-content: flex-end;
}

.seo-sponsor-slot {
  border-color: rgba(234, 179, 8, 0.22);
  background:
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(20, 26, 38, 0.96), rgba(10, 18, 31, 0.98));
}

.seo-sponsor-slot__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.seo-sponsor-slot__badges {
  justify-content: flex-end;
}

.seo-card--sponsor {
  border-color: rgba(234, 179, 8, 0.18);
  border-style: dashed;
  background:
    radial-gradient(circle at top left, rgba(234, 179, 8, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(18, 24, 38, 0.97), rgba(10, 18, 31, 1));
}

.seo-card--sponsor .card-actions {
  margin-top: auto;
}

.seo-recommended-tools {
  border-color: rgba(52, 211, 153, 0.22);
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(16, 28, 38, 0.96), rgba(10, 18, 31, 0.98));
}

.seo-recommended-tools__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.seo-recommended-tools__badges {
  justify-content: flex-end;
}

.seo-card--referral {
  border-color: rgba(52, 211, 153, 0.18);
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(14, 26, 38, 0.97), rgba(10, 18, 31, 1));
}

.seo-card--referral .card-actions {
  margin-top: auto;
}

.seo-disclosure {
  display: block;
  margin-top: 8px;
  opacity: 0.5;
  font-size: 0.78rem;
}

.seo-comparison-table-section {
  border-color: rgba(148, 163, 184, 0.22);
}

.seo-comparison-table-wrap {
  overflow-x: auto;
}

.seo-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.seo-comparison-table th,
.seo-comparison-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.seo-comparison-table th {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.95);
  background: rgba(30, 41, 59, 0.6);
  position: sticky;
  top: 0;
}

.seo-comparison-table td:first-child {
  font-weight: 500;
  color: rgba(226, 232, 240, 0.85);
  white-space: nowrap;
}

.seo-comparison-table tbody tr:hover {
  background: rgba(148, 163, 184, 0.06);
}

.seo-verdict {
  border-color: rgba(168, 85, 247, 0.28);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(16, 28, 38, 0.96), rgba(10, 18, 31, 0.98));
}

.seo-verdict__text {
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.95);
}

.guide-card {
  align-content: start;
}

.guide-card--empty {
  grid-column: 1 / -1;
}

.seo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
}

.seo-link-list,
.seo-bullet-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.seo-link-list a {
  color: #dbe8ff;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.34);
  text-underline-offset: 3px;
}

.seo-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.seo-facts div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(8, 17, 30, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.seo-facts dt {
  margin: 0 0 6px;
  font-size: 13px;
  color: #d5e3fb;
}

.seo-facts dd {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

.seo-guide-panel {
  overflow: hidden;
}

.seo-article-page {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 48px;
  display: grid;
  gap: 20px;
}

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

@keyframes pulse {
  0%,
  80%,
  100% {
    transform: scale(0.75);
    opacity: 0.45;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes heroFlyAndStick {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--float-arrive-x), var(--float-arrive-y), 0) scale(var(--float-start-scale)) rotate(var(--float-rotate-start));
    filter: blur(var(--float-blur-start)) saturate(0.78) drop-shadow(0 20px 36px rgba(2, 8, 23, 0.3));
  }

  24% {
    opacity: var(--float-opacity);
    transform: translate(-50%, -50%) translate3d(calc(var(--float-drift-x) * 0.08), calc(var(--float-drift-y) * 0.08), 0) scale(1.08) rotate(var(--float-rotate-stick));
    filter: blur(0px) saturate(1) drop-shadow(0 26px 48px rgba(2, 8, 23, 0.32));
  }

  40% {
    opacity: var(--float-opacity);
    transform: translate(-50%, -50%) translate3d(0, 0, 0) scale(1) rotate(var(--float-rotate-stick));
    filter: blur(0px) saturate(1.04) drop-shadow(0 26px 48px rgba(2, 8, 23, 0.34));
  }

  78% {
    opacity: var(--float-opacity);
    transform: translate(-50%, -50%) translate3d(var(--float-drift-x), var(--float-drift-y), 0) scale(1.015) rotate(var(--float-rotate-drift));
    filter: blur(0px) saturate(1.06) drop-shadow(0 28px 50px rgba(2, 8, 23, 0.32));
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(calc(var(--float-drift-x) + var(--float-exit-x)), calc(var(--float-drift-y) + var(--float-exit-y)), 0) scale(var(--float-exit-scale)) rotate(var(--float-rotate-end));
    filter: blur(var(--float-blur-end)) saturate(1.02) drop-shadow(0 16px 34px rgba(2, 8, 23, 0.18));
  }
}

@keyframes libraryGridIconIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.72);
    filter: blur(10px);
  }

  100% {
    opacity: 0.98;
    transform: translate3d(0, 0, 0) scale(1);
    filter:
      drop-shadow(0 0 12px color-mix(in srgb, var(--grid-icon-color) 26%, transparent))
      drop-shadow(0 10px 24px rgba(2, 8, 23, 0.18));
  }
}

@keyframes libraryGridGlowIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
    filter: blur(24px);
  }

  100% {
    opacity: 0.72;
    transform: scale(0.84);
    filter: blur(18px);
  }
}

@media (max-width: 1120px) {
  .hero--with-stage {
    min-height: 0;
    padding-right: 30px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-background-stage {
    display: none;
  }

  .hero-library-layout {
    grid-template-columns: 1fr;
  }

  .library-hero-grid-shell {
    display: none;
  }

  .control-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .landing-grid--info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page {
    width: min(100%, calc(100% - 20px));
    padding: 18px 0 28px;
  }

  .topbar,
  .hero,
  .control-panel,
  .theme-panel,
  .catalog-panel,
  .status-panel,
  .snippet-panel,
  .library-card,
  .info-card,
  .code-card {
    border-radius: 22px;
  }

  .topbar,
  .catalog-header,
  .status-header,
  .snippet-header,
  .seo-conversion-panel__header,
  .theme-cluster-header,
  .theme-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links,
  .catalog-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .theme-cluster-grid,
  .library-grid,
  .seo-card-grid,
  .seo-columns,
  .seo-facts {
    grid-template-columns: 1fr;
  }

  .control-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(30px, 7vw, 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-stage {
    display: none;
  }

  .hero-float-icon {
    animation: none;
  }
}
