/* NAVOYAN — shared styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #121212;
  color: #F3EBDD;
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: #D9B67E; }
a:hover { color: #F0D3A0; }
:focus-visible { outline: 2px solid #E2C08A; outline-offset: 3px; }

/* ---------- Home ---------- */
.home { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.home-art {
  --W: max(100vw, calc(100svh * 2.1216));
  --H: calc(var(--W) / 2.1216);
  position: absolute;
  width: var(--W); height: var(--H);
  left: calc((100vw - var(--W)) / 2);
  top: calc((100svh - var(--H)) / 2);
  container-type: inline-size;
  background: url(navoyan-bg.webp) 0 0 / 100% 100% no-repeat;
}
.home-name {
  position: absolute; left: 64.3%; top: 55.6%;
  transform: translate(-50%, -50%);
  margin: 0; padding-left: 0.32em; white-space: nowrap;
  font-weight: 300; font-size: 4.3cqw; letter-spacing: 0.32em; line-height: 1;
  background: linear-gradient(180deg, #D2AA70 0%, #B48650 50%, #8E6539 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-cta {
  position: absolute; left: 64.3%; top: 64.5%; transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 2.2em;
  border: 1px solid #B48650; color: #E2C08A; text-decoration: none;
  font-size: max(13px, 0.62cqw); font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  white-space: nowrap; transition: background .2s, color .2s;
}
.home-cta:hover { background: #B48650; color: #121212; }
.home-cta:focus-visible { outline-offset: 4px; }
@media (max-width: 700px) {
  .home-art { left: clamp(calc(100vw - var(--W)), calc(50vw - 0.643 * var(--W)), 0px); }
  .home-name { font-size: min(4.3cqw, 10.5vw); }
  .home-cta { top: calc(55.6% + max(46px, 6svh)); }
}

/* ---------- Inner pages (log in, join, thanks) ---------- */
.page {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: #121212;
}
/* Same artwork geometry as the home page, so the waves don't move between pages */
.page::before, .page::after { content: ""; position: fixed; z-index: -1; pointer-events: none; }
.page::before {
  --W: max(100vw, calc(100svh * 2.1216));
  --H: calc(var(--W) / 2.1216);
  width: var(--W); height: var(--H);
  left: calc((100vw - var(--W)) / 2);
  top: calc((100svh - var(--H)) / 2);
  background: url(navoyan-bg.webp) 0 0 / 100% 100% no-repeat;
}
.page::after { inset: 0; background: rgba(12,12,12,0.78); }
@media (max-width: 700px) {
  .page::before { left: clamp(calc(100vw - var(--W)), calc(50vw - 0.643 * var(--W)), 0px); }
}
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(16px, 4vw, 32px); }
.top a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand { font-size: 18px; font-weight: 300; letter-spacing: 0.32em; color: #D2AA70; }
.toplink { font-size: 13px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; color: #E2C08A; }
.center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px clamp(16px, 4vw, 32px) 56px; }
.card {
  width: 100%; padding: clamp(28px, 5vw, 48px);
  background: rgba(18,18,18,0.82); border: 1px solid rgba(180,134,80,0.45);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.card--narrow { max-width: 440px; }
.card--wide { max-width: 580px; }
.title { margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: #E2C08A; }
.lead { margin: 0 0 32px; font-size: 16px; line-height: 1.6; color: #CFC6B6; }
.form { display: flex; flex-direction: column; gap: 20px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-size: 12px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: #CDB892; }
.label small { font-size: 12px; text-transform: none; letter-spacing: 0.04em; color: #9A917F; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(180,134,80,0.55); border-radius: 2px;
  color: #F3EBDD; font: inherit; font-size: 16px; font-weight: 300;
}
.input:focus { outline: none; border-color: #E2C08A; background: rgba(255,255,255,0.06); }
textarea.input { min-height: 110px; resize: vertical; }
.btn {
  width: 100%; min-height: 52px; padding: 0 28px;
  border: 1px solid #B48650; background: #B48650; color: #121212;
  font: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.btn:hover { background: #C99B60; }
.check-row { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; color: #CFC6B6; }
.check {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 2px 0 0; flex: none;
  border: 1px solid rgba(180,134,80,0.85); border-radius: 2px; background: rgba(255,255,255,0.04); cursor: pointer;
}
.check:checked { background: #B48650; box-shadow: inset 0 0 0 4px #161616; }
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: #D9B67E; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: #F0D3A0; }
.note { margin: 0; min-height: 1.5em; font-size: 15px; line-height: 1.5; color: #E2C08A; text-align: center; }
.foot { display: flex; justify-content: center; margin-top: 20px; font-size: 15px; color: #CFC6B6; text-align: center; }
.foot span { display: inline-flex; align-items: center; min-height: 44px; }
.hidden { display: none; }

/* ---------- Terms pop-up ---------- */
.terms {
  width: min(720px, calc(100vw - 24px)); max-height: 88vh; padding: 0;
  background: #141414; color: #F3EBDD;
  border: 1px solid rgba(180,134,80,0.5); box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}
.terms[open] { display: flex; flex-direction: column; }
.terms::backdrop { background: rgba(6,6,6,0.78); backdrop-filter: blur(3px); }
.terms-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(20px, 4vw, 40px); border-bottom: 1px solid rgba(180,134,80,0.25); }
.terms-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: #E2C08A; }
.x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid rgba(180,134,80,0.45); background: none; color: #E2C08A; cursor: pointer; }
.x:hover { border-color: #E2C08A; }
.terms-body { overflow-y: auto; padding: 32px clamp(20px, 4vw, 40px) 36px; }
.terms-body p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.75; color: #D6CEBF; }
.terms-foot { display: flex; justify-content: flex-end; padding: 20px clamp(20px, 4vw, 40px); border-top: 1px solid rgba(180,134,80,0.25); }
.terms-foot .btn { width: auto; padding: 0 36px; }
@media (max-width: 480px) { .terms-head h2 { font-size: 20px; letter-spacing: 0.14em; } }

/* ---------- Thanks / 404 ---------- */
.done { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 0; text-align: center; }
.done p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.6; color: #CFC6B6; }
.done a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none; }
