:root {
  --bg: #0a0c10;
  --panel: rgba(18, 22, 30, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef1f5;
  --muted: #93a0b3;
  --accent: #6ef3b2;
  --accent-dim: #2a9d68;
  --danger: #ff7b8a;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 50% -20%, rgba(110, 243, 178, 0.08), transparent 50%),
    linear-gradient(180deg, #07090d 0%, #0d1118 50%, #080a0e 100%);
  overflow-x: hidden;
}

#rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0,0,0,.62) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15), transparent 20%, transparent 70%, rgba(0,0,0,.35));
}

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

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 4.5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em;
}
.brand img {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(110,243,178,.2), 0 8px 24px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover img { transform: translateY(-1px) rotate(-3deg); box-shadow: 0 0 20px rgba(110,243,178,.25); }

nav { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
nav a {
  color: var(--muted); text-decoration: none; padding: 0.45rem 0.85rem;
  border-radius: 999px; transition: color .2s, background .2s;
}
nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.burger {
  display: none; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); border-radius: 10px; padding: 0.4rem 0.65rem; cursor: pointer;
}

main { max-width: 1040px; margin: 0 auto; padding: 2rem 4.5vw 3.5rem; }
.view { display: none; }
.view.active { display: block; }

.reveal {
  animation: rise .7s cubic-bezier(.22,1,.36,1) both;
}
.reveal.delay-1 { animation-delay: .12s; }
.reveal.delay-2 { animation-delay: .24s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px) scale(.985); filter: blur(2px); }
  to { opacity: 1; transform: none; filter: none; }
}

.hero { max-width: 640px; padding-top: 1rem; }
.logo-big {
  width: 88px; height: 88px; border-radius: 22px; object-fit: cover; margin-bottom: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(110,243,178,.18);
  animation: softFloat 5s ease-in-out infinite, logoPulse 3.6s ease-in-out infinite;
}
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(110,243,178,0)); }
  50% { filter: drop-shadow(0 0 14px rgba(110,243,178,.4)); }
}
.eyebrow {
  display: inline-block; margin: 0 0 0.7rem; padding: 0.3rem 0.75rem;
  border: 1px solid rgba(110,243,178,.22); border-radius: 999px;
  color: var(--accent); font-size: 0.78rem; background: rgba(110,243,178,.06);
}
h1 { margin: 0 0 0.75rem; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; font-weight: 700; }
h2.sec, h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.lead { color: var(--muted); margin: 0 0 1.25rem; max-width: 34rem; font-size: 1.05rem; }
.muted { color: var(--muted); margin: 0 0 1rem; }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn {
  font: 600 0.95rem/1 var(--font);
  border-radius: 999px; padding: 0.7rem 1.15rem; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(180deg, #86f7c0, #4fd69a);
  color: #07150f; border: 0;
  box-shadow: 0 10px 30px rgba(79, 214, 154, 0.22);
  animation: btnGlow 3.2s ease-in-out infinite;
}
.btn.primary:hover { box-shadow: 0 14px 36px rgba(79, 214, 154, 0.38); }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 10px 28px rgba(79, 214, 154, 0.18); }
  50% { box-shadow: 0 14px 40px rgba(79, 214, 154, 0.36); }
}
.btn.ghost { background: rgba(255,255,255,.03); }
.btn.wide { width: 100%; }
.btn.tiny { padding: 0.35rem 0.6rem; font-size: 0.75rem; border-radius: 8px; }
.btn.danger { background: rgba(255,123,138,.12); border-color: rgba(255,123,138,.35); color: #ffb4bc; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.features {
  display: grid; gap: 0.85rem; margin: 2.4rem 0 2.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feat {
  position: relative; overflow: hidden;
  padding: 1.15rem 1.2rem; border-radius: 18px;
  background: linear-gradient(160deg, rgba(22,28,38,.88), rgba(12,15,22,.8));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(14px);
  animation: featIn .75s cubic-bezier(.22,1,.36,1) forwards;
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.feat:nth-child(1) { animation-delay: .04s; }
.feat:nth-child(2) { animation-delay: .1s; }
.feat:nth-child(3) { animation-delay: .16s; }
.feat:nth-child(4) { animation-delay: .22s; }
.feat:nth-child(5) { animation-delay: .28s; }
.feat:nth-child(6) { animation-delay: .34s; }
.feat::after {
  content: ""; position: absolute; right: -30%; bottom: -55%;
  width: 150px; height: 150px; pointer-events: none;
  background: radial-gradient(circle, rgba(110,243,178,.15), transparent 70%);
  transition: transform .35s ease;
}
.feat:hover {
  transform: translateY(-6px);
  border-color: rgba(110,243,178,.35);
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
}
.feat:hover::after { transform: translate(-12px, -18px) scale(1.2); }
.feat .tag {
  display: inline-block; margin-bottom: 0.55rem;
  font-size: 0.7rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(110,243,178,.28);
  border-radius: 999px; padding: 0.22rem 0.55rem;
  background: rgba(110,243,178,.07);
}
.feat h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feat p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
@keyframes featIn {
  to { opacity: 1; transform: translateY(0); }
}

.vids {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.yt {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s;
}
.yt:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cards {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem; backdrop-filter: blur(12px);
}
.card { transition: transform .2s ease, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(110,243,178,.28); }
.card h3 { margin: 0 0 0.4rem; }
.price { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }

.auth { max-width: 420px; margin: 1rem auto; }
.tabs { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.tab {
  flex: 1; border: 1px solid var(--line); background: rgba(255,255,255,.03);
  color: var(--muted); border-radius: 999px; padding: 0.6rem; cursor: pointer;
}
.tab.on { background: var(--accent); color: #07150f; border-color: transparent; font-weight: 700; }

.panel { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 0.9rem; }
.panel.wide { grid-column: 1 / -1; }
.panel h3 { margin: 0; }
label { display: flex; flex-direction: column; gap: 0.3rem; color: var(--muted); font-size: 0.86rem; }
input, select {
  background: rgba(0,0,0,.35); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.7rem 0.85rem; outline: none; font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus {
  border-color: rgba(110,243,178,.4);
  box-shadow: 0 0 0 3px rgba(110,243,178,.1);
}
.msg { min-height: 1.15em; margin: 0; color: var(--accent); font-size: 0.88rem; }
.msg.err { color: var(--danger); }

.grid3 {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.avatar-row { display: flex; gap: 0.9rem; }
.avatar-row img {
  width: 78px; height: 78px; border-radius: 16px; object-fit: cover;
  border: 1px solid var(--line);
}
.meta { margin: 0; }
.meta div { display: grid; grid-template-columns: 88px 1fr; gap: 0.35rem; margin-bottom: 0.3rem; font-size: 0.9rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; word-break: break-word; }
.filebtn {
  display: inline-flex; margin-top: 0.5rem; padding: 0.4rem 0.75rem; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03);
  color: var(--text); font-size: 0.8rem;
}

.stats {
  display: grid; gap: 0.7rem; margin: 0.8rem 0 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.stat {
  padding: 0.9rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.2rem; }
.stat span { color: var(--muted); font-size: 0.78rem; }

.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
th, td { padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: rgba(0,0,0,.2); }
.actions { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; }
.actions input { width: 64px; padding: 0.3rem 0.4rem; margin: 0; border-radius: 8px; }

.keys {
  margin: 0; padding: 0.75rem; border-radius: 12px; background: rgba(0,0,0,.35);
  border: 1px solid var(--line); color: var(--accent); font-family: ui-monospace, monospace;
  font-size: 0.78rem; white-space: pre-wrap; min-height: 2.5rem;
}

.foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 4.5vw 1.8rem; color: var(--muted); font-size: 0.88rem;
  border-top: 1px solid var(--line); position: relative; z-index: 1;
}

@media (max-width: 860px) {
  .features, .vids, .grid3 { grid-template-columns: 1fr; }
  .burger { display: inline-flex; }
  nav {
    display: none; position: absolute; right: 4.5vw; top: 58px;
    flex-direction: column; min-width: 170px; padding: 0.45rem;
    background: rgba(14,18,24,.95); border: 1px solid var(--line); border-radius: 14px;
  }
  nav.open { display: flex; }
}
