:root{
  --bg: #0b0c10;
  --bg2:#0f1118;
  --panel:#141824;
  --panel2:#101420;
  --stroke: rgba(255,255,255,.10);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);

  --purple:#b06cff;
  --pink:#ff4fd8;

  --radius: 16px;
  --shadow: 0 14px 36px rgba(0,0,0,.55);

  --focus: rgba(176,108,255,.55);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 70% 20%, rgba(176,108,255,.14), transparent 60%),
    radial-gradient(900px 500px at 25% 75%, rgba(255,79,216,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{ color:inherit; text-decoration:none; }
.container{ width:min(980px, calc(100% - 40px)); margin-inline:auto; }

main{ flex:1; }

.header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,12,16,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand img{
  width:42px; height:42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.brand__name{ font-weight: 950; letter-spacing:.2px; }
.brand__sub{ color: var(--muted); font-weight: 700; font-size: 12px; margin-top: -2px; }

.nav{
  display:flex;
  gap:10px;
  align-items:center;
}

.nav a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.nav a:hover{
  transform: translateY(-1px);
  border-color: rgba(176,108,255,.35);
  background: rgba(176,108,255,.08);
}

.nav a.active{
  border-color: rgba(176,108,255,.55);
  background: linear-gradient(90deg, rgba(176,108,255,.18), rgba(255,79,216,.10));
}

.nav a.cta{
  border-color: rgba(176,108,255,.45);
  background: linear-gradient(90deg, rgba(176,108,255,.22), rgba(255,79,216,.14));
  font-weight: 900;
}

.burger{
  display:none;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  padding: 10px;
  cursor:pointer;
}
.burger span{
  display:block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,.85);
  margin: 5px 0;
  border-radius: 999px;
}

@media (max-width: 720px){
  .nav{
    position:absolute;
    right: 20px;
    top: 62px;
    width: min(320px, calc(100vw - 40px));
    display:none;
    flex-direction:column;
    gap:8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(11,12,16,.96);
    border: 1px solid rgba(255,255,255,.10);
  }
  .nav.open{ display:flex; }
  .burger{ display:block; }
}

h1{
  margin: 24px 0 10px;
  font-weight: 950;
  letter-spacing: .2px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 10px 0 16px;
}

input{
  flex: 1 1 360px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}

input::placeholder{ color: rgba(255,255,255,.38); }

input:focus{
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(176,108,255,.18);
}

.btn{
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color:var(--text);
  padding:11px 16px;
  border-radius:12px;
  cursor:pointer;
  font-weight: 900;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(176,108,255,.35);
  background: rgba(176,108,255,.08);
}

.rules{
  display:flex;
  flex-direction:column;
  gap: 12px;
  padding-bottom: 22px;
}

.rule{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.rule summary{
  cursor:pointer;
  font-weight: 950;
  letter-spacing:.2px;
  padding: 14px 44px 14px 14px;
  position:relative;
  list-style:none;
  user-select:none;

  background: rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.rule summary::-webkit-details-marker{ display:none; }

.rule summary::after{
  content:"›";
  position:absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 24px;
  opacity: .65;
  transition: transform .2s ease, opacity .2s ease;
}
.rule[open] summary::after{
  transform: translateY(-50%) rotate(90deg);
  opacity: .95;
}

.rule ul{
  margin:0;
  padding: 12px 18px 16px 34px;
  color: var(--muted);
  line-height: 1.7;
}

.rule li{ margin: 6px 0; }

.rule[open]{
  border-color: rgba(176,108,255,.28);
  box-shadow: 0 0 0 1px rgba(176,108,255,.10), var(--shadow);
}

.rule > *:not(summary){
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.rule[open] > *:not(summary){
  opacity: 1;
  transform: translateY(0);
}
.rule.closing > *:not(summary){
  opacity: 0;
  transform: translateY(-6px);
}

.footer{
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(11,12,16,.92);
}

.footerInner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}

.footerLinks{ display:flex; gap:14px; }

.footerLinks a{
  color: var(--muted);
  transition: color .15s ease;
}
.footerLinks a:hover{ color: rgba(255,255,255,.92); }

.muted{ color: var(--muted); }
.foot{ margin: 18px 0 40px; text-align:center; }

html{
  min-height: 100%;
  background:
    radial-gradient(1200px 700px at 70% 30%, rgba(176,108,255,.18), transparent 60%),
    radial-gradient(900px 500px at 30% 70%, rgba(255,79,216,.14), transparent 60%),
    #07080c;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body{
  min-height: 100vh;
  height: auto;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.75));
}
