/* =============================================
   NEOQOM QR: Design System & Global Styles
   Google Font: Inter
   ============================================= */

/* ====== Design Tokens ====== */
:root {
  --background: #f8f8f8;
  --foreground: #09090b;
  --card: #ffffff;
  --card-foreground: #09090b;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --secondary: #f4f4f5;
  --neon-green: #00b833;
  --neon-cyan: #0099cc;
  --ring: #00b833;
  --radius: 0.75rem;
  --danger: #ef4444;
  --warning: #f59e0b;
}

.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #121214;
  --card-foreground: #fafafa;
  --border: #27272a;
  --input: #27272a;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --secondary: #1a1a1e;
  --neon-green: #00ff41;
  --neon-cyan: #00d9ff;
  --ring: #00ff41;
}

/* ====== Reset ====== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ====== Base ====== */
html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ====== Neoqom Grid Background: Light Mode ====== */
body {
  background-image:
    radial-gradient(circle at 12% 15%, rgba(0, 184, 51, 0.09) 0%, rgba(0, 184, 51, 0.02) 35%, transparent 60%),
    radial-gradient(circle at 88% 80%, rgba(0, 153, 204, 0.09) 0%, rgba(0, 153, 204, 0.02) 35%, transparent 60%),
    linear-gradient(rgba(0, 184, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 204, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  background-attachment: fixed;
}

/* ====== Neoqom Grid Background: Dark Mode ====== */
.dark body {
  background-image:
    radial-gradient(circle at 12% 15%, rgba(0, 255, 65, 0.07) 0%, rgba(0, 255, 65, 0.02) 35%, transparent 60%),
    radial-gradient(circle at 88% 80%, rgba(0, 217, 255, 0.07) 0%, rgba(0, 217, 255, 0.02) 35%, transparent 60%),
    linear-gradient(rgba(0, 255, 65, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 54px 54px, 54px 54px;
  background-attachment: fixed;
}

/* ====== Utility Classes ====== */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  color: #ffffff;
}

/* ====== Cards ====== */
.neoqom-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
}

.dark .neoqom-card {
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.3);
}

/* ====== Animations ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.45s ease both;
}

.fade-in-delay-1 {
  animation: fadeInUp 0.45s ease 0.1s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 0.45s ease 0.2s both;
}

/* ====== Header ====== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 248, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.dark .app-header {
  background: rgba(10, 10, 10, 0.85);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-text {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--foreground);
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.theme-toggle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.theme-toggle-btn:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

/* ====== Main Layout ====== */
.main-container {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.title-section {
  margin-bottom: 2rem;
}

.title-section h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.title-section p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  line-height: 1.6;
  max-width: 780px;
}

/* ====== Two-Column Grid ====== */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: 7fr 5fr;
  }
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.right-column {
  position: relative;
}

@media (min-width: 1024px) {
  .right-column {
    position: sticky;
    top: 5.5rem;
  }
}

/* ====== URL Input ====== */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}

.text-input {
  width: 100%;
  padding: 0.625rem 6rem 0.625rem 2.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: monospace;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(0, 184, 51, 0.12);
}

.text-input.input-valid {
  border-color: var(--neon-green);
}

.text-input.input-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Standalone text inputs without icon padding */
.text-input.bare {
  padding: 0.5rem;
}

.input-actions {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* URL Validation Message */
.url-validation-msg {
  font-size: 0.7rem;
  margin-top: 0.375rem;
  min-height: 1rem;
  transition: color 0.2s;
}

.url-validation-msg.valid { color: var(--neon-green); }
.url-validation-msg.invalid { color: var(--danger); }
.url-validation-msg.neutral { color: var(--muted-foreground); }

/* ====== Icon Buttons ====== */
.icon-btn {
  padding: 0.375rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  font-size: inherit;
  font-family: inherit;
}

.icon-btn:hover {
  color: var(--foreground);
  background: var(--secondary);
}

/* ====== Tabs ====== */
.tabs-header {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  padding: 0.25rem;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.tab-btn:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.5);
}

.dark .tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-pane {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-pane.active {
  display: flex;
}

/* ====== Color Mode Toggle ====== */
.color-mode-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted-foreground);
  font-family: inherit;
  transition: all 0.2s;
}

.color-mode-btn:hover {
  color: var(--foreground);
}

.color-mode-btn.active-mode {
  background: var(--card);
  border-color: var(--border);
  color: var(--foreground);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ====== Option Grid Buttons ====== */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.options-grid-3 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 500px) {
  .options-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.option-btn {
  padding: 0.625rem 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.option-btn:hover {
  background: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}

.option-btn.active {
  background: var(--card);
  border-color: var(--neon-green);
  color: var(--foreground);
  box-shadow: 0 0 0 1px var(--neon-green), 0 1px 3px rgba(0, 184, 51, 0.12);
}

.option-btn .title {
  font-size: 0.75rem;
  font-weight: 600;
}

.option-btn .desc {
  font-size: 0.625rem;
  color: var(--muted-foreground);
  margin-top: 0.125rem;
}

/* ====== Export Resolution Buttons ====== */
.res-btn {
  padding: 3px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted-foreground);
  font-family: monospace;
  transition: all 0.2s;
}

.res-btn:hover {
  color: var(--foreground);
  border-color: var(--neon-green);
}

.res-btn.active-res {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

/* ====== Color Inputs ====== */
input[type="color"] {
  -webkit-appearance: none;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }

input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ====== Swatch Buttons ====== */
.swatch-btn {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
}

.swatch-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--neon-green);
}

/* ====== Range Sliders ====== */
input[type="range"] {
  width: 100%;
  height: 0.375rem;
  background: var(--border);
  border-radius: 0.5rem;
  outline: none;
  cursor: pointer;
  accent-color: var(--neon-green);
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-green);
  cursor: pointer;
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* ====== Logo Upload Box ====== */
.logo-upload-box {
  border: 1.5px dashed var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--background);
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-upload-box:hover, .logo-upload-box:focus {
  border-color: var(--neon-green);
  background: rgba(0, 184, 51, 0.03);
  outline: none;
}

/* ====== Primary/Secondary Buttons ====== */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--border);
  border-color: var(--neon-green);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* ====== Preview Card & Verification Bar ====== */
.preview-card {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-canvas-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  min-height: 250px;
  max-width: 100%;
  overflow: hidden;
}

#qr-frame-wrapper {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qr-canvas-bg-box {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#qr-container {
  width: 240px;
  height: 240px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-container canvas,
#qr-container svg {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

.verification-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.verification-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 180px;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--neon-green);
  font-weight: 600;
  font-size: 0.7rem;
}

.decoded-url {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--foreground);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.verification-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.icon-btn-text {
  padding: 0.25rem 0.55rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--foreground);
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.icon-btn-text:hover {
  background: var(--secondary);
  border-color: var(--neon-green);
}

.visit-link {
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.visit-link:hover {
  text-decoration: underline;
}

/* ====== Checkered Pattern (transparent bg indicator) ====== */
.checkerboard-pattern {
  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 0px;
}

.dark .checkerboard-pattern {
  background-image:
    linear-gradient(45deg, #1e293b 25%, transparent 25%),
    linear-gradient(-45deg, #1e293b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e293b 75%),
    linear-gradient(-45deg, transparent 75%, #1e293b 75%);
}

/* ====== SEO & Educational Sections (Full Width Layout) ====== */
.seo-section {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

.seo-section-inner {
  width: 100%;
  max-width: 100%;
}

.seo-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.seo-section-lead {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  max-width: 850px;
  margin-bottom: 2rem;
}

.seo-section-lead strong {
  color: var(--foreground);
}

/* Overview / Definition Card (Human, Clean, Non-AI Gimmick) */
.direct-overview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--neon-green);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.direct-overview-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-green);
  margin-bottom: 0.75rem;
}

.direct-overview-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--foreground);
  margin: 0;
}

/* 3-Column Explainer Cards */
.seo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .seo-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.seo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.seo-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.seo-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.seo-card-icon.danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.seo-card-icon.warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.seo-card-icon.success { background: rgba(0, 184, 51, 0.1); color: var(--neon-green); }

.seo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.seo-card p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin: 0;
}

.seo-card code {
  font-family: monospace;
  font-size: 0.775rem;
  background: var(--muted);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--neon-green);
}

/* Comparison Table (Full-Width Responsive) */
.comparison-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 4rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.comparison-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--secondary);
  font-weight: 700;
  color: var(--foreground);
}

.comparison-table th.brand-col,
.comparison-table td.brand-col {
  background: rgba(0, 184, 51, 0.035);
  font-weight: 600;
  color: var(--foreground);
}

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

.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--neon-green);
  font-weight: 600;
}

.badge-red {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ef4444;
  font-weight: 500;
}

/* Dedicated Privacy & Zero-Data Section */
.privacy-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.privacy-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.privacy-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.privacy-title-row h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

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

@media (min-width: 768px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
}

.privacy-item-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(0, 184, 51, 0.1);
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.privacy-item-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.privacy-item-content p {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

.privacy-verification-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.625rem;
  background: var(--muted);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--muted-foreground);
}

.privacy-verification-box code {
  font-family: monospace;
  font-size: 0.8rem;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--foreground);
}

/* How It Works Steps (Responsive 4-Grid on Desktop) */
.how-it-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  counter-reset: none;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .how-it-works {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .how-it-works {
    grid-template-columns: repeat(4, 1fr);
  }
}

.how-it-works li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.how-it-works li:hover {
  border-color: var(--neon-cyan);
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-it-works li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.how-it-works li p {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* FAQ Section (Clean Full Width Accordion) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--neon-green);
}

.faq-question {
  padding: 1.15rem 1.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  user-select: none;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.15rem;
  color: var(--neon-green);
  font-weight: 700;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-question:hover {
  color: var(--neon-green);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.faq-answer code {
  font-family: monospace;
  font-size: 0.775rem;
  background: var(--muted);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--neon-green);
}

/* ====== Footer ====== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 2.25rem 0;
  margin-top: 4.5rem;
  font-size: 0.825rem;
  color: var(--muted-foreground);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand strong {
  color: var(--foreground);
  font-size: 0.9rem;
}

.footer-center {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-foreground);
  font-family: monospace;
}

.footer-right {
  text-align: left;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .footer-right {
    text-align: right;
  }
}

.footer-neoqom-link {
  color: var(--neon-green);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s, text-decoration 0.15s;
}

.footer-neoqom-link:hover {
  color: var(--neon-cyan);
  text-decoration: underline;
}

/* ====== Focus Visibility (Accessibility) ====== */
:focus-visible {
  outline: 2px solid var(--neon-green);
  outline-offset: 2px;
}

/* ====== Scrollbar ====== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

/* =============================================
   RESPONSIVE DESIGN REFINEMENTS
   ============================================= */

/* Tablets & Below (< 768px) */
@media (max-width: 768px) {
  .privacy-section {
    padding: 1.75rem 1.25rem;
  }
  .privacy-title-row h2 {
    font-size: 1.25rem;
  }
  .direct-overview-card {
    padding: 1.25rem;
  }
  .seo-card {
    padding: 1.25rem;
  }
}

/* Mobile Devices (< 640px) */
@media (max-width: 640px) {
  .main-container {
    padding: 1.25rem 1rem 2.5rem;
  }
  .title-section h1 {
    font-size: 1.45rem;
  }
  .title-section p {
    font-size: 0.85rem;
  }
  .grid-layout {
    gap: 1.25rem;
  }
  .preview-card {
    padding: 1rem 0.85rem;
  }
  .preview-canvas-box {
    padding: 0.75rem 0.5rem;
    min-height: 220px;
  }
  .options-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }
  .faq-question {
    padding: 0.95rem 1rem;
    font-size: 0.875rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem;
    font-size: 0.8rem;
  }
}

/* Ultra-Compact Mobile (< 400px) */
@media (max-width: 400px) {
  .main-container {
    padding: 1rem 0.65rem 2rem;
  }
  .header-container {
    padding: 0 0.75rem;
  }
  .brand-text {
    font-size: 1.15rem;
  }
  .brand-sub {
    display: none;
  }
  .tab-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.7rem;
  }
  .tab-content {
    padding: 0.875rem 0.65rem;
  }
  .options-grid {
    grid-template-columns: 1fr;
  }
  .options-grid-3 {
    grid-template-columns: 1fr;
  }
  .option-btn {
    padding: 0.5rem 0.65rem;
  }
  .text-input {
    font-size: 0.8rem;
    padding-right: 4.5rem;
  }
  .privacy-section {
    padding: 1.25rem 0.85rem;
  }
  .privacy-verification-box {
    padding: 0.875rem;
    font-size: 0.75rem;
  }
}


