/* ========================================================
   CodeConverter.net — Main Stylesheet
   ======================================================== */

/* ── LIGHT THEME ── */
:root {
  --c-bg:           #f0f4fb;
  --c-surface:      #ffffff;
  --c-surface2:     #e8eef8;
  --c-surface3:     #dae4f4;
  --c-border:       #d4dfef;
  --c-border2:      #b6c8e2;
  --c-text:         #0c1526;
  --c-text2:        #475878;
  --c-text3:        #8799b8;
  --c-accent:       #2563eb;
  --c-accent-h:     #1d4ed8;
  --c-accent-muted: #dbeafe;
  --c-accent2:      #e85d3a;
  --c-accent2-muted:#fce8e2;
  --c-green:        #059669;
  --c-green-muted:  #d1fae5;
  --c-amber:        #b45309;
  --c-amber-muted:  #fef3c7;
  --c-purple:       #6d28d9;
  --c-purple-muted: #ede9fe;
  --c-sh:           rgba(37,99,235,0.07);
  --c-sh2:          rgba(13,21,37,0.12);
  --radius:    14px;
  --radius-sm: 9px;
  --radius-xs: 5px;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --nav-h:     64px;
}

/* ── DARK THEME ── */
html[data-theme="dark"] {
  --c-bg:           #080d18;
  --c-surface:      #0f1626;
  --c-surface2:     #162035;
  --c-surface3:     #1e2c45;
  --c-border:       #1e2d47;
  --c-border2:      #2a3f60;
  --c-text:         #e8edf8;
  --c-text2:        #8a9ec2;
  --c-text3:        #4a5e80;
  --c-accent:       #4f8fff;
  --c-accent-h:     #70a8ff;
  --c-accent-muted: #0c1f45;
  --c-accent2:      #ff7a5a;
  --c-accent2-muted:#2d1408;
  --c-green:        #34d399;
  --c-green-muted:  #062418;
  --c-amber:        #fbbf24;
  --c-amber-muted:  #1c1200;
  --c-purple:       #a78bfa;
  --c-purple-muted: #1e1040;
  --c-sh:           rgba(0,0,0,0.25);
  --c-sh2:          rgba(0,0,0,0.50);
}

/* ── AUTO (system preference) ── */
@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --c-bg:           #080d18;
    --c-surface:      #0f1626;
    --c-surface2:     #162035;
    --c-surface3:     #1e2c45;
    --c-border:       #1e2d47;
    --c-border2:      #2a3f60;
    --c-text:         #e8edf8;
    --c-text2:        #8a9ec2;
    --c-text3:        #4a5e80;
    --c-accent:       #4f8fff;
    --c-accent-h:     #70a8ff;
    --c-accent-muted: #0c1f45;
    --c-accent2:      #ff7a5a;
    --c-accent2-muted:#2d1408;
    --c-green:        #34d399;
    --c-green-muted:  #062418;
    --c-amber:        #fbbf24;
    --c-amber-muted:  #1c1200;
    --c-purple:       #a78bfa;
    --c-purple-muted: #1e1040;
    --c-sh:           rgba(0,0,0,0.25);
    --c-sh2:          rgba(0,0,0,0.50);
  }
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }

/* ======================================================
   NAVIGATION
   ====================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 1.75rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--c-text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  flex: 1;
  gap: 0;
}
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text2);
  padding: .4rem .8rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--c-text); background: var(--c-surface2); }
.nav-links a.active { color: var(--c-accent); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
}
.theme-btn {
  width: 32px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text3);
  transition: background .15s, color .15s;
}
.theme-btn.active {
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: 0 1px 4px var(--c-sh2);
}
.theme-btn:hover:not(.active) { color: var(--c-text2); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--c-text2);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  z-index: 190;
  padding: 1.25rem 1.5rem;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--c-text2);
  padding: .65rem 1rem;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.mobile-menu a:hover { color: var(--c-text); background: var(--c-surface2); }
.mobile-menu-divider {
  height: 1px;
  background: var(--c-border);
  margin: 8px 0;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 2px 14px color-mix(in srgb, var(--c-accent) 35%, transparent);
}
.btn-primary:hover {
  background: var(--c-accent-h);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--c-accent) 42%, transparent);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--c-text2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border2);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.btn-secondary:hover { background: var(--c-surface2); color: var(--c-text); text-decoration: none; }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  padding: 5.5rem 2rem 4.5rem;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--c-text);
  margin-bottom: 1.2rem;
}
.hero h1 .hl {
  color: var(--c-accent);
  position: relative;
  display: inline-block;
}
.hero h1 .hl::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  opacity: .3;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--c-text2);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.25rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.stat-val {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: .76rem;
  color: var(--c-text3);
  margin-top: 3px;
  letter-spacing: .03em;
}

/* ======================================================
   TERMINAL (hero demo widget)
   ====================================================== */
.terminal {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 50px var(--c-sh), 0 2px 8px var(--c-sh);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 15px;
  background: var(--c-surface2);
  border-bottom: 1px solid var(--c-border);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #ffbd2e; }
.t-dot.g { background: #28ca41; }
.term-fn {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-text3);
  margin-left: 8px;
}
.term-tabs {
  display: flex;
  padding: 0 15px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.term-tab {
  font-family: var(--font-mono);
  font-size: .73rem;
  padding: 7px 13px;
  color: var(--c-text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .12s, border-color .12s;
}
.term-tab.on { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.term-body {
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  line-height: 1.8;
}
.code-lbl {
  font-size: .68rem;
  color: var(--c-text3);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.code-blk {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xs);
  padding: 9px 13px;
  color: var(--c-text2);
  white-space: pre;
  overflow-x: auto;
  font-size: .74rem;
  line-height: 1.7;
}
.kw  { color: var(--c-purple); }
.fn  { color: var(--c-accent); }
.str { color: var(--c-green); }
.num { color: var(--c-accent2); }
.cm  { color: var(--c-text3); font-style: italic; }
.conv-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 0;
  color: var(--c-text3);
  font-size: .7rem;
  font-family: var(--font-mono);
}
.term-foot {
  padding: 9px 15px;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-surface2);
}
.res-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--c-green);
  background: var(--c-green-muted);
  padding: 3px 10px;
  border-radius: 20px;
}
.copy-btn {
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--c-text3);
  background: transparent;
  border: 1px solid var(--c-border);
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .13s, color .13s;
}
.copy-btn:hover { background: var(--c-surface3); color: var(--c-text); }

/* ======================================================
   FEATURES STRIP
   ====================================================== */
.feat-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 3.5rem 2rem;
}
.feat-grid {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.25rem;
}
.feat-item { display: flex; flex-direction: column; gap: 9px; }
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feat-title { font-size: .92rem; font-weight: 600; color: var(--c-text); }
.feat-text  { font-size: .81rem; color: var(--c-text2); line-height: 1.6; }

/* ======================================================
   SECTION
   ====================================================== */
section { padding: 5rem 2rem; }
.sec-inner { max-width: 1220px; margin: 0 auto; }
.sec-hd { margin-bottom: 2.75rem; }
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--c-text3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.sec-title {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-text);
}
.sec-title span { color: var(--c-accent); }
.sec-sub { margin-top: .7rem; font-size: .97rem; color: var(--c-text2); max-width: 540px; }

/* ======================================================
   TOOLS GRID
   ====================================================== */
.tools-sec { background: var(--c-bg); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.75rem; }
.f-btn {
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-text2);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 5px 14px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: .01em;
  transition: all .14s;
}
.f-btn.on, .f-btn:hover { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.tool-card {
  background: var(--c-surface);
  padding: 1.4rem;
  cursor: pointer;
  transition: background .14s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.tool-card:hover { background: var(--c-surface2); text-decoration: none; }
.tool-card.soon { opacity: .6; cursor: default; pointer-events: none; }

.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tc-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tc-badges { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tc-badge {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
}
.bm { background: var(--c-accent-muted);  color: var(--c-accent); }
.bc { background: var(--c-amber-muted);   color: var(--c-amber); }
.bg { background: var(--c-green-muted);   color: var(--c-green); }
.bf { background: var(--c-purple-muted);  color: var(--c-purple); }
.badge-soon {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  background: var(--c-surface3);
  color: var(--c-text3);
  border: 1px solid var(--c-border2);
}
.tc-name  { font-size: .92rem; font-weight: 600; color: var(--c-text); }
.tc-desc  { font-size: .8rem; color: var(--c-text2); line-height: 1.55; }
.tc-arrow {
  color: var(--c-text3);
  transition: color .14s, transform .14s;
  flex-shrink: 0;
  margin-top: 2px;
}
.tool-card:hover .tc-arrow { color: var(--c-accent); transform: translate(2px, -2px); }

/* ======================================================
   CTA SECTION
   ====================================================== */
.cta-sec { background: var(--c-text); padding: 5.5rem 2rem; }
.cta-inner { max-width: 660px; margin: 0 auto; text-align: center; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-bg);
  line-height: 1.15;
  margin-bottom: .9rem;
}
.cta-inner p {
  color: color-mix(in srgb, var(--c-bg) 65%, var(--c-text));
  font-size: .97rem;
  margin-bottom: 1.8rem;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
  box-shadow: 0 2px 20px color-mix(in srgb, var(--c-accent) 50%, transparent);
}
.btn-cta:hover { opacity: .88; text-decoration: none; }

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 3rem 2rem 2rem;
}
.foot-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
}
.foot-brand p {
  margin-top: 10px;
  font-size: .8rem;
  color: var(--c-text3);
  line-height: 1.65;
  max-width: 230px;
}
.foot-col h4 {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: .05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.foot-col ul li a {
  font-size: .81rem;
  color: var(--c-text3);
  text-decoration: none;
  transition: color .14s;
}
.foot-col ul li a:hover { color: var(--c-text); }
.foot-bottom {
  max-width: 1220px;
  margin: 1.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .76rem;
  color: var(--c-text3);
  flex-wrap: wrap;
  gap: 10px;
}
.foot-links { display: flex; gap: 1.4rem; }
.foot-links a { color: var(--c-text3); transition: color .14s; text-decoration: none; }
.foot-links a:hover { color: var(--c-text); }

/* ======================================================
   TOOL PAGE — LAYOUT
   ====================================================== */
.tool-page-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem 2rem 2rem;
}
.tool-page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.tool-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--c-text3);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.tool-breadcrumb a { color: var(--c-text3); text-decoration: none; transition: color .14s; }
.tool-breadcrumb a:hover { color: var(--c-accent); }
.tool-breadcrumb-sep { color: var(--c-border2); }
.tool-page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: .5rem;
}
.tool-page-desc {
  font-size: .95rem;
  color: var(--c-text2);
  max-width: 600px;
  line-height: 1.7;
}

/* Tool area */
.tool-area {
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

/* JS Minifier UI */
.minifier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--c-surface2);
  border-bottom: 1px solid var(--c-border);
  gap: 10px;
}
.editor-toolbar-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--c-text3);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.editor-toolbar-actions { display: flex; align-items: center; gap: 6px; }
.tool-btn {
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--c-text3);
  background: transparent;
  border: 1px solid var(--c-border);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .13s, color .13s;
  white-space: nowrap;
}
.tool-btn:hover { background: var(--c-surface3); color: var(--c-text); }
.tool-btn.accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.tool-btn.accent:hover { background: var(--c-accent-h); }
.editor-textarea {
  flex: 1;
  width: 100%;
  min-height: 320px;
  background: var(--c-surface);
  color: var(--c-text);
  border: none;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.65;
  padding: 1rem 1.1rem;
  outline: none;
  transition: background .2s;
}
.editor-textarea::placeholder { color: var(--c-text3); }
.editor-textarea:focus { background: color-mix(in srgb, var(--c-surface) 95%, var(--c-accent)); }
.output-textarea {
  flex: 1;
  width: 100%;
  min-height: 320px;
  background: var(--c-bg);
  color: var(--c-text2);
  border: none;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.65;
  padding: 1rem 1.1rem;
  outline: none;
  cursor: default;
}
.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--c-surface2);
  border-top: 1px solid var(--c-border);
  font-size: .72rem;
  font-family: var(--font-mono);
  color: var(--c-text3);
  gap: 10px;
  flex-wrap: wrap;
}
.editor-stat { display: flex; align-items: center; gap: 5px; }
.stat-highlight { color: var(--c-accent); font-weight: 600; }
.stat-green { color: var(--c-green); font-weight: 600; }

/* Options bar */
.options-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.option-group { display: flex; align-items: center; gap: 8px; }
.option-label { font-size: .8rem; color: var(--c-text2); font-weight: 500; }
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--c-surface3);
  border-radius: 20px;
  border: 1px solid var(--c-border);
  transition: background .2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--c-accent); border-color: var(--c-accent); }
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  pointer-events: none;
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(16px); }

/* Big minify button */
.minify-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

/* ======================================================
   AD BANNER PLACEHOLDER
   ====================================================== */
.ad-banner {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.ad-banner-inner {
  width: 100%;
  min-height: 90px;
  background: var(--c-surface2);
  border: 2px dashed var(--c-border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text3);
  font-size: .8rem;
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

/* ======================================================
   INFO BOXES (SEO sections)
   ====================================================== */
.info-section {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}
.info-section-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-bottom: 1.25rem;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.info-box {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.info-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.info-box-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-box-title {
  font-size: .97rem;
  font-weight: 700;
  color: var(--c-text);
}
.info-box-body {
  font-size: .86rem;
  color: var(--c-text2);
  line-height: 1.7;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .86rem;
  color: var(--c-text2);
  line-height: 1.55;
  list-style: none;
}
.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.check-list li .chk {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c-green);
}

/* Wide info box (full-width text) */
.info-box-wide {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.1rem;
}
.info-box-wide h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: .75rem;
}
.info-box-wide p {
  font-size: .88rem;
  color: var(--c-text2);
  line-height: 1.75;
  max-width: 820px;
}
.info-box-wide p + p { margin-top: .7rem; }

/* ======================================================
   PAGE (static pages like imprint)
   ====================================================== */
.page-wrap {
  max-width: 780px;
  margin: 3.5rem auto 4rem;
  padding: 0 2rem;
}
.page-wrap h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 1.75rem;
}
.page-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-bottom: 1.25rem;
}
.page-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: .85rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--c-border);
}
.page-card p {
  font-size: .9rem;
  color: var(--c-text2);
  line-height: 1.75;
}
.page-card p + p { margin-top: .65rem; }
.page-card address {
  font-style: normal;
  font-size: .9rem;
  color: var(--c-text2);
  line-height: 1.9;
}
.page-card a { color: var(--c-accent); }
.page-notice {
  background: var(--c-accent-muted);
  border: 1px solid color-mix(in srgb, var(--c-accent) 25%, transparent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .86rem;
  color: var(--c-text2);
  line-height: 1.65;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.page-notice svg { flex-shrink: 0; margin-top: 1px; color: var(--c-accent); }

/* ======================================================
   ANIMATIONS
   ====================================================== */
.fi { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fi.vis { opacity: 1; transform: none; }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .minifier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .terminal { display: none; }
}
@media (max-width: 580px) {
  .foot-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .options-bar { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .info-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1.25rem; gap: 1rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  section { padding: 3rem 1.25rem; }
}
