@font-face {
  font-family: "MD Nichrome";
  src: url("/fonts/MDNichrome-Bold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --pl-bg-primary: #0a181c;
  --pl-bg-secondary: #221327;
  --pl-card: #0f2429;
  --pl-card-strong: #132e35;
  --pl-insight: #0a2530;
  --pl-accent: #79e2ff;
  --pl-accent-secondary: #00a5d3;
  --pl-day: #c7f88a;
  --pl-text: #ffffff;
  --pl-muted: #8a9ba8;
  --pl-border: #1a3540;
  --pl-input: #f6fbff;
  --pl-input-text: #0a181c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--pl-text);
  background:
    radial-gradient(circle at 50% 12%, rgba(121, 226, 255, 0.18), transparent 26rem),
    radial-gradient(circle at 8% 0%, rgba(0, 165, 211, 0.22), transparent 20rem),
    linear-gradient(145deg, rgba(34, 19, 39, 0.88), rgba(10, 24, 28, 0.94) 46%, #061014),
    var(--pl-bg-primary);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(121, 226, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 226, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

a {
  color: var(--pl-accent);
  text-decoration-color: rgba(121, 226, 255, 0.35);
  text-underline-offset: 4px;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pl-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--pl-accent);
  box-shadow: 0 0 28px rgba(121, 226, 255, 0.9);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--pl-border);
  border-radius: 999px;
  background: rgba(15, 36, 41, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.language-button {
  min-width: 44px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--pl-muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-button.active {
  color: #061014;
  background: var(--pl-accent);
}

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(64px, 12vw, 136px) 0 46px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pl-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "MD Nichrome", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 800;
  line-height: 0.9;
}

h1 {
  max-width: 900px;
  font-size: clamp(56px, 11vw, 128px);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 32px;
  color: var(--pl-muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.5;
}

.search-panel {
  display: grid;
  width: min(760px, 100%);
  gap: 18px;
}

.domain-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  padding: 8px 8px 8px 20px;
  border: 1px solid rgba(121, 226, 255, 0.32);
  border-radius: 999px;
  background: var(--pl-input);
  box-shadow:
    0 22px 62px rgba(0, 0, 0, 0.4),
    0 0 0 7px rgba(121, 226, 255, 0.05);
}

.search-icon {
  display: grid;
  width: 22px;
  color: rgba(10, 24, 28, 0.66);
  place-items: center;
}

.search-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.domain-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--pl-input-text);
  background: transparent;
  font: inherit;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700;
}

.domain-search input::placeholder {
  color: rgba(10, 24, 28, 0.46);
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #071317;
  background: var(--pl-accent);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 165, 211, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--pl-border);
  border-radius: 24px;
  background: rgba(15, 36, 41, 0.76);
  text-align: left;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--pl-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--pl-text);
  background: rgba(10, 24, 28, 0.74);
  font: inherit;
  font-weight: 700;
}

.settings-row p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 13px;
  line-height: 1.45;
}

.job-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--pl-muted);
}

.job-actions[hidden] {
  display: none;
}

.job-actions p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.ghost-button {
  min-height: 42px;
  border: 1px solid rgba(121, 226, 255, 0.28);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--pl-accent);
  background: rgba(10, 24, 28, 0.54);
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.ghost-button:hover {
  border-color: rgba(121, 226, 255, 0.54);
  background: rgba(121, 226, 255, 0.1);
}

.ghost-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.data-stack {
  display: grid;
  gap: 22px;
}

.status-panel,
.feedback-panel,
.results-panel {
  border: 1px solid var(--pl-border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(19, 46, 53, 0.9), rgba(10, 24, 28, 0.92)),
    var(--pl-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feedback-panel[hidden] {
  display: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--pl-border);
}

.section-head .eyebrow {
  margin-bottom: 8px;
}

.section-head p {
  margin: 0;
}

.caption {
  max-width: 420px;
  color: var(--pl-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px 30px;
}

.metric {
  min-height: 150px;
  border: 1px solid rgba(121, 226, 255, 0.12);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(160deg, rgba(121, 226, 255, 0.08), transparent 58%),
    rgba(6, 16, 20, 0.62);
}

.metric span {
  display: block;
  margin-bottom: 24px;
  color: var(--pl-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  font-family: "MD Nichrome", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(38px, 7vw, 74px);
  font-weight: 800;
  line-height: 0.88;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 16px;
  margin: 0 30px 30px;
  border: 1px solid rgba(121, 226, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(6, 16, 20, 0.72);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pl-accent-secondary), var(--pl-accent));
  box-shadow: 0 0 24px rgba(121, 226, 255, 0.45);
  transition: width 240ms ease;
}

.progress-bar.is-working {
  width: 34% !important;
  background: linear-gradient(90deg, transparent, var(--pl-accent), transparent);
  animation: working-progress 1.35s ease-in-out infinite;
}

.feedback-form {
  display: grid;
  gap: 18px;
  padding: 24px 30px 30px;
}

.feedback-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feedback-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 92px;
  border: 1px solid rgba(121, 226, 255, 0.16);
  border-radius: 22px;
  padding: 16px;
  background: rgba(6, 16, 20, 0.58);
  color: var(--pl-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.feedback-option:has(input:checked) {
  border-color: rgba(121, 226, 255, 0.58);
  background: rgba(121, 226, 255, 0.1);
}

.feedback-option input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--pl-accent);
  flex: 0 0 auto;
}

.feedback-comment-field {
  display: grid;
  gap: 8px;
}

.feedback-comment-field span {
  color: var(--pl-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feedback-comment-field textarea {
  width: 100%;
  min-height: 118px;
  border: 1px solid var(--pl-border);
  border-radius: 20px;
  padding: 14px 16px;
  color: var(--pl-text);
  background: rgba(10, 24, 28, 0.74);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.feedback-comment-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feedback-status {
  margin: 0;
  color: var(--pl-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.feedback-status.is-success {
  color: var(--pl-day);
}

.feedback-status.is-error {
  color: #ffb0a8;
}

@keyframes working-progress {
  0% {
    transform: translateX(-105%);
  }

  100% {
    transform: translateX(315%);
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 20px 30px;
  border-bottom: 1px solid var(--pl-border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--pl-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

td {
  color: var(--pl-text);
  font-weight: 700;
}

tbody tr {
  background: rgba(10, 24, 28, 0.38);
}

tbody tr:nth-child(even) {
  background: rgba(19, 46, 53, 0.3);
}

.page-title,
.sentence {
  display: block;
  margin-top: 8px;
  color: var(--pl-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.event-list {
  display: grid;
  gap: 10px;
}

.event-list a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(121, 226, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(121, 226, 255, 0.08);
  text-decoration: none;
}

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

@media (max-width: 820px) {
  .shell {
    width: min(100% - 22px, 1160px);
    padding-top: 14px;
  }

  .hero {
    padding: 54px 0 34px;
  }

  .domain-search {
    grid-template-columns: auto minmax(0, 1fr);
    border-radius: 26px;
    padding: 14px 14px 14px 18px;
  }

  .primary-button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .settings-row,
  .feedback-options,
  .job-actions,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .job-actions,
  .feedback-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .caption {
    text-align: left;
  }

  .status-grid,
  .feedback-form,
  .section-head,
  th,
  td {
    padding-left: 18px;
    padding-right: 18px;
  }

  .progress-track {
    margin-left: 18px;
    margin-right: 18px;
  }
}
