@font-face {
  font-family: "PixelOperator";
  src: url("fonts/PixelOperator-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "DepartureMono";
  src: url("fonts/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #17181c;
  --panel: #1e1f24;
  --panel-2: #25262c;
  --line: #2c2d34;
  --text: #f4f4f4;
  --muted: #8a8c93;
  --dim: #55575e;
  --gold: #d8c27e;
  --gold-hi: #e7d59a;
  --gold-ink: #191509;
  --radius: 18px;
  --font-display: "PixelOperator", monospace;
  --font-mono: "DepartureMono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { image-rendering: pixelated; }

/* film grain / noise overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(92vw, 720px);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 22px;
  background: linear-gradient(180deg, #24252b, #1b1c21);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav__logo { display: flex; }
.nav__logo img { border-radius: 6px; display: block; }
.nav__burger {
  width: 46px; height: 46px;
  display: grid; place-content: center; gap: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text); }

.menu {
  position: fixed;
  top: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 39;
  width: min(92vw, 720px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.menu a, .menu__cta {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  background: none; border: 0; text-align: left; cursor: pointer;
}
.menu a:hover { background: var(--panel-2); color: var(--text); }
.menu__cta { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.05em; font-size: 15px; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}
.hero__sub {
  font-family: var(--font-mono);
  color: var(--muted);
  margin: 28px 0 34px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.hero__cta { min-width: 220px; }
.scroll {
  position: absolute;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.4em;
}
.scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- BUTTONS ---------- */
.btn {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 6px 0 #a08d4e, 0 10px 24px rgba(0, 0, 0, 0.4);
}
.btn--gold:not(:disabled):hover { filter: brightness(1.06); }
.btn--gold:active { box-shadow: 0 2px 0 #a08d4e; }
.btn--ghost {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--line);
  min-width: 52px;
  padding: 15px 18px;
}
.btn--wide { flex: 1; }

/* ---------- GALLERY ---------- */
.gallery {
  position: relative;
  z-index: 1;
  padding: 60px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gallery__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  margin: 0 0 14px;
}
.gallery__supply {
  font-family: var(--font-mono);
  color: var(--dim);
  letter-spacing: 0.28em;
  font-size: 11px;
  margin: 0 0 34px;
}
.gallery__supply b { color: var(--muted); margin: 0 6px; }
.card {
  width: min(86vw, 440px);
  aspect-ratio: 1;
  background: #101116;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.card__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.controls {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.ctl {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text);
  background: linear-gradient(180deg, #26272d, #1d1e23);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}
.ctl:hover { background: var(--panel-2); }
.ctl:active { transform: translateY(1px); }
.ctl--wide { padding: 12px 22px; }

.dots { display: flex; gap: 8px; margin-top: 26px; }
.dots span {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--line);
  transition: width 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.dots span.on { width: 22px; background: var(--gold); }

/* ---------- FOOTER ---------- */
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { border-radius: 5px; opacity: 0.7; }

/* ---------- APPLY FLOW ---------- */
.apply {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 9, 12, 0.82);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.apply__card {
  position: relative;
  width: min(94vw, 460px);
  background: linear-gradient(180deg, #202127, #191a1f);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 26px 26px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.apply__close {
  position: absolute;
  top: 16px; right: 18px;
  background: none; border: 0;
  color: var(--dim);
  font-size: 24px; line-height: 1;
  cursor: pointer;
}
.apply__close:hover { color: var(--text); }

.tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 26px;
  position: relative;
}
.tabs::before {
  content: "";
  position: absolute;
  top: 5px; left: 6%; right: 6%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.tabs span {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
  padding-top: 16px;
}
.tabs span::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 99px;
  background: var(--panel);
  border: 2px solid var(--line);
}
.tabs span.active { color: var(--text); }
.tabs span.active::after { background: var(--gold); border-color: var(--gold); }
.tabs span.done::after { background: var(--gold); border-color: var(--gold); }

.step__pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  background: rgba(216, 194, 126, 0.1);
  border: 1px solid rgba(216, 194, 126, 0.25);
  padding: 5px 11px;
  border-radius: 99px;
  margin: 0 0 14px;
}
.step__title {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 8px;
}
.step__title span { font-family: var(--font-mono); }
.step__sub { color: var(--muted); margin: 0 0 20px; font-size: 13.5px; }
.step__hint { color: var(--dim); font-size: 11.5px; margin: 12px 0 0; }
.step__error { color: #e77; font-size: 12px; margin: 12px 0 0; }

.field {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}
.field::placeholder { color: var(--dim); }
.field:focus { border-color: var(--gold); }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin: 22px 0 8px;
}
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.step__nav { display: flex; margin-top: 24px; }
.step__nav .btn--gold { flex: 1; }
.step__nav--split { align-items: center; gap: 12px; }
.step__nav--split .btn--gold { flex: none; }
.step__nav--split .btn--wide { flex: 1; }
.tasks__count {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* tasks */
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #14151a;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.task__txt { flex: 1; min-width: 0; }
.task__txt b { display: block; font-family: var(--font-mono); font-size: 13px; font-weight: 400; }
.task__txt i { display: block; font-style: normal; color: var(--dim); font-size: 11px; margin-top: 3px; }
.task__go {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.task__go:hover { background: #303138; }
.task__check {
  width: 20px; height: 20px;
  border-radius: 99px;
  border: 2px solid var(--line);
  flex: none;
  position: relative;
}
.task.done .task__check { background: var(--gold); border-color: var(--gold); }
.task.done .task__check::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border: solid var(--gold-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.task.done .task__go { opacity: 0.4; }
.task.retry .task__txt i { color: var(--gold); }

/* done step */
.step--done { text-align: center; }
.done__mark { font-size: 54px; margin: 6px 0 14px; }
.step--done .step__title { font-size: 24px; }
.step--done .step__sub { margin-bottom: 24px; }
.step--done b { color: var(--gold); }

@media (max-width: 480px) {
  .apply__card { padding: 26px 18px 20px; }
  .step__title { font-size: 22px; }
}
