@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --navy: #0b1730;
  --navy-soft: #14264a;
  --red: #c53b40;
  --cream: #f6f2e9;
  --white: #ffffff;
  --ink: #111827;
  --muted: #6d7480;
  --line: rgba(11, 23, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(197, 59, 64, 0.07), transparent 28rem),
    var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  padding: 26px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #58606d;
  font-size: 13px;
  font-weight: 700;
}

.auction-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
}

.auction-mark img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero {
  padding: 115px 0 90px;
  text-align: center;
}

.status,
.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.domain-title {
  margin: 20px auto 0;
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: clamp(21px, 6.6vw, 86px);
  line-height: 1;
  letter-spacing: -0.065em;
  color: var(--navy);
  white-space: nowrap;
  text-align: center;
}

.domain-name,
.domain-tld {
  white-space: nowrap;
}

.domain-tld {
  color: var(--red);
}

.intro {
  margin: 25px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
}

.actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  padding: 0 23px;
  border-radius: 13px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--navy);
  color: white;
}

.primary:hover {
  background: var(--navy-soft);
}

.secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  border-color: var(--line);
}

.offer-card {
  max-width: 980px;
  margin: 0 auto 70px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 24px 70px rgba(11,23,48,0.08);
}

.offer-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.offer-heading h2 {
  margin: 7px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.small-note {
  color: #878d96;
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-top: 14px;
}

label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #404753;
  font-size: 13px;
  font-weight: 700;
}

label em {
  color: #969ba3;
  font-style: normal;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8dadf;
  border-radius: 11px;
  background: white;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 49px;
  padding: 0 13px;
}

textarea {
  padding: 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #8b96aa;
  box-shadow: 0 0 0 4px rgba(11,23,48,0.06);
}

.money {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}

.submit {
  width: 100%;
  margin-top: 20px;
}

.price-link {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

footer {
  padding: 0 0 34px;
  text-align: center;
  color: #9297a0;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(11,23,48,0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(500px, 100%);
  padding: 32px;
  border-radius: 22px;
  background: var(--cream);
}

.modal h2 {
  margin: 8px 0;
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  letter-spacing: -0.04em;
}

.modal p {
  color: var(--muted);
}

.modal code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e9e4da;
}

.close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #e8e3da;
  color: var(--navy);
  font-size: 23px;
  cursor: pointer;
}

@media (max-width: 650px) {
  .page {
    width: min(100% - 24px, 1200px);
  }

  .topbar {
    padding-top: 18px;
  }

  .hero {
    padding: 76px 0 66px;
  }

  .domain-title {
    font-size: clamp(20px, 7.15vw, 46px);
    letter-spacing: -0.075em;
  }

  .intro {
    max-width: 420px;
    font-size: 16px;
  }

  .actions {
    display: grid;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .button {
    width: 100%;
  }

  .offer-card {
    padding: 22px;
  }

  .offer-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 380px) {
  .domain-title {
    font-size: 6.9vw;
  }
}


.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.form-note { margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

#offerFields[hidden] { display: none; }
