@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/fonts/bodoni-moda-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Tajawal";
  src: url("/fonts/tajawal-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F;
}

@font-face {
  font-family: "Amiri";
  src: url("/fonts/amiri-arabic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Amiri";
  src: url("/fonts/amiri-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

:root {
  --night: #070d14;
  --navy: #101a27;
  --spotlight: #1a3348;
  --ivory: #f4efe6;
  --ivory-deep: #e6dfd2;
  --ink: #f7f3eb;
  --ink-soft: #d9d0c3;
  --gold: #c6a36a;
  --gold-text: #f0d7a4;
  --paper: #f6f1e7;
  --paper-ink: #1c1814;
  --paper-soft: #5c5348;
  --line: rgba(240, 215, 164, 0.45);
  --danger: #7a2424;
  --ok: #145c42;
  --warn: #6d4e16;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --mast: 4.25rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--mast) + 0.75rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 8% -10%, var(--spotlight), transparent 70%),
    var(--night);
  color: var(--ink);
  font-family: "Familjen Grotesk", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: 1px;
  background: linear-gradient(var(--gold), transparent 80%);
  opacity: 0.7;
  pointer-events: none;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--gold-text);
  color: var(--night);
  padding: 0.6rem 0.9rem;
  z-index: 5;
}

.skip:focus {
  transform: none;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-height: var(--mast);
  padding: 0.75rem 6vw;
  background: rgba(7, 13, 20, 0.94);
  border-bottom: 1px solid rgba(198, 163, 106, 0.35);
}

.mast-name,
.mast-offer {
  color: var(--ink);
  text-decoration: none;
}

.mast-name {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.mast-tools {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.lang-btn {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.92rem/1 "Familjen Grotesk", "Tajawal", sans-serif;
  cursor: pointer;
}

.lang-btn[aria-pressed="true"] {
  color: var(--gold-text);
  box-shadow: inset 0 -1px 0 var(--gold);
}

.mast-offer {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.1rem;
}

.hero {
  min-height: calc(100svh - var(--mast));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: 7vh 6vw 8vh;
}

.hero-name {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.domain {
  margin: 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3.5rem, 14vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
}

.tld {
  color: var(--gold-text);
  font-size: 0.42em;
  letter-spacing: 0.08em;
  margin-left: 0.12em;
}

.price {
  margin: 0;
  text-align: end;
  display: grid;
  gap: 0.2rem;
}

.price-figure {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.price-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-foot {
  max-width: 40rem;
  animation: arrive 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.domain {
  animation: arrive 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

h1,
h2 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-style: italic;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.actions,
.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font: 600 1rem/1 "Familjen Grotesk", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: #1a140c;
}

.btn-gold:hover {
  background: var(--gold-text);
}

.btn-line,
.btn-on-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-line:hover,
.btn-on-dark:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.value {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 4rem;
  padding: 7rem 6vw;
  border-top: 1px solid rgba(240, 215, 164, 0.18);
}

.value-copy {
  max-width: 42rem;
}

.value h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.value p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

.value p:last-child {
  margin-bottom: 0;
}

.specs {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.specs div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240, 215, 164, 0.28);
}

.specs dt {
  color: var(--gold-text);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0.35rem 0 0;
  color: var(--ink);
}

.acquire {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
  padding: 1rem 6vw 6rem;
}

.acquire-intro h2,
.sheet h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.acquire-intro p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.sheet {
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: light;
  padding: 2.25rem 2rem 2rem;
  box-shadow: var(--shadow);
}

.sheet h2 {
  color: var(--paper-ink);
}

.sheet-lead,
.privacy {
  color: var(--paper-soft);
}

.sheet-lead {
  margin: 0 0 1.5rem;
  max-width: 46ch;
}

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1.25rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.optional {
  font-weight: 400;
  color: var(--paper-soft);
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b7ad9e;
  border-radius: 0;
  background: transparent;
  color: var(--paper-ink);
  font: 1rem/1.4 "Familjen Grotesk", sans-serif;
  padding: 0.7rem 0.1rem;
  min-height: 2.75rem;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d6458;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #8c6b34;
  outline-offset: 3px;
  border-bottom-color: #8c6b34;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--danger);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
}

.privacy {
  margin: 1.25rem 0 0.75rem;
  font-size: 0.92rem;
  max-width: 68ch;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.4rem 0 1rem;
  font-size: 0.98rem;
}

.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--ok); }
.form-status.is-warning { color: var(--warn); }
.form-status.is-pending { color: var(--paper-soft); }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.colophon {
  padding: 2rem 6vw 3rem;
  border-top: 1px solid rgba(240, 215, 164, 0.18);
  color: var(--ink-soft);
}

.colophon p {
  margin: 0.2rem 0;
}

.colophon p:first-child {
  font-family: "Bodoni Moda", Georgia, serif;
  color: var(--ink);
  letter-spacing: 0.12em;
}

.result-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem 1.25rem;
}

.result-sheet {
  width: min(40rem, 100%);
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: light;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.result-sheet h1 {
  color: var(--paper-ink);
  font-style: italic;
}

.result-sheet a {
  color: #6d4e16;
}

.domain-plain {
  letter-spacing: 0.14em;
  font-family: "Bodoni Moda", Georgia, serif;
}

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
}

.sheet :focus-visible {
  outline-color: #8c6b34;
}

@keyframes arrive {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

html[dir="rtl"] body {
  font-family: "Tajawal", "Familjen Grotesk", sans-serif;
  line-height: 1.8;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2 {
  font-family: "Amiri", "Bodoni Moda", serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}

html[dir="rtl"] .domain,
html[dir="rtl"] .mast-name,
html[dir="rtl"] .price-figure,
html[dir="rtl"] .colophon p:first-child,
html[dir="rtl"] .domain-plain {
  font-family: "Bodoni Moda", Georgia, serif;
}

html[dir="rtl"] .price-note,
html[dir="rtl"] .specs dt,
html[dir="rtl"] .mast-offer,
html[dir="rtl"] .btn {
  letter-spacing: 0;
  text-transform: none;
  font-family: "Tajawal", "Familjen Grotesk", sans-serif;
}

html[dir="rtl"] .field input,
html[dir="rtl"] .field textarea,
html[dir="rtl"] .lang-btn {
  font-family: "Tajawal", "Familjen Grotesk", sans-serif;
}

html[dir="rtl"] .price {
  text-align: start;
}

@media (max-width: 860px) {
  .hero-name,
  .value,
  .acquire,
  .fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price {
    text-align: start;
  }

  .hero {
    min-height: auto;
    gap: 3.5rem;
    padding-top: 2.5rem;
  }

  .value,
  .acquire {
    gap: 2rem;
  }

  .actions,
  .sheet-actions,
  .btn {
    width: 100%;
  }

  .sheet {
    padding: 1.5rem 1.15rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .domain,
  .hero-foot,
  .btn {
    animation: none;
    transition: none;
  }
}
