/* ==========================================================================
   NM_Gem_Remove — Official Creative Director Theme (Inspired by Logo & Site)
   Primary Theme: Lime-Emerald (#72c422 / #8ce62b) + Deep Forest Obsidian
   ========================================================================== */

:root {
  --bg-deep: #070d08;
  --bg-surface: #0e190f;
  --bg-card: rgba(18, 32, 20, 0.75);
  --bg-card-hover: rgba(26, 46, 28, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-lime: rgba(138, 230, 43, 0.3);
  --border-lime-hover: rgba(138, 230, 43, 0.7);

  --text-primary: #f4fbf3;
  --text-secondary: #a3c4a6;
  --text-muted: #6b8a6e;

  --lime-bright: #8ce62b;
  --lime-primary: #72c422;
  --lime-dark: #559918;

  --gradient-lime: linear-gradient(135deg, #8ce62b 0%, #72c422 50%, #559918 100%);
  --gradient-lime-hover: linear-gradient(135deg, #9af23a 0%, #7ed62a 50%, #61ac1c 100%);

  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;

  --shadow-lime: 0 10px 30px -8px rgba(114, 196, 34, 0.4);
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.25;
}

.spot-lime {
  top: -15%;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #72c422, transparent);
}

.spot-emerald {
  bottom: -15%;
  right: 15%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #10b981, transparent);
  opacity: 0.15;
}

/* Site Wrapper Layout */
.site-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navbar Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 25, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(114, 196, 34, 0.35);
  object-fit: contain;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.logo-subtitle {
  font-size: 0.72rem;
  color: var(--lime-bright);
  display: block;
  margin-top: -2px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--lime-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.local-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--lime-bright);
  background: rgba(114, 196, 34, 0.12);
  border: 1px solid var(--border-lime);
  padding: 5px 12px;
  border-radius: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-bright);
  box-shadow: 0 0 10px var(--lime-bright);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Language Segmented Control */
.lang-segmented {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.lang-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.lang-tab.active {
  background: rgba(114, 196, 34, 0.2);
  color: var(--lime-bright);
  border: 1px solid rgba(114, 196, 34, 0.4);
}

/* Hero Section */
.hero-section {
  padding: 60px 24px 30px 24px;
  text-align: center;
}

.hero-container {
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lime-bright);
  background: rgba(114, 196, 34, 0.1);
  border: 1px solid var(--border-lime);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.hero-badge svg {
  width: 15px;
  height: 15px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gradient-text {
  background: var(--gradient-lime);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-left: 8px;
}

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

/* Tool Section */
.tool-section {
  padding: 20px 24px 60px 24px;
}

.tool-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Dropzone Box */
.dropzone-box {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 2px dashed var(--border-lime);
  border-radius: var(--radius-xl);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.dropzone-box:hover, .dropzone-box.drag-over {
  border-color: var(--lime-bright);
  background: rgba(114, 196, 34, 0.12);
  box-shadow: var(--shadow-lime);
  transform: translateY(-2px);
}

.file-input-hidden {
  display: none;
}

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-icon-box {
  width: 64px;
  height: 64px;
  background: rgba(114, 196, 34, 0.15);
  border: 1px solid var(--border-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-bright);
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.dropzone-box:hover .upload-icon-box {
  transform: scale(1.1);
  background: var(--lime-primary);
  color: #000;
}

.upload-icon-box svg {
  width: 30px;
  height: 30px;
}

.dropzone-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.dropzone-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* Buttons */
.btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-lime);
  color: #000;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lime);
  transition: all 0.25s ease;
}

.btn-lime svg {
  width: 18px;
  height: 18px;
}

.btn-lime:hover:not(:disabled) {
  background: var(--gradient-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px -8px rgba(138, 230, 43, 0.6);
}

.btn-dark-lime {
  background: rgba(114, 196, 34, 0.18);
  border: 1px solid var(--border-lime);
  color: var(--lime-bright);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-dark-lime svg {
  width: 16px;
  height: 16px;
}

.btn-dark-lime:hover:not(:disabled) {
  background: var(--lime-primary);
  color: #000;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.12);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Settings Bar */
.settings-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: center;
}

.setting-col label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.select-lime, .input-lime {
  width: 100%;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.select-lime option {
  background: #0e190f;
  color: var(--text-primary);
}

.select-lime:focus, .input-lime:focus {
  border-color: var(--lime-bright);
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.val-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lime-bright);
}

.range-lime {
  width: 100%;
  accent-color: var(--lime-primary);
  cursor: pointer;
}

/* Compare Card & Split Viewport */
.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.file-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime-bright);
}

.file-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* View Mode Tabs */
.view-mode-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  gap: 3px;
}

.view-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.view-tab svg {
  width: 14px;
  height: 14px;
}

.view-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.view-tab.active {
  background: var(--lime-primary);
  color: #000;
  box-shadow: 0 2px 10px rgba(114, 196, 34, 0.4);
}

.compare-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 15px;
  background: rgba(114, 196, 34, 0.15);
  color: var(--lime-bright);
  border: 1px solid var(--border-lime);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.status-pill.status-processing {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border-color: rgba(234, 179, 8, 0.4);
}

.status-pill.status-success {
  background: rgba(114, 196, 34, 0.15);
  color: var(--lime-bright);
  border-color: var(--border-lime);
}

.status-pill.status-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  background: #030603;
  border-radius: var(--radius-lg);
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}

.img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-layer img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.layer-before {
  z-index: 1;
}

.layer-after {
  z-index: 2;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  pointer-events: none;
}

.pill-badge {
  position: absolute;
  top: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.pill-before {
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.pill-after {
  right: 14px;
  background: var(--lime-primary);
  color: #000;
  box-shadow: 0 4px 12px rgba(114, 196, 34, 0.4);
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 10;
  width: 2px;
  background: var(--lime-bright);
  cursor: ew-resize;
  transform: translateX(-50%);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--lime-bright);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(140, 230, 43, 0.8);
}

.handle-button svg {
  width: 18px;
  height: 18px;
}

.meta-footer {
  display: flex;
  gap: 28px;
  padding-top: 10px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
}

.meta-lbl {
  color: var(--text-muted);
}

.meta-val {
  font-weight: 600;
  color: var(--lime-bright);
}

/* Batch Section */
.batch-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.batch-header h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.batch-btns {
  display: flex;
  gap: 10px;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-height: 240px;
  overflow-y: auto;
}

.batch-card-item {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.batch-card-item.active, .batch-card-item:hover {
  border-color: var(--lime-bright);
  background: rgba(114, 196, 34, 0.12);
}

.batch-thumb {
  width: 100%;
  height: 100px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.batch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.batch-filename {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

/* Features Grid Section */
.features-section {
  padding: 60px 24px;
  background: rgba(14, 25, 15, 0.4);
  border-top: 1px solid var(--border-subtle);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-lime);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(114, 196, 34, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-bright);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Principles Section */
.principles-section {
  padding: 40px 24px 80px 24px;
}

.principles-container {
  max-width: 1000px;
  margin: 0 auto;
}

.principle-box {
  background: radial-gradient(circle at top left, rgba(114, 196, 34, 0.15), rgba(14, 25, 15, 0.9));
  border: 1px solid var(--border-lime);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.principle-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--lime-bright);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.principle-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.principle-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.code-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-lime);
  color: var(--lime-bright);
  padding: 3px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  padding: 30px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #040804;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  object-fit: contain;
}

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