/* ═══════════════════════════════════════════════════
   HELIUM DOCK — Design System v2
   Theme: Dark editorial-tech
   Fonts: Bebas Neue (display) + DM Sans (body)
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── Reset ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
img,video{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
input,textarea,select{font-family:inherit}

/* ── Tokens ── */
:root {
  --bg:         #08080d;
  --bg2:        #0f0f17;
  --bg3:        #141420;
  --surface:    #1a1a26;
  --surface2:   #21212f;
  --border:     rgba(255,255,255,0.06);
  --border2:    rgba(255,255,255,0.11);

  --text:       #eeeef5;
  --text-muted: #8888a0;
  --text-light: #4a4a60;

  --primary:    #c6f135;
  --primary-dk: #a8d420;
  --primary-dim: rgba(198,241,53,0.10);
  --primary-glow: rgba(198,241,53,0.20);

  --accent:     #5b8def;
  --accent-dim: rgba(91,141,239,0.13);

  --red:    #ff4d6d; --red-dim: rgba(255,77,109,0.10);
  --teal:   #2dd4bf; --teal-dim: rgba(45,212,191,0.10);
  --amber:  #f59e0b; --amber-dim: rgba(245,158,11,0.10);
  --purple: #a78bfa; --purple-dim: rgba(167,139,250,0.10);
  --pink:   #f472b6; --pink-dim: rgba(244,114,182,0.10);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;

  --shadow:    0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.7);

  --ease: cubic-bezier(0.16,1,0.3,1);
  --t: 0.2s; --t-lg: 0.4s;
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
@media(min-width:640px){.container{padding:0 28px}}
@media(min-width:1200px){.container{padding:0 40px}}

/* ── Typography ── */
.display { font-family: var(--font-display); letter-spacing: 0.03em; line-height: 1; }
.text-primary { color: var(--primary) }
.text-muted   { color: var(--text-muted) }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #08080d }
.btn-primary:hover { background: #d6ff48; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(198,241,53,0.28) }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border2) }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-dim) }
.btn-sm { padding: 7px 14px; font-size: 13px }
.btn-lg { padding: 14px 30px; font-size: 15px; border-radius: var(--r-lg) }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-green  { background: rgba(198,241,53,0.1); color: var(--primary); border:1px solid rgba(198,241,53,0.18) }
.badge-blue   { background: var(--accent-dim); color: var(--accent); border:1px solid rgba(91,141,239,0.18) }
.badge-teal   { background: var(--teal-dim); color: var(--teal); border:1px solid rgba(45,212,191,0.18) }
.badge-amber  { background: var(--amber-dim); color: var(--amber); border:1px solid rgba(245,158,11,0.18) }
.badge-red    { background: var(--red-dim); color: var(--red); border:1px solid rgba(255,77,109,0.18) }
.badge-purple { background: var(--purple-dim); color: var(--purple); border:1px solid rgba(167,139,250,0.18) }
.badge-pink   { background: var(--pink-dim); color: var(--pink); border:1px solid rgba(244,114,182,0.18) }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 62px;
  display: flex;
  align-items: center;
  background: rgba(8,8,13,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled { background: rgba(8,8,13,0.97); border-color: var(--border2) }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0 }
.logo-mark {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: #08080d;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.07em;
  color: var(--text);
}
.logo-text em { color: var(--primary); font-style: normal }

/* Nav links */
.site-nav { display: none; align-items: center; gap: 2px; flex: 1 }
@media(min-width:860px){.site-nav{display:flex}}
.site-nav a {
  padding: 6px 13px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
}
.site-nav a:hover { color: var(--text); background: var(--surface) }
.site-nav a.active { color: var(--primary) }

/* Header right */
.header-right { display: flex; align-items: center; gap: 10px; margin-left: auto }

.header-search-wrap { display: none; position: relative }
@media(min-width:580px){.header-search-wrap{display:flex;align-items:center}}

.header-search {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 14px 7px 36px;
  color: var(--text);
  font-size: 13px;
  width: 200px;
  transition: all var(--t);
  outline: none;
}
.header-search:focus { border-color: var(--primary); width: 260px; background: var(--bg2) }
.header-search::placeholder { color: var(--text-light) }
.search-icon-abs {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 8px;
  display: none;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
}
.search-dropdown.show { display: block }

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background var(--t);
  text-decoration: none;
  color: inherit;
}
.search-result:hover { background: var(--surface) }
.search-result-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.search-result-name { font-size: 13px; font-weight: 600 }
.search-result-cat  { font-size: 11px; color: var(--text-muted) }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--r-sm);
  transition: background var(--t);
  flex-shrink: 0;
}
@media(min-width:860px){.hamburger{display:none}}
.hamburger:hover { background: var(--surface) }
.hamburger span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
  display: block;
}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.open span:nth-child(2){opacity:0}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 62px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 90;
  display: flex; flex-direction: column;
  padding: 20px;
  gap: 4px;
  transform: translateX(-100%);
  transition: transform var(--t-lg) var(--ease);
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
@media(min-width:860px){.mobile-nav{display:none!important}}
.mobile-nav.open{transform:translateX(0)}

.mob-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
  border: 1px solid transparent;
  text-decoration: none;
}
.mob-link:hover { color: var(--text); background: var(--surface); border-color: var(--border) }
.mob-link.active { color: var(--primary); background: var(--primary-dim); border-color: rgba(198,241,53,0.15) }
.mob-link-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0 }
.mob-divider { height: 1px; background: var(--border); margin: 8px 0 }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 30%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-a { width: 600px; height: 600px; background: rgba(198,241,53,0.07); top: -150px; left: -100px }
.orb-b { width: 500px; height: 500px; background: rgba(91,141,239,0.07); bottom: -100px; right: -80px }
.orb-c { width: 300px; height: 300px; background: rgba(45,212,191,0.05); top: 40%; right: 20% }

.hero-inner { position: relative; z-index: 2 }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--primary-dim);
  border: 1px solid rgba(198,241,53,0.18);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeUp .55s var(--ease) both;
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.3}}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(52px, 9.5vw, 116px);
  line-height: .93;
  letter-spacing: 0.015em;
  margin-bottom: 22px;
  animation: fadeUp .55s var(--ease) .08s both;
}
.h1-accent { color: var(--primary) }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 300;
  animation: fadeUp .55s var(--ease) .16s both;
}

/* Hero search */
.hero-search-box {
  position: relative;
  max-width: 580px;
  margin-bottom: 20px;
  animation: fadeUp .55s var(--ease) .22s both;
}
.hero-search-box input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-xl);
  padding: 17px 148px 17px 52px;
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: all var(--t);
}
.hero-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198,241,53,0.07);
  background: var(--bg2);
}
.hero-search-box input::placeholder { color: var(--text-light) }
.hero-search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: var(--text-muted);
  pointer-events: none;
}
.hero-search-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
}
.hero-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  padding: 8px;
  z-index: 50;
  display: none;
  max-height: 380px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.hero-search-results.show { display: block }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: fadeUp .55s var(--ease) .28s both;
  margin-bottom: 48px;
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  animation: fadeUp .55s var(--ease) .35s both;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.hero-stat-num em { color: var(--primary); font-style: normal }
.hero-stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 500; letter-spacing: 0.04em }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section { padding: 80px 0 }
.section-sm { padding: 52px 0 }
@media(max-width:640px){.section{padding:56px 0}.section-sm{padding:36px 0}}

.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-label::before { content:''; width:20px; height:2px; background:var(--primary); border-radius:1px }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 54px);
  letter-spacing: 0.025em;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.65;
}

/* ══════════════════════════════════════
   CATEGORY FILTER PILLS
══════════════════════════════════════ */
.cat-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 20px 0;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-pill:hover { border-color: rgba(198,241,53,0.3); color: var(--primary); background: var(--primary-dim) }
.cat-pill.active { background: var(--primary); color: #08080d; border-color: var(--primary); font-weight: 700 }

/* ══════════════════════════════════════
   TOOL CARDS
══════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
@media(max-width:560px){.tools-grid{grid-template-columns:1fr 1fr;gap:8px}}
@media(max-width:340px){.tools-grid{grid-template-columns:1fr}}

.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.tool-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-dim), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.tool-card:hover { border-color: rgba(198,241,53,0.22); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.4) }
.tool-card:hover::after { opacity: 1 }
.tool-card:hover .tc-arrow { color: var(--primary); transform: translateX(3px) }

.tc-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.tc-body { flex: 1; min-width: 0; position: relative; z-index: 1 }
.tc-name {
  font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tc-desc {
  font-size: 11px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-arrow { color: var(--text-light); font-size: 13px; flex-shrink: 0; transition: all var(--t); margin-top: 2px; position: relative; z-index: 1 }

/* Icon color classes */
.ic-text   { background: rgba(91,141,239,0.13) }
.ic-image  { background: rgba(167,139,250,0.13) }
.ic-pdf    { background: rgba(255,77,109,0.13) }
.ic-dev    { background: rgba(45,212,191,0.13) }
.ic-seo    { background: rgba(198,241,53,0.13) }
.ic-calc   { background: rgba(245,158,11,0.13) }
.ic-conv   { background: rgba(45,212,191,0.13) }
.ic-gen    { background: rgba(244,114,182,0.13) }

/* ══════════════════════════════════════
   CATEGORY CARDS (big)
══════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
@media(max-width:560px){.cat-grid{grid-template-columns:1fr 1fr;gap:8px}}

.cat-card {
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.cat-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow) }
.cat-card:hover .cc-arrow { color: var(--primary) }

.cc-icon {
  width: 44px; height: 44px;
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cc-name { font-size: 15px; font-weight: 700; color: var(--text) }
.cc-count { font-size: 12px; color: var(--text-muted) }
.cc-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.cc-arrow { font-size: 12px; color: var(--text-light); font-weight: 600; margin-top: auto; transition: color var(--t) }

/* Cat-card color accents */
.cca-text  { border-top: 2px solid var(--accent)  }.cca-text  .cc-icon{background:var(--accent-dim)}
.cca-image { border-top: 2px solid var(--purple) }.cca-image .cc-icon{background:var(--purple-dim)}
.cca-pdf   { border-top: 2px solid var(--red)   }.cca-pdf   .cc-icon{background:var(--red-dim)}
.cca-dev   { border-top: 2px solid var(--teal)  }.cca-dev   .cc-icon{background:var(--teal-dim)}
.cca-seo   { border-top: 2px solid var(--primary)}.cca-seo  .cc-icon{background:var(--primary-dim)}
.cca-calc  { border-top: 2px solid var(--amber) }.cca-calc  .cc-icon{background:var(--amber-dim)}
.cca-conv  { border-top: 2px solid var(--teal)  }.cca-conv  .cc-icon{background:var(--teal-dim)}
.cca-gen   { border-top: 2px solid var(--pink)  }.cca-gen   .cc-icon{background:var(--pink-dim)}

/* ══════════════════════════════════════
   FEATURE STRIP
══════════════════════════════════════ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.feature-item {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background var(--t);
}
.feature-item:last-child { border-right: none }
.feature-item:hover { background: var(--surface) }
@media(max-width:640px){
  .feature-strip { grid-template-columns: 1fr 1fr }
  .feature-item { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border) }
  .feature-item:nth-child(even){border-right:none}
}
@media(max-width:380px){
  .feature-strip{grid-template-columns:1fr}
  .feature-item{border-right:none}
}
.fi-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.fi-title { font-size: 14px; font-weight: 700; margin-bottom: 3px }
.fi-desc  { font-size: 12px; color: var(--text-muted); line-height: 1.5 }

/* ══════════════════════════════════════
   BLOG CARDS
══════════════════════════════════════ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px,1fr));
  gap: 12px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: all var(--t) var(--ease);
}
.blog-card:hover { border-color: var(--border2); transform: translateY(-3px); box-shadow: var(--shadow) }
.blog-thumb {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  background: var(--surface2);
}
.blog-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 7px }
.blog-cat  { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase }
.blog-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text) }
.blog-excerpt {
  font-size: 12px; color: var(--text-muted); line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-meta {
  display: flex; gap: 12px;
  font-size: 11px; color: var(--text-light);
  padding: 10px 18px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════
   TOOL PAGE
══════════════════════════════════════ */
.page-header {
  padding: 96px 0 36px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media(min-width:1024px){.layout-sidebar{grid-template-columns:1fr 300px}}

.tool-interface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.ti-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.ti-title { font-size: 13px; font-weight: 600; color: var(--text-muted) }
.ti-body { padding: 18px }

.tool-input, .tool-textarea, .tool-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 11px 15px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
}
.tool-input:focus,.tool-textarea:focus,.tool-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198,241,53,0.07);
}
.tool-textarea { resize: vertical; min-height: 140px; line-height: 1.6 }

.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 }

.tool-output {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.to-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; border-bottom: 1px solid var(--border);
}
.to-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .07em }
.to-body { padding: 13px; font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-all; min-height: 80px }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 8px; margin: 10px 0 }
.stat-card {
  padding: 12px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
}
.stat-val { font-family: var(--font-display); font-size: 26px; letter-spacing: .03em; color: var(--primary); line-height: 1 }
.stat-lbl { font-size: 10px; color: var(--text-muted); margin-top: 3px; font-weight: 600; letter-spacing: .04em }

/* Sidebar widgets */
.sw { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 18px; margin-bottom: 12px }
.sw-title { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border) }
.sw-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--t); text-decoration: none;
}
.sw-link:last-child { border-bottom: none; padding-bottom: 0 }
.sw-link:hover { color: var(--primary) }

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  flex-wrap: wrap; margin-bottom: 14px;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--t) }
.breadcrumb a:hover { color: var(--primary) }
.breadcrumb .sep { color: var(--text-light) }
.breadcrumb .cur { color: var(--text) }

/* ══════════════════════════════════════
   SEO CONTENT
══════════════════════════════════════ */
.seo-content { max-width: 720px }
.seo-content h2 { font-family: var(--font-display); font-size: clamp(20px,3vw,30px); letter-spacing: .025em; margin: 36px 0 12px; color: var(--text) }
.seo-content h2:first-child { margin-top: 0 }
.seo-content p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px }
.seo-content ul,.seo-content ol { padding-left: 20px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px }
.seo-content li { font-size: 15px; color: var(--text-muted); line-height: 1.6 }
.seo-content strong { color: var(--text); font-weight: 600 }
.seo-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 7px; overflow: hidden; transition: border-color var(--t) }
.faq-item.open { border-color: var(--border2) }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: background var(--t);
}
.faq-q:hover { background: var(--surface2) }
.faq-chevron { color: var(--text-muted); font-size: 16px; transition: transform var(--t) var(--ease); flex-shrink: 0 }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary) }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease) }
.faq-item.open .faq-a { max-height: 400px }
.faq-a-inner { padding: 0 18px 16px; font-size: 13px; color: var(--text-muted); line-height: 1.7 }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 0 }
.step { display: flex; gap: 14px; padding-bottom: 22px; position: relative }
.step::before { content: ''; position: absolute; left: 13px; top: 32px; bottom: 0; width: 2px; background: var(--border) }
.step:last-child { padding-bottom: 0 }
.step:last-child::before { display: none }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #08080d; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1 }
.step-content { padding-top: 3px; flex: 1 }
.step-title { font-size: 14px; font-weight: 700; margin-bottom: 4px }
.step-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.6 }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 0 0 }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media(max-width:860px){.footer-grid{grid-template-columns:1fr 1fr;gap:28px}}
@media(max-width:480px){.footer-grid{grid-template-columns:1fr;gap:20px}}

.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-top: 12px; max-width: 260px }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px }
.footer-col a { font-size: 13px; color: var(--text-muted); transition: color var(--t) }
.footer-col a:hover { color: var(--primary) }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-light);
}
.footer-links { display: flex; gap: 18px }
.footer-links a { color: var(--text-light); transition: color var(--t) }
.footer-links a:hover { color: var(--text-muted) }

/* ══════════════════════════════════════
   UTILITIES
══════════════════════════════════════ */
.show-more-wrap { text-align: center; margin-top: 28px }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 11px 20px;
  border-radius: var(--r-lg);
  font-size: 14px; font-weight: 500;
  z-index: 999;
  transition: transform .3s var(--ease);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0) }

.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  transition: all var(--t); cursor: pointer;
}
.copy-btn:hover { background: var(--primary-dim); border-color: rgba(198,241,53,0.25); color: var(--primary) }
.copy-btn.copied { color: var(--primary) }

::-webkit-scrollbar { width: 5px; height: 5px }
::-webkit-scrollbar-track { background: var(--bg2) }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px }
::-webkit-scrollbar-thumb:hover { background: var(--border2) }

/* Animations */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .55s var(--ease),transform .55s var(--ease) }
.reveal.visible { opacity:1; transform:translateY(0) }

/* Form controls */
input[type=range] { -webkit-appearance:none; width:100%; height:4px; background:var(--surface2); border-radius:2px; outline:none }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--primary); cursor:pointer; box-shadow:0 0 0 3px rgba(198,241,53,0.2) }
input[type=range]::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:var(--primary); border:none; cursor:pointer }

.tabs { display:flex; gap:0; border-bottom:1px solid var(--border); margin-bottom:18px }
.tab-btn { padding:9px 18px; font-size:13px; font-weight:600; color:var(--text-muted); border-bottom:2px solid transparent; margin-bottom:-1px; transition:all var(--t); cursor:pointer }
.tab-btn.active { color:var(--primary); border-bottom-color:var(--primary) }
.tab-btn:hover:not(.active) { color:var(--text) }
.tab-panel { display:none }
.tab-panel.active { display:block }

.strength-bar { height:4px; background:var(--surface2); border-radius:2px; overflow:hidden; margin:8px 0 }
.strength-fill { height:100%; border-radius:2px; transition:width .4s var(--ease),background .4s }

/* Ticker marquee */
.ticker-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; background: var(--bg2) }
.ticker { display: flex; gap: 0; animation: ticker 40s linear infinite; width: max-content }
.ticker:hover { animation-play-state: paused }
.ticker-item { display: flex; align-items: center; gap: 8px; padding: 0 28px; font-size: 13px; color: var(--text-muted); white-space: nowrap }
.ticker-item span { font-size: 16px }
.ticker-dot { color: var(--primary); font-size: 20px; line-height: 1 }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
