:root {
  --forest: #073b2c;
  --forest-2: #0a513a;
  --green: #119447;
  --green-bright: #24b05c;
  --lime: #b8d532;
  --gold: #f2b233;
  --ink: #16231f;
  --muted: #6d7b75;
  --paper: #f7faf7;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--forest);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

#energyCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(115deg, rgba(7, 59, 44, 0.98) 0%, rgba(8, 76, 54, 0.94) 48%, rgba(18, 36, 31, 0.98) 100%),
    linear-gradient(180deg, rgba(184, 213, 50, 0.18), transparent 42%);
}

.site-header,
.hero,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(184, 213, 50, 0.88);
  border-radius: var(--radius);
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: 0;
}

.brand-copy span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 32, 25, 0.34);
  backdrop-filter: blur(16px);
}

.header-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  padding: 52px 18px 66px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 59, 44, 0.92) 0%, rgba(7, 59, 44, 0.62) 42%, rgba(7, 59, 44, 0.18) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

.hero-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 8px 12px;
  border: 1px solid rgba(184, 213, 50, 0.38);
  border-radius: var(--radius);
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  background: rgba(7, 32, 25, 0.42);
}

h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 8vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 670px;
  margin: 24px auto 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.domain-tool {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(247, 250, 247, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.field-group {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field-group label {
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 800;
}

.field-group input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #cfd9d3;
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(17, 148, 71, 0.14);
}

.field-group span {
  color: var(--muted);
  font-size: 0.83rem;
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  min-height: 56px;
  min-width: 146px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 22px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--green), var(--forest-2));
  box-shadow: 0 12px 24px rgba(17, 148, 71, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.search-button:hover,
.search-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 28px rgba(17, 148, 71, 0.32);
  outline: none;
}

.search-button:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.78;
  transform: none;
}

.button-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.button-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.progress-wrap {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dde6e0;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--forest);
  font-size: 0.9rem;
}

.progress-label strong {
  color: var(--green);
}

.progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8e2;
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--lime), var(--gold));
  transition: width 260ms ease;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: progressSheen 1.2s linear infinite;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ad312a;
  font-size: 0.9rem;
  text-align: left;
}

.results {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid #d9e4dd;
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
}

.result-domain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.result-domain strong {
  color: var(--ink);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.result-domain span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(184, 213, 50, 0.2);
  font-size: 0.76rem;
  font-weight: 800;
}

.result-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 13px;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.available {
  color: #07532f;
  background: rgba(36, 176, 92, 0.16);
  border: 1px solid rgba(36, 176, 92, 0.38);
}

.status-pill.taken {
  color: #803518;
  background: rgba(242, 178, 51, 0.18);
  border: 1px solid rgba(242, 178, 51, 0.44);
}

.status-pill.unknown {
  color: #4f5b56;
  background: #edf2ef;
  border: 1px solid #d3ddd7;
}

.quick-signals {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.quick-signals span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.76);
  background: rgba(7, 32, 25, 0.36);
  backdrop-filter: blur(14px);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 70px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--lime);
}

@keyframes progressSheen {
  from {
    transform: translateX(-100%);
  }

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

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
  }

  .header-nav {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 74px);
    align-items: start;
    padding-top: 44px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-button {
    width: 100%;
    margin-top: 0;
  }

  .result-row {
    grid-template-columns: 1fr;
  }

  .status-pill {
    justify-self: start;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
