@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

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

:root {
  --hallatec-orange: #f26530;
  --hallatec-pink: #ef495d;
  --hallatec-gradient: linear-gradient(135deg, #f26530, #ef495d);
  --color-bg: #0c0e14;
  --color-surface: #151820;
  --color-surface-raised: #1c1f2b;
  --color-border: #252836;
  --color-border-subtle: #1e2130;
  --color-text: #f0f1f5;
  --color-text-muted: #8a8d9e;
  --color-danger: #ef495d;
  --color-warning: #f2a530;
  --color-success: #2dd4a0;
  --font-sans: "Poppins", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  --radius: 10px;
  --radius-lg: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

/* ── Header & branding ── */

header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.brand-logo {
  height: 32px;
  width: auto;
}

header h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: -0.01em;
  background: var(--hallatec-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ── Form ── */

label[for="domain-input"] {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

#domain-input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: var(--font-mono);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#domain-input:focus {
  border-color: var(--hallatec-orange);
  box-shadow: 0 0 0 3px rgba(242, 101, 48, 0.15);
}

#domain-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.consent-box {
  margin: 1.25rem 0;
  font-size: 0.825rem;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.consent-box input[type="checkbox"] {
  accent-color: var(--hallatec-orange);
  margin-right: 0.4rem;
  vertical-align: middle;
}

.consent-box a {
  color: var(--hallatec-orange);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.consent-box a:hover {
  color: var(--hallatec-pink);
}

#submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--hallatec-gradient);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

#submit-btn:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

#submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

#submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Results ── */

#results-section {
  margin-top: 2rem;
}

#results-section h2 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

#loading p {
  color: var(--color-text-muted);
  font-weight: 300;
  text-align: center;
  padding: 2rem 0;
}

#error-display {
  background: rgba(239, 73, 93, 0.08);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--color-danger);
  font-weight: 400;
  font-size: 0.9rem;
}

.result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.result-card:hover {
  border-color: rgba(242, 101, 48, 0.25);
}

.result-card h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.score-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.score-badge.high {
  background: rgba(239, 73, 93, 0.15);
  color: var(--color-danger);
}

.score-badge.medium {
  background: rgba(242, 165, 48, 0.15);
  color: var(--color-warning);
}

.score-badge.low {
  background: rgba(45, 212, 160, 0.15);
  color: var(--color-success);
}

.finding-list {
  list-style: none;
  padding: 0;
}

.finding-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
  font-weight: 400;
}

.finding-list li:last-child {
  border-bottom: none;
}

/* ── Footer ── */

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  height: 18px;
  width: auto;
  opacity: 0.6;
}

.footer-brand span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ── Gradient accent line ── */

.gradient-rule {
  height: 2px;
  border: none;
  background: var(--hallatec-gradient);
  border-radius: 1px;
  opacity: 0.6;
}
