/* robloxservice.com: the hub and its tools. Colours, fonts and buttons come from /assets/site.css (the 3iaw.com theme). */

body.rs{min-height:100vh; display:flex; flex-direction:column; background:var(--void);}
/* 3iaw.com pads and underlines every <section>; these pages lay out their own */
body.rs section{padding:0; border-bottom:0; background-color:transparent;}
.rs-top{position:sticky; top:0; z-index:40; display:flex; align-items:center; gap:1rem; padding:1rem 6vw;
  background:rgba(9,9,12,.72); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line-soft);}
.rs-logo{display:inline-flex; align-items:center; gap:.6rem; color:var(--white); text-decoration:none; font:700 1rem var(--font-display); letter-spacing:-.02em;}
.rs-logo i{display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--white); color:var(--void); font:800 .8rem var(--font-mono); font-style:normal;}
.rs-logo span{color:var(--grey-dim); font-weight:500;}
.rs-top .rs-nav{margin-left:auto; display:flex; gap:.3rem;}
.rs-top .rs-nav a{font:500 .88rem var(--font-body); color:var(--grey-mid); text-decoration:none; padding:.45rem .8rem; border-radius:999px; transition:color .15s ease, background .15s ease;}
.rs-top .rs-nav a:hover{color:var(--white); background:rgba(255,255,255,.05);}
.rs-top .rs-nav a[aria-current="page"]{color:var(--void); background:var(--white);}

.rs-main{flex:1; width:100%; max-width:1180px; margin:0 auto; padding:0 6vw;}
body.rs .rs-hero{padding:5.5rem 0 3rem; text-align:center;}
.rs-kicker{display:inline-flex; align-items:center; gap:.5rem; font:.72rem var(--font-mono); text-transform:uppercase; letter-spacing:.14em; color:var(--grey-mid);
  border:1px solid var(--line); border-radius:999px; padding:.4rem .9rem; background:rgba(19,19,22,.6);}
.rs-kicker b{width:6px; height:6px; border-radius:50%; background:var(--ok); box-shadow:0 0 10px var(--ok);}
.rs-hero h1{margin:1.3rem 0 0; font:800 clamp(2.6rem, 7vw, 5rem)/1 var(--font-display); letter-spacing:-.05em; text-transform:uppercase;
  background:linear-gradient(100deg, #fff 0%, #fff 35%, #8d8d96 50%, #fff 65%, #fff 100%); background-size:250% 100%;
  -webkit-background-clip:text; background-clip:text; color:transparent; animation:rsShine 6s ease-in-out infinite;}
.rs-hero p{margin:1.1rem auto 0; max-width:52ch; color:var(--grey-mid); font-size:1.05rem; line-height:1.6;}
@keyframes rsShine{0%,100%{background-position:100% 0;} 50%{background-position:0 0;}}

body.rs .rs-tools{display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:1.2rem; padding-bottom:4rem;}
.rs-tool{position:relative; display:flex; flex-direction:column; gap:.7rem; min-height:260px; padding:1.6rem; border-radius:22px; overflow:hidden; isolation:isolate;
  color:inherit; text-decoration:none; border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 160px), var(--panel);
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset, 0 30px 60px -30px rgba(0,0,0,.85);
  transition:transform .35s var(--ease), border-color .3s ease, box-shadow .35s ease;
  animation:rsRise .6s var(--ease) both; animation-delay:calc(var(--d, 0) * 90ms);}
.rs-tool::before{content:""; position:absolute; inset:0; z-index:-1; opacity:0; transition:opacity .3s ease;
  background:radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 60%);}
.rs-tool:hover{transform:translateY(-4px); border-color:rgba(255,255,255,.18);}
.rs-tool:hover::before{opacity:1;}
.rs-tool-ico{display:grid; place-items:center; width:54px; height:54px; border-radius:16px; color:var(--white); background:var(--surface); border:1px solid var(--line);}
.rs-tool-k{margin-top:.4rem; font:.68rem var(--font-mono); text-transform:uppercase; letter-spacing:.12em; color:var(--grey-dim);}
.rs-tool h2{margin:0; font:700 1.5rem/1.15 var(--font-display); letter-spacing:-.03em; color:var(--white);}
.rs-tool p{margin:0; color:var(--grey-mid); font-size:.93rem; line-height:1.55;}
.rs-go{margin-top:auto; display:inline-flex; align-items:center; gap:.5rem; font:600 .85rem var(--font-body); color:var(--white);}
.rs-go svg{transition:transform .25s var(--ease);}
.rs-tool:hover .rs-go svg{transform:translateX(4px);}
.rs-tag{position:absolute; top:1.3rem; right:1.3rem; font:600 .62rem var(--font-mono); text-transform:uppercase; letter-spacing:.1em; color:var(--ok);
  border:1px solid rgba(127,209,164,.35); background:rgba(127,209,164,.08); border-radius:999px; padding:.22rem .6rem;}
.rs-tag.ext{color:var(--grey-light); border-color:var(--line); background:var(--surface);}
@keyframes rsRise{from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;}}

.rs-foot{padding:1.6rem 6vw; border-top:1px solid var(--line-soft); display:flex; flex-wrap:wrap; gap:.6rem 1.4rem; justify-content:space-between;
  font:.78rem var(--font-body); color:var(--grey-dim);}
.rs-foot a{color:var(--grey-mid);}
.rs-foot a:hover{color:var(--white);}

@media (max-width:560px){
  .rs-top{padding:.8rem 16px;}
  .rs-top .rs-nav a{padding:.4rem .55rem; font-size:.82rem;}
  .rs-logo span{display:none;}
  .rs-main{padding:0 16px;}
  body.rs .rs-hero{padding:3.5rem 0 2rem;}
  body.rs .rs-tools{grid-template-columns:1fr;}
  .rs-tool{min-height:0;}
}
@media (prefers-reduced-motion: reduce){ .rs-hero h1, .rs-tool{animation:none;} }

/* phones: keep the top bar on one line; the logo already links home */
.rs-logo, .rs-top .rs-nav a{white-space:nowrap;}
@media (max-width:440px){
  .rs-top{gap:.5rem;}
  .rs-logo{font-size:.9rem;} .rs-logo i{width:26px; height:26px;}
  .rs-top .rs-nav a:first-child{display:none;}
  .rs-top .rs-nav a{padding:.38rem .5rem; font-size:.78rem;}
}
