/* ============================================================
   UNSHORTENED.COM — Landing Page Styles
   Neobrutalist design: thick borders, hard shadows, bold typography
   ============================================================ */

/* --- Self-hosted fonts (replaced Google Fonts CDN) --- */

/* Space Grotesk — Regular (400) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-v22-latin-regular.woff2') format('woff2');
}

/* Space Grotesk — Medium (500) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-v22-latin-500.woff2') format('woff2');
}

/* Space Grotesk — Bold (700) */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/space-grotesk-v22-latin-700.woff2') format('woff2');
}

/* JetBrains Mono — Regular (400) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-v24-latin-regular.woff2') format('woff2');
}

/* JetBrains Mono — SemiBold (600) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/jetbrains-mono-v24-latin-600.woff2') format('woff2');
}

/* ============================================================
   LIGHT THEME (default)
   ============================================================ */
:root {
  --bg: #e8e4de;
  --bg-stripe: #ddd8d0;
  --surface: #f5f0ea;
  --text: #1a1a1a;
  --text-muted: #5a5550;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --orange: #d97706;
  --orange-soft: #fef3c7;
  --blue: #7c3aed;
  --blue-soft: #ede9fe;
  --border-w: 3px;
  --border: #1a1a1a;
  --shadow: 5px 5px 0px #1a1a1a;
  --shadow-sm: 3px 3px 0px #1a1a1a;
  --shadow-hover: 7px 7px 0px #1a1a1a;
  --transition: .2s cubic-bezier(.4,0,.2,1);
  --font-display: 'Space Grotesk', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', 'Liberation Mono', Menlo, monospace;
}

/* ============================================================
   DARK THEME
   ============================================================ */
[data-theme="dark"] {
  --bg: #0c0c0f;
  --bg-stripe: #111115;
  --surface: #1a1a20;
  --text: #e8e8ec;
  --text-muted: #8888a0;
  --accent: #6d9fff;
  --accent-soft: #1a2a44;
  --green: #5deb8c;
  --green-soft: #0e2a18;
  --red: #ff7070;
  --red-soft: #2a1010;
  --orange: #ffc857;
  --orange-soft: #2a2008;
  --blue: #b89aff;
  --blue-soft: #201a40;
  --border: #d0d0d8;
  --shadow: 5px 5px 0px rgba(208,208,216,.25);
  --shadow-sm: 3px 3px 0px rgba(208,208,216,.2);
  --shadow-hover: 7px 7px 0px rgba(208,208,216,.3);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 39px,
    var(--bg-stripe) 39px, var(--bg-stripe) 40px
  );
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
  line-height: 1.5;
  transition: background var(--transition), color var(--transition);
}

/* ============================================================
   TYPOGRAPHY — CSS clamp()
   ============================================================ */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw + 1rem, 5rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  text-transform: uppercase;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw + 0.25rem, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  text-transform: uppercase;
}
h3 {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1.375rem);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
}
p {
  font-size: clamp(0.875rem, 1vw + 0.25rem, 1.0625rem);
  color: var(--text-muted);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--surface);
  border-bottom: var(--border-w) solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.header-inner {
  padding: clamp(14px, 2vw, 20px) clamp(16px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 42px; height: 42px;
  background: var(--accent); border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.logo:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.logo svg { width: 22px; height: 22px; color: #fff; }
.brand {
  font-family: var(--font-display); font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase;
}
.header-right { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   BUTTONS — Neobrutalist
   ============================================================ */
.btn {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.8125rem, 0.9vw, 0.9375rem);
  padding: 10px 18px; border: var(--border-w) solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--border); }

.theme-toggle {
  width: 42px; height: 42px;
  border: var(--border-w) solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.theme-toggle:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--border); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   HERO — Two-column layout with full-width scan form below
   ============================================================ */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 48px);
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: 100%;
  max-width: 1100px;
}
.hero-left { position: relative; }
.hero-badge {
  display: inline-block;
  background: var(--orange-soft); border: var(--border-w) solid var(--border);
  padding: 6px 14px; font-family: var(--font-mono);
  font-size: clamp(0.625rem, 0.7vw, 0.6875rem); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: clamp(16px, 2vw, 24px);
  box-shadow: var(--shadow-sm);
}
.hero-left h1 { margin-bottom: clamp(12px, 2vw, 20px); }
.hero-left h1 .highlight {
  background: var(--accent-soft);
  border-bottom: 4px solid var(--accent);
  padding: 0 4px;
}
.hero-left .subtitle {
  font-size: clamp(0.9375rem, 1.5vw + 0.25rem, 1.1875rem);
  color: var(--text-muted);
  max-width: 440px; margin-bottom: clamp(28px, 3vw, 36px);
}

/* ============================================================
   SCAN INPUT — Full-width, neobrutalist
   ============================================================ */
.scan-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 800px;
  margin: clamp(24px, 4vw, 40px) auto 0;
}
.scan-input-wrap { flex: 1; position: relative; }
.scan-input-wrap svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-muted); pointer-events: none;
}
.scan-input {
  width: 100%;
  padding: clamp(14px, 1.5vw, 18px) clamp(12px, 1.5vw, 16px) clamp(14px, 1.5vw, 18px) 42px;
  background: var(--surface); border: var(--border-w) solid var(--border); border-right: 0;
  color: var(--text); font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 0.95vw, 0.9375rem); outline: none;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}
.scan-input:focus { background: var(--bg); box-shadow: var(--shadow); }
.scan-input::placeholder { color: var(--text-muted); font-family: var(--font-body); }
.scan-btn {
  padding: clamp(14px, 1.5vw, 18px) clamp(20px, 2.5vw, 32px);
  background: var(--accent); color: #fff;
  border: var(--border-w) solid var(--border);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.scan-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.scan-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--border); }
.scan-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.scan-btn svg { width: 16px; height: 16px; }
.scan-btn .btn-spinner {
  display: none; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
.scan-btn.loading .btn-spinner { display: block; }
.scan-btn.loading .btn-icon { display: none; }

/* ============================================================
   HERO RIGHT — Visual preview panel
   ============================================================ */
.hero-visual { display: flex; flex-direction: column; gap: 0; }
.hero-url-preview {
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.hero-url-preview:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.url-preview-bar {
  background: var(--bg); border-bottom: var(--border-w) solid var(--border);
  padding: 10px 14px; display: flex; align-items: center; gap: 8px;
}
.url-preview-dot {
  width: 10px; height: 10px; border: 2px solid var(--border);
}
.url-preview-dot.green { background: var(--green); }
.url-preview-dot.yellow { background: var(--orange); }
.url-preview-dot.red { background: var(--red); }
.url-preview-bar span {
  font-family: var(--font-mono); font-size: clamp(0.625rem, 0.7vw, 0.6875rem);
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 600;
}
.url-preview-body { background: var(--surface); padding: 16px; }
.url-preview-hop {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--border);
}
.url-preview-hop:last-child { border-bottom: 0; }
.url-preview-hop .hop-label {
  font-family: var(--font-mono); font-size: clamp(0.5625rem, 0.6vw, 0.625rem);
  font-weight: 700; color: var(--text-muted); min-width: 24px;
  text-transform: uppercase;
}
.url-preview-hop .hop-url {
  font-family: var(--font-mono); font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
  color: var(--text); word-break: break-all; line-height: 1.3;
}
.url-preview-hop .hop-status {
  font-family: var(--font-mono); font-size: clamp(0.5625rem, 0.6vw, 0.625rem);
  font-weight: 600; color: var(--text-muted);
  margin-left: auto; white-space: nowrap;
}
.url-preview-hop:last-child .hop-status { color: var(--green); font-weight: 700; }
.url-preview-result {
  border-top: var(--border-w) solid var(--border);
  padding: 12px 16px; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
  font-weight: 700;
}
.url-preview-result.safe { background: var(--green-soft); color: var(--green); }
.url-preview-result svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading-state {
  display: none; flex-direction: column; align-items: center;
  gap: 16px; padding: clamp(32px, 6vw, 56px) 0; text-align: center;
}
.loading-state.visible { display: flex; }
.loading-blocks { display: flex; gap: 6px; }
.loading-block {
  width: 16px; height: 16px; border: 2px solid var(--border);
  background: var(--accent); animation: blockBounce 0.6s ease-in-out infinite;
}
.loading-block:nth-child(2) { animation-delay: 0.1s; background: var(--green); }
.loading-block:nth-child(3) { animation-delay: 0.2s; background: var(--orange); }
@keyframes blockBounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }
.loading-state p { color: var(--text-muted); font-weight: 700; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(0.8125rem, 1vw, 0.9375rem); }
.loading-dots::after { content: ''; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(32px, 6vw, 64px);
  display: none;
}
.results-section.visible {
  display: block;
  margin-top: clamp(24px, 4vw, 48px);
  animation: popIn .35s cubic-bezier(.22,1,.36,1);
}
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.status-banner {
  border: var(--border-w) solid var(--border);
  padding: clamp(20px, 3vw, 28px);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 20px);
  margin-bottom: clamp(12px, 2vw, 16px);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.status-banner:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hover); }
.status-banner.safe { background: var(--green-soft); }
.status-banner.threat { background: var(--red-soft); }
.status-banner.error { background: var(--orange-soft); }
.status-icon {
  width: clamp(48px, 7vw, 64px); height: clamp(48px, 7vw, 64px);
  border: var(--border-w) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: var(--shadow-sm);
}
.status-banner.safe .status-icon { background: var(--green); }
.status-banner.threat .status-icon { background: var(--red); }
.status-banner.error .status-icon { background: var(--orange); }
.status-icon svg { width: clamp(24px, 3vw, 32px); height: clamp(24px, 3vw, 32px); color: #fff; }
.status-text h2 { margin-bottom: 2px; }
.status-banner.safe h2 { color: var(--green); }
.status-banner.threat h2 { color: var(--red); }
.status-banner.error h2 { color: var(--orange); }

.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.5vw, 14px); }

.info-card {
  background: var(--surface); border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm); padding: clamp(16px, 2.5vw, 24px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.info-card:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow); }
.info-card.full { grid-column: 1 / -1; }
.info-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border: 2px solid var(--border);
  font-family: var(--font-display); font-size: clamp(0.625rem, 0.65vw, 0.6875rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--accent);
}
.card-tag svg { width: 12px; height: 12px; }

.url-box {
  background: var(--bg); border: 2px solid var(--border);
  padding: 12px 14px; font-family: var(--font-mono);
  font-size: clamp(0.75rem, 0.85vw, 0.875rem);
  word-break: break-all; color: var(--text); line-height: 1.5;
}
.url-box.strike { color: var(--text-muted); text-decoration: line-through; opacity: 0.7; margin-bottom: 6px; border-bottom: 2px dashed var(--border); padding-bottom: 10px; }
.url-label { font-family: var(--font-display); font-size: clamp(0.625rem, 0.7vw, 0.6875rem); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-weight: 700; }

.redirect-chain { list-style: none; position: relative; }
.redirect-chain::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 28px; width: 3px; background: var(--border); }
.redirect-hop { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; position: relative; }
.hop-num {
  width: 28px; height: 28px; border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
  font-weight: 700; color: var(--text-muted);
  flex-shrink: 0; z-index: 1; transition: background var(--transition), color var(--transition);
}
.redirect-hop:last-child .hop-num { background: var(--green); color: #fff; border-color: var(--green); }
.hop-content { flex: 1; min-width: 0; }
.hop-url { font-family: var(--font-mono); font-size: clamp(0.75rem, 0.85vw, 0.8125rem); color: var(--text); word-break: break-all; line-height: 1.4; }
.hop-status { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: clamp(0.625rem, 0.7vw, 0.6875rem); font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.redirect-hop:last-child .hop-status { color: var(--green); font-weight: 700; }

.threat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.threat-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border: 2px solid var(--border);
  font-family: var(--font-mono); font-size: clamp(0.6875rem, 0.75vw, 0.75rem);
  font-weight: 700; background: var(--red-soft); color: var(--red);
}

.meta-row { display: flex; flex-wrap: wrap; gap: clamp(8px, 1.5vw, 16px); }
.meta-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: clamp(0.75rem, 0.85vw, 0.8125rem); color: var(--text-muted); }
.meta-dot { width: 8px; height: 8px; border: 1px solid var(--border); }
.meta-dot.cached { background: var(--blue); }
.meta-dot.fresh { background: var(--green); }

/* ============================================================
   FAQ — SEO content
   ============================================================ */
.faq-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px);
}
.faq-section h2 { margin-bottom: clamp(16px, 2.5vw, 24px); }
.faq-grid { display: flex; flex-direction: column; gap: clamp(8px, 1vw, 12px); }
.faq-item {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.faq-item:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.875rem, 1vw, 1rem);
  padding: clamp(14px, 1.5vw, 18px) clamp(16px, 2vw, 24px);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '\2013'; } /* &ndash; */
.faq-item p {
  padding: 0 clamp(16px, 2vw, 24px) clamp(14px, 1.5vw, 18px);
  font-size: clamp(0.8125rem, 0.9vw, 0.9375rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   USE CASES
   ============================================================ */
.use-cases {
  width: 100%;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px);
}
.use-cases h2 { margin-bottom: clamp(16px, 2.5vw, 24px); text-align: center; }
.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 16px);
  max-width: 1100px;
  margin: 0 auto;
}
.use-case-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.5vw, 28px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.use-case-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hover); }
.use-case-icon {
  width: 44px; height: 44px;
  border: var(--border-w) solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.use-case-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  margin-bottom: 8px;
}
.use-case-card p {
  font-size: clamp(0.8125rem, 0.9vw, 0.875rem);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-section {
  width: 100%;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px);
}
.why-section h2 { margin-bottom: clamp(16px, 2.5vw, 24px); text-align: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 16px);
  max-width: 1100px;
  margin: 0 auto;
}
.why-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.5vw, 28px);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hover); }
.why-number {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.875rem, 1vw, 1rem);
  margin-bottom: 8px;
}
.why-card p {
  font-size: clamp(0.75rem, 0.85vw, 0.875rem);
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { width: 100%; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 30vw, 320px), 1fr));
  gap: clamp(12px, 2vw, 16px);
  margin-top: clamp(16px, 2.5vw, 24px);
}
.feature-card {
  background: var(--surface); border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm); padding: clamp(20px, 2.5vw, 28px);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-hover); }
.feature-tag {
  display: inline-block; padding: 4px 10px;
  border: 2px solid var(--border);
  font-family: var(--font-mono); font-size: clamp(0.625rem, 0.7vw, 0.6875rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px;
}
.feature-tag.green { background: var(--green-soft); color: var(--green); }
.feature-tag.blue { background: var(--blue-soft); color: var(--blue); }
.feature-tag.orange { background: var(--orange-soft); color: var(--orange); }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: clamp(0.8125rem, 0.9vw, 0.875rem); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: auto; background: var(--surface);
  border-top: var(--border-w) solid var(--border);
  padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 48px);
  transition: background var(--transition), border-color var(--transition);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-left { flex: 1; min-width: 200px; }
.footer-left p { font-size: clamp(0.6875rem, 0.8vw, 0.8125rem); font-weight: 500; max-width: 480px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-family: var(--font-display); font-size: clamp(0.75rem, 0.8vw, 0.8125rem); font-weight: 700; color: var(--text-muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.04em; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left .subtitle { max-width: none; margin-left: auto; margin-right: auto; }
  .scan-form { flex-direction: column; }
  .scan-input { border-right: var(--border-w) solid var(--border); border-bottom: none; }
  .scan-btn { justify-content: center; }
  .results-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   TURNSTILE OVERLAY + BAN MODAL
   ============================================================ */
.turnstile-overlay,
.ban-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.ban-overlay { z-index: 1000; background: rgba(0,0,0,.75); }
.turnstile-box,
.ban-box {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(24px, 3vw, 40px);
  max-width: 440px; text-align: center;
}
.ban-box {
  border-color: var(--red);
  box-shadow: 8px 8px 0 var(--red);
}
.turnstile-box h3,
.ban-box h2 {
  margin-bottom: 8px; color: var(--text);
  font-family: var(--font-display);
}
.ban-box h2 { color: var(--red); margin-bottom: 12px; }
.turnstile-box p,
.ban-box p {
  margin-bottom: 20px; color: var(--text-muted);
  font-size: 0.9rem; line-height: 1.6;
}
.turnstile-box #turnstile-widget {
  margin-bottom: 16px;
  display: flex; justify-content: center;
}
.ban-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px; color: var(--red);
}
.ban-hint {
  font-size: 0.8rem !important;
  margin-top: 8px !important;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 10px 16px;
  border-radius: var(--radius-xs, 0);
  border: var(--border-w) solid var(--border);
  font-size: 13px; font-family: var(--font-display);
  font-weight: 700;
  z-index: 500;
  animation: toastIn .45s cubic-bezier(.22,1,.36,1);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
}
.toast-success { background: var(--green-soft); color: var(--green); }
.toast-error { background: var(--red-soft); color: var(--red); }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateY(24px) scale(.9); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* ============================================================
   UTILITY
   ============================================================ */
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ============================================================
   PUBLIC PAGES — About, Contact, Terms, Privacy
   ============================================================ */

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border: var(--border-w) solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: top var(--transition);
}
.skip-link:focus {
  top: 12px;
  outline: none;
}

/* Navigation bar in header */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  /* margin-left: clamp(16px, 3vw, 32px); */
}
.nav-link {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 0.9vw, 0.875rem);
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 0;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.nav-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.nav-link.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  width: 42px; height: 42px;
  border: var(--border-w) solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hamburger svg { width: 20px; height: 20px; }
.hamburger:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.hamburger:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0px var(--border); }

/* Mobile drawer overlay */
.drawer-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open { display: block; opacity: 1; }

/* Mobile slide-out drawer */
.drawer {
  position: fixed; top: 0; left: 0;
  width: 280px; height: 100%;
  background: var(--surface);
  border-right: var(--border-w) solid var(--border);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: var(--border-w) solid var(--border);
}
.drawer-close {
  width: 36px; height: 36px;
  border: var(--border-w) solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.drawer-close svg { width: 18px; height: 18px; }

.drawer-nav {
  display: flex; flex-direction: column;
  padding: 12px 0;
}
.drawer-link {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  border-left: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.drawer-link:hover,
.drawer-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* Page content wrapper */
.page-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 48px);
}

/* Page hero section */
.page-hero {
  text-align: center;
  margin-bottom: clamp(32px, 6vw, 56px);
  padding-bottom: clamp(24px, 4vw, 40px);
  border-bottom: var(--border-w) solid var(--border);
}
.page-hero h1 {
  margin-bottom: clamp(12px, 2vw, 20px);
}
.page-hero .subtitle {
  font-size: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* Page sections */
.page-section {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.page-section h2 {
  margin-bottom: clamp(16px, 2.5vw, 24px);
  text-align: center;
}
.page-section > p {
  max-width: 720px;
  margin: 0 auto clamp(16px, 2vw, 24px);
  text-align: center;
  line-height: 1.7;
}

/* Contact cards grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.5vw, 28px);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.contact-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}
.contact-card .contact-icon {
  width: 56px;
  height: 56px;
  border: var(--border-w) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(12px, 2vw, 16px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  margin-bottom: 8px;
}
.contact-card p {
  font-size: clamp(0.8125rem, 0.9vw, 0.875rem);
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.contact-card a:hover {
  border-color: var(--accent);
}

/* Legal list styling (used in terms, privacy, about pages) */
.legal-list {
  margin: 12px 0;
  padding-left: 24px;
  line-height: 1.8;
}
.legal-list li {
  margin: 4px 0;
}

/* Terms & Privacy content styling */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  margin: clamp(24px, 3vw, 32px) 0 clamp(12px, 1.5vw, 16px);
  padding-top: clamp(16px, 2vw, 20px);
  border-top: 1px dashed var(--border);
}
.legal-content h3:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content p {
  margin-bottom: clamp(12px, 1.5vw, 16px);
  color: var(--text-muted);
}
.legal-content ul {
  margin: clamp(12px, 1.5vw, 16px) 0 clamp(16px, 2vw, 24px) clamp(24px, 3vw, 32px);
  color: var(--text-muted);
}
.legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.legal-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.legal-content a:hover {
  border-color: var(--accent);
}

/* Responsive adjustments for public pages */
@media (max-width: 768px) {
  .nav-bar {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .header-right {
    gap: 8px;
  }
  .page-content {
    padding: clamp(24px, 5vw, 40px) clamp(12px, 3vw, 24px);
  }
  .page-hero {
    margin-bottom: clamp(24px, 4vw, 36px);
    padding-bottom: clamp(16px, 3vw, 24px);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    text-align: left;
  }
}
