:root {
  --bg: #07111f;
  --bg-2: #0d1b2e;
  --card: rgba(255, 255, 255, 0.08);
  --text: #f8fbff;
  --muted: #9fb1c7;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

.app {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 38px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.88;
  font-weight: 700;
}

.nav a:hover {
  opacity: 1;
  color: var(--accent);
}

.brand {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.hero {
  text-align: center;
  padding: 70px 24px 40px;
}

.hero.small {
  padding-bottom: 20px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: -0.08em;
  line-height: 0.95;
}

h2 {
  margin: 0 0 16px;
}

.subtext {
  color: var(--muted);
  max-width: 620px;
  margin: 22px auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 220px;
  outline: none;
  font: inherit;
}

select option {
  color: #07111f;
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111d;
  font-weight: 900;
  cursor: pointer;
  font: inherit;
  min-width: 180px;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.progress-wrap {
  width: min(520px, 100%);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin: 28px auto 12px;
  overflow: hidden;
}

#progressBar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

#status,
#contactStatus {
  color: var(--muted);
  min-height: 24px;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
  width: 100%;
}

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

.card,
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.card {
  text-align: center;
}

.card span {
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
}

.card strong {
  display: block;
  font-size: 2.3rem;
  letter-spacing: -0.05em;
}

.card small {
  color: var(--muted);
}

.panel p {
  color: var(--muted);
}

.panel strong {
  color: var(--text);
}

.contact-panel {
  max-width: 680px;
  margin: 20px auto;
}

form {
  display: grid;
  gap: 18px;
}

.captcha-wrap {
  overflow: hidden;
}

footer {
  text-align: center;
  color: var(--muted);
  margin-top: 36px;
}

footer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 850px) {
  .results-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 22px, 1100px);
  }

  .hero {
    padding: 48px 0 32px;
  }

  .results-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .controls {
    display: grid;
    justify-content: stretch;
  }

  button,
  select,
  input,
  textarea {
    width: 100%;
  }
}
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 110px;
  margin: 30px 0;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.ad-slot span {
  color: #9ca3af;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Cookie Banner */

.cookie-banner {
position: fixed;
left: 20px;
right: 20px;
bottom: 20px;
z-index: 9999;
}

.cookie-content {
display: flex;
justify-content: space-between;
align-items: center;
gap: 24px;

background: var(--panel);
border: 1px solid var(--border);
border-radius: var(--radius);

padding: 20px 24px;

box-shadow: var(--shadow);

}

.cookie-content p {
margin: 0;
color: var(--muted);
line-height: 1.6;
}

.cookie-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
flex-shrink: 0;
}

.cookie-actions button {
min-width: 120px;
}

.cookie-actions button:first-child {
background: var(--primary);
color: #fff;
}

.cookie-actions button:first-child:hover {
background: var(--primary-hover);
}

.cookie-actions .secondary {
background: #1f2937 !important;
color: #d1d5db !important;
border: 1px solid #374151 !important;
}

.cookie-actions .secondary:hover {
background: #374151 !important;
color: #fff !important;
}

/* Mobile */

@media (max-width: 768px) {

.cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
}

.cookie-actions {
    width: 100%;
}

.cookie-actions button {
    flex: 1;
    min-width: auto;
}

}

###

.error-page {
margin: 50px 0;
}

.error-card {
text-align: center;

background:
    radial-gradient(
        circle at top,
        rgba(59,130,246,.15),
        transparent 50%
    ),
    var(--panel);

border: 1px solid var(--border);

border-radius: 28px;

padding: clamp(50px, 8vw, 90px) 30px;

box-shadow: var(--shadow);

}

.error-card h1 {
font-size: clamp(3rem, 10vw, 7rem);
line-height: 1;
margin-bottom: 20px;
}

.error-card .subtext {
max-width: 700px;
margin: 0 auto;
}

.error-url {
display: inline-flex;
align-items: center;
justify-content: center;

margin-top: 25px;

padding: 12px 18px;

border-radius: 999px;

border: 1px solid var(--border);

background: rgba(255,255,255,.04);

color: var(--muted);

max-width: 100%;

word-break: break-word;

}

/* Buttons */

.error-actions {
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;

margin-top: 35px;

}

.error-btn,
.error-btn:visited {
display: inline-flex;
align-items: center;
justify-content: center;

min-width: 220px;
height: 58px;

border-radius: 999px;

background: linear-gradient(
    135deg,
    #38bdf8,
    #60a5fa
);

color: #0f172a !important;

font-weight: 800;

text-decoration: none !important;

transition: .2s ease;

box-shadow:
    0 0 25px rgba(56,189,248,.25);

}

.error-btn:hover {
transform: translateY(-2px);

color: #0f172a !important;

text-decoration: none !important;

}

.error-btn.secondary,
.error-btn.secondary:visited {

background: #1f2937;

color: #fff !important;

border: 1px solid rgba(255,255,255,.08);

box-shadow: none;

}

.error-btn.secondary:hover {
background: #374151;
color: #fff !important;
}

/* Mobile */

@media (max-width: 768px) {

.error-card {
    padding: 50px 20px;
}

.error-url {
    border-radius: 14px;
    width: 100%;
}

.error-btn,
.error-btn.secondary {
    width: 100%;
    min-width: auto;
}

}

.hit-counter {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

#siteHits {
  color: var(--primary);
  font-weight: 800;
}
