:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  background-color: #f5f6fb;
  color: #0f172a;
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-strong: #f7f8fc;
  --border: #e2e6ef;
  --primary: #111827;
  --primary-strong: #0b1221;
  --text: #0f172a;
  --muted: #6b7280;
  --success: #0e9f6e;
  --error: #dc2626;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.page {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
  width: 100%;
}

.brand {
  width: clamp(120px, 20vw, 120px);
  height: auto;
  justify-self: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.lookup {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lookup label {
  font-weight: 600;
}

.lookup__field {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lookup input {
  flex: 1;
  min-width: 220px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.lookup input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.lookup button {
  border: none;
  border-radius: 16px;
  padding: 0.95rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.lookup button:hover {
  opacity: 0.9;
}

.lookup button:active {
  transform: translateY(1px);
}

.helper {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.empty-state,
.results,
.dns {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.empty-state {
  text-align: center;
  color: var(--muted);
}

.results__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results h2,
.empty-state h2 {
  margin-top: 0;
}

.badge {
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge--muted {
  background: var(--surface-strong);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 130px;
}

.card__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.card__value {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  word-break: break-word;
}

.dns-table-wrapper {
  overflow-x: auto;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.dns-table th,
.dns-table td {
  padding: 0.65rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.dns-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.dns-table tr:last-child td {
  border-bottom: none;
}

.dns-value {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9rem;
}

.dns-empty {
  margin: 1rem 0 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(15, 17, 26, 0.9);
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  body {
    padding: 1.5rem 1rem 2rem;
  }

  .lookup__field {
    flex-direction: column;
  }

  .lookup button {
    width: 100%;
  }
}

