:root {
	--bg: #0a0c10;
	--bg2: #0f1218;
	--bg3: #161b24;
	--border: #1e2634;
	--border2: #2a3347;
	--green: #00ff87;
	--green-dim: #00c96b;
	--green-faint: rgba(0, 255, 135, 0.06);
	--cyan: #00d4ff;
	--yellow: #ffd166;
	--orange: #ff9640;
	--red: #ff4757;
	--purple: #a855f7;
	--text: #c8d3e8;
	--text-dim: #5a6a85;
	--text-mid: #8896b3;
	--white: #e8edf5;
	--radius: 8px;
	--radius-lg: 14px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: "JetBrains Mono", monospace;
	font-size: 14px;
	line-height: 1.6;
	min-height: 100vh;
	overflow-x: hidden;
}

/* ─── PROGRESS BAR ─────────────────────────────────────────── */
#progress-bar-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	height: 3px;
	background: transparent;
}
#progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--green), var(--cyan));
	box-shadow: 0 0 12px var(--green);
	transition: width 0.2s ease;
	position: relative;
}
#progress-bar::after {
	content: "";
	position: absolute;
	right: 0;
	top: -2px;
	width: 6px;
	height: 7px;
	background: var(--green);
	border-radius: 50%;
	box-shadow:
		0 0 8px var(--green),
		0 0 16px var(--green);
}

/* ─── NOISE TEXTURE ─────────────────────────────────────────── */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
	opacity: 0.4;
}

/* ─── GRID OVERLAY ──────────────────────────────────────────── */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(0, 255, 135, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 135, 0.025) 1px, transparent 1px);
	background-size: 40px 40px;
}

/* ─── LAYOUT ────────────────────────────────────────────────── */
.wrap {
	position: relative;
	z-index: 1;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
	border-bottom: 1px solid var(--border);
	padding: 0 24px;
	position: sticky;
	top: 3px;
	z-index: 100;
	background: rgba(10, 12, 16, 0.9);
	backdrop-filter: blur(14px);
}
.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 58px;
}
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: var(--white);
	text-decoration: none;
	letter-spacing: -0.3px;
}
.logo-icon {
	width: 30px;
	height: 30px;
	position: relative;
	flex-shrink: 0;
}
.logo-icon svg {
	width: 100%;
	height: 100%;
}
.logo span {
	color: var(--green);
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 24px;
}
.nav-links a {
	color: var(--text-dim);
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: color 0.2s;
}
.nav-links a:hover {
	color: var(--green);
}
.badge-oss {
	background: var(--green-faint);
	border: 1px solid rgba(0, 255, 135, 0.25);
	color: var(--green);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 20px;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
	padding: 90px 0 70px;
	text-align: center;
	position: relative;
}
.hero-glow {
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 400px;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(0, 255, 135, 0.07) 0%, transparent 70%);
	pointer-events: none;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--border2);
	background: var(--bg2);
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-mid);
	margin-bottom: 28px;
}
.hero-eyebrow .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 6px var(--green);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.8);
	}
}
.hero h1 {
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.05;
	letter-spacing: -1.5px;
	color: var(--white);
	margin-bottom: 20px;
}
.hero h1 em {
	font-style: normal;
	background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.hero-sub {
	font-size: 15px;
	color: var(--text-mid);
	max-width: 560px;
	margin: 0 auto 40px;
	line-height: 1.7;
	font-family: "JetBrains Mono", monospace;
}
.hero-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	font-size: 11px;
	color: var(--text-dim);
	letter-spacing: 0.06em;
}
.hero-meta span {
	display: flex;
	align-items: center;
	gap: 6px;
}
.hero-meta svg {
	opacity: 0.5;
}

/* ─── SCAN BOX ────────────────────────────────────────────────── */
.scan-section {
	padding: 20px 0 60px;
}
.scan-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.scan-card-header {
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
	padding: 14px 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.window-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}
.wd-r {
	background: #ff5f57;
}
.wd-y {
	background: #febc2e;
}
.wd-g {
	background: #28c840;
}
.scan-card-header span {
	margin-left: auto;
	font-size: 11px;
	color: var(--text-dim);
	letter-spacing: 0.08em;
}
.scan-body {
	padding: 28px;
}
.input-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}
.url-input-wrap {
	flex: 1;
	position: relative;
}
.url-prefix {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--green);
	font-size: 13px;
	font-weight: 600;
	pointer-events: none;
	user-select: none;
}
#url-input {
	width: 100%;
	height: 50px;
	background: var(--bg3);
	border: 1px solid var(--border2);
	border-radius: var(--radius);
	color: var(--white);
	font-family: "JetBrains Mono", monospace;
	font-size: 14px;
	padding: 0 16px 0 42px;
	outline: none;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}
#url-input:focus {
	border-color: var(--green);
	box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.1);
}
#url-input::placeholder {
	color: var(--text-dim);
}

.scan-options {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 14px;
}
.option-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	font-size: 12px;
	color: var(--text-mid);
}
.option-toggle input[type="checkbox"] {
	display: none;
}
.toggle-box {
	width: 16px;
	height: 16px;
	border: 1px solid var(--border2);
	border-radius: 3px;
	background: var(--bg3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background 0.15s,
		border-color 0.15s;
	flex-shrink: 0;
}
.option-toggle input:checked + .toggle-box {
	background: var(--green);
	border-color: var(--green);
}
.toggle-box svg {
	display: none;
}
.option-toggle input:checked + .toggle-box svg {
	display: block;
}

#depth-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--text-mid);
}
#depth-input {
	width: 56px;
	height: 30px;
	background: var(--bg3);
	border: 1px solid var(--border2);
	border-radius: 4px;
	color: var(--white);
	font-family: "JetBrains Mono", monospace;
	font-size: 13px;
	text-align: center;
	outline: none;
	padding: 0 4px;
	transition: border-color 0.15s;
}
#depth-input:focus {
	border-color: var(--green);
}

#scan-btn {
	height: 50px;
	padding: 0 28px;
	background: var(--green);
	border: none;
	border-radius: var(--radius);
	color: #0a0c10;
	font-family: "Syne", sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.02em;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition:
		background 0.2s,
		box-shadow 0.2s,
		transform 0.1s;
	position: relative;
	overflow: hidden;
}
#scan-btn:hover {
	background: #00e87a;
	box-shadow: 0 0 24px rgba(0, 255, 135, 0.35);
}
#scan-btn:active {
	transform: scale(0.97);
}
#scan-btn.scanning {
	background: var(--bg3);
	border: 1px solid var(--red);
	color: var(--red);
	box-shadow: none;
}
#scan-btn.scanning:hover {
	background: rgba(255, 71, 87, 0.1);
}

/* ─── STATUS CONSOLE ──────────────────────────────────────────── */
#console-wrap {
	margin-top: 20px;
	display: none;
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}
#console-wrap.visible {
	display: block;
}
.console-header {
	padding: 10px 16px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: var(--text-dim);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.console-header .blink {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 5px var(--green);
	animation: blink-anim 0.8s step-end infinite;
}
@keyframes blink-anim {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}
#console-log {
	height: 160px;
	overflow-y: auto;
	padding: 12px 16px;
	font-size: 12px;
	line-height: 1.8;
	color: var(--text-mid);
}
#console-log::-webkit-scrollbar {
	width: 4px;
}
#console-log::-webkit-scrollbar-thumb {
	background: var(--border2);
	border-radius: 2px;
}
.log-line {
	display: flex;
	gap: 10px;
}
.log-time {
	color: var(--text-dim);
	flex-shrink: 0;
}
.log-ok {
	color: var(--green);
}
.log-warn {
	color: var(--yellow);
}
.log-err {
	color: var(--red);
}
.log-info {
	color: var(--cyan);
}

/* ─── STATS ROW ───────────────────────────────────────────────── */
#stats-row {
	display: none;
	gap: 12px;
	margin-top: 20px;
	flex-wrap: wrap;
}
#stats-row.visible {
	display: flex;
}
.stat-card {
	flex: 1;
	min-width: 120px;
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px 18px;
	text-align: center;
}
.stat-num {
	font-family: "Syne", sans-serif;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 4px;
}
.stat-label {
	font-size: 10px;
	color: var(--text-dim);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.stat-total .stat-num {
	color: var(--cyan);
}
.stat-ok .stat-num {
	color: var(--green);
}
.stat-warn .stat-num {
	color: var(--yellow);
}
.stat-err .stat-num {
	color: var(--red);
}
.stat-skip .stat-num {
	color: var(--text-dim);
}

/* ─── REPORT ──────────────────────────────────────────────────── */
#report-section {
	display: none;
	margin-top: 28px;
}
#report-section.visible {
	display: block;
}

.report-toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}
.filter-group {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.filter-btn {
	padding: 5px 12px;
	border-radius: 20px;
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s;
}
.filter-btn.all {
	border-color: var(--border2);
	color: var(--text-mid);
	background: var(--bg3);
}
.filter-btn.ok {
	border-color: rgba(0, 255, 135, 0.3);
	color: var(--green);
	background: rgba(0, 255, 135, 0.06);
}
.filter-btn.redir {
	border-color: rgba(255, 150, 64, 0.3);
	color: var(--orange);
	background: rgba(255, 150, 64, 0.06);
}
.filter-btn.broken {
	border-color: rgba(255, 71, 87, 0.3);
	color: var(--red);
	background: rgba(255, 71, 87, 0.06);
}
.filter-btn.other {
	border-color: rgba(168, 85, 247, 0.3);
	color: var(--purple);
	background: rgba(168, 85, 247, 0.06);
}
.filter-btn.active,
.filter-btn:hover {
	opacity: 1;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);
	filter: brightness(1.15);
}
.filter-btn:not(.active) {
	opacity: 0.65;
}

.ml-auto {
	margin-left: auto;
}

.search-box {
	height: 34px;
	padding: 0 12px;
	background: var(--bg3);
	border: 1px solid var(--border2);
	border-radius: var(--radius);
	color: var(--white);
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	outline: none;
	width: 200px;
	transition: border-color 0.15s;
}
.search-box:focus {
	border-color: var(--green);
}
.search-box::placeholder {
	color: var(--text-dim);
}

.export-btn {
	height: 34px;
	padding: 0 14px;
	background: var(--bg3);
	border: 1px solid var(--border2);
	border-radius: var(--radius);
	color: var(--text-mid);
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	cursor: pointer;
	letter-spacing: 0.04em;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s;
}
.export-btn:hover {
	border-color: var(--green);
	color: var(--green);
}

/* ─── TABLE ───────────────────────────────────────────────────── */
.report-table-wrap {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
table {
	width: 100%;
	border-collapse: collapse;
}
thead tr {
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
}
th {
	padding: 12px 16px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-dim);
	text-align: left;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: color 0.15s;
}
th:hover {
	color: var(--text);
}
th .sort-icon {
	opacity: 0.3;
	margin-left: 4px;
}
th.sorted .sort-icon {
	opacity: 1;
	color: var(--green);
}
tbody tr {
	border-bottom: 1px solid var(--border);
	transition: background 0.1s;
}
tbody tr:last-child {
	border-bottom: none;
}
tbody tr:hover {
	background: rgba(255, 255, 255, 0.02);
}
td {
	padding: 12px 16px;
	vertical-align: top;
}
td.td-status {
	width: 140px;
}
td.td-url {
	max-width: 340px;
}
td.td-src {
	max-width: 240px;
}
td.td-time {
	width: 90px;
	white-space: nowrap;
	color: var(--text-dim);
	font-size: 12px;
}
td.td-depth {
	width: 60px;
	text-align: center;
	color: var(--text-dim);
	font-size: 12px;
}

.url-cell {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.url-main {
	color: var(--white);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 320px;
	display: block;
	text-decoration: none;
}
.url-main:hover {
	color: var(--cyan);
	text-decoration: underline;
}
.url-type {
	font-size: 10px;
	color: var(--text-dim);
}

/* status badges */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
.badge-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
}
.badge.s2xx {
	background: rgba(0, 255, 135, 0.12);
	color: var(--green);
	border: 1px solid rgba(0, 255, 135, 0.25);
}
.badge.s2xx .badge-dot {
	background: var(--green);
	box-shadow: 0 0 4px var(--green);
}
.badge.s3xx {
	background: rgba(255, 150, 64, 0.12);
	color: var(--orange);
	border: 1px solid rgba(255, 150, 64, 0.25);
}
.badge.s3xx .badge-dot {
	background: var(--orange);
}
.badge.s4xx {
	background: rgba(255, 71, 87, 0.12);
	color: var(--red);
	border: 1px solid rgba(255, 71, 87, 0.25);
}
.badge.s4xx .badge-dot {
	background: var(--red);
	box-shadow: 0 0 4px var(--red);
}
.badge.s5xx {
	background: rgba(168, 85, 247, 0.12);
	color: var(--purple);
	border: 1px solid rgba(168, 85, 247, 0.25);
}
.badge.s5xx .badge-dot {
	background: var(--purple);
}
.badge.s0 {
	background: rgba(90, 106, 133, 0.12);
	color: var(--text-dim);
	border: 1px solid var(--border);
}
.badge.s0 .badge-dot {
	background: var(--text-dim);
}

/* source snippet */
.src-snippet {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.src-page {
	font-size: 11px;
	color: var(--text-mid);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 220px;
}
.src-tag {
	display: inline-block;
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 1px 6px;
	font-size: 10px;
	color: var(--cyan);
	font-family: "JetBrains Mono", monospace;
	white-space: nowrap;
}
.src-anchor {
	font-size: 10px;
	color: var(--text-dim);
}

/* copy icon */
.copy-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-dim);
	padding: 2px;
	line-height: 0;
	transition: color 0.15s;
}
.copy-btn:hover {
	color: var(--green);
}

/* empty state */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-dim);
	font-size: 13px;
}
.empty-state svg {
	opacity: 0.2;
	margin-bottom: 16px;
}
.empty-state p {
	margin-top: 8px;
}

/* ─── FEATURES GRID ───────────────────────────────────────────── */
.features {
	padding: 80px 0;
}
.section-label {
	font-size: 11px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--green);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.section-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--border);
}
.section-title {
	font-family: "Syne", sans-serif;
	font-size: clamp(24px, 3.5vw, 36px);
	font-weight: 800;
	color: var(--white);
	margin-bottom: 48px;
	max-width: 480px;
	letter-spacing: -0.5px;
}
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
}
.feature-card {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
	transition:
		border-color 0.2s,
		box-shadow 0.2s,
		transform 0.2s;
	position: relative;
	overflow: hidden;
}
.feature-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(0, 255, 135, 0.04) 0%, transparent 60%);
	opacity: 0;
	transition: opacity 0.3s;
}
.feature-card:hover {
	border-color: var(--border2);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
	transform: translateY(-2px);
}
.feature-card:hover::before {
	opacity: 1;
}
.feature-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--bg3);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--green);
}
.feature-name {
	font-family: "Syne", sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--white);
	margin-bottom: 8px;
}
.feature-desc {
	font-size: 12px;
	color: var(--text-mid);
	line-height: 1.7;
}

/* ─── HOW IT WORKS ────────────────────────────────────────────── */
.how-it-works {
	padding: 80px 0;
}
.steps {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.step {
	display: flex;
	gap: 24px;
	position: relative;
	padding-bottom: 36px;
}
.step:last-child {
	padding-bottom: 0;
}
.step-left {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.step-num {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--bg3);
	border: 2px solid var(--border2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: var(--green);
	flex-shrink: 0;
	z-index: 1;
}
.step-line {
	width: 2px;
	flex: 1;
	margin-top: 8px;
	background: linear-gradient(to bottom, var(--border2), transparent);
}
.step:last-child .step-line {
	display: none;
}
.step-body {
	padding-top: 8px;
	padding-bottom: 8px;
}
.step-title {
	font-family: "Syne", sans-serif;
	font-weight: 700;
	color: var(--white);
	font-size: 16px;
	margin-bottom: 6px;
}
.step-desc {
	font-size: 12px;
	color: var(--text-mid);
	line-height: 1.7;
	max-width: 520px;
}
.step-code {
	margin-top: 12px;
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 11px;
	color: var(--cyan);
	max-width: 480px;
}

/* ─── WHY SECTION ─────────────────────────────────────────────── */
.why-section {
	padding: 80px 0;
}
.why-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
@media (max-width: 700px) {
	.why-grid {
		grid-template-columns: 1fr;
	}
}
.why-visual {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	position: relative;
	overflow: hidden;
}
.why-visual-inner {
	position: relative;
	z-index: 1;
}
.why-visual-glow {
	position: absolute;
	bottom: -40px;
	right: -40px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08), transparent 70%);
	pointer-events: none;
}
.why-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.why-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.why-item-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: rgba(0, 255, 135, 0.08);
	border: 1px solid rgba(0, 255, 135, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--green);
}
.why-item-title {
	font-weight: 600;
	color: var(--white);
	font-size: 13px;
	margin-bottom: 3px;
}
.why-item-desc {
	font-size: 12px;
	color: var(--text-mid);
	line-height: 1.65;
}

/* ─── MECHANISM DIAGRAM ───────────────────────────────────────── */
.mechanism {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.mechanism-header {
	background: var(--bg3);
	border-bottom: 1px solid var(--border);
	padding: 12px 18px;
	font-size: 11px;
	color: var(--text-dim);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 8px;
}
.mechanism-body {
	padding: 24px;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
footer {
	border-top: 1px solid var(--border);
	padding: 40px 24px;
	margin-top: 80px;
}
.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}
.footer-left {
	font-size: 12px;
	color: var(--text-dim);
	line-height: 1.7;
}
.footer-left strong {
	color: var(--text-mid);
}
.footer-links {
	display: flex;
	gap: 20px;
}
.footer-links a {
	font-size: 11px;
	color: var(--text-dim);
	text-decoration: none;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: color 0.2s;
}
.footer-links a:hover {
	color: var(--green);
}

/* ─── TOOLTIP ─────────────────────────────────────────────────── */
[data-tip] {
	position: relative;
	cursor: help;
}
[data-tip]:hover::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg3);
	border: 1px solid var(--border2);
	color: var(--text);
	font-size: 11px;
	padding: 5px 10px;
	border-radius: 5px;
	white-space: nowrap;
	z-index: 1000;
}

/* ─── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
::-webkit-scrollbar-track {
	background: var(--bg);
}
::-webkit-scrollbar-thumb {
	background: var(--border2);
	border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--text-dim);
}

/* ─── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.fade-up {
	animation: fadeUp 0.5s ease both;
}
.fade-up-d1 {
	animation-delay: 0.1s;
}
.fade-up-d2 {
	animation-delay: 0.2s;
}
.fade-up-d3 {
	animation-delay: 0.3s;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 640px) {
	.input-row {
		flex-direction: column;
	}
	#scan-btn {
		width: 100%;
		justify-content: center;
	}
	.report-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
	.search-box {
		width: 100%;
	}
	.nav-links .badge-oss {
		display: none;
	}
}

/* ─── MISC ────────────────────────────────────────────────────── */
.divider {
	height: 1px;
	background: var(--border);
	margin: 40px 0;
}
.text-green {
	color: var(--green);
}
.text-cyan {
	color: var(--cyan);
}
.text-dim {
	color: var(--text-dim);
}
a {
	color: inherit;
}
code {
	background: var(--bg3);
	border: 1px solid var(--border);
	border-radius: 3px;
	padding: 1px 5px;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.9em;
	color: var(--cyan);
}
#no-proxy-note {
	margin-top: 14px;
	padding: 12px 16px;
	background: rgba(255, 209, 102, 0.06);
	border: 1px solid rgba(255, 209, 102, 0.2);
	border-radius: var(--radius);
	font-size: 12px;
	color: var(--yellow);
	display: none;
	line-height: 1.6;
}
#no-proxy-note.visible {
	display: block;
}
#no-proxy-note strong {
	font-weight: 600;
}
