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

html {
  font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

:root {
  --hw-primary: #051c33;
  --hw-primary-2: #0d2b4a;
  --hw-blue: #005ff7;
  --hw-blue-hover: #004ed0;
  --hw-blue-soft: #eaf3ff;
  --hw-coral: #ff7d73;
  --hw-text: #243142;
  --hw-muted: #667085;
  --hw-line: #dfe5ee;
  --hw-panel: #ffffff;
  --hw-soft: #f6f8fb;
  --hw-warning: #b54708;
  --hw-warning-bg: #fff4e5;
  --hw-shadow: 0 24px 60px rgba(5, 28, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--hw-soft);
  color: var(--hw-text);
}

body.hw-state-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 95, 247, 0.09), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
  color: var(--hw-text);
}

a {
  color: inherit;
}

.hw-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hw-topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hw-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.hw-logo img {
  width: 138px;
  max-width: 46vw;
  height: auto;
  display: block;
}

.hw-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 95, 247, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--hw-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hw-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) 0 clamp(32px, 6vw, 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}

.hw-hero {
  min-width: 0;
}

.hw-kicker {
  margin: 0 0 18px;
  color: var(--hw-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hw-title {
  margin: 0;
  color: var(--hw-primary);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.hw-copy {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--hw-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.hw-domain {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 26px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--hw-primary);
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.hw-panel {
  min-width: 0;
  border: 1px solid rgba(5, 28, 51, 0.08);
  border-radius: 8px;
  background: var(--hw-panel);
  box-shadow: var(--hw-shadow);
  overflow: hidden;
}

.hw-panel__head {
  padding: 26px 26px 0;
}

.hw-panel__eyebrow {
  margin: 0 0 8px;
  color: var(--hw-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hw-panel__title {
  margin: 0;
  color: var(--hw-primary);
  font-size: 23px;
  line-height: 1.2;
}

.hw-panel__copy {
  margin: 12px 0 0;
  color: var(--hw-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hw-actions {
  padding: 24px 26px 26px;
  display: grid;
  gap: 10px;
}

.hw-actions--compact {
  padding-bottom: 20px;
}

.hw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--hw-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.hw-button:hover,
.hw-button:focus {
  background: var(--hw-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.hw-button--secondary {
  background: #ffffff;
  color: var(--hw-primary);
  border-color: var(--hw-line);
}

.hw-button--secondary:hover,
.hw-button--secondary:focus {
  background: var(--hw-blue-soft);
  border-color: rgba(0, 95, 247, 0.24);
  color: var(--hw-blue);
}

.hw-button--soft {
  background: var(--hw-blue-soft);
  color: var(--hw-blue);
  border-color: rgba(0, 95, 247, 0.16);
}

.hw-button--soft:hover,
.hw-button--soft:focus {
  background: #dce9ff;
  color: var(--hw-blue-hover);
}

.hw-note {
  margin: 2px 26px 26px;
  padding: 12px 14px;
  border-left: 3px solid var(--hw-coral);
  background: #fffafa;
  color: var(--hw-muted);
  font-size: 13px;
  line-height: 1.55;
}

.hw-contact-list {
  margin: 0 26px 26px;
  padding: 16px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: #fbfcff;
}

.hw-contact-list__title {
  margin: 0 0 10px;
  color: var(--hw-primary);
  font-size: 13px;
  font-weight: 800;
}

.hw-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  color: var(--hw-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hw-contact-link + .hw-contact-link {
  border-top: 1px solid rgba(5, 28, 51, 0.08);
}

.hw-contact-link span {
  color: var(--hw-muted);
  font-size: 12px;
  font-weight: 500;
}

.hw-contact-link strong {
  color: var(--hw-blue);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.hw-contact-link:hover strong,
.hw-contact-link:focus strong {
  color: var(--hw-blue-hover);
  text-decoration: underline;
}

.hw-suspended .hw-status-pill {
  color: var(--hw-warning);
  border-color: rgba(181, 71, 8, 0.22);
  background: var(--hw-warning-bg);
}

.hw-suspended .hw-kicker {
  color: var(--hw-warning);
}

.hw-suspended .hw-title {
  max-width: 780px;
}

.hw-metrics {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hw-metric {
  padding: 16px;
  border: 1px solid var(--hw-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.hw-metric strong {
  display: block;
  color: var(--hw-primary);
  font-size: 18px;
}

.hw-metric span {
  display: block;
  margin-top: 4px;
  color: var(--hw-muted);
  font-size: 12px;
  line-height: 1.45;
}

.hw-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(5, 28, 51, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--hw-muted);
  font-size: 12px;
}

.hw-chat-fallback {
  display: none;
}

@media (max-width: 880px) {
  .hw-topbar {
    padding-top: 20px;
  }

  .hw-main {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 26px;
  }

  .hw-panel {
    width: min(560px, 100%);
  }

  .hw-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hw-topbar {
    width: min(100% - 24px, 1120px);
    align-items: flex-start;
    flex-direction: column;
  }

  .hw-main,
  .hw-footer {
    width: min(100% - 24px, 1120px);
  }

  .hw-title {
    font-size: clamp(31px, 12vw, 42px);
  }

  .hw-copy {
    font-size: 15px;
  }

  .hw-panel__head,
  .hw-actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hw-note {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hw-contact-list {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hw-contact-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 8px 0;
  }

  .hw-contact-link strong {
    text-align: left;
  }

  .hw-footer {
    flex-direction: column;
  }
}
