/* topdomain.sale — domain landing page
   Palette and metrics mirror the "Domain Landing" design component. */

/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  src: url(/fonts/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjgn7MsNo.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  src: url(/fonts/jizHRFtNs2ka5fXjeivQ4LroWlx-6zAjjH7M.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/jizBRFtNs2ka5fXjeivQ4LroWlx-6zsTjmbI.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  src: url(/fonts/jizBRFtNs2ka5fXjeivQ4LroWlx-6zUTjg.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:            #100E0C;
  --bg-alt:        #16130F;
  --ink:           #F2EDE3;
  --ink-muted:     #9A9288;
  --ink-soft:      #8B847B;
  --ink-dim:       #6F6961;
  --gold:          #C9A567;
  --gold-bright:   #E3C489;

  --line:          rgba(242, 237, 227, 0.08);
  --line-row:      rgba(242, 237, 227, 0.09);
  --line-mid:      rgba(242, 237, 227, 0.10);
  --line-strong:   rgba(242, 237, 227, 0.12);
  --line-pill:     rgba(242, 237, 227, 0.14);
  --line-btn:      rgba(242, 237, 227, 0.20);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Work Sans', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad-x:      clamp(20px, 6vw, 88px);
  --pad-y:      clamp(56px, 8vw, 104px);
  --wrap:       1240px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.12;
  margin: 0;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__dot {
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  flex: none;
}

.brand__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-pill);
  border-radius: 999px;
  padding: 3px;
}

.lang__btn {
  background: transparent;
  color: var(--ink-muted);
  border: 0;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.lang__btn:not(.is-active):hover { color: var(--ink); }

.lang__btn.is-active {
  background: var(--gold);
  color: var(--bg);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: clamp(64px, 11vw, 132px) var(--pad-x) clamp(56px, 8vw, 96px);
  position: relative;
}

.hero__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 110vw);
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(201, 165, 103, 0.13), transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 1100px;
  animation: rise 0.7s ease both;
}

/* Re-renders (language switch, expanded list) must not replay the intro.
 * A class rather than a style attribute, so no CSP exception is needed. */
.hero__inner.is-static { animation: none; }

.hero__eyebrow { margin-bottom: 34px; }

.hero__domain {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 9.5vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(28px, 4vw, 44px);
  text-wrap: balance;
}

/* Keyword chips sit between the domain and the price row. The :has() rule
   tightens the headline gap when they are present; without :has() support the
   spacing is simply a little wider. */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding: 0;
}

.keywords__chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--line-pill);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}

.hero__inner:has(.keywords) .hero__domain {
  margin-bottom: clamp(18px, 2.2vw, 26px);
}

.hero__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 64px);
  border-top: 1px solid var(--line-mid);
  padding-top: clamp(28px, 4vw, 40px);
}

.price__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.price__value {
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1;
  color: var(--ink);
}

.price__note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  margin-top: 12px;
  letter-spacing: 0.06em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--gold);
  color: var(--bg);
}

.btn:hover { background: var(--gold-bright); color: var(--bg); }

.btn__arrow { font-family: var(--mono); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-btn);
  padding: 17px 28px;
  font-weight: 300;
}

.btn--ghost:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--ink);
}

.btn--mono { font-family: var(--mono); }

/* ------------------------------------------------------------------- why */

.why {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--line);
}

.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 5vw, 64px);
  max-width: var(--wrap);
}

.why__title { max-width: 620px; }

/* 1px grid gap over a light background draws the hairlines between cards */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-mid);
}

.card {
  background: var(--bg);
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 34px);
}

.card__no {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}

.card__title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--ink);
}

.card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- trust */

.trust {
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.trust__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 80px);
  max-width: var(--wrap);
  align-items: start;
}

.trust__eyebrow { margin-bottom: 22px; }
.trust__title { margin-bottom: 18px; }

.trust__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 420px;
  text-wrap: pretty;
}

.trust__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust__row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-row);
}

.trust__mark {
  width: 6px;
  height: 6px;
  background: var(--gold);
  margin-top: 8px;
  flex: none;
  transform: rotate(45deg);
}

.trust__row-title {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 5px;
}

.trust__row-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ------------------------------------------------------------- portfolio */

.portfolio { padding: var(--pad-y) var(--pad-x); }

.portfolio__inner { max-width: var(--wrap); }

.portfolio__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.portfolio__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.portfolio__list { border-top: 1px solid var(--line-strong); }

.domain-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: clamp(18px, 2.4vw, 26px) clamp(4px, 1vw, 14px);
  border-bottom: 1px solid var(--line-row);
  color: var(--ink);
}

.domain-row:hover {
  background: rgba(201, 165, 103, 0.06);
  color: var(--ink);
}

.domain-row__name {
  font-family: var(--serif);
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.domain-row__price {
  font-family: var(--mono);
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--gold);
  white-space: nowrap;
}

.domain-row__arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-dim);
}

.portfolio__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 32px);
  padding: 14px 24px;
  background: none;
  border: 1px solid var(--line-btn);
  border-radius: 2px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.portfolio__more:hover {
  border-color: var(--gold);
  color: var(--ink);
}

/* --------------------------------------------------------------- contact */

.contact {
  padding: clamp(64px, 9vw, 120px) var(--pad-x);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.contact__inner { max-width: 760px; }

.contact__eyebrow { margin-bottom: 24px; }

.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1.06;
  margin: 0 0 20px;
  text-wrap: pretty;
}

.contact__body {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px var(--pad-x) 44px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}

.site-footer__links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  cursor: pointer;
  text-transform: uppercase;
}

.link-btn:hover { color: var(--gold); }

/* ---------------------------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(8, 7, 6, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(12px, 4vw, 56px);
  overflow-y: auto;
}

.modal[hidden] { display: none; }

.modal__panel {
  background: var(--bg-alt);
  border: 1px solid var(--line-pill);
  max-width: 720px;
  width: 100%;
  padding: clamp(26px, 4vw, 48px);
  animation: rise 0.3s ease both;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 1px solid rgba(242, 237, 227, 0.18);
  color: var(--ink-muted);
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  border-radius: 50%;
}

.modal__close:hover { color: var(--ink); }

.modal__eyebrow { margin-bottom: 18px; }

.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 8px;
  padding-right: 44px;
}

.modal__intro {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px 34px;
}

.modal__key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 7px;
}

.modal__val {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-line;
}

.modal__foot {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-mid);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-dim);
}

body.is-locked { overflow: hidden; }

/* -------------------------------------------------------------- noscript */

.noscript {
  padding: clamp(48px, 8vw, 96px) var(--pad-x);
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.noscript h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1;
  margin: 0 0 24px;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner,
  .modal__panel { animation: none; }
  * { scroll-behavior: auto; }
}
