/* ── Gemini Watermark Remover Design System ── */
:root {
  --bg-primary: #F5F5F7;
  --bg-card: #ffffff;
  --bg-card-border: #e2e8f0;
  --bg-header: rgba(245, 245, 247, 0.85);

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

  --brand-primary: #4f46e5;
  --brand-primary-hover: #4338ca;
  --brand-gradient: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
  --brand-glow: rgba(99, 102, 241, 0.15);

  --accent-blue: #2563eb;
  --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: 1000px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: #000000;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  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: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-sm);
}

.btn-donate:hover {
  background: #f8f8f8;
  border-color: #c0bfbf;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
}

/* ── 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;
  color: var(--text-main);
  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;
}

/* ── 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 & Live Preview ── */
.tuner-container,
#img-results,
#video-results,
#video-status {
  scroll-margin-top: 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);
  }
}

.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;
}

/* ── 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,
.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: 1100px) {
  .hero-bg-frame-container {
    display: none !important;
  }
}

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

/* ── Mobile & Tablet Responsiveness ── */
@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;
  }

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

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

  .privacy-text {
    display: none;
  }

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

  .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;
  }



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

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

  .header-actions .btn-github,
  .header-actions .btn-donate {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    font-size: 0.825rem;
  }

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

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

  .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;
  }
}