/* ── Gemini Watermark Remover Design System ── */
:root {
  --bg-primary: #f7f8ff;
  --bg-card: #ffffff;
  --bg-card-border: #e2e8f0;
  --bg-header: rgba(247, 248, 255, 0.86);

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #d8dadd;

  --brand-primary: #5b5ce2;
  --brand-primary-hover: #4748c9;
  --brand-gradient: linear-gradient(135deg, #4285f4 0%, #5865f2 30%, #9b6dff 58%, #f062b5 82%, #ff8a65 100%);
  --brand-glow: rgba(123, 97, 255, 0.18);

  --accent-blue: #4285f4;
  --accent-green: #16a34a;

  --radius-xl: 1.25rem;
  --radius-lg: 1rem;
  --radius-md: 0.625rem;
  --radius-sm: 0.375rem;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 8px 25px -4px rgba(79, 70, 229, 0.2);

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Sticky Top Header Navbar ── */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: none;
}

.header-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* ── Desktop Navigation Menu ── */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.04);
}

/* ── Tools Dropdown ── */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-dropdown-btn {
  font-weight: 600;
  color: #1e293b;
}

.nav-dropdown-btn:hover {
  color: #0f172a;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.nav-dropdown.open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  margin-top: 0.35rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 330px;
  background: #ffffff;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s;
  z-index: 150;
}

/* Invisible Hover Bridge to ensure smooth mouse movement without closing */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
  display: block;
}

.nav-dropdown.open .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

@keyframes menuFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
  position: relative;
}

.dropdown-item:hover {
  background: #f8fafc;
}

.dropdown-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  flex-shrink: 0;
  margin-top: 2px;
  overflow: hidden;
}

.tool-favicon-img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
}


.active-tool .dropdown-item-icon {
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #059669;
}

.dropdown-item-content {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dropdown-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.badge-featured {
  font-size: 0.625rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.badge-current {
  font-size: 0.625rem;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  line-height: 1;
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.dropdown-ext-icon {
  color: #94a3b8;
  margin-top: 6px;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0.35rem 0.25rem;
}

.mobile-nav-links {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-menu-toggle {
  display: none;
}

.btn-github,
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: calc(var(--radius-lg) - 0.25rem);
  font-size: 0.825rem;
  text-decoration: none;
  transition: all var(--transition-normal);
  line-height: 1;
}

.btn-github {
  background: #111828;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
}

.btn-github:hover {
  background: #202533;
  box-shadow: var(--shadow-md);
}

.btn-donate {
  background: var(--brand-gradient);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: var(--shadow-glow);
}

.btn-donate:hover {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 25px -4px rgba(123, 97, 255, 0.35);
  transform: translateY(-1px);
}

/* ── Main Container ── */
.container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  flex: 1;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  z-index: 3;
  text-align: center;
  margin: 2rem auto 2.5rem;
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.hero-badge-link:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
  color: #6d28d9;
  transform: translateY(-1px);
}

/* ── Decorative Background Showcase Frames ── */
.hero-bg-frame-container {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg-frame-container.left {
  top: 180px;
  left: -10%;
  width: 250px;
  height: 250px;
}

.hero-bg-frame-container.left .hero-bg-frame {
  transform: rotate(-6deg);
}

.hero-bg-frame-container.right {
  top: 220px;
  right: -18%;
  left: auto;
  width: 350px;
  height: 350px;
}

.hero-bg-frame-container.right .hero-bg-frame {
  transform: rotate(6deg);
}

.hero-bg-frame {
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 1rem;
  border-radius: 2.6rem;
  border: 1px solid var(--bg-card-border);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.08);
  opacity: 0.9;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

/* ── Tab Switcher ── */
.tab-container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
  background: #f0f0f0;
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: calc(var(--radius-lg) - 0.25rem);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* ── Cards ── */
.card {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

/* ── Custom Select Component ── */
.custom-select-wrapper {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.custom-select {
  position: relative;
  display: inline-block;
  min-width: 270px;
}

.custom-select-trigger {
  width: 100%;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: #cbd5e1;
  background: #fcfcfd;
}

.custom-select-trigger:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

.custom-select-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition-fast);
}

.custom-select.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--radius-md) - 0.2rem);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: background var(--transition-fast);
}

.custom-option:hover {
  background: #f1f5f9;
}

.custom-option.selected {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--text-main);
}

.option-check {
  color: var(--brand-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.custom-option.selected .option-check {
  opacity: 1;
}

/* ── Dropzone ── */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-primary);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.03);
  transform: translateY(-2px);
}

.dropzone-icon {
  font-size: 2.75rem;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
  transition: transform var(--transition-normal);
}

.dropzone:hover .dropzone-icon {
  transform: scale(1.1);
}

.dropzone-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropzone-sub {
  color: var(--text-muted);
  font-size: 0.825rem;
  margin-top: 0.35rem;
}

.dropzone.loading {
  pointer-events: none;
  cursor: wait;
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.04);
  opacity: 0.9;
}

.dropzone-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.dropzone-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: dropzoneSpin 0.8s linear infinite;
}

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

/* ── Watermark Tuner & Smooth Scroll Margins ── */
#how-it-works,
#comparison,
#features,
#faq,
.tuner-container,
#img-results,
#video-results,
#video-status {
  scroll-margin-top: 5.5rem;
}

.tuner-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-card-border);
}

.detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  color: #4f46e5;
  font-size: 0.8rem;
  width: fit-content;
  margin: 0 auto;
}

.detect-badge.warning {
  color: #d97706;
}

@keyframes fadeInBadge {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.batch-gallery {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.batch-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.batch-gallery-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.batch-gallery-header strong {
  color: var(--text-main);
  font-size: 0.92rem;
}

.batch-gallery-header span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.batch-export-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.78rem;
  padding: 0.55rem 0.8rem;
}

.batch-gallery-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 0.7rem;
  max-height: 260px;
  overflow: auto;
  padding: 0.15rem;
}

.batch-gallery-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.35rem;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.batch-gallery-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.batch-gallery-item.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.16);
}

.batch-gallery-item img,
.batch-gallery-item video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.35rem;
  background: #f1f5f9;
}

.batch-gallery-item-name {
  overflow: hidden;
  color: var(--text-main);
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-gallery-item-status {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.batch-gallery-item.done .batch-gallery-item-status {
  color: var(--accent-green);
}

@media (max-width: 700px) {
  .batch-gallery-header {
    align-items: stretch;
    flex-direction: column;
  }

  .batch-export-btn {
    width: 100%;
  }
}

.tuner-preview-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: center;
}

.tuner-canvas-box {
  display: flex;
  flex-direction: column;
}

.tuner-canvas-box.main-box {
  flex: 1 1 340px;
  min-width: 0;
  align-items: center;
}

.tuner-canvas-box.zoom-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 auto;
}

.zoom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  padding: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.canvas-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.canvas-title.text-blue-600 {
  color: var(--accent-blue);
}

.canvas-title.text-green-600 {
  color: var(--accent-green);
}

.canvas-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-box canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.zoom-card canvas {
  display: block;
  border-radius: var(--radius-sm);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── Model Preset Quick Selectors ── */
.tuner-preset-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 0.75rem;
}

.tuner-preset-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tuner-preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-preset {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-card-border);
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-preset:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.05);
}

.btn-preset.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

/* ── Sliders ── */
.tuner-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  width: 100%;
  background: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

.slider-group {
  display: flex;
  flex-direction: column;
}

.tuner-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.tuner-slider-label span:last-child {
  color: var(--brand-primary);
  font-family: monospace;
}

.tuner-sliders input[type="range"] {
  width: 100%;
  accent-color: var(--brand-primary);
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
}

/* ── Actions & Buttons ── */
.tuner-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-normal);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-primary);
  border-color: #cbd5e1;
}

/* ── Previews & Result Checkerboard ── */
.checker {
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
    linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--bg-card-border);
}

/* ── Progress Bar ── */
.progress-bar-container {
  width: 100%;
  max-width: 340px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin: 0.75rem auto 0;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--brand-gradient);
  border-radius: 9999px;
  transition: width 0.2s ease-out;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 0.4rem;
}

/* ── How It Works Section ── */
.how-it-works-section,
.guide-section,
.comparison-section,
.features-section,
.faq-section {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

.how-it-works-section {
  margin-top: 5.5rem;
  margin-bottom: 4.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-badge {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111828;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Comparison Section ── */
.comparison-section {
  margin-top: 7rem;
  margin-bottom: 7rem;
  padding: 3rem 2.5rem;
}

.comparison-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: center;
}

.comparison-content {
  display: flex;
  flex-direction: column;
}

.comparison-title {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.comparison-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.comparison-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.comparison-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.6rem;
}

.badge-before {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.badge-after {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.comparison-img-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-card-border);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-img-wrapper img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.text-amber {
  color: #d97706;
}

/* ── Features Grid Section ── */
.features-section {
  margin-top: 7rem;
  margin-bottom: 7rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.75rem 2rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.feature-icon {
  flex-shrink: 0;
  color: var(--text-main);
  margin-top: 0.15rem;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
}

.feature-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.feature-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── FAQ Section (Adaptive Desktop & Mobile) ── */
.faq-section {
  margin-top: 5.5rem;
  margin-bottom: 4.5rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.faq-header-col {
  position: sticky;
  top: 5rem;
  display: flex;
  flex-direction: column;
}


.faq-title {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.faq-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-list-col {
  width: 100%;
}

.faq-container {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--bg-card-border);
}

.faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bg-card-border);
  transition: background var(--transition-fast);
}

.faq-question {
  padding: 1.25rem 0.25rem;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.faq-q-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.faq-num {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.faq-item[open] .faq-num,
.faq-question:hover .faq-num {
  color: var(--text-main);
}

.faq-question:hover {
  color: #000000;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--text-muted);
  transition: transform var(--transition-normal), color var(--transition-fast);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--text-main);
}

.faq-answer {
  padding: 0 0.25rem 1.25rem 2.4rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.faq-answer code {
  background: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.825rem;
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
}

/* ── Footer ── */
.app-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bg-card-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-credit {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
}

.footer-credit strong {
  font-weight: 700;
  color: var(--text-main);
}

.footer-author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-author-link:hover {
  color: var(--primary, #3b82f6);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.825rem;
}

.footer-link,
.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.825rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
  padding: 0;
}

.footer-link:hover,
.footer-link-btn:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.footer-dot {
  color: #cbd5e1;
  font-size: 0.75rem;
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── App Dialog Modals ── */
.app-modal {
  margin: auto;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 0;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.app-modal::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
}

.modal-box {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.modal-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Utility Classes ── */
.hidden {
  display: none !important;
}

.mt-4 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
  gap: 1rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .header-container {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.84rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(6px);
  }
}

@media (max-width: 1100px) {
  .hero-bg-frame-container {
    display: none !important;
  }

  .btn-github-label {
    display: none;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .nav-menu {
    gap: 0.2rem;
  }

  .btn-github,
  .btn-donate {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }
}

/* ── Tablet & Mobile Navigation Breakpoint (992px) ── */
@media (max-width: 992px) {
  .header-container {
    padding: 0.65rem 0.85rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 0px;
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    flex-shrink: 0;
  }

  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: background var(--transition-fast);
    white-space: nowrap;
  }

  .mobile-nav-link:hover {
    background: #f8fafc;
    color: #4f46e5;
  }

.header-actions {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0.85rem;
    left: auto;
    width: 320px;
    max-width: calc(100vw - 1.7rem);
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 0.85rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    z-index: 200;
  }

  .header-actions.open {
    display: flex;
    animation: menuFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .header-action-buttons {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  .header-action-buttons .btn-github,
  .header-action-buttons .btn-donate {
    flex: 1;
    justify-content: center;
    padding: 0.6rem 0.75rem;
    font-size: 0.825rem;
  }
}

/* ── Mobile View (767px) ── */
@media (max-width: 767px) {
  .container {
    padding: 1rem 0.75rem 2.5rem;
  }

  .hero-section {
    margin: 1rem auto 1.5rem;
    padding: 0 0.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.22;
    letter-spacing: -0.025em;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .privacy-text {
    display: none;
  }

  .badge-privacy {
    padding: 0.35rem;
    border-radius: 50%;
  }

  .card {
    padding: 1.25rem 0.85rem;
  }

  .custom-select-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .custom-select {
    width: 100%;
  }

  .tuner-preview-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .tuner-canvas-box.main-box {
    width: 100%;
  }

  .tuner-canvas-box.zoom-box {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .zoom-card canvas {
    width: 100%;
    max-width: 140px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .tuner-sliders {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .tuner-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .how-it-works-section {
    margin-top: 4.75rem;
    margin-bottom: 4.75rem;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 1.75rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .comparison-section {
    margin-top: 4.75rem;
    margin-bottom: 4.75rem;
    padding: 2rem 1.15rem;
  }

  .comparison-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comparison-title {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 0.65rem;
    text-align: center;
  }

  .comparison-subtitle {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.35rem;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .comparison-media {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .features-section {
    margin-top: 4.75rem;
    margin-bottom: 4.75rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card-title {
    font-size: 1.05rem;
  }

  .faq-section {
    margin-top: 4.75rem;
    margin-bottom: 4.75rem;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .faq-header-col {
    position: static;
    text-align: center;
    align-items: center;
  }

  .faq-title {
    font-size: 1.75rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 0.65rem;
  }

  .faq-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-container {
    border-top: none;
    gap: 0.6rem;
  }

  .faq-item {
    background: #ffffff;
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 0.1rem 0.5rem;
    box-shadow: var(--shadow-sm);
  }

  .faq-question {
    padding: 0.85rem 0.5rem;
    font-size: 0.9rem;
  }

  .faq-num {
    background: var(--bg-primary);
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
  }

  .faq-answer {
    padding: 0 0.5rem 0.85rem 0.5rem;
    font-size: 0.825rem;
  }

  .app-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .comparison-media {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ── Methods & Settings Guide Section ── */
.guide-section {
  margin-top: 6.5rem;
  margin-bottom: 6.5rem;
}

.guide-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.guide-subtitle {
  max-width: 720px;
  margin: -1.5rem auto 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.method-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.method-card.featured-method {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.08);
}

.method-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.official-badge {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.tool-badge {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.video-badge-card {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.settings-myth-box {
  background: #ffffff;
  border: 1px solid #fde047;
  border-left: 4px solid #eab308;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 2px 10px -2px rgba(234, 179, 8, 0.08);
}

.myth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #854d0e;
  font-weight: 700;
  font-size: 0.95rem;
}

.myth-badge iconify-icon {
  color: #ca8a04;
  font-size: 1.15rem;
}

.myth-text,
.myth-solution {
  font-size: 0.885rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.myth-text strong,
.myth-solution strong {
  color: var(--text-main);
}

.method-title {
  font-size: 1.175rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.method-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.method-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.method-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-num-pill {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.featured-method .step-num-pill {
  background: var(--brand-primary);
}

.step-text strong {
  color: var(--text-main);
  font-weight: 600;
}

.text-link {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 600;
}

.method-note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
  margin-top: auto;
}

.note-icon {
  color: #64748b;
  flex-shrink: 0;
  margin-top: 2px;
}

.method-action {
  margin-top: auto;
  padding-top: 0.5rem;
}

.method-btn {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

/* ── SynthID vs Visible Watermark Callout Box ── */
.synthid-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.synthid-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.synthid-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.synthid-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.synthid-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.synthid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--bg-card-border);
}

.synthid-col-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.synthid-col p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 860px) {
  .methods-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

/* ── Dedicated Video Remover Guide Section (SEO Optimized) ── */
.video-guide-section {
  margin: 3.5rem 0;
}

.video-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.video-guide-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.video-guide-header .method-badge {
  margin: 0 auto 0.75rem;
}

.video-guide-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.video-guide-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.video-guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.video-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.video-guide-step:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.video-guide-step .step-num-pill {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ede9fe;
  color: #6d28d9;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-guide-step-content strong {
  display: block;
  font-size: 0.925rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.video-guide-step-content p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.video-guide-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Supported Google AI Models Section ── */
.models-section {
  width: 100%;
  margin-top: 3.5rem;
}

.models-header {
  text-align: center;
  margin-bottom: 2rem;
}

.models-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 650px;
  margin: 0.5rem auto 0;
  line-height: 1.6;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

/* Keep four-card sections balanced: two cards per row on desktop. */
@media (min-width: 861px) {
  .video-guide-steps-grid,
  .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .video-guide-steps-grid,
  .models-grid {
    grid-template-columns: 1fr;
  }
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.model-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.model-badge.badge-image {
  background: #eff6ff;
  color: #1d4ed8;
}

.model-badge.badge-video {
  background: #f5f3ff;
  color: #6d28d9;
}

.model-format-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
}

.model-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.model-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.model-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
}

.model-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 500;
}

.model-features li iconify-icon {
  color: var(--accent-green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

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

/* ── Content & Legal Pages (Privacy, Terms, About, Contact, Disclaimer) ── */
.page-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
  flex: 1;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--brand-primary);
}

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

.page-header-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.page-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand-gradient);
}

.page-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--brand-glow);
  color: var(--brand-primary);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.page-main-heading {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-lead-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.page-meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--bg-card-border);
}

.page-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.content-article-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-section p {
  font-size: 0.925rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.legal-section ul,
.legal-section ol {
  margin: 0.65rem 0 1rem 1.4rem;
  padding: 0;
  color: #334155;
  font-size: 0.925rem;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 0.5rem;
}

.legal-section strong {
  color: var(--text-main);
  font-weight: 600;
}

.legal-callout-box {
  background: #f8fafc;
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.legal-callout-box.info {
  background: #f0fdf4;
  border-left-color: var(--accent-green);
}

.legal-callout-box.warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.legal-callout-icon {
  font-size: 1.25rem;
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.legal-callout-box.info .legal-callout-icon {
  color: var(--accent-green);
}

.legal-callout-box.warning .legal-callout-icon {
  color: #d97706;
}

.legal-callout-text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #334155;
}

.legal-callout-text strong {
  color: var(--text-main);
}

/* Quick Nav / Table of Contents */
.toc-card {
  background: #f8fafc;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.toc-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.toc-link:hover {
  color: var(--brand-primary);
}

/* Legal Tables */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.legal-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--bg-card-border);
}

.legal-table td {
  padding: 0.75rem 1rem;
  color: #475569;
  border-bottom: 1px solid var(--bg-card-border);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Contact Page Specific Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card-item {
  background: #f8fafc;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.contact-icon-bubble {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-glow);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contact-info-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.contact-action-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.contact-action-link:hover {
  text-decoration: underline;
}

.contact-form-container {
  background: #ffffff;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
}

.contact-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.contact-form-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-btn-submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand-gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.form-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.form-status-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}

.form-status-alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.form-status-alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* About Page Specific Styles */
.about-author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #f8fafc;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.about-author-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  flex-shrink: 0;
}

.about-author-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.about-author-tagline {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-author-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.about-author-links {
  display: flex;
  gap: 0.85rem;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.about-feature-card {
  background: #ffffff;
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.about-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.about-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand-glow);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.about-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.about-feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .page-header-card {
    padding: 1.5rem 1.25rem;
  }
  .page-main-heading {
    font-size: 1.75rem;
  }
  .content-article-card {
    padding: 1.5rem 1.25rem;
  }
  .about-author-box {
    flex-direction: column;
    text-align: center;
  }
  .about-author-links {
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   Modern landing refresh
   Inspired by contemporary Vietnamese SaaS landing pages:
   generous whitespace, confident type, soft gradients, and clear CTAs.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg-primary: #f8f8ff;
  --bg-header: rgba(248, 248, 255, 0.82);
  --bg-card: #ffffff;
  --bg-card-border: rgba(30, 41, 91, 0.1);
  --text-main: #11152f;
  --text-muted: #69718d;
  --brand-primary: #5b5ce2;
  --brand-primary-hover: #4849cb;
  --brand-gradient: linear-gradient(120deg, #397bf5 0%, #6258ea 36%, #a65cf0 66%, #ff7aa8 100%);
  --brand-glow: rgba(96, 91, 232, 0.16);
  --shadow-sm: 0 8px 24px rgba(58, 55, 116, 0.06);
  --shadow-md: 0 18px 50px rgba(58, 55, 116, 0.1);
  --shadow-lg: 0 28px 80px rgba(58, 55, 116, 0.13);
  --shadow-glow: 0 16px 36px rgba(98, 88, 234, 0.24);
  --radius-xl: 1.75rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.8rem;
}

body {
  position: relative;
  font-family: 'Manrope', 'Ubuntu', sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(145, 164, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 14%, rgba(255, 171, 214, 0.13), transparent 28rem),
    var(--bg-primary);
  color: var(--text-main);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(91, 92, 226, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 92, 226, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: -1;
}

.app-header {
  background: var(--bg-header);
  border-bottom: 1px solid rgba(42, 47, 109, 0.08);
  box-shadow: 0 5px 24px rgba(46, 47, 99, 0.04);
}

.header-container {
  max-width: 1240px;
  padding: 0.9rem 1.5rem;
}

.brand {
  gap: 0.65rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-menu {
  gap: 0.35rem;
}

.nav-link {
  color: #5d6481;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(91, 92, 226, 0.08);
}

.btn-donate {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.container {
  max-width: 1240px;
  padding: 1.5rem 1.5rem 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  max-width: 1180px;
  min-height: 550px;
  margin: 2.5rem auto 4rem;
  text-align: left;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #6258ea;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(98, 88, 234, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-sm);
}

.hero-kicker-dot,
.hero-status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #40c98c;
  box-shadow: 0 0 0 4px rgba(64, 201, 140, 0.13);
}

.hero-title {
  max-width: 660px;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: clamp(3.1rem, 5vw, 5.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.075em;
}

.hero-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  max-width: 570px;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-cta {
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-secondary-link:hover {
  color: var(--brand-primary);
}

.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  margin-top: 2rem;
  color: #727993;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-trust-list iconify-icon {
  color: #45bf8b;
}

.hero-visual {
  position: relative;
  min-height: 445px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-glow {
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(71, 134, 248, 0.23), rgba(238, 112, 193, 0.2));
  filter: blur(42px);
}

.hero-visual-card {
  position: relative;
  z-index: 1;
  width: min(100%, 590px);
  padding: 0.65rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 36px 90px rgba(73, 69, 160, 0.2);
  transform: rotate(2deg);
}

.hero-visual-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.hero-visual-topbar {
  position: absolute;
  top: 1.2rem;
  right: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(23, 28, 67, 0.76);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-visual-topbar span:first-child,
.hero-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-visual-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 1.5rem;
}

.hero-visual-chip {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #313666;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(51, 48, 116, 0.12);
  backdrop-filter: blur(12px);
}

.tool-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto 1.35rem;
  padding: 0 0.25rem;
}

.tool-intro h2 {
  margin-top: 0.35rem;
  color: var(--text-main);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.tool-intro p {
  max-width: 330px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: right;
}

.tab-container {
  max-width: 480px;
  margin: 1.25rem auto 1.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(91, 92, 226, 0.11);
  border-radius: 999px;
  background: rgba(229, 230, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  min-height: 44px;
  border-radius: 999px;
  color: #717793;
  font-weight: 700;
}

.tab-btn.active {
  color: var(--text-main);
  box-shadow: 0 8px 22px rgba(62, 61, 120, 0.1);
}

.card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(55, 61, 131, 0.1);
  border-radius: 2rem;
  box-shadow: var(--shadow-lg);
}

.dropzone {
  min-height: 240px;
  border-color: rgba(91, 92, 226, 0.26);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(113, 129, 255, 0.11), transparent 14rem),
    #fbfbff;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--brand-primary);
  background: #f4f3ff;
  box-shadow: inset 0 0 0 4px rgba(91, 92, 226, 0.06);
}

.dropzone-icon {
  color: var(--brand-primary);
}

.comparison-section,
.guide-section,
.video-guide-card,
.models-section,
.features-section,
.faq-section {
  position: relative;
}

.comparison-section {
  margin-top: 6rem;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid rgba(93, 88, 214, 0.11);
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(239, 241, 255, 0.96), rgba(255, 247, 252, 0.96));
  box-shadow: var(--shadow-md);
}

.comparison-title,
.section-title,
.faq-title {
  font-weight: 700;
  letter-spacing: -0.06em;
}

.comparison-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.comparison-img-wrapper {
  position: relative;
  padding: 0.5rem;
  border: 1px solid rgba(91, 92, 226, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow-sm);
}

.comparison-img-wrapper img {
  max-height: 290px;
  object-fit: cover;
  border-radius: 0.95rem;
}

.comparison-watermark-overlay {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 22%;
  min-width: 58px;
  max-width: 90px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 22px rgba(57, 60, 140, 0.2);
  backdrop-filter: blur(5px);
}

.comparison-watermark-overlay img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.video-guide-card {
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(91, 92, 226, 0.11);
  border-radius: 2rem;
  background: linear-gradient(145deg, #ffffff, #f4f4ff 62%, #fff6fb);
  box-shadow: var(--shadow-md);
}

.video-guide-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0 1.75rem;
  padding: 0.6rem;
  border: 1px solid rgba(91, 92, 226, 0.11);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.62);
}

.video-guide-visual > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 1.1rem;
}

.video-guide-visual-caption {
  padding: 1.25rem;
}

.video-guide-visual-caption strong {
  display: block;
  margin: 0.5rem 0 0.45rem;
  color: var(--text-main);
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.video-guide-visual-caption p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.video-guide-step,
.model-card,
.feature-card {
  border-color: rgba(55, 61, 131, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.video-guide-step:hover,
.model-card:hover {
  border-color: rgba(91, 92, 226, 0.32);
  box-shadow: var(--shadow-md);
}

.models-section,
.features-section,
.faq-section {
  margin-top: 7rem;
  margin-bottom: 7rem;
}

.models-header,
.guide-header {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.features-grid {
  gap: 1rem;
}

.feature-card {
  min-height: 150px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(55, 61, 131, 0.1);
}

.feature-icon,
.about-feature-icon,
.contact-icon-bubble {
  color: var(--brand-primary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #edf1ff, #fff0fa);
}

.faq-layout {
  padding: clamp(1.25rem, 4vw, 2.75rem);
  border: 1px solid rgba(55, 61, 131, 0.1);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.35rem 0.25rem;
}

.app-footer {
  margin-top: 6rem;
  padding: 3rem 1rem 0;
  border-top-color: rgba(55, 61, 131, 0.1);
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    min-height: 0;
    margin-top: 2rem;
  }

  .hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title,
  .hero-description {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-trust-list {
    justify-content: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .nav-menu {
    display: none;
  }
}

@media (max-width: 767px) {
  .container {
    padding: 1rem 0.85rem 3.5rem;
  }

  .header-container {
    padding: 0.75rem 0.85rem;
  }

  .hero-section {
    margin: 1.25rem auto 3rem;
  }

  .hero-title {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-visual-card {
    border-radius: 1.25rem;
    transform: rotate(1deg);
  }

  .hero-visual-topbar {
    top: 0.9rem;
    right: 0.9rem;
    left: 0.9rem;
    font-size: 0.56rem;
  }

  .hero-visual-chip {
    right: 0.85rem;
    bottom: 0.85rem;
    font-size: 0.62rem;
  }

  .tool-intro {
    display: block;
    text-align: center;
  }

  .tool-intro p {
    max-width: 420px;
    margin: 0.65rem auto 0;
    text-align: center;
  }

  .card {
    padding: 1rem;
    border-radius: 1.35rem;
  }

  .dropzone {
    min-height: 205px;
    padding: 2.25rem 1rem;
  }

  .comparison-section,
  .video-guide-card,
  .faq-layout {
    border-radius: 1.35rem;
  }

  .video-guide-visual {
    grid-template-columns: 1fr;
  }

  .video-guide-visual > img {
    height: 170px;
  }

  .models-section,
  .features-section,
  .faq-section {
    margin-top: 4.5rem;
    margin-bottom: 4.5rem;
  }
}

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

  .hero-cta,
  .hero-secondary-link {
    justify-content: center;
  }

  .hero-trust-list {
    gap: 0.65rem 0.85rem;
    font-size: 0.69rem;
  }
}

/* Compact first viewport: the upload workspace should appear immediately. */
.hero-section {
  display: block;
  min-height: 0;
  max-width: 900px;
  margin: 1.25rem auto 0.75rem;
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 auto 0.65rem;
}

.hero-title {
  max-width: 820px;
  margin: 0 auto 0.6rem;
  font-size: clamp(2.15rem, 4.6vw, 3.75rem);
  line-height: 1.05;
}

.hero-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.55;
}

.tool-intro {
  max-width: 900px;
  margin: 0.85rem auto 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(55, 61, 131, 0.1);
}

.tool-intro h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
}

.tool-intro p {
  max-width: 300px;
  font-size: 0.76rem;
}

@media (max-width: 767px) {
  .hero-section {
    margin-top: 0.8rem;
    margin-bottom: 0.55rem;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-description {
    font-size: 0.82rem;
  }

  .tool-intro {
    margin-top: 0.65rem;
    margin-bottom: 0.65rem;
  }
}

/* Final layout polish: keep headings compact and static-page footers close to content. */
@media (min-width: 768px) {
  .hero-title {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2.1rem, 3.2vw, 3rem);
  }

  .section-title {
    white-space: nowrap;
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  }

  .guide-header,
  .models-header {
    max-width: none;
  }

  .page-main-heading {
    white-space: nowrap;
    font-size: 1.95rem;
  }
}

main.page-container {
  flex: none;
}

.page-container + .app-footer {
  margin-top: 2rem;
  padding-top: 2rem;
}

@media (max-width: 767px) {
  .hero-title,
  .section-title,
  .page-main-heading {
    white-space: normal;
  }
}

/* Unified gradient treatment for primary headings. */
.hero-title,
.tool-intro h2,
.section-title,
.comparison-title,
.faq-title,
.video-guide-title,
.page-main-heading {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-title {
  line-height: 1.3;
}

/* Static pages should end naturally after their content, not fill the viewport. */
body.static-page {
  display: block;
  min-height: 0;
}

body.static-page .page-container {
  flex: none;
  padding-bottom: 1rem;
}

body.static-page .page-container + .app-footer {
  margin-top: 1.25rem;
  padding-top: 1.75rem;
}

/* Keep every page footer aligned and spaced like the homepage footer. */
.app-footer {
  width: 100%;
  max-width: 1240px;
  margin: 6rem auto 0;
  padding: 3rem 1rem 2.5rem;
}

/* Match the homepage's larger separation on static content pages too. */
body.static-page .page-container + .app-footer {
  margin-top: 6rem;
  padding-top: 3rem;
}

body.static-page .page-container {
  padding-bottom: 0;
}


/* Compact image processing mode selector below the media tabs. */
.image-mode-selector {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: -0.75rem auto 1.35rem;
  padding: 0 0.5rem;
}

.image-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: color 160ms ease;
}

.image-mode-option:hover,
.image-mode-option.is-selected {
  color: var(--text-main);
}

.image-mode-option input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1.5px solid rgba(99, 102, 241, 0.42);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(72, 76, 180, 0.12);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.image-mode-option input:checked {
  border-color: #6366f1;
  background: radial-gradient(circle, #6366f1 0 4px, transparent 4.5px);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.image-mode-option input:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.45);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .image-mode-selector {
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .image-mode-option {
    font-size: 0.78rem;
  }
}

/* Keep the longer product title compact on desktop while allowing mobile wrapping. */
@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  }
}

/* Keep the full product title inside the hero copy at desktop widths. */
.hero-copy { max-width: 100%; }

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(1.8rem, 2.95vw, 2.65rem);
  }
}


@media (max-width: 767px) {
  .about-features-grid {
    grid-template-columns: 1fr;
  }
}

