/* ═══════════════════════════════════════════════════════════
   DevKit — Premium Developer Tools Suite
   Aesthetic: Industrial Terminal × Editorial Luxury
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fira+Code:wght@300;400;500;600&display=swap');

:root {
  /* Core palette */
  --ink:        #08090a;
  --ink2:       #0e0f11;
  --ink3:       #151618;
  --ink4:       #1c1d20;
  --wire:       #252628;
  --wire2:      #2e3033;
  --mist:       #4a4d52;
  --fog:        #6b6f76;
  --ash:        #9da1a8;
  --snow:       #dde0e5;
  --white:      #f0f2f5;

  /* Accent — electric amber */
  --volt:       #f5c842;
  --volt2:      #e8b820;
  --volt-dim:   rgba(245,200,66,.10);
  --volt-glow:  rgba(245,200,66,.22);

  /* Secondary accent — neon green */
  --lime:       #7fff6e;
  --lime-dim:   rgba(127,255,110,.08);

  /* Error / success */
  --red:        #ff4f5e;
  --red-dim:    rgba(255,79,94,.10);
  --green:      #3dffa0;

  /* Typography */
  --font:       'Familjen Grotesk', sans-serif;
  --mono:       'Fira Code', monospace;

  /* Layout */
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --trans:      all .18s cubic-bezier(.4,0,.2,1);
  --shadow:     0 4px 32px rgba(0,0,0,.55);
  --shadow-lg:  0 12px 64px rgba(0,0,0,.7);
}

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

body {
  background: var(--ink);
  color: var(--snow);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink2); }
::-webkit-scrollbar-thumb { background: var(--wire2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mist); }

/* ── Selection ── */
::selection { background: var(--volt-dim); color: var(--volt); }

/* ══ GRAIN OVERLAY ══ */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: .6;
}

/* ══ GRID BACKGROUND ══ */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(245,200,66,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,66,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}

/* ══ CONTAINER ══ */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wrap--narrow { max-width: 860px; }

/* ══ HEADER ══ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,9,10,.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--wire);
}

.header-inner {
  display: flex; align-items: center; gap: 0;
  height: 58px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; margin-right: auto;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px; height: 32px;
  background: var(--volt);
  border-radius: 6px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: -.03em;
}

.brand-name span { color: var(--volt); }

.site-nav {
  display: flex; align-items: center; gap: 2px;
}

.nav-link {
  padding: 6px 13px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--fog);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--trans);
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--snow); background: var(--ink3); }
.nav-link.active { color: var(--volt); background: var(--volt-dim); }

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

.cmd-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-family: var(--font);
  font-size: .78rem;
  color: var(--fog);
  cursor: pointer;
  transition: var(--trans);
}
.cmd-btn:hover { border-color: var(--volt); color: var(--volt); }
.cmd-btn kbd {
  background: var(--ink4);
  border: 1px solid var(--wire2);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--mist);
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  padding: 6px; cursor: pointer;
  margin-left: 8px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--ash); border-radius: 2px;
  transition: var(--trans);
}

/* ══ COMMAND PALETTE ══ */
.cmd-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none; place-items: start center;
  padding-top: 15vh;
}
.cmd-overlay.open { display: grid; }

.cmd-palette {
  width: 100%; max-width: 600px;
  background: var(--ink2);
  border: 1px solid var(--wire2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: slideDown .18s cubic-bezier(.34,1.4,.64,1);
}
@keyframes slideDown {
  from { opacity:0; transform: translateY(-16px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.cmd-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--wire);
}
.cmd-input-wrap svg { color: var(--fog); flex-shrink: 0; }
.cmd-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font); font-size: 1rem;
  color: var(--white); caret-color: var(--volt);
}
.cmd-input::placeholder { color: var(--mist); }

.cmd-results { max-height: 340px; overflow-y: auto; }
.cmd-section-label {
  padding: 8px 20px 4px;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist);
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  cursor: pointer; transition: var(--trans);
}
.cmd-item:hover, .cmd-item.focused {
  background: var(--ink3);
}
.cmd-item-icon {
  width: 34px; height: 34px;
  background: var(--ink4);
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 1rem; flex-shrink: 0;
  border: 1px solid var(--wire);
}
.cmd-item-text strong { display: block; font-size: .88rem; color: var(--snow); font-weight: 600; }
.cmd-item-text span { font-size: .75rem; color: var(--fog); }
.cmd-item-badge {
  margin-left: auto;
  font-family: var(--mono); font-size: .65rem;
  color: var(--mist);
  background: var(--ink4); border: 1px solid var(--wire);
  border-radius: 4px; padding: 2px 6px;
}
.cmd-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--wire);
  font-size: .72rem; color: var(--mist);
}
.cmd-footer kbd {
  background: var(--ink4); border: 1px solid var(--wire2);
  border-radius: 4px; padding: 1px 6px;
  font-family: var(--mono); font-size: .65rem;
  color: var(--fog);
}

/* ══ MOBILE NAV ══ */
.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 58px; left: 0; right: 0; bottom: 0;
  background: var(--ink2);
  border-top: 1px solid var(--wire);
  z-index: 180; padding: 16px 0; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 28px; font-size: .95rem; font-weight: 600;
  color: var(--fog); text-decoration: none;
  border-left: 3px solid transparent; transition: var(--trans);
}
.mobile-nav a:hover { color: var(--volt); border-left-color: var(--volt); background: var(--volt-dim); }

/* ══ HERO ══ */
.hero {
  padding: 88px 0 72px;
  position: relative; overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--volt); letter-spacing: .1em;
  margin-bottom: 24px;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 8px var(--volt-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.5; transform:scale(.7); }
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.05em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  color: var(--volt);
  text-shadow: 0 0 40px var(--volt-glow);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--fog);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--wire);
}
.stat-item {}
.stat-num {
  font-family: var(--mono); font-size: 1.6rem;
  font-weight: 600; color: var(--volt);
  letter-spacing: -.03em; line-height: 1;
}
.stat-label {
  font-size: .75rem; color: var(--fog);
  margin-top: 4px; letter-spacing: .04em;
}

/* Hero decorative terminal */
.hero-terminal {
  position: absolute; right: -20px; top: 50%;
  transform: translateY(-50%);
  width: 420px;
  background: var(--ink2);
  border: 1px solid var(--wire2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: .85;
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--ink3);
  border-bottom: 1px solid var(--wire);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title {
  font-family: var(--mono); font-size: .7rem;
  color: var(--mist); margin: 0 auto;
}
.terminal-body {
  padding: 16px; font-family: var(--mono);
  font-size: .75rem; line-height: 1.9;
}
.t-prompt { color: var(--lime); }
.t-cmd { color: var(--snow); }
.t-out { color: var(--fog); }
.t-val { color: var(--volt); }
.t-key { color: var(--lime); }
.t-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--volt); margin-left: 2px;
  animation: blink .9s step-end infinite; vertical-align: middle;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ══ SECTION HEADERS ══ */
.section-head {
  margin-bottom: 36px;
}
.section-label {
  font-family: var(--mono); font-size: .68rem;
  color: var(--volt); letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -.04em;
  color: var(--white); line-height: 1.1;
}
.section-sub {
  font-size: .9rem; color: var(--fog);
  margin-top: 10px; max-width: 560px;
}

/* ══ TOOL GRID ══ */
.tools-section { padding: 64px 0; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--ink2);
  border: 1px solid var(--wire);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: var(--trans);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  cursor: pointer;
}
.tool-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--volt-dim) 0%, transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.tool-card:hover { border-color: var(--wire2); transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card:hover::before { opacity: 1; }

.tool-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--ink3) 0%, var(--ink2) 100%);
  border-color: var(--wire2);
}
.tool-card.featured:hover { border-color: rgba(245,200,66,.4); }

.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--ink4);
  border: 1px solid var(--wire2);
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: var(--trans);
}
.tool-card:hover .card-icon { background: var(--volt-dim); border-color: var(--volt); }

.card-badge {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  font-weight: 600;
}
.badge--new { background: var(--lime-dim); color: var(--lime); border: 1px solid rgba(127,255,110,.2); }
.badge--hot { background: rgba(255,79,94,.1); color: var(--red); border: 1px solid rgba(255,79,94,.2); }
.badge--pro { background: var(--volt-dim); color: var(--volt); border: 1px solid rgba(245,200,66,.2); }

.card-title {
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
  letter-spacing: -.02em; line-height: 1.2;
}
.card-desc {
  font-size: .83rem; color: var(--fog);
  line-height: 1.65; flex: 1;
}
.card-footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--wire);
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tag {
  font-family: var(--mono); font-size: .62rem;
  color: var(--mist); background: var(--ink4);
  border: 1px solid var(--wire);
  border-radius: 4px; padding: 2px 7px;
}
.card-arrow {
  color: var(--mist); transition: var(--trans);
  flex-shrink: 0;
}
.tool-card:hover .card-arrow { color: var(--volt); transform: translateX(3px); }

/* ══ TOOL PAGE LAYOUT ══ */
.tool-page { padding: 48px 0 80px; }

.tool-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; margin-bottom: 36px; flex-wrap: wrap;
}
.tool-header-left {}
.tool-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem;
  color: var(--mist); margin-bottom: 12px;
}
.tool-breadcrumb a { color: var(--fog); text-decoration: none; transition: var(--trans); }
.tool-breadcrumb a:hover { color: var(--volt); }
.tool-breadcrumb span { color: var(--wire2); }
.tool-page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; letter-spacing: -.04em;
  color: var(--white); line-height: 1.05;
}
.tool-page-title em { font-style:normal; color:var(--volt); }
.tool-page-desc { font-size: .9rem; color: var(--fog); margin-top: 10px; max-width: 520px; }

/* ══ PANEL ══ */
.panel {
  background: var(--ink2);
  border: 1px solid var(--wire);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: var(--trans);
}
.panel:focus-within { border-color: rgba(245,200,66,.35); box-shadow: 0 0 0 3px var(--volt-dim); }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--ink3);
  border-bottom: 1px solid var(--wire);
}
.panel-label {
  font-family: var(--mono); font-size: .68rem;
  font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--fog);
}
.panel-actions { display: flex; align-items: center; gap: 6px; }

.count-badge {
  font-family: var(--mono); font-size: .65rem;
  color: var(--mist);
}

/* ══ TEXTAREA ══ */
.editor {
  width: 100%; min-height: 180px;
  background: transparent; border: none; outline: none;
  color: var(--snow); font-family: var(--mono);
  font-size: .88rem; line-height: 1.7;
  padding: 16px; resize: vertical;
  caret-color: var(--volt);
}
.editor::placeholder { color: var(--mist); }
.editor--out {
  color: var(--lime); min-height: 140px;
  background: rgba(127,255,110,.02);
}
.editor--error { color: var(--red); }

/* ══ OPTIONS BAR ══ */
.options-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 14px 0;
  margin-bottom: 16px;
}

.opt-group { display: flex; flex-direction: column; gap: 4px; }
.opt-label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist);
}
.select {
  background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  color: var(--snow);
  font-family: var(--font); font-size: .82rem;
  padding: 7px 10px;
  cursor: pointer; outline: none;
  transition: var(--trans);
}
.select:hover, .select:focus { border-color: var(--volt); }

.check-label {
  display: flex; align-items: center; gap: 9px;
  font-size: .82rem; color: var(--ash);
  cursor: pointer; user-select: none;
}
.check-label input { display: none; }
.checkmark {
  width: 17px; height: 17px;
  border: 1.5px solid var(--wire2);
  border-radius: 4px; background: var(--ink3);
  display: grid; place-items: center;
  flex-shrink: 0; transition: var(--trans);
}
.check-label input:checked ~ .checkmark {
  background: var(--volt); border-color: var(--volt);
}
.check-label input:checked ~ .checkmark::after {
  content:'';
  width: 4px; height: 8px;
  border: 1.5px solid var(--ink);
  border-top: none; border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* ══ BUTTONS ══ */
.action-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700;
  font-size: .85rem; letter-spacing: .02em;
  border-radius: var(--radius);
  cursor: pointer; transition: var(--trans);
  border: none; white-space: nowrap;
}

.btn--primary {
  background: var(--volt); color: var(--ink);
  padding: 11px 26px;
  box-shadow: 0 0 24px var(--volt-glow);
}
.btn--primary:hover {
  background: var(--volt2);
  box-shadow: 0 0 40px rgba(245,200,66,.45);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--ink3);
  border: 1px solid var(--wire2);
  color: var(--ash);
  padding: 11px 18px;
}
.btn--ghost:hover { border-color: var(--volt); color: var(--volt); background: var(--volt-dim); }

.btn--bare {
  background: none; border: none;
  color: var(--fog); font-size: .78rem;
  padding: 4px 8px; border-radius: 4px;
  font-family: var(--font); font-weight: 600;
}
.btn--bare:hover { color: var(--volt); background: var(--volt-dim); }

.btn--sm { padding: 7px 14px; font-size: .78rem; }
.btn--icon { padding: 8px; }

/* ══ ERROR / SUCCESS BANNERS ══ */
.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: .84rem; margin-top: 8px;
}
.banner--error { background: var(--red-dim); border: 1px solid rgba(255,79,94,.25); color: var(--red); }
.banner--success { background: var(--lime-dim); border: 1px solid rgba(127,255,110,.2); color: var(--lime); }
.banner--info { background: var(--volt-dim); border: 1px solid rgba(245,200,66,.2); color: var(--volt); }

/* ══ PROGRESS ══ */
.progress-track {
  height: 3px; background: var(--ink4);
  border-radius: 2px; overflow: hidden;
  margin: 10px 0; display: none;
}
.progress-fill {
  height: 100%; background: var(--volt);
  border-radius: 2px; transition: width .3s ease;
  box-shadow: 0 0 8px var(--volt-glow);
}

/* ══ DROP ZONE ══ */
.drop-zone {
  border: 2px dashed var(--wire2);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--trans);
  background: var(--ink3);
  margin-bottom: 16px;
}
.drop-zone:hover, .drop-zone.over {
  border-color: var(--volt);
  background: var(--volt-dim);
}
.drop-zone-icon { font-size: 2.2rem; margin-bottom: 10px; }
.drop-zone-text { font-size: .9rem; color: var(--fog); margin-bottom: 4px; }
.drop-zone-sub { font-size: .75rem; color: var(--mist); }

/* ══ FILE INFO ══ */
.file-pill {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--ink3);
  border: 1px solid var(--wire2);
  border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: 14px;
}
.file-pill-name { font-family: var(--mono); font-size: .82rem; color: var(--snow); }
.file-pill-size { font-size: .75rem; color: var(--mist); margin-top: 2px; }

/* ══ TABS ══ */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--wire);
  margin-bottom: 24px;
}
.tab {
  padding: 10px 20px;
  font-size: .85rem; font-weight: 600;
  color: var(--fog); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--trans);
  background: none; border-left: none; border-right: none; border-top: none;
  font-family: var(--font);
  margin-bottom: -1px;
}
.tab:hover { color: var(--snow); }
.tab.active { color: var(--volt); border-bottom-color: var(--volt); }

/* ══ CODE PREVIEW ══ */
.code-block {
  background: var(--ink3);
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  padding: 16px;
  font-family: var(--mono); font-size: .82rem;
  color: var(--ash); line-height: 1.8;
  overflow-x: auto; margin-top: 12px;
}
.code-block .hl-key { color: var(--volt); }
.code-block .hl-str { color: var(--lime); }
.code-block .hl-num { color: #ff9f7a; }
.code-block .hl-bool { color: #a78bfa; }
.code-block .hl-null { color: var(--red); }

/* ══ HASH RESULT TABLE ══ */
.hash-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.hash-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--wire);
  font-size: .82rem;
}
.hash-table td:first-child {
  font-family: var(--mono); color: var(--volt);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; width: 80px;
  white-space: nowrap;
}
.hash-table td:last-child {
  font-family: var(--mono); color: var(--lime);
  word-break: break-all;
}
.hash-table tr:last-child td { border-bottom: none; }
.hash-copy-btn {
  float: right; background: none; border: none;
  color: var(--mist); cursor: pointer;
  font-size: .7rem; font-family: var(--font);
  font-weight: 600; padding: 2px 6px;
  border-radius: 4px; transition: var(--trans);
}
.hash-copy-btn:hover { color: var(--volt); background: var(--volt-dim); }

/* ══ IMAGE PREVIEW ══ */
.img-preview-box {
  background: var(--ink3);
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  padding: 16px; text-align: center;
  margin-bottom: 14px; max-height: 280px; overflow: hidden;
}
.img-preview-box img {
  max-width: 100%; max-height: 240px;
  border-radius: 6px; object-fit: contain;
}

/* ══ FORMAT OPTIONS (Image) ══ */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.radio-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--wire2); border-radius: var(--radius);
  font-size: .8rem; color: var(--ash);
  cursor: pointer; transition: var(--trans);
}
.radio-pill:hover { border-color: var(--volt); color: var(--volt); }
.radio-pill input { display: none; }
.radio-pill.checked { border-color: var(--volt); color: var(--volt); background: var(--volt-dim); }

/* ══ DIFF VIEW ══ */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.diff-out {
  background: var(--ink3);
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  padding: 14px; font-family: var(--mono);
  font-size: .8rem; line-height: 1.8;
  overflow-x: auto; min-height: 160px;
  white-space: pre-wrap; word-break: break-word;
}
.diff-add { background: rgba(61,255,160,.1); color: var(--green); border-left: 3px solid var(--green); padding-left: 8px; }
.diff-del { background: rgba(255,79,94,.1); color: var(--red); border-left: 3px solid var(--red); padding-left: 8px; }
.diff-eq { color: var(--ash); }

/* ══ QR DISPLAY ══ */
.qr-display {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px; display: inline-block;
  margin: 16px 0;
}

/* ══ EXPLAINER CARDS ══ */
.explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 36px;
}
.explainer-card {
  background: var(--ink2);
  border: 1px solid var(--wire);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--trans);
}
.explainer-card:hover { border-color: var(--wire2); transform: translateY(-2px); }
.exp-icon { font-size: 1.4rem; margin-bottom: 10px; }
.exp-title { font-size: .88rem; font-weight: 700; margin-bottom: 5px; color: var(--snow); }
.exp-text { font-size: .78rem; color: var(--fog); line-height: 1.6; }

/* ══ EXAMPLE BLOCK ══ */
.example-block {
  background: var(--ink3);
  border: 1px solid var(--wire);
  border-radius: var(--radius-lg);
  padding: 20px; margin-top: 20px;
}
.ex-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.ex-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mist); min-width: 64px; }
.ex-code { font-family: var(--mono); font-size: .82rem; color: var(--ash); }
.ex-code--in { color: var(--volt); }
.ex-code--out { color: var(--lime); }
.ex-arrow { font-family: var(--mono); font-size: .75rem; color: var(--fog); padding-left: 78px; margin: 4px 0; }

/* ══ FOOTER ══ */
.site-footer {
  background: var(--ink2);
  border-top: 1px solid var(--wire);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 36px;
}
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-desc { font-size: .82rem; color: var(--fog); margin-top: 12px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: .82rem;
  color: var(--fog); text-decoration: none;
  margin-bottom: 8px; transition: var(--trans);
}
.footer-col a:hover { color: var(--volt); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--wire);
  font-size: .75rem; color: var(--mist); flex-wrap: wrap; gap: 8px;
}
.footer-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .68rem;
  color: var(--lime);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px rgba(127,255,110,.6);
}

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to { opacity:1; transform:translateY(0); }
}
.anim { animation: fadeUp .5s ease both; }
.anim-1 { animation-delay: .05s; }
.anim-2 { animation-delay: .1s; }
.anim-3 { animation-delay: .16s; }
.anim-4 { animation-delay: .22s; }
.anim-5 { animation-delay: .28s; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1040px) {
  .hero-terminal { display: none; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 860px) {
  .tool-card.featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-nav, .header-actions .cmd-btn { display: none; }
  .hamburger { display: flex; }
  .header-actions { margin-left: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { font-size: 2.6rem; }
  .action-row { flex-direction: column; }
  .btn--primary, .btn--ghost { justify-content: center; }
}

@media (max-width: 440px) {
  .wrap { padding: 0 16px; }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .options-bar { flex-direction: column; align-items: flex-start; }
}
