:root {
  --blue: #1b2330;
  --green: #01c853;
  --gray: #e8e9ea;
  --text: #1b2330;
  --text-muted: #5a6270;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

.site-header {
  background: var(--blue);
  color: var(--white);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-accent { color: var(--green); }

.header-cta {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
}

.header-cta:hover { color: var(--green); }

.hero {
  background: var(--blue);
  color: var(--white);
  padding: 64px 0 72px;
  text-align: center;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 20px;
  font-weight: 700;
}

.lead {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.check-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

#domain-input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

#check-button {
  background: var(--green);
  color: var(--blue);
  border: none;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}

#check-button:hover { filter: brightness(1.08); }
#check-button:disabled { opacity: 0.6; cursor: default; }

.form-hint {
  color: #ff8a80;
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.loading-section, .result-section, .disclaimer {
  padding: 56px 0;
}

.loader {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.loader-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--gray);
  overflow: hidden;
  margin-bottom: 16px;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.4s ease;
}

#loading-step {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.result-container {
  text-align: center;
}

.result-badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.result-badge.low { background: #ffe3e0; color: #b3261e; }
.result-badge.mid { background: #fff2cc; color: #8a6100; }
.result-badge.high { background: #e0f7e9; color: #146c2e; }

.result-section h2 {
  font-size: 1.7rem;
  margin: 0 0 16px;
}

.result-description {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.contact-box {
  background: var(--gray);
  border-radius: 10px;
  padding: 32px;
  text-align: left;
  margin-bottom: 24px;
}

.contact-box h3 {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.contact-form input {
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #c6c9cd;
  font-size: 0.95rem;
}

.contact-form button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

.contact-form button:hover { background: #0f151f; }

.contact-sent {
  color: #146c2e;
  font-weight: 600;
  margin-top: 14px;
}

.link-button {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.disclaimer {
  background: var(--gray);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer {
  background: var(--blue);
  color: var(--gray);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.site-footer a { color: var(--green); text-decoration: none; }

@media (max-width: 520px) {
  .check-form { flex-direction: column; }
  .hero h1 { font-size: 1.6rem; }
}
