/* Digital Village Market — access gate. Brand from the pitch deck: navy ink, forest green, lime, cream paper. */
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/site/assets/fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/site/assets/fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/site/assets/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/site/assets/fonts/poppins-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(/site/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --navy: #0b2334; --navy-2: #12304a; --green: #1f6b45; --green-2: #175536; --lime: #a2c630; --lime-2: #bcd85f;
  --cream: #f1f2e5; --paper: #fbfbf5; --ink: #0b2334; --ink-2: #364a59; --muted: #56636e; --line: rgba(11, 35, 52, .14);
  --bad: #b42318; --bad-bg: #fdf3f1; --on-dark: #eef1e4; --on-dark-2: #b6c2c9;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --cream: #0c1a24; --paper: #10222e; --ink: #eef1e4; --ink-2: #c3ccd2; --muted: #9aa8b2; --line: rgba(238, 241, 228, .14); --bad: #f2867b; --bad-bg: #3a1613; color-scheme: dark; }
}
:root[data-theme="dark"] { --cream: #0c1a24; --paper: #10222e; --ink: #eef1e4; --ink-2: #c3ccd2; --muted: #9aa8b2; --line: rgba(238, 241, 228, .14); --bad: #f2867b; --bad-bg: #3a1613; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--cream); color: var(--ink); font: 400 16px/1.6 Poppins, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.gate { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }

/* ---------- story (left) ---------- */
.story { position: relative; overflow: hidden; color: var(--on-dark); background: var(--navy); isolation: isolate; }
.story-photo { position: absolute; inset: 0; z-index: -2; background: url(/site/assets/img/hero-field-1672.webp) 60% 40% / cover no-repeat; transform: scale(1.04); animation: drift 26s var(--ease) infinite alternate; }
.story::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(11, 35, 52, .96) 0%, rgba(11, 35, 52, .88) 42%, rgba(11, 35, 52, .55) 100%); }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--lime); opacity: .14; }
@keyframes drift { to { transform: scale(1.1) translate(-1.5%, -1%); } }
.story-in { position: relative; padding: clamp(28px, 5vw, 64px); max-width: 720px; display: flex; flex-direction: column; gap: clamp(20px, 3vh, 32px); min-height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font: 600 13px/1.05 Poppins, sans-serif; letter-spacing: .02em; text-transform: uppercase; }
.brand svg { width: 44px; height: 44px; }
.brand b { color: var(--lime); font-weight: 700; }
.eyebrow { margin-top: auto; color: var(--lime-2); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--lime); border-radius: 2px; }
h1 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; max-width: 16ch; }

.share { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 18px 20px; max-width: 520px; backdrop-filter: blur(6px); }
.share-num { display: flex; align-items: baseline; gap: 12px; }
.share-num b { font: 600 56px/1 Poppins, sans-serif; color: var(--lime); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.share-num span { color: var(--on-dark-2); font-size: 14px; }
.share-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin: 12px 0 10px; gap: 2px; }
.share-bar .farmer { flex: 97; background: linear-gradient(90deg, var(--green), var(--lime)); transform-origin: left; animation: grow 1.4s var(--ease) .3s both; }
.share-bar .dvm { flex: 3; background: #fff; opacity: .85; }
@keyframes grow { from { transform: scaleX(0); } }
.share p { font-size: 14px; color: var(--on-dark); line-height: 1.55; }

.apps { display: flex; flex-wrap: wrap; gap: 8px; }
.apps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.apps b { font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.b { background: #f2b83a; } .dot.s { background: var(--lime); } .dot.t { background: #6fb7d9; } .dot.g { background: #e5866a; } .dot.a { background: #fff; }

/* ---------- door (right) ---------- */
.door { background: var(--paper); padding: clamp(28px, 5vh, 64px) max(clamp(28px, 5vw, 64px), calc((100% - 480px) / 2)); display: flex; flex-direction: column; gap: 18px; justify-content: center; min-width: 0; }
.door-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lock { width: 48px; height: 48px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; }
.lock svg { width: 22px; height: 22px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { font: 600 12px Poppins, sans-serif; color: var(--muted); background: none; border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.015em; }
.lead { color: var(--ink-2); font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
#code { font: 500 clamp(20px, 2.2vw, 26px)/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
#code::placeholder { color: var(--muted); opacity: .45; }
#code:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(31, 107, 69, .16); }
#code[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 12.5px; color: var(--muted); }
.msg { font-size: 14px; color: var(--bad); background: var(--bad-bg); border-radius: 10px; padding: 10px 12px; }
.go { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px Poppins, sans-serif; color: #fff; background: var(--green); border: 0; border-radius: 14px; padding: 16px 20px; cursor: pointer; transition: background .2s, transform .2s var(--ease); }
.go:hover { background: var(--green-2); }
.go:active { transform: scale(.985); }
.go svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s var(--ease); }
.go:hover svg { transform: translateX(3px); }
.go[aria-busy="true"] { opacity: .7; pointer-events: none; }
.go[aria-busy="true"] svg { animation: nudge .8s var(--ease) infinite alternate; }
@keyframes nudge { to { transform: translateX(6px); } }
.facts { display: grid; gap: 12px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.facts svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.foot { font-size: 13px; color: var(--muted); }
.foot a { color: var(--green); font-weight: 500; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 900px) {
  .gate { grid-template-columns: 1fr; }
  .story-in { padding: 28px 16px 32px; gap: 18px; }
  .eyebrow { margin-top: 12px; }
  .door { padding: 28px 16px 40px; max-width: none; }
  .share-num b { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
