@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600&family=Inter:wght@300;400;450;500&display=swap");

:root {
  --ink: #08080a;
  --ink-2: #0c0d11;
  --ink-3: #12141a;
  --line: rgba(255, 255, 255, 0.085);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #edeef3;
  --muted: #8b8e99;
  --dim: #5f626d;
  --cyan: #6fe3d6;
  --violet: #8b6cff;
  --magenta: #e86bff;
  --danger: #ff6b6b;
  --r-pill: 999px;
  --r-card: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.032;
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: overlay;
}

h1, h2, h3, .display {
  font-family: "Inter Tight", "Inter", -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--text); text-decoration: none; }

.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field input::placeholder { color: #5b5e69; }

.field input:hover { border-color: var(--line-2); }

.field input:focus {
  border-color: rgba(111, 227, 214, 0.55);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(111, 227, 214, 0.09);
}

.field .wrap { position: relative; }

.field .reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.field .reveal:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.btn {
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:active { transform: scale(0.988); }

.btn-primary {
  background: #f2f3f7;
  color: #08080a;
}

.btn-primary:hover { background: #ffffff; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }

.btn[disabled] { opacity: 0.55; pointer-events: none; }

.btn .spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(8, 8, 10, 0.25);
  border-top-color: #08080a;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.is-loading .spin { display: block; }
.btn.is-loading .label-text { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

.err {
  color: var(--danger);
  font-size: 13px;
  display: none;
}

.err.on { display: block; }

.shake { animation: shake 0.36s var(--ease); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

.hair { height: 1px; background: var(--line); width: 100%; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }

.views > .view { display: none; }
.views > .view.on { display: block; animation: fade 0.32s var(--ease); }

@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* dev state bar */
.devbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(12, 13, 17, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 12px;
  opacity: 0.45;
  transition: opacity 0.25s var(--ease);
}

.devbar:hover { opacity: 1; }

.devbar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.devbar button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.devbar button.on { color: #08080a; background: #e9eaf0; }

.devbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------- modal */
.navin-modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(8,8,10,.55); backdrop-filter: blur(6px); z-index: 200; }
.navin-modal.on { display: grid; }
.navin-modal-card { width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 22px; padding: 30px 28px 20px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.55); color: #0b0b0d; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.nm-cap { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #9aa1ab; }
.navin-modal-card h2 { font-size: 24px; margin: 10px 0 10px; }
.nm-body { color: #6b7280; font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.nm-check { display: flex; gap: 10px; font-size: 13.5px; color: #374151; align-items: flex-start; margin-bottom: 18px; }
.nm-check input { margin-top: 3px; accent-color: #111; width: 16px; height: 16px; }
.nm-later { display: block; margin: 12px auto 0; background: none; border: 0; color: #6b7280; font: inherit; font-size: 13px; cursor: pointer; }
.nm-later:hover { color: #0b0b0d; }

/* --------------------------------------------------------------- consent */
.navin-consent { position: fixed; left: 20px; bottom: 20px; z-index: 150; width: min(360px, calc(100vw - 40px)); background: #fff; border: 1px solid #e4e6ea; border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px -30px rgba(0,0,0,.35); font-size: 13px; color: #6b7280; }
.navin-consent p { margin: 0 0 12px; line-height: 1.5; }
.nc-actions { display: flex; gap: 8px; justify-content: flex-end; }
.nc-actions button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid #e4e6ea; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.nc-actions button:hover { border-color: #cfd3d9; }
#ncAccept { background: #111214; color: #fff; border-color: #111214; }

.navin-consent { left: auto; right: 24px; bottom: 24px; }
body:has(.navin-consent) .footer { opacity: 0; }
@media (max-width: 720px) { .navin-consent { left: 16px; right: 16px; bottom: 16px; width: auto; } }
