/* ====== tokens (strict grayscale) ====== */
:root {
  --bg: #0a0a0a;
  --bg-2: #0f0f0f;
  --panel: #121212;
  --panel-2: #171717;
  --ink: #fafafa;
  --mute: #9a9a9a;
  --mute-2: #5e5e5e;
  --mute-3: #3a3a3a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.06);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.025em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--mute-2); }

/* ====== film grain (the analog texture) ====== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ====== nav ====== */
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  position: relative;
  z-index: 5;
}
.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
}
.brand-dot { color: var(--ink); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--mute);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  transition: border-color .15s, background .15s, color .15s;
}
.nav-cta:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* ====== hero ====== */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--mute);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-copy h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  font-weight: 600;
  line-height: 1.04;
  margin-bottom: 1.3rem;
}
.hero-copy h1 .mono {
  display: inline-block;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--mute);
  margin-top: 0.4rem;
}
.lede {
  color: var(--mute);
  font-size: 1.02rem;
  max-width: 33rem;
  margin-bottom: 2rem;
}

/* claim form */
.claim {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-2);
  padding: 0.38rem 0.38rem 0.38rem 1.15rem;
  max-width: 26rem;
  border-radius: 999px;
  transition: border-color .15s, box-shadow .15s;
}
.claim:focus-within { border-color: var(--mute); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.claim .prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: var(--mute-2);
  user-select: none;
  white-space: nowrap;
}
.claim input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  padding: 0.78rem 0.5rem;
}
.claim input::placeholder { color: var(--mute-2); }
.claim-go {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.claim-go svg { width: 18px; height: 18px; }
.claim-go:hover { background: transparent; color: var(--ink); transform: translateX(3px); }
.claim-go:active { transform: translateX(3px) scale(0.94); }

/* live availability status under the field */
.claim-status {
  margin-top: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--mute-2);
  min-height: 1.2em;
  transition: color .15s;
}
.claim-status.is-ok { color: var(--mute); }
.claim-status.is-ok .st-url { color: var(--ink); }
.claim-status.is-ok .st-ok { color: var(--mute-2); }
.claim-status .st-err { color: var(--mute-2); opacity: .8; }
.claim-status-c { text-align: center; }

/* ====== the product: phone frame + monochrome demo with cursor spotlight ====== */
.stage { display: flex; justify-content: center; }
.phone {
  position: relative;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1c1c1c, #0c0c0c);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

.demo {
  position: relative;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 23px;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  --mx: 50%;
  --my: 0%;
  overflow: hidden;
}

/* screenshot mode: a real <img> instead of the live demo */
.demo-shot { padding: 0; background: none; border: none; }
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23px;
}

/* url bar — frames the card as a real webpage */
.urlbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
}
.urlbar-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.85;
}
.urlbar-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--mute-2);
}
.urlbar-url b { color: var(--ink); font-weight: 500; }

.demo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.9rem 1.6rem 1.5rem;
}

/* the spotlight: white radial light that tracks the cursor */
.demo-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.10), transparent 62%);
  opacity: 0;
  transition: opacity .3s;
}
.demo:hover .demo-glow { opacity: 1; }

.avatar {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(145deg, #2a2a2a, #0d0d0d);
  border: 1px solid var(--line-2);
}
.avatar-mono {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ink);
}
.avatar-on {
  position: absolute;
  right: 2px; bottom: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--panel-2);
}
.who {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.badge {
  width: 19px; height: 19px;
  border-radius: 5px;
  background: var(--ink);
  display: grid;
  place-items: center;
}
.badge svg { width: 15px; height: 15px; }
.handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--mute);
  margin-top: 0.1rem;
}
.bio-line {
  font-size: 0.85rem;
  color: var(--mute);
  margin-top: 0.7rem;
  max-width: 16rem;
}
.views {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--mute);
  padding: 0.34rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
}
.eye { width: 13px; height: 13px; }

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.3rem;
}
.lk {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: transform .18s var(--ease), border-color .25s;
}
.lk svg { width: 21px; height: 21px; position: relative; z-index: 1; transition: color .25s var(--ease); }
.lk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .3s var(--ease);
}
.lk:hover { transform: translateY(-3px); border-color: transparent; }
.lk:hover::after { transform: translateY(0); }
.lk:hover svg { color: var(--bg); }

.now {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--line);
}
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i {
  width: 3px; height: 100%;
  background: var(--ink);
  border-radius: 2px;
  transform-origin: bottom;
  animation: bar 1s ease-in-out infinite;
  opacity: 0.85;
}
.eq i:nth-child(2) { animation-delay: .2s; opacity: 0.55; }
.eq i:nth-child(3) { animation-delay: .4s; opacity: 0.85; }
.eq i:nth-child(4) { animation-delay: .6s; opacity: 0.55; }
@keyframes bar { 50% { transform: scaleY(0.32); } }
.now-text { font-size: 0.76rem; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-src { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--mute); text-transform: lowercase; }

/* ====== marquee ====== */
.marq {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marq-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: scroll 30s linear infinite;
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--mute);
}
.m-group {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-right: 1.6rem;
}
.m-item { color: var(--ink); }
.m-dot { color: var(--mute-3); font-size: 0.55rem; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marq:hover .marq-track { animation-play-state: paused; }

/* ====== section heads ====== */
.how { padding: 5rem 0 1rem; }
.sec-head {
  max-width: var(--maxw);
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}
.sec-head h2 {
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.sec-head p { color: var(--mute); font-size: 1rem; }

/* ====== features ====== */
.feat {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.feat li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  background: var(--glass);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.feat li:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-3px); }
.fi {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.fi svg { width: 21px; height: 21px; }
.feat h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.3rem; }
.feat p { font-size: 0.88rem; color: var(--mute); line-height: 1.5; }

/* ====== cta ====== */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.9rem, 4.8vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.8rem;
}
.claim-lg { max-width: 28rem; margin: 0 auto; }
.cta-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  font-size: 0.82rem;
  color: var(--mute-2);
}
.cta-meta .brand { color: var(--ink); }
.cta-links { display: flex; gap: 1.3rem; margin-top: 0.5rem; }
.cta-links a { color: var(--mute); transition: color .15s; }
.cta-links a:hover { color: var(--ink); }

/* ====== reveal animation ====== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.feat .reveal:nth-child(2) { transition-delay: .06s; }
.feat .reveal:nth-child(3) { transition-delay: .12s; }

/* ====== responsive ====== */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 1.5rem; }
  .stage { order: -1; }
  .feat { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav-links { display: none; }
  .feat { grid-template-columns: 1fr; }
  .claim { max-width: 100%; }
}

/* ====== motion + focus ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
/* inputs live inside the pill claim form which already shows its own focus */
input:focus-visible { outline: none; }

/* ====== signup / auth ====== */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-wrap {
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
}
.auth-brand {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.auth-card {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 2.2rem 1.9rem;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
}
.auth-h {
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.auth-sub {
  font-size: 0.9rem;
  color: var(--mute);
  margin-bottom: 1.8rem;
}

/* fields */
.field {
  display: block;
  margin-bottom: 1.15rem;
}
.field-label {
  display: block;
  font-size: 0.78rem;
  color: var(--mute);
  margin-bottom: 0.45rem;
}
.field-input {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 0.9rem;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus-within { border-color: var(--mute); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); }
.field-input .prefix {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--mute-2);
  user-select: none;
  white-space: nowrap;
}
.field-input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  padding: 0.78rem 0.3rem;
}
.field-input input:not([type="password"]):not([type="email"]) { letter-spacing: -0.01em; }
.field-input input::placeholder { color: var(--mute-2); }

.field-status {
  display: block;
  min-height: 1.2em;
  margin-top: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--mute-2);
  transition: color .15s;
}
.field-status.is-idle { color: var(--mute-2); }
.field-status.is-ok { color: var(--mute); }
.field-status.is-ok .st-url { color: var(--ink); }
.field-status.is-soft { color: var(--mute); }
.field-status.is-err { color: #c9c9c9; }

/* password show/hide */
.pass-toggle {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--mute-2);
  transition: color .15s, background .15s;
}
.pass-toggle svg { width: 18px; height: 18px; }
.pass-toggle:hover { color: var(--ink); background: var(--glass-2); }

/* submit button */
.auth-go {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.9rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 12px;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.auth-go svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.auth-go:hover { background: transparent; color: var(--ink); }
.auth-go:hover svg { transform: translateX(3px); }
.auth-go:active { transform: scale(0.985); }
.auth-go.is-loading { opacity: 0.7; pointer-events: none; }
.auth-go.is-loading::before {
  content: "";
  width: 15px; height: 15px;
  border: 2px solid var(--bg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.auth-go.is-loading svg { display: none; }

.auth-foot {
  margin-top: 1.3rem;
  text-align: center;
  font-size: 0.86rem;
  color: var(--mute);
}
.auth-foot a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color .15s; }
.auth-foot a:hover { border-color: var(--ink); }

/* label row with inline link (password / forgot) */
.field-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.forgot {
  font-size: 0.76rem;
  color: var(--mute);
  border-bottom: none;
  transition: color .15s;
}
.forgot:hover { color: var(--ink); }

/* remember-me checkbox */
.remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.4rem 0 1.3rem;
  font-size: 0.85rem;
  color: var(--mute);
  cursor: pointer;
  user-select: none;
}
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember-box {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--panel);
  transition: border-color .15s, background .15s;
}
.remember-box svg { width: 13px; height: 13px; color: var(--bg); opacity: 0; transition: opacity .12s; }
.remember input:checked ~ .remember-box { background: var(--ink); border-color: var(--ink); }
.remember input:checked ~ .remember-box svg { opacity: 1; }
.remember input:focus-visible ~ .remember-box { outline: 2px solid var(--ink); outline-offset: 2px; }
.auth-terms {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.74rem;
  color: var(--mute-2);
}
.auth-terms a { color: var(--mute); }
.auth-terms a:hover { color: var(--ink); }

/* ====== centered auth headings ====== */
.auth-h-c { text-align: center; }
.auth-sub-c { text-align: center; }
.auth-sub b { color: var(--ink); font-weight: 500; }

/* ====== OTP code inputs ====== */
.otp-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--glass-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
}
.otp-icon svg { width: 26px; height: 26px; }
.otp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0.2rem;
}
.otp-cell {
  width: 46px;
  height: 58px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.otp-cell:focus { border-color: var(--mute); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06); outline: none; }
.otp-sep {
  width: 8px;
  height: 1px;
  background: var(--line-2);
  flex-shrink: 0;
}
.otp-status { text-align: center; min-height: 1.2em; margin: 0.5rem 0; }

/* resend code */
.resend {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--mute);
}
.resend b { color: var(--ink); font-weight: 500; }
.resend-btn {
  display: inline;
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  border-bottom: 1px solid var(--line-2);
  padding: 0;
  transition: border-color .15s, opacity .15s;
}
.resend-btn:hover { border-color: var(--ink); }
.resend-btn.is-wait { color: var(--mute-2); border-color: transparent; pointer-events: none; }

/* ====== forgot: sent confirmation ====== */
.sent {
  margin-top: 1.3rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--glass);
}
.sent-h { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.98rem; margin-bottom: 0.35rem; }
.sent-t { font-size: 0.84rem; color: var(--mute); line-height: 1.5; }
.sent-t b { color: var(--ink); }
.sent-demo { color: var(--ink); border-bottom: 1px solid var(--line-2); }

/* ====== password strength meter ====== */
.meter { display: flex; gap: 5px; margin-top: 0.55rem; }
.meter i {
  flex: 1; height: 4px;
  border-radius: 2px;
  background: var(--line-2);
  transition: background .2s;
}
.meter.l1 i:nth-child(1) { background: var(--mute-2); }
.meter.l2 i:nth-child(1), .meter.l2 i:nth-child(2) { background: var(--mute); }
.meter.l3 i { background: var(--ink); }

/* ====== doc / content pages ====== */
.doc {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 2;
}
.doc-card {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 2.4rem 2.2rem;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.8);
}
.doc-h {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.3rem;
}
.doc-upd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--mute-2);
  margin-bottom: 1.8rem;
}
.doc-card h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}
.doc-card p {
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.65;
  margin-bottom: 0.7rem;
}
.doc-card p b { color: var(--ink); font-weight: 500; }
.doc-list { list-style: none; margin-bottom: 0.7rem; }
.doc-list li {
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.6;
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mute-2);
}
.doc-back { margin-top: 2rem !important; }
.doc-back a { color: var(--ink); font-size: 0.88rem; transition: opacity .15s; }
.doc-back a:hover { opacity: 0.7; }

/* ====== status page ====== */
.status-hero {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}
.status-dot {
  flex-shrink: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink);
}
.status-dot.status-ok { background: var(--ink); }
.status-h-inline { margin-bottom: 0.1rem; }
.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.status-name { color: var(--ink); }
.status-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}
.status-ok-t { color: var(--mute); }
.status-soft-t { color: var(--ink); border-color: var(--mute-2); }

.uptime { display: flex; gap: 3px; flex-wrap: wrap; margin: 0.6rem 0; }
.uptime .u {
  width: 14px; height: 26px;
  border-radius: 3px;
  background: var(--line-2);
}
.uptime .u.ok { background: var(--ink); opacity: 0.85; }
.uptime .u.warn { background: var(--mute-2); }
.uptime .u.s { width: 11px; height: 11px; vertical-align: -1px; }
.uptime-leg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--mute-2);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ====== responsive: auth/doc on small screens ====== */
@media (max-width: 480px) {
  .otp-cell { width: 38px; height: 50px; font-size: 1.35rem; }
  .otp { gap: 0.35rem; }
  .doc-card { padding: 1.8rem 1.4rem; }
}

/* ====== dashboard ====== */
.dash {
  background: var(--bg);
  min-height: 100vh;
}

/* topbar */
.db-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.db-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding: 0.42rem 0.42rem 0.42rem 0.9rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.db-url-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--mute);
}
.db-url-link b { color: var(--ink); font-weight: 500; }
.db-copy {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--glass-2);
  color: var(--mute);
  transition: background .15s, color .15s;
}
.db-copy svg { width: 15px; height: 15px; }
.db-copy:hover { background: var(--ink); color: var(--bg); }
.db-copy.copied { background: var(--ink); color: var(--bg); }
.db-bar-r { display: flex; align-items: center; gap: 0.8rem; margin-left: auto; }
.db-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: border-color .15s, background .15s;
}
.db-edit svg { width: 16px; height: 16px; }
.db-edit:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.db-me { position: relative; }
.db-ava {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a2a2a, #0d0d0d);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.db-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0.35rem;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, 0.8);
  z-index: 50;
}
.db-menu-item {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--mute);
  transition: background .12s, color .12s;
}
.db-menu-item:hover { background: var(--glass-2); color: var(--ink); }
.db-menu-out { color: var(--mute-2); border-top: 1px solid var(--line); margin-top: 0.25rem; padding-top: 0.65rem; }

/* main */
.db-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3rem;
  position: relative;
  z-index: 2;
}

/* stat cards */
.db-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.3rem;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-label { font-size: 0.78rem; color: var(--mute); }
.stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-trend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  margin-top: 0.15rem;
}
.stat-trend.up { color: var(--ink); opacity: 0.9; }
.stat-trend.down { color: var(--mute-2); }

/* panels */
.db-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1.4rem;
}
.db-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.db-panel-h {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* consistent gap under every panel heading */
.db-panel > .db-panel-h,
.db-cols .db-panel-h,
.db-cols-3 .db-panel-h { margin-bottom: 1.25rem; }
.db-chart-panel { padding: 1.5rem 1.4rem 1.2rem; }

/* range toggle */
.db-range { display: flex; gap: 0.2rem; padding: 0.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.r-btn {
  padding: 0.32rem 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--mute);
  background: transparent;
  border: none;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.r-btn:hover { color: var(--ink); }
.r-btn.is-active { background: var(--ink); color: var(--bg); }

/* chart */
.chart { position: relative; }
.chart-cols {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 210px;
}
.chart-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.chart-bar {
  display: block;
  width: 100%;
  height: var(--h);
  background: var(--line-2);
  border-radius: 3px 3px 0 0;
  transition: background .15s;
}
.chart-col:hover .chart-bar { background: var(--mute-2); }
.chart-col.last .chart-bar { background: var(--ink); }
.chart-col.last:hover .chart-bar { background: var(--ink); }
.chart-axis {
  display: flex;
  gap: 3px;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.chart-axis span {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--mute-2);
  white-space: nowrap;
}

/* column layouts */
.db-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.db-cols .db-panel { margin-bottom: 0; }
.db-cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
  margin-bottom: 1.4rem;
}
/* fixed-height panels with pinned heading + scrolling body */
.db-cols-3 .db-panel {
  height: 340px;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}
.db-cols-3 .db-panel-h { flex-shrink: 0; }
.db-cols-3 .countries,
.db-cols-3 .feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  padding-right: 0.3rem;
}
.db-cols-3 .countries::-webkit-scrollbar,
.db-cols-3 .feed::-webkit-scrollbar { width: 6px; }
.db-cols-3 .countries::-webkit-scrollbar-thumb,
.db-cols-3 .feed::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.db-cols-3 .countries::-webkit-scrollbar-track,
.db-cols-3 .feed::-webkit-scrollbar-track { background: transparent; }

/* hourly activity heatmap (when visitors come) */
.hours-sub { font-size: 0.78rem; color: var(--mute-2); margin-bottom: 0.9rem; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 80px; }
.hour { border-radius: 3px; background: var(--ink); opacity: var(--o); min-height: 6px; transition: transform .12s; }
.hour:hover { transform: scaleY(1.08); }
.hour.peak { opacity: 1; }
.hours-axis { display: flex; justify-content: space-between; margin-top: 0.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; color: var(--mute-2); }

/* top links */
.toplinks { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.toplinks li { display: flex; align-items: center; gap: 0.7rem; }
.tl-ico {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.tl-ico svg { width: 16px; height: 16px; }
.tl-name { flex-shrink: 0; width: 5.5rem; font-size: 0.84rem; color: var(--ink); }
.tl-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tl-bar span { display: block; height: 100%; width: var(--w); background: var(--mute-2); border-radius: 3px; }
.tl-n { flex-shrink: 0; width: 3.5rem; text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--mute); }

/* devices donut (smooth conic-gradient, no jagged strokes) */
.donut { display: flex; align-items: center; gap: 1.4rem; }
.donut-ring {
  position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}
.donut-hole {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.dl-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--mute); }
.dl-item b { color: var(--ink); font-weight: 500; margin-left: auto; }
.dl-d { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.dl-d.solid { background: var(--ink); }
.dl-d.mid { background: var(--mute-2); }
.dl-d.faint { background: var(--line-2); }

/* countries */
.countries { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.countries li { display: flex; align-items: center; gap: 0.6rem; }
.c-rank { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--mute-2); width: 1.4rem; }
.c-name { flex-shrink: 0; width: 5.5rem; font-size: 0.82rem; color: var(--ink); }
.c-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.c-bar span { display: block; height: 100%; width: var(--w); background: var(--mute); border-radius: 3px; }
.c-n { flex-shrink: 0; width: 2.8rem; text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 0.76rem; color: var(--mute); }

/* activity feed */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.feed { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.feed li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: none; }
.f-new { animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-6px); } }
.f-when { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--mute-2); }
.f-act { font-size: 0.82rem; color: var(--mute); }
.f-act b { color: var(--ink); font-weight: 500; }

.db-foot {
  text-align: center;
  font-size: 0.8rem;
  color: var(--mute-2);
  padding-top: 1rem;
}
.db-foot a { color: var(--mute); }
.db-foot a:hover { color: var(--ink); }

/* dashboard responsive */
@media (max-width: 920px) {
  .db-stats { grid-template-columns: 1fr 1fr; }
  .db-cols { grid-template-columns: 1fr; }
  .db-cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .db-stats { grid-template-columns: 1fr; }
  .db-url-link { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .db-edit span, .db-edit { font-size: 0; padding: 0.5rem; }
  .db-edit svg { width: 18px; height: 18px; }
  .stat-val { font-size: 1.6rem; }
  .donut { flex-direction: column; align-items: flex-start; }
}
