:root {
  --bg: #060a0f;
  --panel: rgba(10, 16, 26, 0.82);
  --panel-strong: rgba(15, 22, 36, 0.96);
  --border: rgba(87, 213, 255, 0.14);
  --border-strong: rgba(87, 213, 255, 0.28);
  --text: #e6eef7;
  --muted: #98a8bd;
  --safe: #2ecc71;
  --suspicious: #f5c542;
  --dangerous: #ff5d5d;
  --accent: #57d5ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(87, 213, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(46, 204, 113, 0.08), transparent 24%),
    radial-gradient(circle at bottom center, rgba(255, 93, 93, 0.08), transparent 28%),
    linear-gradient(180deg, #05080d 0%, #08111a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16213e, #0f172a);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: rgba(87, 213, 255, 0.08);
}

main.site-shell {
  padding: 28px 0 44px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.hero {
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.hero-home {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  max-width: 13ch;
}

.hero-text {
  margin: 18px 0 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-meta {
  display: grid;
  gap: 14px;
  align-content: start;
}

.stat {
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat span,
.label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.stat strong {
  font-size: 1rem;
  line-height: 1.5;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-stack {
  display: grid;
  gap: 18px;
}

.about-grid,
.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-section h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.about-section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.75;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.profile-links a,
.footer-links a,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 18px;
  padding: 22px 0 16px;
}

.footer-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-brand strong {
  font-size: 1.05rem;
}

.footer-brand p,
.footer-links span,
.footer-creator span {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.footer-links a {
  color: var(--muted);
  width: fit-content;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(87, 213, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 700;
}

.footer-bottom {
  padding: 0 0 20px;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.tool-card {
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.tool-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #16213e, #0f172a);
  border: 1px solid var(--border-strong);
}

.tool-card h2 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.tool-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.tool-card span {
  color: var(--accent);
  font-weight: 700;
}

.checker-panel {
  padding: 28px;
}

.checker-form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 12px;
}

.password-row {
  align-items: stretch;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"] {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(87, 213, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  color: #f4f7fb;
  padding: 16px 18px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input[type="text"]::placeholder,
input[type="url"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
  color: #94a3b8;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: rgba(87, 213, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(87, 213, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, #1b1b31 0%, #182545 100%);
}

button {
  border: 1px solid rgba(87, 213, 255, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #16213e, #0f172a);
  color: #e6eef7;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 213, 255, 0.35);
  background: linear-gradient(135deg, #1a2746, #121c34);
}

.secondary-btn {
  padding-inline: 18px;
  min-width: 92px;
}

button:disabled,
input:disabled {
  opacity: 0.65;
  cursor: progress;
}

.privacy-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(87, 213, 255, 0.16);
  background: rgba(87, 213, 255, 0.06);
  color: #d9e8f7;
}

.direct-link-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.direct-link-note a {
  color: var(--accent);
  font-weight: 700;
}

.loading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.results {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.verdict-card,
.info-card,
.banner,
.breach-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.verdict-card {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.verdict-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.verdict-safe {
  color: var(--safe);
}

.verdict-suspicious {
  color: var(--suspicious);
}

.verdict-dangerous {
  color: var(--dangerous);
}

.badge {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge.safe {
  background: rgba(46, 204, 113, 0.16);
  color: #80f1ab;
}

.badge.suspicious {
  background: rgba(245, 197, 66, 0.16);
  color: #ffe08a;
}

.badge.dangerous {
  background: rgba(255, 93, 93, 0.16);
  color: #ffb3b3;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  padding: 20px;
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.info-card p,
.info-card li,
.banner,
.footer-inner p,
.breach-item p {
  color: var(--muted);
  line-height: 1.65;
}

.reasons-card ul,
.warnings-card ul {
  margin: 0;
  padding-left: 18px;
}

.reasons-card li + li,
.warnings-card li + li {
  margin-top: 10px;
}

.banner {
  padding: 16px 18px;
}

.banner.error {
  border-color: rgba(255, 93, 93, 0.3);
  background: rgba(255, 93, 93, 0.08);
  color: #ffd0d0;
}

.banner.warning {
  border-color: rgba(245, 197, 66, 0.28);
  background: rgba(245, 197, 66, 0.08);
  color: #ffe8a3;
}

.meter-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.meter-bar {
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.meter-bar.weak {
  width: 25%;
  background: linear-gradient(90deg, #ff5d5d, #ff8f70);
}

.meter-bar.fair {
  width: 50%;
  background: linear-gradient(90deg, #f5c542, #ffd86b);
}

.meter-bar.strong {
  width: 75%;
  background: linear-gradient(90deg, #37d67a, #80f1ab);
}

.meter-bar.very-strong {
  width: 100%;
  background: linear-gradient(90deg, #2ecc71, #57d5ff);
}

.breach-list {
  display: grid;
  gap: 14px;
}

.breach-item {
  padding: 16px;
}

.breach-item h3 {
  margin: 0 0 10px;
}

.breach-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 13, 0.7);
  backdrop-filter: blur(16px);
}

.footer-inner {
  padding: 18px 0 26px;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  margin-top: 6px !important;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .tools-grid,
  .about-grid,
  .about-columns,
  .grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero,
  .checker-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .input-row,
  .password-row {
    display: grid;
  }

  button,
  input[type="text"],
  input[type="url"],
  input[type="email"],
  input[type="password"] {
    width: 100%;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .profile-links,
  .social-links {
    flex-direction: column;
  }
}