/* ============================================================
   NEXAURA TOOLS — MAIN STYLESHEET (Part 1)
   Neo-Brutalist Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Bebas+Neue&display=swap');

/* ---- DESIGN TOKENS ---- */
:root {
  --yellow: #00f59b;
  --black: #0D0D0D;
  --white: #FAFAFA;
  --gray-900: #111111;
  --gray-800: #1A1A1A;
  --gray-700: #252525;
  --gray-600: #333333;
  --gray-400: #888888;
  --gray-200: #D4D4D4;
  --blue: #3B82F6;
  --red: #EF4444;
  --green: #22C55E;
  --purple: #8B5CF6;
  --amber: #F59E0B;

  --bg: var(--gray-900);
  --bg-card: var(--gray-800);
  --bg-input: var(--gray-700);
  --text: var(--white);
  --text-muted: #888888;
  --border: #2A2A2A;

  --font-body: 'Space Grotesk', sans-serif;
  --font-hero: 'Bebas Neue', sans-serif;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  --nav-h: 72px;
  --shadow: 4px 4px 0px rgba(0, 0, 0, 1);
  --shadow-lg: 8px 8px 0px rgba(0, 0, 0, 1);

  --transition: 0.18s ease;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-card: #FFFFFF;
  --bg-input: #FFFFFF;
  --text: #0D0D0D;
  --text-muted: #555555;
  --border: #A0A0A0;
  /* Darker border for better visibility */
  --shadow: 6px 6px 0px rgba(0, 0, 0, 0.08);
  --shadow-lg: 10px 10px 0px rgba(0, 0, 0, 0.1);
  --yellow: #00f59b;
}

/* ---- RESET ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- CUSTOM SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 20px;
  border: 3px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--yellow);
  background-clip: content-box;
}


html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.1;
  font-weight: 700;
}

.hero-headline {
  font-family: var(--font-hero);
  font-size: clamp(42px, 7vw, 90px);
  line-height: 0.95;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-hero);
  font-size: clamp(24px, 3.5vw, 40px);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

/* ---- NAVIGATION ---- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--black);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-nx {
  font-family: var(--font-hero);
  font-size: 20px;
  color: var(--yellow);
  letter-spacing: 1px;
}

/* ---- LOGO IMAGES ---- */
.nav-logo-img {
  display: block;
  width: 160px;
  height: 36px;
  object-fit: contain;
  object-position: left center;
  /* Ensure logo looks good on both themes */
  filter: none;
  transition: opacity var(--transition);
}

.nav-logo-img:hover {
  opacity: 0.85;
}

[data-theme="light"] .nav-logo-img {
  /* If your logo is light/white, invert it for light mode */
  /* filter: invert(1); */
  /* Remove or adjust if your logo already works on light backgrounds */
}

.footer-logo-img {
  display: block;
  width: 140px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.9;
}

.footer-logo-img:hover {
  opacity: 1;
}

.hero {
  padding-top: calc(var(--nav-h) + 1px);
  padding-bottom: 80px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--black);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border: 1.5px solid var(--black);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
}

.hero-headline {
  color: var(--text);
  font-family: var(--font-hero);
  font-size: clamp(64px, 8vw, 110px);
  line-height: 0.85;
}

.hero-headline .highlight {
  background: var(--black);
  color: var(--yellow);
  padding: 4px 16px;
  display: inline-block;
  margin-top: 8px;
}

[data-theme="light"] .hero-headline .highlight {
  background: var(--black);
  color: var(--yellow);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-top: 24px;
  max-width: 480px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid var(--black);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 4px 4px 0 var(--yellow);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 #000;
}

[data-theme="light"] .btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid var(--text);
  transition: all 0.2s ease;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 4px 4px 0 var(--border);
}

.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-2px);
}

.hero-info-badge {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  opacity: 0.9;
}

.hero-info-badge span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-info-badge svg {
  flex-shrink: 0;
}


.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gray-400);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-mobile-only {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.theme-toggle:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

[data-theme="light"] .icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: block;
}

.nav-login {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gray-400);
  padding: 8px 16px;
  transition: color var(--transition);
}

.nav-login:hover {
  color: var(--white);
}

.btn-join-pro {
  background: var(--white);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-join-pro:hover {
  background: var(--yellow);
}

/* User menu */
.nav-user-menu {
  position: relative;
}

.nav-user-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
}

.user-initials {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

.user-avatar-sm {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 200px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.user-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius);
  color: var(--gray-200);
  transition: background var(--transition);
}

.user-dropdown a:hover {
  background: var(--gray-800);
  color: var(--white);
}

.dropdown-header {
  padding: 8px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.admin-link {
  color: var(--yellow) !important;
}

.logout-link {
  color: var(--red) !important;
}

.plan-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
}

.plan-badge.plan-pro {
  background: var(--yellow);
  color: var(--black);
}

.plan-badge.plan-free {
  background: var(--gray-700);
  color: var(--gray-400);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* ---- FLASH / TOAST ---- */
.flash-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  min-width: 240px;
  max-width: 360px;
  border-left: 4px solid;
  animation: slideIn 0.3s ease, fadeOut 0.4s ease 3.6s forwards;
  box-shadow: var(--shadow);
}

.toast-success {
  background: #0d2b17;
  border-color: var(--green);
  color: var(--green);
}

.toast-error {
  background: #2b0d0d;
  border-color: var(--red);
  color: var(--red);
}

.toast-info {
  background: #0d1a2b;
  border-color: var(--blue);
  color: var(--blue);
}

.toast-warning {
  background: #2b1f0d;
  border-color: var(--amber);
  color: var(--amber);
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ---- HERO SECTION ---- */
.hero {
  padding-top: calc(var(--nav-h) + 1px);
  padding-bottom: 80px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow);
  color: var(--black);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
}

.hero-headline {
  color: var(--text);
}

.hero-headline .accent {
  color: var(--yellow);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 20px;
  max-width: 440px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--black);
  transition: all var(--transition);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

[data-theme="light"] .btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--text);
  transition: all var(--transition);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 4px 4px 0 var(--border);
}

.btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-mockup {
  background: var(--gray-800);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.hero-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.05) 0%, transparent 60%);
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.mockup-card {
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hero);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.mockup-card.yellow {
  background: var(--yellow);
  color: var(--black);
}

.mockup-card.blue {
  background: var(--blue);
}

.mockup-card.red {
  background: var(--red);
}

.mockup-card.dark {
  background: var(--gray-700);
}

.mockup-card .mc-icon {
  font-size: 32px;
  opacity: 0.9;
}

/* Trusted By */
.trusted-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg);
}

.trusted-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.trusted-logos {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.trusted-logo-item {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trusted-logo-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.trusted-logo-item.c1::before {
  background: var(--yellow);
}

.trusted-logo-item.c2::before {
  background: var(--blue);
}

.trusted-logo-item.c3::before {
  background: var(--gray-400);
}

.trusted-logo-item.c4::before {
  background: none;
  border: 1px solid var(--gray-600);
}

/* ---- CORE TOOLSET SECTION ---- */
.toolset-section {
  padding: 80px 0;
  background: var(--bg);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header .view-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color var(--transition);
}

.section-header .view-all:hover {
  color: var(--yellow);
}

/* Tool Grid */
/* Tool Grid — Mobile First */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* Tool Card — Neo-Brutalist */
.tool-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.tool-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.tool-card-header {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.tool-card-header .card-num {
  position: absolute;
  bottom: -8px;
  right: 12px;
  font-family: var(--font-hero);
  font-size: 72px;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
}

.tool-card-header .card-icon-wrap {
  font-size: 40px;
  z-index: 1;
}

.tool-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-card-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
}

.tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

.tier-free {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tier-signup {
  background: rgba(59, 130, 246, 0.15);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.tier-pro {
  background: rgba(245, 197, 24, 0.15);
  color: var(--yellow);
  border: 1px solid rgba(245, 197, 24, 0.3);
}

.btn-launch {
  margin-top: auto;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-transform: uppercase;
  transition: all var(--transition);
  border: 2px solid var(--border);
  text-align: center;
}

.btn-launch:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

[data-theme="light"] .btn-launch {
  background: var(--black);
  color: var(--white);
}

[data-theme="light"] .btn-launch:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ---- WORKFLOW PROTOCOL SECTION ---- */
.workflow-section {
  padding: 80px 0;
  background: var(--black);
  color: var(--white);
}

[data-theme="light"] .workflow-section {
  background: #111;
}

.workflow-title {
  font-family: var(--font-hero);
  font-size: clamp(36px, 5vw, 64px);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 60px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.workflow-step {
  text-align: center;
}

.workflow-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.wi-yellow {
  background: var(--yellow);
}

.wi-blue {
  background: var(--blue);
}

.wi-red {
  background: var(--red);
}

.workflow-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--yellow);
  display: block;
  margin-bottom: 8px;
}

.workflow-name {
  font-family: var(--font-hero);
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.workflow-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.6;
}

/* Duplicate block removed */
.velocity-corner {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--yellow);
  padding: 80px 24px;
  text-align: center;
}

.cta-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: var(--black);
}

.cta-title {
  font-family: var(--font-hero);
  font-size: clamp(40px, 7vw, 90px);
  line-height: 0.95;
  color: var(--black);
}

.cta-title em {
  font-style: italic;
}

.cta-sub {
  font-size: 15px;
  color: rgba(0, 0, 0, 0.65);
  margin: 16px 0 32px;
}

.btn-cta-main {
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 16px 40px;
  border-radius: var(--radius);
  display: inline-block;
  transition: all var(--transition);
  text-transform: uppercase;
  border: 2px solid var(--black);
}

.btn-cta-main:hover {
  background: var(--gray-800);
  box-shadow: var(--shadow);
  transform: translate(-2px, -2px);
}

/* ---- FOOTER ---- */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--gray-800);
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gray-200);
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.footer-nav-col h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gray-200);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.footer-nav-col a {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  transition: all var(--transition);
  text-decoration: none;
}

.footer-nav-col a:hover {
  color: var(--yellow);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-800);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  text-transform: uppercase;
}

.footer-bottom-meta {
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 48px;
    margin-bottom: 48px;
  }

  .footer-nav {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ---- TOOLS PAGE ---- */
.tools-page {
  padding-top: calc(var(--nav-h) + 40px);
  min-height: 100vh;
}

.tools-page-header {
  padding: 40px 0 32px;
}

.tools-page-title {
  font-family: var(--font-hero);
  font-size: 48px;
  letter-spacing: 1px;
}

.search-bar {
  position: relative;
  margin: 24px 0;
}

.search-bar input {
  width: 100%;
  padding: 14px 48px 14px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--transition);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--yellow);
}

.search-bar .search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pill {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid var(--text);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
}

.pill:hover,
.pill.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.tools-grid-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .tools-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .tools-grid-page {
    gap: 32px;
  }
}

/* Tool Card (list page variant) */
.tool-card-list {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.tool-card-list:hover {
  border-color: var(--yellow);
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow);
}

.tcl-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 36px;
}

.tcl-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcl-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tcl-desc {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

.tcl-footer {
  padding: 12px 16px;
  border-top: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  transition: all var(--transition);
  border: 2px solid var(--border);
  text-transform: uppercase;
}

.btn-small:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
  box-shadow: 2px 2px 0 #000;
  transform: translate(-1px, -1px);
}

/* Skeleton loaders */
.skeleton {
  background: linear-gradient(90deg, var(--gray-800) 25%, var(--gray-700) 50%, var(--gray-800) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 240px;
  border-radius: var(--radius-lg);
}

/* ---- TOOL WORKSPACE ---- */
.workspace-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  /* NOTE: Do NOT add display:flex here — it breaks the footer full-width stretch */
}

/* Native tool files — fill the remaining viewport height using simple block layout */
.native-tool-wrapper {
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--nav-h) - 60px);
  /* 60px ≈ workspace-topbar height; ensures footer is pushed to the bottom */
}

/* Ensure footer is always full width on tool pages */
.workspace-page .site-footer {
  width: 100%;
}


.workspace-topbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-card);
}

.workspace-tool-name {
  font-family: var(--font-hero);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text);
}

.workspace-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.workspace-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  flex: 1;
  min-height: 600px;
}

.workspace-inputs {
  border-right: 1px solid var(--border);
  padding: 24px;
  overflow-y: auto;
  background: var(--bg-card);
}

.workspace-preview {
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.input-group input[type="color"] {
  height: 42px;
  padding: 2px;
}

.input-group input[type="range"] {
  padding: 0;
  background: transparent;
  border: none;
  -webkit-appearance: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--yellow);
  border-radius: 50%;
  cursor: pointer;
}

.input-group input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}

/* Tier gate overlay */
.tier-gate {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.tier-gate-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  max-width: 360px;
}

.tier-gate-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.tier-gate-title {
  font-family: var(--font-hero);
  font-size: 28px;
  margin-bottom: 8px;
}

.tier-gate-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---- AUTH PAGES ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: var(--bg);
}

.auth-card {
  background: var(--bg-card);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-logo-center {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-family: var(--font-hero);
  font-size: 36px;
  text-align: center;
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.btn-google {
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  transition: all var(--transition);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: all var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 6px 6px 0 rgba(0, 245, 155, 0.1);
}

.btn-auth-submit {
  width: 100%;
  padding: 16px;
  background: var(--yellow);
  color: var(--black);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: var(--radius);
  text-transform: uppercase;
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 var(--black);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-auth-submit:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}

/* ── Auth Switch / Registration Callout ── */
.auth-switch {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-switch a {
  background: var(--yellow);
  color: var(--black) !important;
  border: 2px solid var(--black);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--black);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.auth-switch a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
  background: var(--yellow) !important;
  color: var(--black) !important;
}

.auth-switch a:active {
  transform: translate(0, 0);
  box-shadow: 1px 1px 0 var(--black);
}

/* ---- TOOLS DIRECTORY PAGE ---- */
.tools-page {
  padding-top: calc(var(--nav-h) + 60px);
  min-height: 100vh;
  background: var(--bg);
}

.tools-page-header {
  margin-bottom: 24px;
  text-align: center;
}

.tools-page-title {
  font-family: var(--font-hero);
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
  margin-bottom: 16px;
}

.tools-search-container {
  max-width: 600px;
  margin: 0 auto 24px;
  position: relative;
}

.tools-search-input {
  width: 100%;
  padding: 18px 24px 18px 60px;
  background: var(--bg-card);
  border: 2.5px solid var(--border);
  border-radius: 50px;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.tools-search-input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: var(--shadow-lg);
}

.search-icon-fixed {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.pill {
  padding: 8px 24px;
  border-radius: 50px;
  border: 2px solid var(--text);
  background: var(--bg-card);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 3px 3px 0 var(--border);
}

.pill:hover,
.pill.active {
  background: var(--yellow) !important;
  color: var(--black) !important;
  border-color: var(--black) !important;
  box-shadow: 4px 4px 0 var(--black) !important;
}

/* Consolidated into earlier definition */

.tool-card-list {
  background: var(--bg-card);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.tool-card-list:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-lg);
}

.tcl-header {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 2px solid var(--black);
}

.tcl-body {
  padding: 24px;
  flex-grow: 1;
}

.tcl-tier {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
}

.tier-free {
  background: var(--green);
  color: #000;
}

.tier-pro {
  background: var(--yellow);
  color: #000;
}

.tier-signup {
  background: var(--blue);
  color: #fff;
}

.tcl-name {
  font-family: var(--font-hero);
  font-size: 24px;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: var(--text);
}

.tcl-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tcl-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.tcl-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.btn-launch-tcl {
  font-size: 11px;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: 1px;
  transition: all var(--transition);
}

.btn-launch-tcl:hover {
  color: var(--white);
  transform: translateX(4px);
}

[data-theme="light"] .btn-launch-tcl:hover {
  color: var(--black);
}

/* ---- PRICING PAGE ---- */
.pricing-page {
  padding-top: calc(var(--nav-h) + 24px);
  min-height: 100vh;
}

.pricing-page .tools-page-header {
  margin-bottom: 24px !important;
}

.pricing-title {
  font-family: var(--font-hero);
  font-size: clamp(40px, 6vw, 72px);
  text-align: center;
  margin-bottom: 12px;
}

.pricing-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 48px;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch.on {
  background: var(--yellow);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--transition);
}

.toggle-switch.on::after {
  transform: translateX(24px);
  background: var(--black);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  color: var(--black);
  border: 4px solid var(--black);
  border-radius: 20px;
  padding: 24px 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 6px 6px 0px var(--black);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--black);
}

.pricing-card.featured {
  background: var(--white);
  border-color: var(--black);
}

/* Dark mode card borders matching the button backgrounds */
:root:not([data-theme="light"]) .pricing-card:has(.btn-pricing-white) {
  border-color: var(--white);
}

:root:not([data-theme="light"]) .pricing-card:has(.btn-pricing-green) {
  border-color: var(--green);
}

.featured-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 30px;
  border: 2px solid var(--black);
  white-space: nowrap;
  box-shadow: 4px 4px 0px var(--black);
}

.plan-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.plan-price {
  font-family: var(--font-hero);
  font-size: 44px;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.plan-price span {
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
}

.plan-cycle {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  gap: 8px;
  align-items: center;
}

.plan-features li i {
  font-style: normal;
  font-weight: 800;
}

.plan-features li.enabled i {
  color: var(--green);
}

.plan-features li.disabled {
  color: #aaa;
}

.plan-features li.disabled i {
  color: #aaa;
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border: 3px solid var(--black);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  box-shadow: 4px 4px 0px var(--black);
}

.btn-pricing:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--black);
}

.btn-pricing-white {
  background: var(--white);
  color: var(--black);
}

.btn-pricing-green {
  background: var(--green);
  color: var(--black);
}

.btn-pricing-black {
  background: var(--black);
  color: var(--white);
}

/* ---- DASHBOARD ---- */
.dashboard-page {
  padding-top: calc(var(--nav-h) + 40px);
  min-height: 100vh;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}

.dashboard-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-user {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  margin: 0 auto 12px;
}

.sidebar-name {
  font-weight: 700;
  font-size: 15px;
}

.sidebar-plan {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.sidebar-nav {
  padding: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--bg-input);
  color: var(--text);
}

.sidebar-link.active {
  color: var(--yellow);
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-hero);
  font-size: 36px;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- AD SLOTS ---- */
/* Restored original definition — the 60px top padding provides
   breathing room between content sections and ad banners site-wide. */
.ad-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 24px;
}

.ad-header-wrapper {
  padding-top: calc(var(--nav-h) + 24px);
}

.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
}


/* ---- MODALS ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  transform: scale(0.95);
  transition: transform var(--transition);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-title {
  font-family: var(--font-hero);
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}


/* Relocated to end of file */


/* Trusted By Marquee */
.trusted-strip {
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.trusted-label-center {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
  font-weight: 800;
}

.marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.marquee-content {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.trusted-logo-item {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.dot-studio {
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 6px;
}

.icon-vfx::before {
  content: '🎬';
  font-size: 18px;
}

.icon-sonic::before {
  content: '🔊';
  font-size: 18px;
}

.icon-lens {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--text-muted);
  border-radius: 2px;
}

/* ---- VELOCITY SECTION ---- */
.velocity-section {
  padding: 100px 0;
  background: var(--bg);
}

.velocity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "header visual"
    "desc visual"
    "points visual";
  gap: 0 80px;
  align-items: center;
}

.velocity-header {
  grid-area: header;
}

.velocity-desc {
  grid-area: desc;
}

.velocity-points {
  grid-area: points;
}

.velocity-visual-wrapper {
  grid-area: visual;
}

.velocity-header {
  margin-bottom: 24px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.velocity-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.velocity-visual-wrapper {
  width: 100%;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }

  50% {
    transform: rotate(-1.5deg) translateY(-10px);
  }
}

.velocity-visual-frame {
  background: var(--bg-card);
  border: 2px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: float 6s ease-in-out infinite;
}

.velocity-visual-frame:hover {
  transform: translateY(-8px) rotate(-1deg) scale(1.02);
  box-shadow: 20px 20px 0 var(--black);
  border-color: var(--yellow);
}

.velocity-title {
  font-family: var(--font-hero);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.9;
  text-transform: uppercase;
}

.velocity-title .highlight {
  background: var(--black);
  color: var(--white);
  padding: 4px 12px;
  display: inline-block;
}

.velocity-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.velocity-points {
  display: flex;
  flex-direction: column;
}

.velocity-point {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.velocity-point:nth-child(1) {
  animation-delay: 0.6s;
}

.velocity-point:nth-child(2) {
  animation-delay: 0.7s;
}

.velocity-point:nth-child(3) {
  animation-delay: 0.8s;
}

.velocity-point:last-child {
  border-bottom: 1px solid var(--border);
}

.velocity-point svg {
  flex-shrink: 0;
}

.velocity-visual-frame {
  background: var(--bg-card);
  border: 2px solid var(--gray-700);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.visual-content {
  background: var(--black);
  border: 2px solid var(--gray-700);
  aspect-ratio: 16/9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-center {
  width: 56px;
  height: 56px;
  background: var(--yellow);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  border: 2px solid #000;
}

.play-btn-center:hover {
  transform: scale(1.1);
}

.corner-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 2px solid #000;
  border-radius: 2px;
}

.top-left {
  top: -6px;
  left: -6px;
}

.bottom-right {
  bottom: -6px;
  right: -6px;
  background: var(--red);
}

/* ---- CTA SECTION BRIGHT ---- */
.cta-section-bright {
  background: var(--yellow);
  padding: 120px 24px;
  text-align: center;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.cta-badge-outline {
  display: inline-block;
  border: 2px solid rgba(0, 0, 0, 0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 12px;
  margin-bottom: 24px;
  color: var(--black);
  text-transform: uppercase;
}

.cta-title-bold {
  font-family: var(--font-hero);
  font-size: clamp(48px, 8vw, 100px);
  line-height: 0.9;
  color: var(--black);
  text-transform: uppercase;
}

.outline-italic {
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
  font-style: italic;
}

.cta-sub-centered {
  font-size: 16px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  margin: 24px 0 40px;
}

.btn-cta-card {
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 18px 48px;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s ease;
  text-transform: uppercase;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.btn-cta-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  background: #1a1a1a;
}

/* ---- TOOL WORKSPACE ---- */
/* Removed duplicate workspace-page block */

/* Removed duplicate topbar block */

/* Removed duplicate block */

/* ---- USE CASES SECTION ---- */
.use-cases-section {
  padding: 80px 0;
  background: var(--bg);
  border-top: 2px solid var(--black);
}

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

.use-cases-title {
  font-family: var(--font-hero);
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}

.use-cases-sub {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1000px;
  margin: 48px auto 0;
  gap: 32px;
}

.use-case-card {
  background: var(--bg-card);
  border: 2px solid var(--black);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--black);
  display: flex;
  flex-direction: column;
}

.use-case-visual {
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  border-bottom: 2px solid var(--black);
}

.use-case-content {
  padding: 24px;
}

.use-case-title {
  font-family: var(--font-hero);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--text);
}

.use-case-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.video-embed-container {
  width: 100%;
  height: 100%;
}

.video-embed-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- ADMIN PANEL ---- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #161616;
  /* lifted from #080808 */
}

.admin-sidebar {
  width: 260px;
  background: #0e0e0e;
  /* lifted from #000 */
  border-right: 2px solid #2a2a2a;
  padding: 32px 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 48px;
  background: #161616;
}

.admin-nav-group {
  margin-bottom: 32px;
}

.admin-nav-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0 12px;
}

.admin-nav-link {
  display: block;
  padding: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: #202020;
  color: var(--yellow);
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #1e1e1e;
  border: 2px solid #2a2a2a;
  box-shadow: 6px 6px 0 #111;
}

.admin-table th {
  background: #141414;
  color: #e0e0e0;
  text-align: left;
  padding: 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 16px;
  border-top: 1px solid #2a2a2a;
  color: #d0d0d0;
  font-size: 14px;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.admin-form-container {
  background: #1e1e1e;
  border: 2px solid #2a2a2a;
  padding: 40px;
  box-shadow: 8px 8px 0 #111;
  max-width: 1000px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2.5px solid #000;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 4px 4px 0 #000;
  white-space: nowrap;
}

.admin-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #000;
}

.admin-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000;
}

/* Primary — Yellow (main action) */
.admin-btn-primary {
  background: var(--yellow, #F5C518);
  color: #000;
  border-color: #000;
}

.admin-btn-primary:hover {
  background: #ffd83d;
  color: #000;
}

/* Secondary — Dark with white text */
.admin-btn-secondary {
  background: #1a1a1a;
  color: #fff;
  border-color: #444;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.admin-btn-secondary:hover {
  background: #2a2a2a;
  color: #fff;
  border-color: #666;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

/* Danger — Red */
.admin-btn-danger {
  background: #ef4444;
  color: #fff;
  border-color: #000;
}

.admin-btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

/* Small variant */
.admin-btn-sm {
  padding: 8px 16px;
  font-size: 11px;
  box-shadow: 3px 3px 0 #000;
}

.admin-btn-sm:hover {
  box-shadow: 5px 5px 0 #000;
}


/* ---- RESPONSIVE (END OF FILE FOR CORRECT OVERRIDES) ---- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .velocity-grid {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0;
  }

  .velocity-header {
    order: 1;
  }

  .velocity-desc {
    order: 2;
    margin-bottom: 32px;
  }

  .velocity-visual-wrapper {
    order: 3;
    margin: 0 0 40px 0;
    width: 100%;
  }

  .velocity-points {
    order: 4;
  }

  .velocity-visual-frame {
    transform: rotate(-2deg);
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .velocity-desc p {
    font-size: 15px;
  }

  .velocity-video {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--black);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 48px 0;
  }

  .workspace-topbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 24px 20px;
    gap: 20px;
  }

  .workspace-info {
    flex-direction: column;
    gap: 12px !important;
    align-items: center !important;
  }

  .workspace-tool-name {
    font-size: 20px;
    margin: 4px 0;
  }

  .workspace-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .workspace-actions button,
  .workspace-actions a {
    width: 100%;
    justify-content: center;
    padding: 14px;
    box-shadow: 4px 4px 0 var(--black);
  }

  .workspace-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    overflow: visible;
  }

  .workspace-inputs {
    border-right: none;
    border-bottom: 2px solid var(--black);
    max-height: none;
    padding: 24px 20px;
  }

  .workspace-preview {
    padding: 20px;
    min-height: 350px;
    background: #000;
  }

  .preview-iframe-frame {
    box-shadow: 10px 10px 0 var(--black);
    max-height: 300px;
  }

  .nav-login {
    display: none;
  }

  .nav-actions .btn-join-pro {
    display: none;
  }

  .nav-mobile-pro {
    background: var(--yellow) !important;
    color: var(--black) !important;
    border-radius: 6px;
    padding: 14px !important;
    text-align: center;
    font-weight: 800 !important;
    margin-top: 16px !important;
    border-top: none !important;
    letter-spacing: 2px;
  }

  .nav-actions {
    margin-left: auto;
    gap: 12px;
  }

  .nav-mobile-only {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
  }

  .nav-actions {
    gap: 8px;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }

  /* Global fixes for mobile overflow */
  body,
  .container {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .workspace-page {
    height: auto !important;
    overflow: visible !important;
  }

  .section-header.centered {
    margin-bottom: 40px;
  }

  .use-cases-title {
    font-size: 32px;
  }

  .use-cases-sub {
    font-size: 15px;
    max-width: 100%;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }
}

/* ---- AD SLOTS (display/flex definition) ---- */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  /* padding inherited from first definition: 60px 24px 24px */
  overflow: hidden;
  transition: all 0.3s ease;
}

/* TOOL PAGE ONLY: reduce top padding on footer ad so there is no
   large blank gap between the workspace and the footer.
   All other pages keep the full 60px from the first definition. */
.workspace-page .ad-footer {
  padding-top: 16px;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: rgba(0, 245, 155, 0.05);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 auto;
}

.ad-header-wrapper {
  padding: 40px 0 20px 0;
}

.ad-sidebar-wrapper .ad-placeholder {
  max-width: 300px;
  min-height: 250px;
}

/* ---- AD VISIBILITY ---- */
.ad-desktop-only,
.ad-mobile-only,
.ad-tablet-only {
  display: none !important;
}

@media (min-width: 1025px) {
  .ad-desktop-only {
    display: flex !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ad-tablet-only {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .ad-mobile-only {
    display: flex !important;
  }
}

/* ---- PREMIUM VIDEO PLAYER ---- */
.custom-video-player {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-overlay-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.custom-video-player:hover .video-overlay-ui {
  opacity: 1;
}

.video-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.video-status-badge {
  background: var(--yellow);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.video-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-family: monospace;
}

.center-play-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-play-trigger:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--yellow);
  color: #000;
}

.video-bottom-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #222;
  border-radius: 8px;
  padding: 12px 20px;
  backdrop-filter: blur(8px);
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vid-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 10px;
}

.vid-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--yellow);
}

.time-display {
  color: #fff;
  font-size: 12px;
  font-family: monospace;
  min-width: 45px;
}

.progress-scrub {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.progress-bg {
  width: 100%;
  height: 100%;
}

.progress-current {
  height: 100%;
  background: var(--yellow);
  width: 0%;
  transition: width 0.1s linear;
}

#ratioBtn {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 4px 8px;
}

/* Pause state UI */
.custom-video-player.paused .video-overlay-ui {
  opacity: 1;
}

.custom-video-player.paused .center-play-trigger {
  opacity: 1;
}

/* Hide native controls */
video::-webkit-media-controls {
  display: none !important;
}

/* ============================================================
   NATIVE TOOLS — Shared Styles
   ============================================================ */
.native-tool-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.nt-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.nt-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  z-index: 10;
}

@media(max-width:900px) {
  .nt-layout {
    grid-template-columns: 1fr;
  }

  .nt-panel {
    position: relative;
    top: 0 !important;
    margin-bottom: 24px;
  }

  .nt-preview {
    min-height: auto;
  }
}

.nt-panel-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nt-panel-title::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.nt-preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 500px;
  position: relative;
}

.nt-preview-inner {
  padding: 32px;
}

.nt-group {
  margin-bottom: 18px;
}

.nt-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.nt-input,
.nt-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color .2s;
}

.nt-input:focus,
.nt-select:focus {
  outline: none;
  border-color: var(--yellow);
}

.nt-range {
  width: 100%;
  accent-color: var(--yellow);
  margin-top: 4px;
}

.nt-color {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  padding: 2px;
}

.nt-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
  border: none;
  margin-bottom: 10px;
}

.nt-btn-primary {
  background: var(--yellow);
  color: var(--black);
}

.nt-btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.nt-btn-secondary {
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
}

.nt-btn-secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.nt-btn-dl {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--border);
}

.nt-btn-dl:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

.nt-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.nt-upload-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--bg);
}

.nt-upload-zone:hover,
.nt-upload-zone.drag-over {
  border-color: var(--yellow);
  background: rgba(0, 245, 155, .04);
}

.nt-upload-zone input {
  display: none;
}

.nt-code-box {
  background: #000;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 12px;
  color: #2ed573;
  word-break: break-all;
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
}

.nt-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.nt-swatch {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .2s;
  cursor: pointer;
}

.nt-swatch:hover {
  transform: translateY(-3px);
}

.nt-swatch-color {
  height: 80px;
  width: 100%;
}

.nt-swatch-info {
  padding: 10px;
  background: var(--bg-card);
}

.nt-swatch-hex {
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 2px;
}

.nt-swatch-copy {
  font-size: 10px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
}

.nt-swatch-copy:hover {
  color: var(--yellow);
}

.nt-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nt-badge-pass {
  background: rgba(34, 197, 94, .15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .3);
}

.nt-badge-fail {
  background: rgba(239, 68, 68, .15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, .3);
}

.nt-badge-warn {
  background: rgba(245, 158, 11, .15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, .3);
}

.nt-tool-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nt-tool-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

/* ============================================================
   PREMIUM NEXAURA 4-IN-A-ROW COMPACT GRID & SIZING OVERRIDES
   ============================================================ */

/* Force 4-in-a-row grid on screens 1024px and wider */
@media (min-width: 1024px) {

  .tools-grid,
  .tools-grid-page {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 24px 0 !important;
  }
}

/* Compact Tool Card Sizing */
.tool-card {
  min-height: 270px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  /* Hide shadow by default as requested! */
}

.tool-card:hover {
  transform: translate(-4px, -4px) !important;
  box-shadow: var(--shadow-lg) !important;
  /* Reveal the beautiful classic shadow only on hover! */
}

/* Make card header banner smaller and more compact */
.tool-card-header {
  height: 100px !important;
  /* Decreased from 140px to make it beautifully compact! */
}

.tool-card-header .card-icon-wrap {
  font-size: 32px !important;
  /* Decreased from 40px */
}

.tool-card-header .card-num {
  font-size: 54px !important;
  /* Decreased from 72px */
  bottom: -6px !important;
  right: 8px !important;
}

/* Make card body padding and spacing more compact */
.tool-card-body {
  padding: 14px !important;
  /* Decreased from 20px */
  gap: 6px !important;
}

.tool-card-name {
  font-size: 12.5px !important;
  /* Highly readable but compact */
  font-weight: 800 !important;
}

.tool-card-desc {
  font-size: 12px !important;
  /* Decreased from 13px */
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 34px !important;
  margin-bottom: 4px !important;
}

.btn-launch {
  padding: 8px 12px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  margin-top: auto !important;
}

/* ---- FOOTER LAYOUT ---- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-brand {
  min-width: 160px;
}

.footer-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 12px;
}

.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 110px;
}

.footer-nav-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-nav-col a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.15s;
}

.footer-nav-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 20px 0;
}

.footer-copy {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-bottom-meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--yellow);
  text-transform: uppercase;
}

/* ── Compliance bar ── */
.footer-compliance {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  overflow: hidden;
}

.footer-compliance span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-compliance span {
    float: none !important;
    display: block;
    font-size: 9px;
  }
}

/* ===== EXPLORE ALL TOOLS BUTTON (Homepage) ===== */
.btn-explore-all {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 18px 48px 18px 44px;
  border-radius: 6px;
  border: 2px solid var(--yellow);
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 0.28s ease,
    box-shadow 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.28s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Sweep fill layer — slides in from left on hover */
.btn-explore-all::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 4px;
}

/* Shimmer glow layer */
.btn-explore-all::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.25) 50%,
      transparent 70%);
  transform: skewX(-15deg) translateX(-100%);
  transition: transform 0.0s ease;
  z-index: 0;
  pointer-events: none;
}

/* Hover states */
.btn-explore-all:hover::before {
  transform: scaleX(1);
}

.btn-explore-all:hover::after {
  transform: skewX(-15deg) translateX(500%);
  transition: transform 0.6s ease 0.1s;
}

.btn-explore-all:hover {
  color: #000;
  transform: translate(-4px, -4px);
  box-shadow: 7px 7px 0 #000, 0 0 32px rgba(0, 245, 155, 0.2);
}

/* Text + SVG sit above the fill layer */
.btn-explore-all>* {
  position: relative;
  z-index: 1;
}

/* Arrow slides right on hover */
.btn-explore-all svg {
  transition: transform 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
}

.btn-explore-all:hover svg {
  transform: translateX(6px);
}

/* Active press feedback */
.btn-explore-all:active {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
  transition-duration: 0.08s;
}

/* ── Light mode ── */
[data-theme="light"] .btn-explore-all {
  color: #22c55e;
  border-color: #22c55e;
  background: transparent;
}

[data-theme="light"] .btn-explore-all:hover {
  color: #000;
  box-shadow: 7px 7px 0 #000, 0 0 32px rgba(34, 197, 94, 0.15);
}

.help-card:hover {
  border-color: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--yellow);
}

/* FAQ Accordion */
.faq-accordion {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion:hover {
  border-color: var(--yellow);
}

.faq-accordion summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--yellow);
  user-select: none;
}

[data-theme="light"] .faq-accordion summary {
  color: var(--black);
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-accordion[open] summary::after {
  transform: rotate(45deg);
  color: var(--yellow);
}

.faq-accordion[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-accordion-content {
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}