:root {
  --bg: #06040d;
  --bg-2: #0e0a18;
  --surface: rgba(20, 16, 38, 0.65);
  --surface-strong: rgba(28, 22, 48, 0.88);
  --stroke: rgba(255, 255, 255, 0.07);
  --stroke-hover: rgba(255, 255, 255, 0.14);
  --stroke-strong: rgba(167, 139, 250, 0.35);
  --text: #f5f2ff;
  --muted: #a69bc8;
  --dim: #756a96;
  --accent: #c4b5fd;
  --accent-bright: #c4b5fd;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --violet: #8b5cf6;
  --glow: rgba(139, 92, 246, 0.45);
  --glow-cyan: rgba(34, 211, 238, 0.25);
  --success: #34d399;
  --danger: #fb7185;
  --focus: #a78bfa;
  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.4);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font-sans);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: rgba(139, 92, 246, 0.45);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.main-area {
  flex: 1;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 130% 80% at 50% -25%, rgba(124, 58, 237, 0.28), transparent 52%),
    radial-gradient(ellipse 55% 45% at 110% 20%, rgba(59, 130, 246, 0.12), transparent 42%),
    radial-gradient(ellipse 50% 40% at -10% 90%, rgba(236, 72, 153, 0.08), transparent 45%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 45%, #040208 100%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M0 48L48 0H24L0 24M48 48V24L24 48' fill='none' stroke='%23ffffff' stroke-opacity='0.028'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  left: 50%;
  top: -20%;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--stroke);
  background: rgba(6, 4, 13, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px clamp(14px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #a78bfa 0%, #6366f1 48%, #4f46e5 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 8px 32px var(--glow),
    0 0 40px rgba(99, 102, 241, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-mark--logo {
  padding: 0;
  overflow: hidden;
  background: #050508;
  display: block;
  box-shadow:
    0 0 0 1px rgba(190, 242, 100, 0.25) inset,
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(132, 204, 22, 0.12);
}

.brand-mark--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.brand:hover .brand-mark {
  transform: scale(1.04) rotate(-2deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 12px 40px var(--glow);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-accent {
  font-weight: 700;
  background: linear-gradient(120deg, #e9d5ff 0%, #a78bfa 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
}

.nav-pills a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.nav-pills a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pills a.is-active {
  color: #0c0820;
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 45%, #93c5fd 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: #061018;
  background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 50%, #22d3ee 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 24px var(--glow-cyan);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.45);
  transform: translateY(-1px);
}

.nav-cta-icon {
  display: flex;
  opacity: 0.9;
}

.page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 32px) clamp(48px, 8vw, 88px);
}

.shell.narrow {
  max-width: 680px;
  margin: 0 auto;
}

.shell.wide {
  max-width: 920px;
  margin: 0 auto;
}

.page-intro {
  padding-top: 0.25rem;
}

.page-badge--tight {
  margin-bottom: 10px;
}

.carousel-intro {
  margin: 0 0 26px;
}

.lead-tight {
  margin-bottom: 22px;
  max-width: 42rem;
}

.retention-gap {
  margin-top: 14px;
}

.meta-line {
  font-size: 0.875rem;
  margin-top: 20px;
}

.site-note {
  text-align: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
}

.back-actions {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  background: rgba(4, 2, 10, 0.85);
  padding: 18px clamp(16px, 4vw, 32px);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.875rem;
  color: var(--dim);
}

.site-footer-inner a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer-inner a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-inner--split {
  justify-content: space-between;
  align-items: center;
}

.site-footer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch a.is-active {
  color: #0c0820;
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 45%, #93c5fd 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-switch-sep {
  color: var(--dim);
  user-select: none;
}

@media (max-width: 560px) {
  .site-footer-inner--split {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.6;
}

.hero {
  position: relative;
  padding-bottom: clamp(36px, 7vw, 64px);
}

.hero--mesh::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, 640px);
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-head {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 36px);
  align-items: flex-start;
}

.hero-copy {
  flex: 1;
  min-width: min(100%, 260px);
}

.hero-app-badge {
  flex-shrink: 0;
  width: clamp(88px, 17vw, 118px);
  border-radius: clamp(20px, 3vw, 28px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 16px 48px rgba(0, 0, 0, 0.45),
    0 0 48px rgba(132, 204, 22, 0.1);
}

.hero-app-logo-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.page-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px var(--success);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 18px;
  background: linear-gradient(125deg, #fff 0%, #ede9fe 38%, #c4b5fd 62%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  line-height: 1.12;
  color: var(--text);
}

.page-h1--gradient {
  background: linear-gradient(125deg, #faf5ff 0%, #ddd6fe 45%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead,
.muted {
  color: var(--muted);
  margin: 0;
}

.lead {
  font-size: 1.08rem;
  max-width: 40rem;
  line-height: 1.7;
}

.muted.small {
  font-size: 0.875rem;
}

.hero-lead {
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, #a5f3fc 0%, #38bdf8 45%, #0ea5e9 100%);
  color: #04121d;
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.4);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(14, 165, 233, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  border-color: var(--stroke-strong);
  background: rgba(167, 139, 250, 0.1);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.8125rem;
}

.btn-send {
  align-self: flex-start;
  min-width: 160px;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, var(--surface-strong) 0%, var(--surface) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  padding: clamp(22px, 3.5vw, 32px);
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .panel:hover {
    border-color: var(--stroke-hover);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(167, 139, 250, 0.06);
  }
}

.form-panel {
  margin-top: 8px;
}

.form-panel--narrow {
  max-width: 400px;
}

.features .panel-title-inline,
.about-app .panel-title-inline,
.carousel-card .panel-title-inline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin: 0 0 18px;
}

.feature-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

@media (min-width: 680px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-grid li {
  color: var(--muted);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .feature-grid li:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.25);
  }
}

.feature-grid strong {
  color: var(--text);
  font-weight: 700;
}

.about-app-grid {
  display: grid;
  gap: 24px;
  margin-top: 2px;
}

@media (min-width: 880px) {
  .about-app-grid {
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
  }
}

.about-lead {
  color: var(--text);
  margin-bottom: 16px;
}

.about-app-main .muted + .muted {
  margin-top: 12px;
}

.about-facts {
  margin: 0;
  display: grid;
  gap: 12px;
  align-content: start;
}

.about-facts > div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
}

.about-facts dt {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 8px;
}

.about-facts dd {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.45;
}

.panel-h2 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin: 0 0 12px;
}

.subh {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--text);
}

.steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stroke);
  color: var(--muted);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  color: #e9d5ff;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.35) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.steps strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.data-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.data-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--muted);
}

.data-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(34, 211, 238, 0.06) 100%);
  color: #e9d5ff;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.email-link:hover {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.stack-form--flush {
  margin-top: 0;
}

.field span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(4, 2, 12, 0.65);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
  opacity: 0.85;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-weight: 600;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.35);
  color: #fecdd3;
}

code {
  font-size: 0.84em;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
  color: #d4c4f5;
}

.carousel {
  --carousel-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --carousel-dur: 0.55s;
  margin-top: 10px;
}

.carousel-shell {
  position: relative;
  width: 100%;
  max-width: min(100%, 560px);
  margin-inline: auto;
  border-radius: clamp(20px, 2.5vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(14, 12, 24, 0.95) 0%, rgba(8, 6, 14, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 48px rgba(0, 0, 0, 0.42),
    0 0 1px rgba(0, 0, 0, 0.6);
}

.carousel-viewport {
  position: relative;
  width: calc(100% - 4px);
  margin: 2px;
  height: min(74vh, 700px);
  min-height: min(50vh, 420px);
  overflow: hidden;
  border-radius: clamp(19px, 2.3vw, 25px);
  /* Slightly lighter than pure black so dark-mode screenshots read clearly */
  background:
    radial-gradient(ellipse 85% 55% at 50% 45%, rgba(48, 42, 72, 0.35) 0%, transparent 62%),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 48%),
    linear-gradient(180deg, #1c1828 0%, #12101c 45%, #0c0a12 100%);
  touch-action: pan-y pinch-zoom;
}

.carousel-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 2;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform var(--carousel-dur) var(--carousel-ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: clamp(6px, 1.4vw, 12px) clamp(6px, 1.8vw, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.carousel-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 13px;
  /* Lift dark UI in screenshots without looking washed out */
  filter: brightness(1.06) contrast(1.04);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition:
    transform var(--carousel-dur) var(--carousel-ease),
    box-shadow var(--carousel-dur) var(--carousel-ease),
    filter var(--carousel-dur) var(--carousel-ease);
}

.carousel-slide.is-active img {
  transform: none;
  filter: brightness(1.08) contrast(1.05);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.carousel-fab {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 8, 18, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(245, 242, 255, 0.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-fab:hover {
  background: rgba(24, 20, 38, 0.78);
  border-color: rgba(167, 139, 250, 0.35);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.carousel-prev {
  left: clamp(8px, 2vw, 16px);
}

.carousel-next {
  right: clamp(8px, 2vw, 16px);
}

.carousel-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-inline: clamp(0px, 1vw, 6px);
  flex-wrap: wrap;
}

.carousel-caption {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.018em;
  line-height: 1.45;
  color: var(--text);
}

.carousel-caption span {
  display: block;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--muted);
}

.carousel-counter {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
}

.carousel-counter em {
  font-style: normal;
  color: var(--accent);
}

.carousel-progress {
  margin-top: 14px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.1);
  overflow: hidden;
}

.carousel-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9d87f0 0%, #7c6ae0 100%);
  transition: width var(--carousel-dur) var(--carousel-ease);
}

.carousel-segments {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.carousel-seg {
  flex: 1;
  height: 4px;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.12);
  cursor: pointer;
  transition: background 0.25s ease, height 0.2s ease, box-shadow 0.2s ease;
}

.carousel-seg:hover {
  background: rgba(148, 163, 184, 0.22);
}

.carousel-seg[aria-current="true"] {
  height: 5px;
  background: linear-gradient(90deg, rgba(196, 181, 253, 0.95) 0%, rgba(139, 92, 246, 0.85) 100%);
  box-shadow: none;
}

.article-hero {
  margin-bottom: 28px;
}

.qa-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 20px;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.22);
}

.qa-card--q {
  border-left: 3px solid rgba(167, 139, 250, 0.7);
}

.qa-card--a {
  border-left: 3px solid rgba(34, 211, 238, 0.65);
}

.qa-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.qa-card--q .qa-icon {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.25), rgba(99, 102, 241, 0.15));
  color: #e9d5ff;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.qa-card--a .qa-icon {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(56, 189, 248, 0.12));
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.qa-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
}

.review-panel .btn-primary {
  margin-top: 14px;
}

.review-lead {
  margin-bottom: 22px;
}

.review-panel--standalone {
  margin-top: 28px;
}

.rating-row {
  border: none;
  padding: 0;
  margin: 0;
}

.rating-row legend {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 10px;
}

.rating-opt {
  position: relative;
  display: inline-block;
  margin: 0 8px 8px 0;
  cursor: pointer;
}

.rating-opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.rating-opt span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rating-opt:hover span {
  border-color: var(--stroke-hover);
  color: var(--text);
}

.rating-opt input:checked + span {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.15));
  color: #ecfeff;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.rating-opt input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.article-stats-line {
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.admin-feedback-wrap {
  margin-top: 36px;
}

.admin-feedback-wrap .panel-h2 {
  margin-top: 0;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
}

.admin-feedback-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-feedback-table th,
.admin-feedback-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

.admin-feedback-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.admin-feedback-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-feedback-table .slug-cell {
  font-size: 0.8rem;
  word-break: break-all;
}

.admin-feedback-table .comment-cell {
  color: var(--muted);
  max-width: 420px;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--stroke);
}

.admin-card {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-strong) 0%, var(--surface) 100%);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.admin-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #a78bfa, #22d3ee);
  opacity: 0.85;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.875rem;
}

.admin-q {
  white-space: pre-wrap;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 0.98rem;
}

.tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--stroke);
}

.tag-open {
  color: #fde68a;
  border-color: rgba(253, 224, 71, 0.4);
  background: rgba(253, 224, 71, 0.06);
}

.tag-answered {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(147, 197, 253, 0.06);
}

.tag-published {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.06);
}

.inline-form {
  display: inline;
}

.admin-publish-form {
  margin-top: 14px;
}

.admin-actions {
  margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-progress-fill,
  .carousel-slide img {
    transition: none !important;
  }

  .brand:hover .brand-mark {
    transform: none;
  }
}
