/* Reaction Domains Portfolio Landing
   Clean, modern, responsive. No external dependencies. */

:root{
  --bg0:#070A12;
  --bg1:#0A1022;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --muted2:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.12);
  --shadow: 0 18px 48px rgba(0,0,0,.35);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background: radial-gradient(900px 500px at 15% 10%, rgba(120,80,255,.25), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(0,200,255,.16), transparent 65%),
              radial-gradient(900px 500px at 35% 90%, rgba(255,140,0,.10), transparent 60%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

.bg{
  position:fixed; inset:0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.06) 0 1px, transparent 1px),
                    radial-gradient(circle at 70% 40%, rgba(255,255,255,.04) 0 1px, transparent 1px);
  background-size: 44px 44px, 56px 56px;
  pointer-events:none;
  opacity:.5;
  mix-blend-mode: overlay;
}

.wrap{max-width:1120px; margin:0 auto; padding:18px 18px 42px;}
.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding-top:22px;
}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit}
.logo{
  width:44px; height:44px; display:grid; place-items:center;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(120,80,255,.25), rgba(0,200,255,.18));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight:800;
  letter-spacing:.4px;
}
.brandname{font-weight:800; letter-spacing:.2px}
.brandtag{font-size:13px; color:var(--muted); margin-top:2px}
.header-right{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.05);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
}
.pill.ghost{background:transparent}
.pill strong{font-weight:800}

.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  margin-top:10px;
}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr}
}

h1{font-size:44px; line-height:1.06; margin:0 0 10px}
@media (max-width: 520px){ h1{font-size:36px} }
.lead{color:var(--muted); font-size:16px; line-height:1.6; margin:0 0 18px}

.grad{
  background: linear-gradient(90deg, rgba(120,80,255,1), rgba(0,200,255,1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 18px}
.btn{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  background: rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18);}
.btn:active{transform: translateY(0px);}
.btn.primary{
  background: linear-gradient(135deg, rgba(120,80,255,.35), rgba(0,200,255,.25));
  border-color: rgba(255,255,255,.18);
}
.btn.small{padding:10px 12px; border-radius:12px; font-size:13px}

.mini{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 520px){ .mini{grid-template-columns:1fr} }
.mini-card{
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.mini-k{font-size:12px; color:var(--muted2); text-transform:uppercase; letter-spacing:.12em}
.mini-v{margin-top:6px; font-size:14px; color:var(--text)}

.card{
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
  gap:10px;
}
.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
}
.domain{font-weight:900; letter-spacing:.3px; font-size:16px; text-align:right}
.card-body{padding:12px 14px}
.stat{padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08)}
.stat:last-child{border-bottom:0}
.stat-n{font-weight:800; font-size:13px}
.stat-d{color:var(--muted); font-size:13px; margin-top:2px; line-height:1.5}
.card-actions{display:flex; gap:10px; padding:12px 14px 14px; border-top:1px solid var(--line); flex-wrap:wrap}

.note{
  margin-top:12px;
  display:flex; align-items:center; gap:10px;
  color:var(--muted);
  font-size:13px;
}
.dot{width:10px; height:10px; border-radius:99px; background: rgba(0,200,255,.55); box-shadow: 0 0 0 6px rgba(0,200,255,.12);}

.section{margin-top:30px}
.section-head h2{margin:0 0 6px; font-size:22px}
.section-head p{margin:0; color:var(--muted); line-height:1.6}

.controls{
  margin-top:14px;
  display:flex; gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-size:13px;
  cursor:pointer;
}
.tab.active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}
.search{flex:1; min-width:220px; display:flex; justify-content:flex-end}
.search input{
  width:min(380px, 100%);
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.20);
  color:var(--text);
  outline:none;
}
.search input::placeholder{color: rgba(255,255,255,.45)}

.group{
  margin-top:18px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.group-head{
  padding:14px 14px 10px;
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.group-title{font-weight:900; letter-spacing:.2px}
.group-count{color:var(--muted); font-size:13px}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
  padding:12px;
}
@media (max-width: 920px){ .grid{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (max-width: 520px){ .grid{grid-template-columns: 1fr;} }

.dom-card{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  color:var(--text);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.dom-card:hover{transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18);}
.dom-left{min-width:0}
.dom-name{font-weight:900; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.dom-sub{margin-top:3px; color:var(--muted); font-size:12px}
.dom-right{display:flex; align-items:center; gap:8px}
.chip{
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted);
}
.chip.hot{color:var(--text); background: rgba(0,200,255,.12); border-color: rgba(0,200,255,.25);}
.footer{
  margin-top:34px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.10);
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.foot-title{font-weight:900}
.foot-sub{color:var(--muted); margin-top:4px}
.contact{border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); border-radius: var(--radius); padding:12px 14px; min-width:min(380px, 100%)}
.c-row{display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,.08)}
.c-row:last-child{border-bottom:0}
.c-k{color:var(--muted); font-size:13px}
.c-row a{color:var(--text); text-decoration:none}
.c-row a:hover{text-decoration:underline}
.c-v{color:var(--text); font-size:13px}

.toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform: translateX(-50%);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size:13px;
  box-shadow: var(--shadow);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{opacity:1; transform: translateX(-50%) translateY(-4px);}
