:root {
  --ink: #17231b;
  --muted: #657168;
  --paper: #f4f5ed;
  --card: #fffef9;
  --line: #d9ddd2;
  --lime: #d8ff55;
  --lime-dark: #b7df29;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 14%, rgba(216,255,85,.18), transparent 22rem),
    var(--paper);
  font-family: Manrope, sans-serif;
}

main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; min-height: calc(100vh - 70px); }

nav { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font: 500 15px "DM Mono"; border-radius: 50%; }
.status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #69b32d; box-shadow: 0 0 0 4px rgba(105,179,45,.12); }

.hero { padding: 96px 0 72px; max-width: 900px; }
.eyebrow { margin: 0 0 18px; font: 500 11px "DM Mono"; letter-spacing: .13em; text-transform: uppercase; color: #687269; }
h1 { font-size: clamp(46px, 7vw, 82px); line-height: .98; letter-spacing: -.065em; margin: 0; font-weight: 500; }
h1 em { font-family: Georgia, serif; font-weight: 400; }
.intro { max-width: 600px; color: var(--muted); font-size: 17px; line-height: 1.65; margin: 28px 0 40px; }

.search-box { max-width: 800px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(23,35,27,.08); }
.search-box > label { display: block; margin: 4px 8px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.input-row { display: flex; gap: 8px; }
input { width: 100%; border: 0; background: #eff1e9; border-radius: 9px; color: var(--ink); font: 500 21px "DM Mono"; padding: 17px 18px; outline: none; }
input:focus { box-shadow: 0 0 0 2px var(--ink); }
button { font: inherit; }
.input-row button { border: 0; cursor: pointer; border-radius: 9px; padding: 0 23px; white-space: nowrap; display: flex; gap: 18px; align-items: center; background: var(--lime); color: var(--ink); font-weight: 700; transition: transform .15s, background .15s; }
.input-row button:hover { background: var(--lime-dark); transform: translateY(-1px); }
.input-row button:disabled { cursor: wait; opacity: .6; transform: none; }
.input-row svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hint-row { display: flex; justify-content: space-between; padding: 12px 8px 2px; font-size: 11px; color: #7b857d; }
.limit-label { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.limit-label select { border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 11px "DM Mono"; cursor: pointer; outline: none; }
.tld-editor { margin: 12px 5px 3px; border-top: 1px solid var(--line); padding-top: 12px; }
.tld-editor label { display: block; font-size: 11px; color: var(--muted); margin: 0 3px 7px; }
.tld-editor input { font-size: 13px; padding: 12px; }

.results-section { padding: 28px 0 90px; }
.results-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.results-head .eyebrow { margin-bottom: 9px; }
h2 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.count { font: 500 12px "DM Mono"; color: var(--muted); }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.result { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; animation: rise .35s both; }
.domain { font: 500 18px "DM Mono"; letter-spacing: -.03em; }
.domain strong { font-weight: 500; background: linear-gradient(transparent 65%, var(--lime) 0); }
.premium { display: inline-block; margin-left: 8px; padding: 4px 6px; border-radius: 4px; background: #fff2c5; color: #7d5b00; font: 500 9px "DM Mono"; text-transform: uppercase; vertical-align: 2px; }
.price { text-align: right; font-weight: 700; }
.price small { display: block; margin-top: 3px; font-size: 10px; font-weight: 500; color: var(--muted); }

.loading-section, .empty-section { text-align: center; padding: 80px 0; color: var(--muted); }
.loader { height: 34px; display: flex; justify-content: center; align-items: end; gap: 5px; }
.loader span { width: 6px; height: 6px; background: var(--ink); border-radius: 5px; animation: pulse .8s infinite alternate; }
.loader span:nth-child(2) { animation-delay: .15s; }
.loader span:nth-child(3) { animation-delay: .3s; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 18px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; font: 500 16px "DM Mono"; }
.empty-section h2 { color: var(--ink); }
.empty-section p { margin: 9px 0; }

footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; height: 70px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
[hidden] { display: none !important; }
@keyframes pulse { to { height: 25px; background: var(--lime-dark); } }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }

@media (max-width: 680px) {
  main { width: min(100% - 24px, 1080px); }
  nav { height: 70px; }
  .hero { padding: 64px 0 50px; }
  .intro { font-size: 15px; }
  .input-row { flex-direction: column; }
  .input-row button { justify-content: center; padding: 17px; }
  .results { grid-template-columns: 1fr; }
  .results-head { align-items: start; gap: 10px; flex-direction: column; }
  footer { width: calc(100% - 24px); height: auto; padding: 20px 0; gap: 8px; align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
