/* Local Fonts */
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-400.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-300.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-500.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-700.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Neon Lab: Obsidian Kinetic Design System */
  --primary: #6D28D9;      /* Deepened Violet for safe 6:1 contrast ratio */
  --primary-rgb: 109, 40, 217;
  --secondary: #0E7490;    /* Deepened Cyan for better visibility */
  --secondary-rgb: 14, 116, 144;
  --accent: #BE123C;       /* Deepened Rose for contrast */
  --bg-color: #020617;     /* Deep Obsidian */
  --surface: #0F172A;      /* Midnight Glass */
  --surface-light: #1E293B;
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-main: #F8FAFC;    /* Sky White */
  --text-muted: #CBD5E1;   /* Brightened for Readability */
  --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow-neon: 0 0 30px rgba(var(--primary-rgb), 0.2);
  --grad-neon: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] {
  /* Vibrant Light Mode: Snow Kinetic */
  --bg-color: #FFFFFF;
  --surface: #FFFFFF;
  --surface-light: #F8FAFC;  /* Added for layered contrast */
  --text-main: #020617;
  --text-muted: #334155;
  --glass-border: rgba(139, 92, 246, 0.15); /* Tinted with Primary */
  --card-shadow: 0 10px 40px rgba(139, 92, 246, 0.08);
}

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

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Futuristic Floating Glass Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 72px !important;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90 deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

[data-theme="light"] .main-header {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.main-header .container {
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: none !important;
}

.logo-link:hover {
  background: transparent !important;
  transform: none !important;
}

.brand-logo-svg {
  height: 48px;
  width: auto;
}

.logo-text-image {
  fill: #1E293B; /* Default light theme color */
  transition: fill 0.4s ease;
}

[data-theme="dark"] .logo-text-image {
  fill: #F8FAFC; /* Light color for dark theme */
}

[data-theme="dark"] .brand-logo-svg {
  filter: drop-shadow(0 0 8px rgba(var(--secondary-rgb), 0.4));
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "upload info";
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
  padding-top: 40px; /* Reduced since parent .view now has padding */
}

@media (max-width: 968px) {
  .tool-hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: "upload" "info" !important;
    gap: 2rem;
  }
}

.tool-upload-left {
  grid-area: upload;
  text-align: left;
}

.tool-info-right {
  grid-area: info;
  text-align: left;
}

.tool-info-right .tagline {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.feature-item svg {
  color: var(--primary);
  width: 24px;
  height: 24px;
}

.body-discovery-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  grid-template-areas: "sidebar-left content sidebar-right";
  gap: 3rem;
  margin-top: 6rem;
}

@media (max-width: 1280px) {
  .body-discovery-layout {
    grid-template-columns: 280px 1fr;
    grid-template-areas: "sidebar-left content";
  }
}

@media (max-width: 1024px) {
  .body-discovery-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "sidebar-left";
  }
}

.sidebar-tools-left {
  grid-area: sidebar-left;
  position: sticky;
  top: 130px; /* Increased to clear fixed header */
  height: fit-content;
}

@media (max-width: 1280px) {
  .sidebar-tools-right {
    display: none;
  }
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  background: rgba(var(--primary-rgb), 0.03);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: translateY(-1px);
}


.btn-header {
  background: var(--primary);
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 0 1.8rem !important;
  height: 48px; /* Standardized touch target */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-header:hover {
  background: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Tool Title Pro Styling */
.tool-title-pro {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  background: var(--primary-glow);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 900;
  box-shadow: 0 0 20px var(--primary-glow);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-seo-content {
  grid-area: content;
  text-align: left;
}

.discovery-grid-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.mini-tool-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.mini-tool-card:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: translateX(10px);
}

.main-seo-content {
  text-align: left;
}

.how-it-works {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.step-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.step-number {
  background: var(--primary);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-section {
  margin-top: 5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

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

.brand-logo:hover {
  transform: translateY(-50%) scale(1.05);
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-group, .nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* Reduced spacing to prevent overflow */
}

.nav-separator {
  width: 1px;
  height: 24px; /* Taller for visiblity */
  background: rgba(0,0,0,0.08); /* More subtle */
  margin: 0 1.2rem;
}

[data-theme="dark"] .nav-separator {
  background: rgba(255,255,255,0.1);
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: var(--transition);
  opacity: 1; /* Full opacity for readability */
}

.nav-link:hover {
  color: var(--primary);
  opacity: 1;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  z-index: 1000;
  padding: 0.75rem 0;
  animation: fadeIn 0.2s ease-out;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  color: var(--text-main);
  padding: 14px 24px; /* Expanded for 48px touch target height */
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  opacity: 0.8;
}

.dropdown-item:hover {
  background: var(--primary-glow);
  color: var(--primary);
  opacity: 1;
  padding-left: 25px;
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0.5rem 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border-radius: 50%;
  width: 48px; /* WCAG Touch standard */
  height: 48px; /* WCAG Touch standard */
}

.theme-toggle:hover {
  background: rgba(230, 36, 41, 0.05); /* Very subtle primary hover */
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Light Mode: Show Moon, Hide Sun */
.sun-icon { display: none; }
.moon-icon { display: block; }

/* Dark Mode: Hide Moon, Show Sun */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Premium Footer */
.main-footer {
  margin-top: 8rem;
  padding: 6rem 0 2rem;
  background: var(--surface);
  border-top: 1px solid var(--glass-border);
}

[data-theme="dark"] .main-footer {
  background: #020617; /* Specific deep navy for premium dark footer */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin: 0 auto 4rem;
  align-items: start;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.footer-logo span {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-logo-small {
  height: 35px;
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .brand-logo-small {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  line-height: 1.7;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  font-weight: 800;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #6c757d;
  font-size: 0.85rem;
}

.social-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-links a {
  text-decoration: none;
  color: var(--text-main);
  opacity: 0.8;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 8px;
}

.social-links a:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .social-links {
    justify-content: center;
  }
}

.container {
  max-width: 1440px; /* Long header width */
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section: The Lab */
.hero-section {
  text-align: center;
  padding: 1.5rem 1rem 1rem; /* Dramatically reduced to pull content up */
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  animation: fadeIn 1s ease-out;
}

.neon-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.accent-text {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

[data-theme="light"] .accent-text {
  background: linear-gradient(135deg, #6D28D9 0%, #0891B2 100%); /* Deepened for Light Mode visibility */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

[data-theme="dark"] h1 span {
  color: var(--gold);
  text-shadow: 0 0 15px rgba(250, 204, 21, 0.2);
}

[data-theme="light"] .neon-title,
[data-theme="light"] .ud-content h2,
[data-theme="light"] .smart-header h3 {
  color: #0F172A;
}

/* Tab Container & Buttons */
.tab-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.tab-btn:hover {
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 8px 20px rgba(230, 36, 41, 0.3);
}

[data-theme="dark"] .tab-btn.active {
  background: var(--primary);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(230, 36, 41, 0.3);
}

/* Cyber Cards - High Kinetic System */
.tool-grid.dense-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  padding: 2rem 0 6rem;
}

.tool-card {
  background: var(--surface);
  border: 2px solid var(--glass-border);
  padding: 1.2rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .tool-card {
  backdrop-filter: none; /* Clearer white in Light Mode */
  border-width: 2px;
}

[data-theme="dark"] .tool-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tool-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.2), 0 0 20px rgba(var(--secondary-rgb), 0.15);
}

.tool-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  transition: var(--transition);
}

.tool-card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 15px var(--primary));
}

.tool-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.tool-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.new-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--grad-neon);
  color: #fff;
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.tool-card.coming-soon {
  opacity: 0.8;
  filter: grayscale(0.8);
}

.tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.1),
    transparent
  );
  transition: 0.8s ease-in-out;
  z-index: -1;
}

.tool-card:hover::after {
  left: 100%;
}

.nav-link, .logo-link, .footer-links a, button, .tool-card {
  cursor: pointer !important;
}

.nav-link:hover, .logo-link:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.tool-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(-5deg);
}

.tool-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

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

.tool-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.view {
  display: none;
  padding-top: 85px; /* DRASTICALLY REDUCED: Move tools up */
  animation: hudFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view.active {
  display: block;
}

.back-btn {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.back-btn:hover {
  background: var(--surface);
  border-color: var(--primary);
}

/* Dropzone */
.dropzone {
  border: 3px dashed var(--glass-border);
  border-radius: 40px;
  padding: 6rem 4rem;
  text-align: center;
  transition: var(--transition);
  background: var(--bg-color);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.dropzone:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: scale(1.01);
}

.dropzone h2, .dropzone p {
  color: var(--text-main); /* Ensure text is always readable */
}

/* Explicit contrast for dark mode dropzone text */
[data-theme="dark"] .dropzone p {
  color: var(--text-muted);
}

.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-glow);
  transform: scale(1.02);
}

/* Spider Execute Button */
.execute-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 10px 30px var(--primary-glow);
  transition: var(--transition);
  margin-top: 2.5rem;
}

.execute-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px var(--primary-glow);
}

/* Base Buttons - FIXED VISIBILITY */
.btn {
  background: var(--primary);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 5px 15px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px var(--primary-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-main) !important;
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-color);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-reset {
  background: var(--surface);
  color: var(--text-muted) !important;
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-reset:hover {
  border-color: #f43f5e; /* Premium Rose/Red Alert */
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.1);
}

.btn-header {
  margin-left: 1.5rem;
  font-size: 0.8rem;
  padding: 0.6rem 1.4rem !important;
  background: var(--primary); /* Ironman Red */
  color: #FFFFFF !important; /* Forces White for readability */
  border-radius: 100px;
  box-shadow: 0 4px 15px rgba(230, 36, 41, 0.3);
  border: 1px solid var(--gold); /* Gold accent border */
  font-weight: 800;
  letter-spacing: 1px;
}

.btn-header:hover {
  background: #B91C1C; /* Darker Red */
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(230, 36, 41, 0.4);
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .container { padding: 1rem; }
  .content-split { flex-direction: column; }
}

/* SEO & Content Section */
.seo-container {
  padding: 4rem 2rem;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface) 100%);
  border-radius: 40px 40px 0 0;
  margin-top: 5rem;
}

.seo-copy p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Static Content (About, Privacy, Terms) */
.static-container {
  padding: 6rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.static-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.static-content .lead {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-weight: 500;
}

.static-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.static-card, .static-section {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.static-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.static-card h3, .static-section h3 {
  margin-bottom: 1rem;
  font-family: 'Syne', sans-serif;
  color: var(--text-main);
}

.static-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.static-content ul {
  margin-bottom: 3rem;
  list-style: none;
  padding: 0;
}

.static-content li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.static-content li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
}

@media (max-width: 768px) {
  .static-grid { grid-template-columns: 1fr; }
  .static-content h1 { font-size: 2.5rem; }
}
.faq-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.faq-item:hover {
  transform: translateX(10px);
}

.faq-item h4 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* Related Tools Sidebar */
.sidebar-box {
  box-shadow: var(--shadow-md);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  position: sticky;
  top: 90px; /* Adjusted for pill header */
}

#related-tools-grid div {
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
}

#related-tools-grid div:hover {
  border-color: var(--primary) !important;
  color: var(--primary);
  background: var(--primary-glow) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 183, 255, 0.2);
}

/* Defensive CSS to hide Adobe Acrobat browser extension bubble and others */
#adobe-dc-view-sdk, 
.adobe-dc-view-sdk,
div[id*="adobe-dc-view-sdk"],
#adobe-extension-container,
[id^="adobe-"],
[class^="adobe-"],
[id*="adobe-acrobat"],
.acrobat-extension-container,
.adobe-extension-on,
#adobe-extension-on,
html.adobe-extension-on,
body.adobe-extension-on {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Global input styling for theme consistency */
input, textarea, select {
  font-family: inherit;
  transition: var(--transition);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Tool View Structural Layout Overhaul */
.tool-view-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.workspace-area {
  min-height: 480px;
  background: var(--surface);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.5s ease-out;
  position: relative;
  transition: var(--transition);
}

/* Professional Side-by-Side Discovery Hub */
.discovery-hub {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 5rem;
  margin-top: 6rem;
  padding-top: 6rem;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 1024px) {
  .discovery-hub {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.content-main {
  color: var(--text-main);
  line-height: 1.8;
}

.sidebar-discovery {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--primary-glow);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 30px;
}

/* Streamlined Buttons */
.btn-execute {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-execute:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-reset-sleek {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--glass-border);
  padding: 1.2rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-reset-sleek:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.related-section {
  margin-top: 4rem;
}

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

/* CropperJS Custom Theme */
.cropper-container {
  max-height: 600px;
  background: #000 !important;
  border-radius: 20px;
  overflow: hidden;
}

cropper-canvas {
  height: 500px;
  width: 100%;
}

.cropper-view-box, .cropper-face {
  border: 2px solid var(--primary) !important;
  outline-color: var(--primary) !important;
}

.cropper-line, .cropper-point {
  background-color: var(--primary) !important;
}

/* -------------------------------------------------------------------------- */
/* LAZY MODE: UNIVERSAL DROPZONE */
/* -------------------------------------------------------------------------- */
/* Universal Drop Zone: The Portal */
.universal-dropzone {
  position: relative;
  width: 100%;
  max-width: 1140px; /* Expansive Cinematic Width */
  min-height: 320px; 
  padding: 3rem 4rem;
  margin: 0 auto;
  border-radius: 40px; 
  border: 2px dashed rgba(var(--secondary-rgb), 0.3);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: visible;
  animation: portalPulse 4s infinite ease-in-out;
  backdrop-filter: blur(10px);
}

@keyframes portalPulse {
  0%, 100% { border-color: rgba(var(--secondary-rgb), 0.3); box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1); }
  50% { border-color: var(--primary); box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.3); }
}

/* ==========================================================================
   HOMEPAGE CORE & HERO
   ========================================================================== */
.hero-section {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  animation: fadeIn 1s ease-out;
}

.neon-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.accent-text {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

[data-theme="light"] .accent-text {
  background: linear-gradient(135deg, #6D28D9 0%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.tagline {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: none;
  white-space: nowrap;
  margin: 1rem auto 2rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* ==========================================================================
   PORTAL (UNIVERSAL DROPZONE) BASE
   ========================================================================== */
/* Redundant .universal-dropzone block removed to fix conflict */

.universal-dropzone.drag-active {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  transform: scale(1.02);
}

.ud-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.3));
}

.btn-ud {
  background: var(--grad-neon);
  color: #fff !important;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1rem;
  margin-top: 2rem;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
  transition: var(--transition);
}

.btn-ud:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.4);
}

/* ==========================================================================
   FILTER TABS & SEARCH
   ========================================================================== */
.tab-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.tab-btn:hover {
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.search-container input {
  width: 100%;
  padding: 1.2rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text-main);
  font-size: 1.1rem;
  outline: none;
  box-shadow: var(--shadow-sm);
}

/* Inner Tool Dropzones */
.dropzone {
  position: relative;
  width: 100%;
  height: 350px;
  background: rgba(var(--primary-rgb), 0.02);
  border: 2px dashed var(--glass-border);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  gap: 1.5rem;
}

.dz-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.3));
  transition: var(--transition);
}

.dz-text-main {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-main);
  margin: 0;
}

.dz-text-sub {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}


.universal-dropzone.has-tools {
  aspect-ratio: auto;
  min-height: 420px; /* Ensured vertical presence */
  max-width: 1140px;  /* Expanded for side-by-side grid tools */
  padding: 3.5rem;   /* More breathing room */
  border-radius: 40px;
  border-style: solid;
  border-color: var(--primary);
  background: var(--surface);
  cursor: default;
  animation: none;
  box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.2);
}

.universal-dropzone:hover:not(.has-tools) {
  transform: scale(1.02);
  border-color: var(--secondary);
  background: radial-gradient(circle at center, rgba(var(--secondary-rgb), 0.1) 0%, transparent 80%);
}

.ud-content {
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.ud-icon {
  font-size: 4.5rem; /* Reduced from 6.5rem */
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px rgba(var(--secondary-rgb), 0.5));
  animation: float 3s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.ud-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem; /* Reduced from 2.2rem */
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
  letter-spacing: -1px;
}

.ud-content p {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.btn-ud {
  background: var(--grad-neon);
  color: #fff;
  padding: 1.2rem 3.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.3);
  transition: var(--transition);
  pointer-events: auto;
}

.btn-ud:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 45px rgba(var(--primary-rgb), 0.5);
}

/* SMART MENU - FLOW ARCHITECTURE */
.smart-overlay {
  display: none;
  position: relative; 
  width: 100%;
  z-index: 10;
  animation: hudFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.smart-card {
  width: 100%;
  max-width: none;
  padding: 0;
  text-align: left;
}

.smart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.smart-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main); /* Adaptive color */
  letter-spacing: 1px;
  text-transform: uppercase;
}

[data-theme="dark"] .smart-header h3 {
  color: #fff;
  text-shadow: 0 0 10px rgba(var(--secondary-rgb), 0.3);
}

.smart-header h3 span {
  color: var(--secondary);
  font-weight: 700;
}

.btn-close {
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
}

.btn-close:hover {
  background: var(--primary);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 25px var(--primary);
}

.smart-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  font-weight: 500;
  opacity: 0.8;
}

.smart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 1.5rem;
  max-height: none;
  overflow: visible;
}

.smart-action-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding: 1.6rem;
  background: var(--surface-light); /* Use surface-light for distinct layering */
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  cursor: pointer;
  transition: var(--transition);
  min-height: 95px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

[data-theme="light"] .smart-action-btn {
  background: #FFFFFF;
  border-color: rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] .smart-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.smart-action-btn:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.15);
}

.sa-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(var(--secondary-rgb), 0.3));
}

.sa-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  justify-content: center;
}

.sa-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.sa-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

[data-theme="dark"] .sa-desc {
  color: rgba(255, 255, 255, 0.4);
}

@keyframes hudFadeIn { 
  from { opacity: 0; transform: translateY(20px) scale(0.95); filter: blur(10px); } 
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } 
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Instant Badge for Smart Menu */
.instant-badge {
  background: var(--grad-neon);
  color: white !important;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
  animation: pulse-badge 2s infinite;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  line-height: 1;
}

@keyframes pulse-badge {
  0% { opacity: 0.8; transform: scale(1); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3); }
  50% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5); }
  100% { opacity: 0.8; transform: scale(1); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3); }
}

/* ==========================================================================
   MOBILE RESPONSIVE — Complete overhaul for screens ≤ 768px
   ========================================================================== */
@media (max-width: 768px) {

  /* --- Header: constrain width, hide nav links, keep logo + theme toggle --- */
  .desktop-nav .nav-group { display: none; }
  .nav-separator { display: none; }

  /* Must beat .main-header .container specificity (0,1,1) */
  .main-header .container.header-content,
  .main-header .header-content {
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Shrink logo so it doesn't eat all the header space */
  .brand-logo-svg { height: 36px; }

  /* Keep theme toggle always visible at the right edge */
  .desktop-nav {
    flex-shrink: 0;
  }
  .nav-actions {
    display: flex !important;
  }

  /* --- Hero: scale down title and tighten spacing --- */
  .neon-title {
    font-size: 2.2rem !important;
    letter-spacing: -1px;
    margin-bottom: 0.6rem;
  }

  /* --- Tagline: allow wrapping on mobile, remove nowrap --- */
  .tagline {
    white-space: normal !important;
    font-size: 0.85rem;
    max-width: 90vw;
    margin: 0.75rem auto 1.5rem;
    line-height: 1.5;
  }

  /* --- Hero section: reduce top/bottom padding --- */
  .hero-section {
    padding: 0.75rem 0.5rem 0.5rem;
    margin-top: 0.5rem;
  }

  /* --- Trust badges: stack tighter --- */
  .trust-badges {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }
  .trust-pill {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
  }

  /* --- Universal dropzone: mobile-friendly proportions --- */
  .universal-dropzone {
    padding: 2rem 1.5rem;
    min-height: 220px;
    border-radius: 24px;
  }
  .ud-icon { font-size: 3rem; margin-bottom: 1rem; }
  .ud-content h2 { font-size: 1.3rem; }
  .ud-content p { font-size: 0.9rem; margin-bottom: 1.5rem; }
  .btn-ud { padding: 0.9rem 2rem; font-size: 0.9rem; }

  /* --- Category tabs: smaller, scroll horizontally if needed --- */
  .tab-container {
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    padding-left: 0.25rem;
  }
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* --- Search bar --- */
  .search-container input {
    font-size: 0.95rem;
    padding: 0.9rem 1.25rem;
  }

  /* --- Tool grid: 2 columns on mobile --- */
  .tool-grid.dense-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem;
    padding: 1rem 0 4rem;
  }
  .tool-card {
    padding: 0.9rem 0.75rem;
    border-radius: 16px;
    gap: 0.5rem;
  }
  .tool-card .card-icon { font-size: 1.6rem; }
  .tool-card h3 { font-size: 0.85rem; }
  .tool-card p { font-size: 0.72rem; }

  /* --- Footer: single column --- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand p { margin: 0 auto; }
  .social-links { justify-content: center; }
  .main-footer { margin-top: 4rem; padding: 3rem 0 2rem; }

  /* --- View padding: account for fixed header --- */
  .view { padding-top: 80px; }
}


/* Camera Studio Styles */
.camera-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.camera-container {
  width: 90%;
  max-width: 800px;
  background: var(--surface);
  border-radius: 30px;
  border: 1px solid var(--primary);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.3);
}

.camera-feed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.camera-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror effect */
}

.camera-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, transparent 40%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.camera-controls {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--surface-light);
}

.capture-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.capture-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--primary);
}

.capture-btn:active {
  transform: scale(0.9);
}

.camera-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  z-index: 100;
  font-weight: bold;
  border: 1px solid rgba(255,255,255,0.1);
}

.camera-close:hover {
  background: #E62429;
}

/* Premium Marketing Sections */
.stats-strip {
  margin: 4rem 0;
  padding: 3rem 0;
  background: var(--surface-light);
  border-radius: 40px;
  border: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding: 0 2rem;
}

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

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-red {
  background: rgba(190, 18, 60, 0.1);
  color: #BE123C;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text-main);
}

.workflow-section {
  margin: 8rem 0;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
}

.workflow-step {
  text-align: center;
  position: relative;
}

.step-icon-wrapper {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.3);
}

.workflow-step h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.workflow-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-section {
  margin: 8rem 0 4rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.reason-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 40px;
  transition: var(--transition);
}

.reason-card:hover {
  border-color: var(--primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-neon);
}

.reason-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.reason-card h5 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.reason-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

