:root {
  --bg: #140c0a;
  --bg-deep: #0a0604;
  --panel: rgba(22, 14, 12, 0.78);
  --panel-solid: #1a110e;
  --elev: rgba(32, 20, 16, 0.88);
  --line: rgba(245, 230, 200, 0.12);
  --line-strong: rgba(245, 230, 200, 0.22);
  --text: #f6f0e8;
  --muted: rgba(235, 220, 200, 0.68);
  --cream: #f5e6c8;
  --blood: #c41e1e;
  --blood-deep: #8b1010;
  --ember: #e8a84a;
  --gold: #e8c56a;
  --ok: #5ee4a8;
  --warn: #f0c14d;
  --danger: #ff7b7b;
  --radius: 20px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 920px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── stage / atmosphere (inspired by dark club aesthetic, not a copy) ── */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.stage-wood {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(196, 30, 30, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 80%, rgba(232, 168, 74, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 35% at 15% 70%, rgba(140, 40, 30, 0.1), transparent 50%),
    linear-gradient(180deg, #1c110e 0%, #120a08 40%, #0a0604 100%);
}
.stage-wood::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      92deg,
      transparent 0 11px,
      rgba(0,0,0,0.08) 11px 12px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 28px,
      rgba(255,220,180,0.015) 28px 29px
    );
  mix-blend-mode: soft-light;
}
.stage-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, transparent 0%, rgba(8, 4, 2, 0.35) 55%, rgba(5, 2, 1, 0.82) 100%);
}
.stage-smoke {
  position: absolute;
  inset: -10% 0 auto;
  height: 55%;
  background: radial-gradient(ellipse at 50% 100%, rgba(196, 30, 30, 0.12), transparent 65%);
  filter: blur(20px);
  animation: smoke-pulse 9s ease-in-out infinite alternate;
}
@keyframes smoke-pulse {
  from { opacity: 0.55; transform: translateY(0); }
  to { opacity: 0.9; transform: translateY(-12px); }
}

.mask-deco {
  position: absolute;
  width: min(220px, 32vw);
  color: #c41e1e;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
  opacity: 0.85;
}
.mask-deco--left {
  top: 12%;
  left: -2%;
  transform: rotate(-18deg);
}
.mask-deco--right {
  top: 38%;
  right: -3%;
  transform: rotate(16deg) scaleX(-1);
  color: #8b1010;
}
@media (max-width: 900px) {
  .mask-deco { opacity: 0.35; width: 28vw; }
  .mask-deco--left { top: 6%; left: -8%; }
  .mask-deco--right { top: auto; bottom: 18%; right: -10%; }
}

.top, main, .foot { position: relative; z-index: 1; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  filter: drop-shadow(0 6px 16px rgba(196, 30, 30, 0.35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.top-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.linkish {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--line);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: color .15s, border-color .15s, background .15s;
}
.linkish:hover {
  color: var(--cream);
  border-color: var(--line-strong);
  background: rgba(196, 30, 30, 0.12);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.hero { margin-bottom: 26px; }
.compact-hero h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  padding: 7px 14px;
  border: 1px solid rgba(232, 197, 106, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(196,30,30,0.18), rgba(20,10,8,0.5));
  box-shadow: 0 0 24px rgba(196, 30, 30, 0.12);
}
.hero-badge-ico { display: grid; place-items: center; }
.danger-badge {
  color: #ffc9c9;
  border-color: rgba(248,113,113,0.35);
  background: rgba(196, 30, 30, 0.18);
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.05rem, 5.2vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.grad {
  background: linear-gradient(120deg, #ff6b6b, #e8c56a 55%, #f5e6c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}
.lead code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--gold);
  background: rgba(0,0,0,0.25);
  padding: 1px 6px;
  border-radius: 6px;
}
.hero-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
}
.hero-pills li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.28);
}

.app-card {
  position: relative;
  background: linear-gradient(165deg, rgba(36, 22, 18, 0.92), rgba(16, 10, 8, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 230, 200, 0.06);
  overflow: hidden;
  margin-bottom: 40px;
  backdrop-filter: blur(14px);
}
.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 197, 106, 0.45), rgba(196, 30, 30, 0.5), transparent);
}
.card-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: linear-gradient(90deg, transparent, rgba(196,30,30,0.18), transparent);
  border-bottom: 1px solid var(--line);
}
.card-ribbon--warn { color: #ffb4b4; }
.card-ribbon-sep { opacity: 0.45; }
.panel { padding: 22px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}
.hint-inline { color: var(--muted); font-weight: 500; font-size: 0.82rem; }
.hint { color: var(--muted); font-size: 0.82rem; margin: 0; }
.ok-text { color: var(--ok); }

textarea, input[type="text"], input[type="password"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(6, 3, 2, 0.55);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.5;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5e6c8' stroke-opacity='.55' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
textarea:focus, input:focus, select:focus {
  border-color: rgba(196, 30, 30, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 30, 30, 0.15);
}
textarea::placeholder, input::placeholder { color: rgba(235, 220, 200, 0.35); }

.pass-wrap { display: flex; gap: 8px; }
.pass-wrap input { flex: 1; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ghost, .ghost.mini {
  background: transparent;
  border: 0;
  color: var(--gold);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.ghost:hover { background: rgba(232, 197, 106, 0.1); }
.ghost.mini {
  border: 1px solid var(--line);
  padding: 0 14px;
  white-space: nowrap;
  color: var(--cream);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}
.actions.compact { margin-top: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s, opacity .12s, filter .12s, box-shadow .12s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.primary {
  background: linear-gradient(145deg, #e03535 0%, #c41e1e 45%, #8b1010 100%);
  color: #fff7f0;
  border: 1px solid rgba(255, 200, 160, 0.18);
  box-shadow:
    0 10px 28px rgba(196, 30, 30, 0.38),
    inset 0 1px 0 rgba(255, 230, 200, 0.2);
}
.btn.secondary {
  background: rgba(245, 230, 200, 0.06);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn.ghost-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn.ghost-btn:hover { color: var(--text); border-color: var(--line); }
.btn-ico { display: grid; place-items: center; font-size: 1.05rem; }

.status {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

.result-box {
  margin-top: 8px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(232, 197, 106, 0.28);
  background: linear-gradient(160deg, rgba(196,30,30,0.1), rgba(0,0,0,0.25));
}
.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.result-head h3 { margin: 0; font-size: 1.1rem; }
.seal {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1a100c;
  background: linear-gradient(145deg, #f5e6c8, #e8c56a);
  box-shadow: 0 0 0 3px rgba(196,30,30,0.25);
}
.link-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.link-row input {
  font-family: var(--mono);
  font-size: 0.82rem;
}
.pass-reveal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pass-reveal code {
  font-family: var(--mono);
  color: var(--warn);
  background: rgba(0,0,0,0.35);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.warn-box {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(240, 193, 77, 0.3);
  background: rgba(240, 193, 77, 0.08);
  color: #fde68a;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.gone-box {
  text-align: center;
  padding: 28px 12px;
}
.gone-mask { margin-bottom: 8px; opacity: 0.9; }
.gone-box h3 { margin: 0 0 8px; }
.gone-box p { color: var(--muted); margin: 0 0 20px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.info {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,230,200,0.04);
  transition: border-color .15s, transform .15s;
}
.info:hover {
  border-color: rgba(196, 30, 30, 0.35);
  transform: translateY(-2px);
}
.info-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 12px;
  font-weight: 800;
  color: var(--gold);
  background: linear-gradient(145deg, rgba(196,30,30,0.25), rgba(0,0,0,0.25));
  border: 1px solid var(--line);
}
.info h3 { margin: 0 0 8px; font-size: 1.05rem; }
.info p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.info code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--gold);
}

.security {
  background: linear-gradient(165deg, rgba(28, 16, 14, 0.9), rgba(12, 8, 6, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.security-head { margin-bottom: 14px; }
.security h2 { margin: 0 0 6px; font-size: 1.3rem; }
.security .muted { margin: 0; color: var(--muted); font-size: 0.92rem; }
.security ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}
.security li { margin-bottom: 8px; }
.security strong { color: var(--cream); }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot a { color: var(--gold); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .muted { opacity: 0.8; }

@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
  .link-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-smoke { animation: none; }
  .btn, .info { transition: none; }
}
