:root {
  color-scheme: light dark;
  --bg: #070c1d;
  --surface: rgba(12, 18, 42, 0.78);
  --surface-alt: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --border: rgba(255, 255, 255, 0.15);
  --text: #f4f7ff;
  --text-muted: #bec5dd;
  --primary: #7c5cff;
  --primary-soft: #7c5cff33;
  --secondary: #4e8cff;
  --accent: #8b6aff;
  --shadow: 0 28px 80px rgba(1, 9, 29, 0.18);
  --radius: 28px;
  --max-width: 1200px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Fallback color shows only if the image fails to load. */
  background-color: var(--bg);
  color: var(--text);
}

/* Full-page wallpaper split into two fixed layers behind all content, so the
   image can be color-graded on its own without ever touching text or cards:
   ::before = the vibrant particle image (color-graded, cover, centered)
   ::after  = a thin readability veil, kept as light as possible. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Boost vibrance so the particles pop like the reference image. */
  filter: saturate(1.25) contrast(1.15) brightness(1.08);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Minimal dark veil — only enough to keep white text readable over the
     brighter background. Far lighter than the old 0.72/0.82 overlay. */
  background: linear-gradient(180deg, rgba(5, 11, 22, 0.2) 0%, rgba(10, 15, 33, 0.32) 100%);
  pointer-events: none;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100%, calc(var(--max-width) - 40px));
  margin: 0 auto;
}

.glass-card {
  /* Darker frosted glass so cards stay legible over the page wallpaper. */
  background: rgba(12, 18, 42, 0.6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0 auto;
  padding: 18px 0;
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(79, 146, 255, 0.75));
  color: #fff;
  font-size: 0.9rem;
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(12,18,42,0.22);
}

.brand-text {
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .nav-locked {
  color: var(--text-muted);
  opacity: 0.6;
  cursor: not-allowed;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-links .nav-lock {
  font-size: 0.85em;
}

.header-actions .btn {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-tertiary,
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-block {
  padding: 80px 0;
}

.hero-section {
  padding: 100px 0 60px;
  position: relative;
}

/* Homepage is hero-only now: fill the space below the sticky navbar and
   vertically center the content so no empty wallpaper shows beneath it. */
.hero-home {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 24px;
}

.hero-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 30px;
  background: linear-gradient(180deg, rgba(17, 27, 59, 0.95), rgba(11, 16, 33, 0.92));
}

.hero-image-card img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 40px 120px rgba(15, 31, 79, 0.38);
}

.hero-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 26px;
  align-items: flex-start;
  width: fit-content;
  border-radius: 24px;
  background: rgba(12, 18, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-badge strong {
  display: block;
  font-size: 1rem;
}

.hero-dropzone {
  margin-top: 32px;
  padding: 24px 26px;
  display: grid;
  gap: 18px;
  background: rgba(12, 18, 42, 0.58);
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.dropzone-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.22);
  font-size: 1.4rem;
}

.dropzone-title {
  font-weight: 600;
  margin: 0;
}

.dropzone-subtitle {
  margin: 0;
  color: var(--text-muted);
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.hero-visual::before {
  width: 260px;
  height: 260px;
  top: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.4), transparent 55%);
}

.hero-visual::after {
  width: 260px;
  height: 260px;
  bottom: -30px;
  right: -30px;
  background: radial-gradient(circle, rgba(79, 146, 255, 0.35), transparent 55%);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 80px;
  }

  .hero-badge {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .hero-grid {
    gap: 28px;
  }

  .hero-image-card {
    min-height: 420px;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 9vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #a5b0db;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-intro h1,
.pricing-page h1,
.api-page h1,
.contact-page h1,
.policy-page h1 {
  font-size: clamp(2.7rem, 4vw, 4.25rem);
  line-height: 1.02;
  margin: 0;
}

.hero-copy p,
.page-intro p,
.api-page p,
.contact-page p,
.policy-page p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 32px 0;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

.hero-meta div {
  min-width: 0;
}

.hero-meta strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.hero-preview {
  position: relative;
  padding: 28px;
}

.preview-composite {
  display: grid;
  gap: 18px;
}

.preview-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.preview-card {
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
}

.checkerboard-bg {
  /* Solid black preview backdrop (user preference). Transparency is still fully
     preserved in the exported PNG - this only affects how the result is shown on
     screen. Note a black backdrop makes normal anti-aliased edges look slightly
     dark; genuine white background residue is already removed alpha-only in the
     pipeline (EDGE_WHITE_RESIDUE), so no white fringe appears here. */
  background-color: #000000;
  background-image: none;
}

.pricing-grid,
.api-grid,
.contact-grid,
.result-grid {
  display: grid;
  gap: 28px;
}

.pricing-card,
.api-details,
.api-pricing,
.contact-panel,
.contact-info,
.result-panel,
.result-info,
.policy-panel {
  padding: 32px;
}

.pricing-card h2,
.api-details h2,
.contact-info h2,
.result-info h2,
.policy-panel h2 {
  margin-top: 0;
}

.card-glow {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(79, 146, 255, 0.18));
}

.card-soft {
  background: rgba(12, 18, 42, 0.5);
}

/* Featured plan (Pro Monthly): stronger gradient + accent border so the
   recommended plan stands out from the Free/Yearly cards beside it. */
.card-primary {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.38), rgba(78, 140, 255, 0.3));
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 28px 80px rgba(124, 92, 255, 0.28);
}

.site-footer {
  padding: 40px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 28px;
}

.footer-grid h4,
.footer-grid h3 {
  margin-top: 0;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  color: var(--text-muted);
}

.result-grid,
.api-grid,
.contact-grid {
  grid-template-columns: 1.4fr 0.8fr;
}

/* Drag-over feedback for the home-page hero dropzone. */
.hero-dropzone {
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.hero-dropzone.drag-over {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(124, 92, 255, 0.14);
}

.hidden {
  display: none !important;
}

/* Full-screen upload/processing overlay (home page). */
.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.upload-overlay.fade-out {
  opacity: 0;
}

/* Each stage fills the overlay and cross-fades between Step 1 and Step 2. */
.upload-stage,
.processing-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.upload-stage.stage-hidden,
.processing-stage.stage-hidden {
  opacity: 0;
  pointer-events: none;
}

/* STEP 1 — Uploading card */
.upload-overlay-card {
  width: min(100%, 460px);
  text-align: center;
  padding: 40px 36px;
}

.upload-overlay-card h2 {
  margin: 0 0 8px;
}

.upload-overlay-card .progress-bar {
  margin-top: 22px;
}

/* STEP 2 — AI background removal: centered image with animated overlay */
.processing-image-wrap {
  position: relative;
  width: min(90vw, 560px);
  max-height: 76vh;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.processing-image {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #090d1a;
}

/* Dark veil over the image so the white text stays readable. */
.processing-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 24, 0.35), rgba(6, 10, 24, 0.74));
}

/* Sweeping scan light, like a scanner analysing the image. */
.processing-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -45%;
  height: 45%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.35), rgba(79, 146, 255, 0.12), transparent);
  animation: scanSweep 2.6s ease-in-out infinite;
}

@keyframes scanSweep {
  0% { top: -45%; }
  100% { top: 100%; }
}

.processing-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

.processing-spinner {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title {
  margin: 0;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
}

.processing-message {
  margin: 8px 0 18px;
  min-height: 1.4em;
  color: #e4e9ff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease;
}

.processing-message.msg-fade {
  opacity: 0;
}

.processing-progress {
  width: min(80%, 320px);
}

.processing-progress .progress-text {
  color: #eaf0ff;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transition: width 0.25s ease;
}

.progress-text {
  margin-top: 8px;
  color: var(--text-muted);
}

.processing-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 120px 0;
}

.processing-card {
  max-width: 600px;
  text-align: center;
  padding: 48px;
}

.processing-animation {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(124, 92, 255, 0.35), transparent 45%);
  animation: pulseGlow 2.6s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.result-page {
  padding: 80px 0;
}

/* Left card (image) much wider (~70%); right card (buttons only) narrower. */
.result-grid {
  grid-template-columns: 2.4fr 1fr;
  align-items: start;
}

.comparison-slider {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  /* Scale the black image container with the (now wider) left card: height
     grows with width via the aspect ratio, so the image appears noticeably
     bigger. min-height keeps a sensible floor on smaller screens. */
  aspect-ratio: 3 / 2;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr;
  touch-action: none;
}

/* Zoom/pan layer: holds BOTH images + the handle so they transform together,
   keeping the slider reveal and handle perfectly aligned at any zoom/pan. */
.comparison-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transform: translate(var(--pan-x, 0px), var(--pan-y, 0px)) scale(var(--zoom, 1));
  transition: transform 0.18s ease;
  will-change: transform;
}

.comparison-slider.zoomed .comparison-zoom {
  cursor: grab;
}

.comparison-zoom.panning {
  transition: none;     /* responsive dragging */
  cursor: grabbing;
}

.comparison-image {
  position: absolute;
  inset: 0;
  padding: 24px;
}

/* Fill the container and scale the whole image to fit (letterboxed) so the
   entire graphic renders without the bottom being clipped by overflow:hidden. */
.comparison-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Zoom control overlay (stays OUTSIDE the transformed layer so it is not
   scaled/panned with the image). */
.zoom-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(18, 22, 40, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}

.zoom-btn:hover {
  background: rgba(44, 52, 88, 0.85);
}

.zoom-btn:active {
  transform: scale(0.94);
}

.zoom-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.comparison-image.after {
  clip-path: inset(0 50% 0 0);
}

.slider-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Counter-scale by 1/zoom so the handle keeps a constant on-screen size even
     though it lives inside the zoomed layer. */
  transform: translate(-50%, -50%) scale(calc(1 / var(--zoom, 1)));
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 40px rgba(12, 18, 42, 0.25);
  cursor: ew-resize;
  touch-action: none;
}

/* Action buttons now live in the right-hand column (aside.result-info),
   stacked full-width and aligned to the top where the text panel used to be. */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}

.result-actions .btn {
  width: 100%;
  text-align: center;
}

.image-details {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-details span {
  color: var(--text-muted);
}

.image-details strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.result-info ul,
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-info li,
.contact-info li {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.page-intro,
.api-panel,
.policy-panel {
  padding: 48px;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  display: grid;
  gap: 20px;
  min-height: 420px;
}

.pricing-card .price {
  font-size: 2.4rem;
  margin: 0;
}

.pricing-card .price span {
  display: block;
  font-size: 1rem;
  color: var(--text-muted);
}

.api-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-page,
.api-page,
.policy-page {
  padding: 80px 0;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 16px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .result-grid,
  .api-grid,
  .contact-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-section {
    padding-top: 80px;
  }

  .site-header {
    padding: 14px 0;
  }

  .header-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    justify-content: center;
  }

  .result-panel,
  .result-info,
  .contact-panel,
  .contact-info,
  .api-panel,
  .policy-panel {
    padding: 24px;
  }

  /* Stacked layout: drop the fixed aspect ratio so the two images can flow
     naturally and the container grows with its content. */
  .comparison-slider {
    aspect-ratio: auto;
  }

  /* Stacked layout: the zoom layer flows (grows with its content) and zoom is
     disabled, so the two images stack normally as before. */
  .comparison-zoom {
    position: relative;
    transform: none !important;
  }

  .zoom-controls {
    display: none;
  }

  .comparison-image {
    position: relative;
    clip-path: none !important;
    min-height: 300px;
  }

  /* Stacked layout: let the relative container grow to the image height
     instead of forcing a percentage height against an auto-height parent. */
  .comparison-image img {
    height: auto;
    max-height: 400px;
  }

  .slider-handle {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Legal / content pages (Privacy, Terms, Cookie Policy, Disclaimer, About)
--------------------------------------------------------------------------- */
.legal-doc {
  max-width: 900px;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: none;
}

.legal-meta {
  font-size: 0.9rem;
  color: #9aa3c4;
  margin-top: -6px;
}

.legal-doc h2 {
  margin-top: 38px;
  font-size: 1.4rem;
  color: #fff;
}

.legal-doc h3 {
  margin-top: 24px;
  color: #fff;
}

.legal-doc ul {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.legal-doc a {
  color: #a9b6ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: #fff;
}

.legal-toc {
  margin: 26px 0 8px;
  padding: 20px 24px;
  border-radius: 20px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.legal-toc ul {
  margin: 0;
  padding-left: 18px;
  columns: 2;
}

.form-success {
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(66, 214, 140, 0.14);
  border: 1px solid rgba(66, 214, 140, 0.4);
  color: #b9f4d4;
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------------------
   Footer (brand, link columns, social icons, bottom bar)
--------------------------------------------------------------------------- */
.site-footer {
  margin-top: 60px;
  background: rgba(6, 10, 24, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
  margin: 16px 0 18px;
}

.footer-contact h4 {
  margin: 0 0 6px;
  color: #fff;
}

.footer-contact p {
  margin: 0;
  color: var(--text-muted);
}

.footer-contact a {
  color: #a9b6ff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  margin: 0 0 6px;
  color: #fff;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom p {
  margin: 0;
}

.footer-version {
  font-size: 0.85rem;
  opacity: 0.75;
}

.footer-heart {
  color: #ff6b8b;
}

@media (max-width: 640px) {
  .legal-toc ul {
    columns: 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
