:root {
  --ink: #142218;
  --muted: #637067;
  --paper: #f6f4ed;
  --surface: #fffdf7;
  --accent: #d8ff4f;
  --accent-dark: #183d24;
  --line: rgba(20, 34, 24, 0.13);
  --shadow: 0 24px 70px rgba(26, 42, 30, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 255, 79, 0.2), transparent 25rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
}

body.modal-open { overflow: hidden; }
.hp-field { position: absolute !important; left: -9999px !important; }

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 23px/1 "Manrope", sans-serif;
  letter-spacing: -0.06em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--ink);
}

.header-link {
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

.hero {
  min-height: 650px;
  padding: 112px 0 90px;
  text-align: center;
}

.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--accent-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(216, 255, 79, 0.8);
}

h1, h2, h3 { font-family: "Manrope", sans-serif; }

h1 {
  margin: 24px 0;
  font-size: clamp(48px, 7.8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--accent-dark);
  font-style: normal;
  position: relative;
}

h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1%;
  right: -2%;
  bottom: 5%;
  height: 21%;
  background: var(--accent);
  transform: rotate(-1deg);
}

.hero-copy {
  max-width: 610px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.search {
  max-width: 820px;
  margin: 34px auto 0;
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 10px 10px 10px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-icon {
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 2px;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 16px 22px;
  color: white;
  background: var(--ink);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.search button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.search button:disabled { cursor: wait; opacity: 0.7; }
.search button span { margin-left: 10px; }
.search-note { color: var(--muted); font-size: 13px; }

.results-section {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}

.extensions {
  margin-top: 86px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 40px;
}

.kicker { color: var(--muted); margin: 0 0 10px; }

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status { min-height: 24px; color: #9a3b2f; margin-bottom: 16px; }

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

.domain-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.domain-card.available { border-color: rgba(24, 61, 36, 0.3); }

.domain-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.domain-card h3 { margin: 0; font-size: 19px; letter-spacing: -0.03em; }

.badge {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #ecebe5;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.available .badge { color: var(--accent-dark); background: var(--accent); }

.order-button {
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  color: var(--surface);
  background: var(--ink);
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.order-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.order-button span { margin-left: 8px; }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 14, 0.62);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(10, 22, 14, 0.25);
}

.modal-panel h2 {
  margin: 6px 0 8px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.selected-domain {
  margin: 0 0 28px;
  color: var(--accent-dark);
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

#order-form {
  display: grid;
  gap: 9px;
}

#order-form label {
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
}

#order-form input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: white;
}

#order-form input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(216, 255, 79, 0.5);
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.form-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.success {
  color: #11724e;
  font-weight: 700;
}

.modal-submit {
  margin-top: 4px;
  padding: 15px 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: white;
  background: var(--ink);
  font-weight: 700;
}

.modal-submit:hover { background: var(--accent-dark); }
.modal-submit:disabled { cursor: wait; background: #159466; }
.modal-submit span { margin-left: 8px; }

.tld-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tld-list span {
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  font: 700 15px/1 "Manrope", sans-serif;
}

footer {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 780px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .hero { min-height: auto; padding: 82px 0 70px; }
  h1 { font-size: clamp(44px, 14vw, 68px); }
  .hero-copy { font-size: 16px; }
  .extensions { margin-top: 58px; padding-top: 48px; }
  .search-field { grid-template-columns: auto 1fr; padding: 9px 12px 9px 20px; }
  .search button { grid-column: 1 / -1; width: 100%; }
  .section-heading { align-items: start; flex-direction: column; }
  .domain-grid { grid-template-columns: 1fr; }
  footer { padding: 32px 0; flex-direction: column; align-items: start; }
  .modal-panel { padding: 30px 22px 24px; }
}
