/* LAYOUT */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.section { padding: 64px 0; }
.section-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--text3); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 12px;
}
h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px,3.5vw,36px); line-height: 1.15;
  color: #fff; margin-bottom: 10px;
}
.section-sub { font-size: 16px; color: var(--text2); margin-bottom: 36px; }

/* HERO */
.tool-hero-eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.tool-hero-eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent);
}
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px,5.5vw,64px);
  line-height: 1.07; letter-spacing: -.02em;
  color: #fff; margin-bottom: 20px;
}
h1 .hl { color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--text2);
  max-width: 560px; margin-bottom: 36px; line-height: 1.65;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #050a07;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: filter .15s, transform .1s;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text2);
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 13px 20px; border-radius: 8px;
  border: 1px solid var(--border2); text-decoration: none; cursor: pointer;
  transition: color .15s, border-color .15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text3); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

/* STAT BAR */
.stat-bar {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; margin: 48px 0;
}
.stat-item { background: var(--surface); padding: 24px 28px; }
.stat-num {
  font-family: var(--mono); font-size: 32px; font-weight: 600;
  color: var(--accent); line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text2); }

/* TOOLS GRID */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 14px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, background .15s;
}
.tool-card:hover { border-color: var(--border2); background: var(--surface2); }
.tool-card.live { border-color: rgba(34,232,122,.3); }
.tool-card.live:hover { border-color: rgba(34,232,122,.6); }
.tool-card.soon { opacity: .5; pointer-events: none; }
.tool-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.live .tool-icon { background: var(--accent-glow); border-color: rgba(34,232,122,.25); }
.tool-status {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; align-self: flex-start;
}
.status-live { background: var(--accent-glow); color: var(--accent); }
.status-soon { background: rgba(255,255,255,.05); color: var(--text3); }
.tool-name { font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; line-height: 1.3; }
.tool-desc { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* WHY CARDS */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 20px; margin-top: 36px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.why-num { font-family: var(--mono); font-size: 36px; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.why-label { font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 6px; }
.why-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }

/* AFFILIATE */
.affiliate-strip { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 36px 5%; }
.affiliate-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.affiliate-text { flex: 1; min-width: 260px; }
.affiliate-text p { font-size: 13px; color: var(--text3); margin-top: 4px; }
.affiliate-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.affiliate-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--text); font-family: var(--sans); font-weight: 500; font-size: 14px; padding: 10px 18px; border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.affiliate-btn:hover { border-color: var(--accent-dim); color: var(--accent); }
.affiliate-btn.featured { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-glow); }

/* IP BAR */
.ip-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 48px; }
.ip-stat { display: flex; flex-direction: column; gap: 4px; }
.ip-stat-label { font-family: var(--mono); font-size: 11px; color: var(--text3); letter-spacing: .08em; text-transform: uppercase; }
.ip-stat-value { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); }
.ip-stat-value.loading { color: var(--text3); animation: pulse 1.4s ease-in-out infinite; }
.ip-stat-value.ok { color: var(--accent); }
.ip-stat-value.warn { color: var(--yellow); }
.ip-divider { width: 1px; height: 44px; background: var(--border); }
@keyframes pulse { 0%,100%{opacity:.4} 50%{opacity:1} }

/* LEAK TEST */
.leak-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; margin-bottom: 28px; }
.leak-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: border-color .3s; }
.leak-card.status-ok { border-color: rgba(34,232,122,.35); }
.leak-card.status-warn { border-color: rgba(255,200,71,.35); }
.leak-card.status-danger { border-color: rgba(255,77,106,.35); }
.leak-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.leak-card-title { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: .06em; text-transform: uppercase; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; letter-spacing: .04em; }
.badge-loading { background: rgba(255,255,255,.05); color: var(--text3); }
.badge-ok { background: rgba(34,232,122,.12); color: var(--accent); }
.badge-warn { background: rgba(255,200,71,.12); color: var(--yellow); }
.badge-danger { background: rgba(255,77,106,.12); color: var(--red); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.leak-value { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 6px; min-height: 27px; word-break: break-all; }
.leak-desc { font-size: 13px; color: var(--text3); line-height: 1.55; }
.ip-list { list-style: none; }
.ip-list li { font-family: var(--mono); font-size: 13px; color: var(--text2); padding: 3px 0; display: flex; align-items: center; gap: 8px; }
.ip-list li::before { content: '›'; color: var(--text3); }
.run-container { text-align: center; margin-top: 10px; }
#run-btn { background: var(--accent); color: #050a07; font-family: var(--display); font-weight: 700; font-size: 16px; padding: 15px 36px; border-radius: 10px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; transition: filter .15s; }
#run-btn:hover { filter: brightness(1.08); }
#run-btn:disabled { filter: brightness(.5); cursor: not-allowed; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(5,10,7,.3); border-top-color: #050a07; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
#run-btn.running .spinner { display: block; }
#run-btn.running .run-icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#result-summary { margin-top: 28px; padding: 20px 24px; border-radius: 10px; display: none; font-family: var(--mono); font-size: 14px; }
#result-summary.ok { background: rgba(34,232,122,.08); border: 1px solid rgba(34,232,122,.25); color: var(--accent); }
#result-summary.danger { background: rgba(255,77,106,.08); border: 1px solid rgba(255,77,106,.25); color: var(--red); }
#result-summary.warn { background: rgba(255,200,71,.08); border: 1px solid rgba(255,200,71,.25); color: var(--yellow); }
.summary-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.summary-body { font-size: 13px; opacity: .8; line-height: 1.6; }

/* PASSWORD METER */
.pw-shell { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; max-width: 720px; }
.pw-input-wrap { position: relative; margin-bottom: 16px; }
.pw-input { width: 100%; background: var(--bg); border: 1px solid var(--border2); border-radius: 9px; color: var(--text); font-family: var(--mono); font-size: 18px; padding: 14px 52px 14px 18px; outline: none; transition: border-color .15s; letter-spacing: .06em; }
.pw-input:focus { border-color: var(--accent-dim); }
.pw-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text3); cursor: pointer; padding: 4px; transition: color .15s; }
.pw-toggle:hover { color: var(--text2); }
.pw-bar-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.pw-bar-fill { height: 100%; width: 0%; border-radius: 99px; transition: width .3s ease, background .3s ease; background: var(--text3); }
.pw-bar-labels { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.pw-score-label { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text2); }
.pw-entropy-label { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.pw-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.pw-stat-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.pw-stat-title { font-family: var(--mono); font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.pw-stat-val { font-family: var(--mono); font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.2; margin-bottom: 4px; }
.pw-stat-sub { font-size: 11px; color: var(--text3); }
.pw-breach-row { margin-bottom: 20px; }
.pw-breach-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 13px 16px; font-family: var(--mono); font-size: 13px; color: var(--text2); }
.pw-breach-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text3); flex-shrink: 0; animation: pulse 1.4s ease-in-out infinite; }
.pw-breach-dot.ok { background: var(--accent); animation: none; }
.pw-breach-dot.danger { background: var(--red); animation: none; }
.pw-breach-note { font-size: 11px; color: var(--text3); width: 100%; margin-top: 2px; }
.pw-tips { border-top: 1px solid var(--border); padding-top: 20px; }
.pw-tips-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: 12px; }
.pw-tips-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pw-tips-list li { font-size: 14px; color: var(--text2); display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.pw-tips-list li::before { content: '→'; color: var(--accent-dim); flex-shrink: 0; margin-top: 1px; }

/* HEADER GRADER */
.hg-shell { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; max-width: 800px; }
.hg-input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.hg-input { flex: 1; background: var(--bg); border: 1px solid var(--border2); border-radius: 9px; color: var(--text); font-family: var(--mono); font-size: 15px; padding: 13px 18px; outline: none; transition: border-color .15s; }
.hg-input:focus { border-color: var(--accent-dim); }
.hg-btn { background: var(--accent); color: #050a07; font-family: var(--display); font-weight: 700; font-size: 14px; padding: 13px 22px; border-radius: 9px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: filter .15s; flex-shrink: 0; }
.hg-btn:hover { filter: brightness(1.08); }
.hg-btn:disabled { filter: brightness(.5); cursor: not-allowed; }
.hg-spinner { width: 15px; height: 15px; border: 2px solid rgba(5,10,7,.3); border-top-color: #050a07; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.hg-btn.running .hg-spinner { display: block; }
.hg-btn.running .hg-btn-icon { display: none; }
.hg-error { font-family: var(--mono); font-size: 13px; color: var(--red); background: rgba(255,77,106,.08); border: 1px solid rgba(255,77,106,.2); border-radius: 8px; padding: 11px 16px; margin-bottom: 16px; }
.hg-grade-row { display: flex; align-items: center; gap: 24px; margin: 24px 0 28px; flex-wrap: wrap; }
.hg-grade-circle { width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 42px; font-weight: 800; border: 3px solid var(--border); transition: border-color .3s, color .3s; }
.hg-grade-circle.grade-a { border-color: var(--accent); color: var(--accent); }
.hg-grade-circle.grade-b { border-color: #8ae46a; color: #8ae46a; }
.hg-grade-circle.grade-c { border-color: var(--yellow); color: var(--yellow); }
.hg-grade-circle.grade-d { border-color: #ff8c42; color: #ff8c42; }
.hg-grade-circle.grade-f { border-color: var(--red); color: var(--red); }
.hg-grade-meta { flex: 1; min-width: 200px; }
.hg-grade-title { font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 4px; }
.hg-grade-url { font-family: var(--mono); font-size: 12px; color: var(--text3); margin-bottom: 14px; word-break: break-all; }
.hg-score-bar-track { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.hg-score-bar-fill { height: 100%; border-radius: 99px; transition: width .5s ease, background .3s; }
.hg-score-label { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.hg-headers-list { display: flex; flex-direction: column; gap: 10px; }
.hg-header-row { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; }
.hg-header-row.present { border-left: 3px solid var(--accent); }
.hg-header-row.missing { border-left: 3px solid var(--red); }
.hg-header-row.warn { border-left: 3px solid var(--yellow); }
.hg-header-row.optional { border-left: 3px solid var(--border2); }
.hg-row-icon { font-size: 16px; margin-top: 1px; }
.hg-row-name { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.hg-row-value { font-family: var(--mono); font-size: 11px; color: var(--text3); margin-bottom: 6px; word-break: break-all; }
.hg-row-desc { font-size: 13px; color: var(--text2); line-height: 1.55; }
.hg-row-badge { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 4px; letter-spacing: .06em; white-space: nowrap; align-self: start; }
.hg-badge-pass { background: rgba(34,232,122,.1); color: var(--accent); }
.hg-badge-fail { background: rgba(255,77,106,.1); color: var(--red); }
.hg-badge-warn { background: rgba(255,200,71,.1); color: var(--yellow); }
.hg-badge-info { background: rgba(255,255,255,.05); color: var(--text3); }
.more-info-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--accent-dim); text-decoration: none; border: 1px solid var(--border2); padding: 4px 10px; border-radius: 5px; transition: color .15s, border-color .15s; }
.more-info-link:hover { color: var(--accent); border-color: var(--accent-dim); }

/* RESPONSIVE */
@media (max-width: 640px) {
  .ip-card { flex-direction: column; align-items: flex-start; }
  .ip-divider { width: 100%; height: 1px; }
  .pw-stats { grid-template-columns: repeat(2,1fr); }
}
