/* ============================================================
   LeanCSV — style.css
   Dark dev-tools aesthetic · jade green accents
   Inspired by QRgenie / RuntimeHub ecosystem
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Tokens ── */
:root {
  --ink:          #09090E;
  --surface:      #0F0F18;
  --panel:        #14141E;
  --panel-2:      #1A1A26;
  --border:       #222232;
  --border-soft:  #1C1C2A;
  --accent:       #2ECC8A;
  --accent-mid:   rgba(46,204,138,.15);
  --accent-dim:   rgba(46,204,138,.07);
  --accent-glow:  rgba(46,204,138,.20);
  --text:         #EDEDF2;
  --text-2:       #B8B8C8;
  --muted:        #65657A;
  --danger:       #FF4D6A;
  --danger-dim:   rgba(255,77,106,.09);
  --warn:         #F5A623;
  --mono:         'JetBrains Mono', monospace;
  --sans:         'Inter', sans-serif;
  --r:            10px;
  --r-lg:         16px;
  --r-xl:         20px;
  --ease:         .16s cubic-bezier(.4,0,.2,1);
  --shadow:       0 1px 2px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.3);
  --shadow-lg:    0 2px 4px rgba(0,0,0,.5), 0 12px 40px rgba(0,0,0,.4);
  --glow:         0 0 32px rgba(46,204,138,.08);
}

/* ── Base ── */
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--ease); }
a:hover { opacity: .7; }

code {
  font-family: var(--mono);
  font-size: .84em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 5px;
  border-radius: 4px;
}

strong { color: var(--text); font-weight: 600; }

.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,14,.85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover { opacity: 1; }

.nav-logo svg { color: var(--accent); flex-shrink: 0; }

.nav-logo-text {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.02em;
}

.nav-hub-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-2);
  font-size: .8rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), box-shadow var(--ease), background var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.nav-hub-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 14px var(--accent-glow);
  opacity: 1;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */

.hero {
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(46,204,138,.06) 0%, transparent 68%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 5px 13px;
  border: 1px solid rgba(46,204,138,.2);
  border-radius: 99px;
  background: var(--accent-dim);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 .hl {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(46,204,138,.28), 0 0 80px rgba(46,204,138,.1);
}

.hero-sub {
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ── Pills ── */
.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: .76rem;
  font-weight: 500;
  border: 1px solid;
  line-height: 1;
  font-family: var(--mono);
  letter-spacing: .01em;
}

.pill-green  { background: rgba(46,204,138,.07); border-color: rgba(46,204,138,.22); color: var(--accent); }
.pill-neutral{ background: rgba(255,255,255,.03); border-color: var(--border); color: var(--muted); }

.pill-dot {
  width: 4px; height: 4px;
  border-radius: 99px;
  background: currentColor;
  opacity: .7;
}

/* ── Drop Zone ── */
.drop-zone {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  padding: 56px 36px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
  outline: none;
  box-shadow: var(--shadow-lg), var(--glow);
}

.drop-zone::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: calc(var(--r-xl) + 1.5px);
  border: 1.5px solid transparent;
  pointer-events: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: rgba(46,204,138,.35);
  background: rgba(46,204,138,.04);
  box-shadow: var(--shadow-lg), 0 0 48px rgba(46,204,138,.1);
}

.drop-zone:hover::after,
.drop-zone.drag-over::after {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,204,138,.07);
}

.drop-zone.pulsing::after {
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%   { border-color: rgba(46,204,138,.45); box-shadow: 0 0 0 0 rgba(46,204,138,.12); }
  50%  { border-color: rgba(46,204,138,.15); box-shadow: 0 0 0 8px rgba(46,204,138,0); }
  100% { border-color: rgba(46,204,138,.45); box-shadow: 0 0 0 0 rgba(46,204,138,.12); }
}

.drop-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -.01em;
}

.drop-sub {
  font-size: .78rem;
  color: var(--muted);
  font-family: var(--mono);
  margin-bottom: 26px;
}

.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: #03120A;
  border: none;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--ease), transform var(--ease), box-shadow var(--ease);
  box-shadow: 0 0 20px rgba(46,204,138,.28);
}

.drop-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(46,204,138,.42);
}

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

#file-input { display: none; }

/* ── Progress ── */
.parse-progress { display: none; max-width: 660px; margin: 0 auto; }
.parse-progress.visible { display: block; }

.progress-bar-wrap {
  height: 2px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width .1s linear;
}

.progress-label {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
}

/* ══════════════════════════════════════════
   WORKSPACE
   ══════════════════════════════════════════ */

.workspace { padding-bottom: 80px; }

/* ── Stats Bar ── */
.stats-bar {
  display: none;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stats-bar.visible { display: flex; }

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 24px;
  flex: 1;
  border-right: 1px solid var(--border-soft);
  transition: background var(--ease);
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--panel); }

.stat-val {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}

.stat-lbl {
  font-size: .67rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 3px;
}

.stat-item.accent .stat-val { color: var(--accent); }
.stat-item.warn   .stat-val { color: var(--warn); }

/* ── Toolbar ── */
.toolbar {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.toolbar.visible { display: flex; }

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 2px;
  white-space: nowrap;
}

.toolbar-sep {
  width: 1px; height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-2);
  font-size: .79rem;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
  white-space: nowrap;
}

.btn:hover { background: var(--panel-2); border-color: #333348; color: var(--text); }

.btn.btn-accent {
  background: rgba(46,204,138,.07);
  border-color: rgba(46,204,138,.28);
  color: var(--accent);
}

.btn.btn-accent:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #03120A;
  box-shadow: 0 0 14px rgba(46,204,138,.22);
}

.btn.btn-danger {
  background: var(--danger-dim);
  border-color: rgba(255,77,106,.22);
  color: var(--danger);
}

.btn.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.col-select {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: .78rem;
  font-family: var(--mono);
  cursor: pointer;
  outline: none;
  transition: border-color var(--ease);
}

.col-select:focus { border-color: var(--accent); }

/* ── Table ── */
.table-section { display: none; }
.table-section.visible { display: block; }

.table-wrap {
  overflow: auto;
  max-height: 540px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.table-wrap::-webkit-scrollbar { width: 5px; height: 5px; }
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: #333348; }

table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .79rem; }

thead { position: sticky; top: 0; z-index: 2; background: var(--panel); }
thead tr { border-bottom: 1px solid var(--border); }

th {
  padding: 11px 15px;
  text-align: left;
  font-family: var(--sans);
  font-size: .65rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  user-select: none;
}

.type-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .57rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .03em;
  vertical-align: middle;
}

.type-badge.number  { background: rgba(46,204,138,.1);  color: #2ECC8A; }
.type-badge.date    { background: rgba(245,166,35,.1);   color: #F5A623; }
.type-badge.boolean { background: rgba(138,101,255,.1);  color: #9B6BFF; }
.type-badge.text    { background: rgba(101,101,122,.1);  color: #65657A; }

tbody tr { border-bottom: 1px solid var(--border-soft); transition: background var(--ease); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--panel); }

td {
  padding: 8px 15px;
  color: var(--text);
  white-space: nowrap;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

td.empty-cell { color: var(--muted); font-style: italic; }
td.number-cell { color: var(--accent); }
td.date-cell   { color: var(--warn); }

.row-num {
  color: var(--muted);
  font-size: .65rem;
  padding: 8px 12px;
  user-select: none;
  text-align: right;
  min-width: 40px;
}

/* ── Pagination ── */
.pagination { display: none; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.pagination.visible { display: flex; }

.page-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-2);
  font-size: .78rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--ease), border-color var(--ease);
}

.page-btn:hover:not(:disabled) { background: var(--panel-2); border-color: #333348; }
.page-btn:disabled { opacity: .25; cursor: not-allowed; }
.page-info { font-family: var(--mono); font-size: .73rem; color: var(--muted); }

/* ── Toasts ── */
.toast-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.toast {
  padding: 11px 18px;
  border-radius: var(--r);
  font-size: .83rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: slide-in .18s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
}

.toast.success { background: rgba(10,30,20,.92); border: 1px solid rgba(46,204,138,.35); color: var(--accent); }
.toast.error   { background: rgba(30,10,15,.92); border: 1px solid rgba(255,77,106,.35); color: var(--danger); }
.toast.info    { background: rgba(20,20,30,.92); border: 1px solid var(--border);        color: var(--text-2); }

@keyframes slide-in {
  from { transform: translateX(12px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════════
   SEO SECTIONS — shared
   ══════════════════════════════════════════ */

.seo-section {
  padding: 88px 0;
  border-top: 1px solid var(--border-soft);
}

.section-label {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin-bottom: 14px;
}

.section-intro {
  font-size: .9375rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 52px;
}

/* ── Features (tile grid, no icons) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.feature-card {
  background: var(--surface);
  padding: 32px 28px;
  transition: background var(--ease);
}

.feature-card:hover { background: var(--panel); }

.feature-card h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 9px;
  letter-spacing: -.015em;
  color: var(--text);
}

.feature-card p {
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.72;
}


/* ── SPEC BAND ── */
.spec-band {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}

/* Ambient background glow that stretches across the band */
.spec-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.spec-band-inner {
  display: flex;
  align-items: center;
  gap: 4rem; /* Spațiere babană între elemente */
  position: relative;
  z-index: 1;
}

.spec-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 160px; /* Ca să nu sară la dimensiuni ciudate */
}

/* Aici facem magia de glow în spatele fiecărui număr */
.spec-marker-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 60px;
  background: var(--accent-mid);
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Numerele masive, verzi și radiante */
.spec-value {
  font-family: var(--mono);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  /* Un glow dublu pentru un efect premium de neon controlat */
  text-shadow: 0 0 16px var(--accent-glow), 0 0 32px var(--accent-dim);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

/* Textul de suport, curat și tehnic */
.spec-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Separatoare subțiri, cu fade la capete ca să nu fie butucănoase */
.spec-sep {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* Responsive: le punem pe coloană pe ecrane mici */
@media (max-width: 768px) {
  .spec-band-inner {
    flex-direction: column;
    gap: 3rem;
  }
  .spec-sep {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
  }
}

/* ── How it works ── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.how-step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: border-color var(--ease);
}

.how-step:hover { border-color: rgba(46,204,138,.18); }

.how-num {
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .1em;
  margin-bottom: 14px;
  opacity: .65;
}

.how-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -.015em; }
.how-step p  { font-size: .855rem; color: var(--muted); line-height: 1.75; }

/* ── Use cases / Benefits ── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.usecase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  transition: border-color var(--ease), background var(--ease);
}

.usecase-card:hover { border-color: rgba(46,204,138,.15); background: var(--panel); }

.usecase-header {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.usecase-card p { font-size: .855rem; color: var(--muted); line-height: 1.72; }

/* ── Benefits (3 col) ── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: border-color var(--ease);
}

.benefit-card:hover { border-color: rgba(46,204,138,.18); }

.benefit-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(46,204,138,.3);
}

.benefit-card h3 { font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.benefit-card p  { font-size: .84rem; color: var(--muted); line-height: 1.68; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 52px;
}

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
  transition: background var(--ease);
}

.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: var(--panel); }

.faq-q {
  list-style: none;
  padding: 22px 32px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  letter-spacing: -.01em;
  transition: color var(--ease);
}

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

.faq-q::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  transition: color var(--ease);
}

.faq-item[open] .faq-q { color: var(--accent); }
.faq-item[open] .faq-q::after { content: '×'; color: var(--accent); }

.faq-a { padding: 0 32px 22px; }
.faq-a p { font-size: .875rem; color: var(--muted); line-height: 1.8; }
.faq-a p + p { margin-top: 9px; }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-soft);
}

.footer-brand-name {
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.footer-brand-name svg { color: var(--accent); }

.footer-tagline {
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 230px;
  margin-bottom: 24px;
}

.footer-hub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.footer-hub-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(46,204,138,.1);
  opacity: 1;
}

.footer-col h4 {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 11px; }

.footer-col ul a {
  font-size: .855rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color var(--ease);
}

.footer-col ul a:hover { color: var(--text); opacity: 1; }

.tool-dot {
  width: 4px; height: 4px;
  border-radius: 99px;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--ease);
}

.footer-col ul a:hover .tool-dot { background: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .78rem;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); opacity: 1; }

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ══════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════ */

.legal-page { padding: 68px 0 96px; }

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}

.legal-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
  margin-bottom: 9px;
}

.legal-meta { font-family: var(--mono); font-size: .73rem; color: var(--muted); }

.legal-body { max-width: 700px; }

.legal-body h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 36px 0 12px;
  letter-spacing: -.018em;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: .9175rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 13px;
}

.legal-body ul {
  padding-left: 18px;
  margin-bottom: 13px;
}

.legal-body ul li {
  font-size: .9175rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 900px) {
  .features-grid   { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
  .how-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { padding: 64px 0 56px; }
  .seo-section { padding: 64px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .usecase-grid  { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
  .stat-item { padding: 13px 18px; }
  .faq-q { padding: 18px 22px; }
  .faq-a { padding: 0 22px 18px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { font-size: .76rem; padding: 5px 11px; }
  .toolbar { gap: 6px; }
}
