:root{
  --bg0:#0b0620;
  --bg1:#140a33;
  --text:#f7f3ff;

  --neonPink:#ff2fd6;
  --neonCyan:#2cf6ff;
  --neonPurple:#8a2be2;
  --neonOrange:#ff7a18;

  --shadowCyan: 0 0 18px rgba(44,246,255,.35);

  --radiusLg: 24px;
  --border: 1px solid rgba(255,255,255,.10);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(255,47,214,.18), transparent 60%),
    radial-gradient(900px 650px at 85% 15%, rgba(44,246,255,.14), transparent 55%),
    radial-gradient(1000px 700px at 50% 95%, rgba(138,43,226,.18), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #070316);
  overflow-x:hidden;
}

/* Constrains page content (tools, text) with side margins */
.wrap{
  width: min(1100px, calc(100% - 48px)); /* 24px margin each side */
  margin-left: auto;
  margin-right: auto;
}

.gridfloor{
  position:fixed;
  inset:auto 0 0 0;
  height:42vh;
  pointer-events:none;
  opacity:.35;
  background:
    linear-gradient(to top, rgba(255,47,214,.20), transparent 55%),
    repeating-linear-gradient(
      to right,
      rgba(44,246,255,.18),
      rgba(44,246,255,.18) 1px,
      transparent 1px,
      transparent 56px
    ),
    repeating-linear-gradient(
      to top,
      rgba(44,246,255,.12),
      rgba(44,246,255,.12) 1px,
      transparent 1px,
      transparent 36px
    );
  transform: perspective(600px) rotateX(55deg);
  transform-origin: bottom;
  filter: blur(.2px);
}

/* Keep the banner full-bleed even though content uses .wrap */
header .wrap{
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.bannerOnly{
  width: 100%;
  height: 170px;           /* tweak smaller if needed */
  overflow: hidden;
  border-radius: 18px;
}

.bannerOnly img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;          /* removes baseline gap under image */
}

/* Legacy header styles (safe to keep, even if unused) */
.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 12px 0;
}

.logo{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.logo h1{
  margin:0;
  font-size: 28px;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height:1.05;
  background: linear-gradient(90deg, var(--neonCyan), var(--neonPink), var(--neonOrange));
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255,47,214,.20);
}

.logo .tag{
  font-size: 13px;
  color: rgba(255,255,255,.75);
  letter-spacing:.06em;
}

.pill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color: rgba(255,255,255,.85);
  font-size: 13px;
  box-shadow: var(--shadowCyan);
  white-space:nowrap;
}

main{ padding-top: 18px; }

.headline{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin: 14px 0 18px;
}

.headline h2{
  margin:0;
  font-weight: 750;
  letter-spacing:.02em;
  font-size: 18px;
  color: rgba(255,255,255,.92);
}

.headline p{
  margin:0;
  max-width: 70ch;
  color: rgba(255,255,255,.70);
  line-height:1.5;
}

.tools{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
  /* Optional extra constraint in case tools isn't inside .wrap for some reason */
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.tool{
  grid-column: span 6;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 12px;
  border-radius: var(--radiusLg);
  border: var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow:
    0 12px 40px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,47,214,.06) inset;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor:pointer;
  text-decoration:none;
  color:inherit;
  position:relative;
  overflow:hidden;
  outline:none;
}

.tool::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 220px at 25% 0%, rgba(44,246,255,.22), transparent 60%),
    radial-gradient(500px 220px at 80% 20%, rgba(255,47,214,.20), transparent 55%);
  opacity:.0;
  transition: opacity .18s ease;
  pointer-events:none;
}

.tool:hover,
.tool:focus-visible{
  transform: translateY(-3px);
  border-color: rgba(44,246,255,.30);
  box-shadow:
    0 18px 55px rgba(0,0,0,.45),
    0 0 0 1px rgba(44,246,255,.18) inset,
    0 0 18px rgba(44,246,255,.22),
    0 0 18px rgba(255,47,214,.16);
}

.tool:hover::before,
.tool:focus-visible::before{ opacity:1; }

.thumb{
  width:100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  position:relative;
  box-shadow:
    0 10px 28px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.04) inset;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.08) contrast(1.05);
  opacity:.95;
  transform: scale(1.02);
  transition: transform .22s ease, opacity .22s ease;
}

.tool:hover .thumb img{ transform: scale(1.06); opacity:1; }

.thumb .shine{
  position:absolute;
  inset:-40% -20%;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.16), transparent 65%);
  transform: translateX(-40%) rotate(8deg);
  opacity: .0;
  transition: transform .35s ease, opacity .18s ease;
  pointer-events:none;
}

.tool:hover .thumb .shine{
  opacity:.75;
  transform: translateX(40%) rotate(8deg);
}

.nameRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.tool h3{
  margin:0;
  font-size: 16px;
  letter-spacing:.01em;
}

.chip{
  font-size: 12px;
  color: rgba(255,255,255,.82);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10, 5, 26, .35);
  box-shadow: 0 0 0 1px rgba(255,47,214,.06) inset;
  white-space:nowrap;
}

.descDock{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  z-index: 20;
  pointer-events:none;
}

.descPanel{
  pointer-events:none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .16s ease, transform .16s ease;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(20,10,51,.78), rgba(8,3,22,.72));
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 0 1px rgba(44,246,255,.10) inset,
    0 0 20px rgba(44,246,255,.18),
    0 0 18px rgba(255,47,214,.12);
  padding: 12px 14px;
}

.descPanel.show{
  opacity: 1;
  transform: translateY(0);
}

.descInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.descText{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width: 0;
}

.descTitle{
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.descBody{
  font-size: 14px;
  color: rgba(255,255,255,.76);
  line-height: 1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.hint{
  font-size: 12px;
  color: rgba(255,255,255,.70);
  border-left: 1px solid rgba(255,255,255,.16);
  padding-left: 12px;
  white-space:nowrap;
  flex: 0 0 auto;
}

footer{
  margin-top: 28px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}

@media (max-width: 860px){
  .tool{ grid-column: span 12; }
  .pill{ display:none; }
  .descBody{ white-space:normal; overflow:visible; text-overflow:unset; }
  .descPanel{ border-radius: 22px; }
  .descInner{ align-items:flex-start; }
  .hint{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .tool, .tool * , .descPanel{ transition:none !important; }
  .gridfloor{ display:none; }
}
