@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/space-mono-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin-ext.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;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/space-mono-400-latin.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;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-mono-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin-ext.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;
}

@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/space-mono-700-latin.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;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #0b0c0d;
  color: #efeee8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero.jpg") center / cover no-repeat;
  transform: scale(1.06);
  transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.loaded .bg {
  transform: scale(1);
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 12, 13, 0.9) 0%, rgba(11, 12, 13, 0.68) 45%, rgba(11, 12, 13, 0.18) 82%),
    linear-gradient(180deg, rgba(11, 12, 13, 0.72) 0%, rgba(11, 12, 13, 0.3) 38%, rgba(11, 12, 13, 0.55) 70%, rgba(11, 12, 13, 0.92) 100%);
}

.mono {
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 40px;
  border-bottom: 1px solid rgba(239, 238, 232, 0.28);
}

.logo {
  width: 190px;
  height: auto;
  display: block;
  color: #efeee8;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 40px 56px;
  max-width: 1280px;
}

.kicker {
  color: #d9b56a;
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

h1 {
  font-size: clamp(48px, 8.4vw, 112px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  text-wrap: balance;
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 36px;
  color: #d9d6cc;
  text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #c6a35a;
  color: #1a1206;
  border: 1px solid #c6a35a;
}

.btn-primary:hover {
  background: #efeee8;
  border-color: #efeee8;
}

.btn-ghost {
  border: 1px solid rgba(239, 238, 232, 0.6);
  border-left: 0;
  color: #efeee8;
  background: rgba(11, 12, 13, 0.5);
}

.btn-ghost:hover {
  background: rgba(239, 238, 232, 0.12);
}

.copied {
  color: #c6a35a;
}

footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(239, 238, 232, 0.28);
}

footer div {
  padding: 18px 24px;
  border-right: 1px solid rgba(239, 238, 232, 0.28);
}

footer div:last-child {
  border-right: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.loaded .reveal {
  opacity: 1;
  transform: none;
}

.loaded .d1 { transition-delay: 0.15s; }
.loaded .d2 { transition-delay: 0.3s; }
.loaded .d3 { transition-delay: 0.45s; }
.loaded .d4 { transition-delay: 0.6s; }

@media (max-width: 760px) {
  .shade {
    background: linear-gradient(180deg, rgba(11, 12, 13, 0.7) 0%, rgba(11, 12, 13, 0.55) 35%, rgba(11, 12, 13, 0.85) 60%, rgba(11, 12, 13, 0.95) 100%);
  }

  header {
    padding: 18px 20px;
  }

  .logo {
    width: 150px;
  }

  header .mono.hide-sm {
    display: none;
  }

  main {
    padding: 32px 20px 40px;
  }

  .btn-ghost {
    border-left: 1px solid rgba(239, 238, 232, 0.6);
    border-top: 0;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer div:nth-child(2) {
    border-right: 0;
  }

  footer div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(239, 238, 232, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg,
  .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

@media (max-height: 680px) {
  h1 {
    font-size: clamp(40px, 11vh, 80px);
    margin-bottom: 18px;
  }

  main {
    padding: 24px 40px 28px;
  }

  .lede {
    margin-bottom: 24px;
  }

  .kicker {
    margin-bottom: 14px;
  }

  footer div {
    padding: 14px 24px;
  }
}
