/* =========================================
   SQLMerge – style.css
   Theme: Black + Yellow, ultra-modern
   ========================================= */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:     #FFD700;
  --yellow-dim: #c8a800;
  --yellow-glow: rgba(255, 215, 0, 0.15);
  --bg:         #080808;
  --bg-2:       #0f0f0f;
  --bg-3:       #161616;
  --bg-4:       #1e1e1e;
  --border:     #242424;
  --border-hi:  #333;
  --text:       #e8e8e8;
  --text-muted: #666;
  --text-dim:   #444;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --font-body:  'Syne', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

/* =========================================
   NAV
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  animation: navIn 0.5s ease both;
}

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

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-icon { font-size: 1.2rem; }
.accent { color: var(--yellow); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 18px;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: #ffe033;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100svh;
  padding: 100px 24px 80px;
  display: flex;
  align-items: center;
  gap: 60px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,215,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Glow orb */
.hero-glow {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.15); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  flex-shrink: 0;
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-hi);
  background: var(--bg-3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 8px var(--yellow); }
  50%       { box-shadow: 0 0 16px var(--yellow); }
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.title-accent {
  color: var(--yellow);
  position: relative;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 440px;
}

/* Hero actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.btn-primary:hover {
  background: #ffe033;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,215,0,0.4);
}

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

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: -8px;
  color: #fff;
}

.avatar:first-child { margin-left: 0; }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero mockup */
.hero-mockup {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  animation: mockupIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes mockupIn {
  from { opacity: 0; transform: translateX(40px) rotateY(-6deg); }
  to   { opacity: 1; transform: translateX(0) rotateY(0); }
}

.mockup-svg {
  width: min(500px, 90vw);
  height: auto;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(255,215,0,0.05);
  animation: floatMockup 5s ease-in-out infinite;
}

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

/* =========================================
   TOOL SECTION
   ========================================= */
.tool-section {
  padding: 100px 24px;
  background: var(--bg-2);
  position: relative;
}

.tool-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow-dim), transparent);
  opacity: 0.4;
}

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

.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 24px;
}

.label-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow));
  opacity: 0.4;
}

.label-line:last-child {
  background: linear-gradient(90deg, var(--yellow), transparent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ---- TOOL CARD ---- */
.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 0 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,215,0,0.04);
  margin-bottom: 64px;
  /* Prevent any child from blowing out the card */
  overflow: hidden;
}

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

.col-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.file-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Drop zone */
.drop-zone {
  border: 1.5px dashed var(--border-hi);
  border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--yellow);
  background: rgba(255,215,0,0.03);
  box-shadow: 0 0 30px rgba(255,215,0,0.08) inset;
}

.drop-inner {
  text-align: center;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.drop-icon {
  margin-bottom: 6px;
  animation: dropBounce 2.5s ease-in-out infinite;
}

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

.drop-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

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

.btn-outline {
  pointer-events: all;
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* File list */
.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.file-list::-webkit-scrollbar { width: 4px; }
.file-list::-webkit-scrollbar-track { background: transparent; }
.file-list::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 4px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  cursor: grab;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  animation: fileIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.file-item:active { cursor: grabbing; }

.file-item.dragging {
  opacity: 0.4;
  transform: scale(0.97);
}

.file-item.drag-target {
  border-color: var(--yellow);
  background: rgba(255,215,0,0.04);
}

.file-drag-handle {
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: grab;
  flex-shrink: 0;
}

.file-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--yellow);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.file-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.file-remove:hover { color: #ff5f57; }

/* Reorder hint */
.reorder-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 12px;
}

/* ---- DELIMITER PANEL ---- */
.delimiter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.delimiter-panel:has(#delimiterToggle:checked) {
  border-color: rgba(255, 215, 0, 0.3);
}

.delimiter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  cursor: pointer;
}

.delimiter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input { display: none; }

.toggle-track {
  width: 36px;
  height: 20px;
  background: var(--bg-4);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 12px; height: 12px;
  background: var(--text-dim);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}

.toggle-switch input:checked + .toggle-track {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--yellow);
}

.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
  background: var(--yellow);
}

/* Collapsible options area */
.delimiter-options {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px 14px;
  animation: delimIn 0.2s ease both;
}

.delimiter-options.open {
  display: flex;
}

@keyframes delimIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Preset chips */
.delim-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.delim-preset {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  background: var(--bg-3);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  white-space: nowrap;
}

.delim-preset:hover {
  border-color: var(--yellow-dim);
  color: var(--text);
}

.delim-preset.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.06);
}

.delim-preset--banner {
  border-color: rgba(255, 215, 0, 0.25);
  color: var(--yellow-dim);
  font-size: 0.65rem;
  letter-spacing: 0.01em;
}

.delim-preset--banner:hover,
.delim-preset--banner.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255, 215, 0, 0.08);
}

/* Custom input row */
.delim-custom-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.delim-input {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.delim-input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08);
}

.delim-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* Preview row */
.delim-preview {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  overflow-x: auto;
}

.delim-preview-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

#delimPreviewText {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #6a9955;
  background: none;
  padding: 0;
  margin: 0;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.5;
}

/* Merge button */
.btn-merge {
  width: 100%;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-merge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.btn-merge:not(:disabled):hover {
  background: #ffe033;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,215,0,0.4);
}

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

.btn-merge:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Start over button */
.btn-reset {
  width: 100%;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 0.02em;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.btn-reset:hover {
  border-color: #ff5f57;
  color: #ff5f57;
  background: rgba(255, 95, 87, 0.06);
  transform: translateY(-1px);
}

/* ---- OUTPUT ---- */
.tool-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.output-actions {
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.output-actions.visible {
  opacity: 1;
  pointer-events: all;
}

.btn-copy, .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-hi);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.btn-copy {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.btn-copy:hover {
  background: #ffe033;
  border-color: #ffe033;
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: #28c840;
  border-color: #28c840;
  color: #fff;
}

.btn-download {
  background: transparent;
  color: var(--text-muted);
}

.btn-download:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  transform: translateY(-1px);
}

/* Output pre */
.output-wrap {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #050505;
  overflow: hidden;
  position: relative;
  min-height: 300px;
  min-width: 0;
  max-width: 100%;
}

/* Subtle fade at bottom of output */
.output-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #050505);
  pointer-events: none;
  z-index: 1;
}

.output-pre {
  height: 340px;
  overflow: auto;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #c8c8c8;
  white-space: pre;
  background: transparent;
  border: none;
  outline: none;
  max-width: 100%;
  box-sizing: border-box;
}

.output-pre::-webkit-scrollbar { width: 5px; height: 5px; }
.output-pre::-webkit-scrollbar-track { background: transparent; }
.output-pre::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 4px; }

.placeholder-lines { color: var(--text-dim); }

/* Syntax highlight classes applied by JS */
.kw  { color: #FFD700; }
.fn  { color: #dcdcaa; }
.str { color: #ce9178; }
.cm  { color: #6a9955; }
.tp  { color: #4ec9b0; }
.go  { color: #FFD700; font-weight: 700; }

/* Stats bar */
.output-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  min-height: 20px;
}

.dot { color: var(--border-hi); }

/* =========================================
   HOW IT WORKS
   ========================================= */
.hiw-row {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hiw-step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.hiw-step:hover {
  border-color: var(--yellow-dim);
  transform: translateY(-4px);
}

.hiw-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255,215,0,0.12);
  letter-spacing: -0.05em;
  margin-bottom: 10px;
  line-height: 1;
}

.hiw-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

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

.hiw-arrow {
  font-size: 1.4rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 90px;
  }

  .hero-content { max-width: 100%; }

  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }

  .hero-mockup { width: 100%; display: flex; justify-content: center; }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .hiw-arrow { transform: rotate(90deg); }
  .hiw-row { flex-direction: column; align-items: stretch; }
  .hiw-step { max-width: 100%; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 1.9rem; }
  .tool-card { padding: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
