:root{
  --bg0:#050610;
  --bg1:#070A14;
  --card:#0b1020cc;
  --stroke:#ffffff14;
  --stroke2:#ffffff22;
  --text:#eaeef7;
  --muted:#a9b1c6;
  --orange:#ff8a1c;
  --orange2:#ffb36b;
  --shadow: 0 40px 110px rgba(0,0,0,.7);
  --shadow2: 0 18px 46px rgba(0,0,0,.55);
  --ease: cubic-bezier(.2,.8,.2,1);
  --radius: 26px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(126, 87, 255, .18), transparent 55%),
    radial-gradient(900px 600px at 80% 10%, rgba(255, 138, 28, .10), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(31, 214, 255, .08), transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg0) 65%);
  overflow-x:hidden;
}

::selection{
  background: rgba(255,138,28,.22);
  color: var(--text);
}

/* Subtle background drift (very slow, not distracting) */
.bg-drift::before{
  content:"";
  position:fixed; inset:-30%;
  background:
    radial-gradient(600px 500px at 30% 30%, rgba(255,138,28,.08), transparent 60%),
    radial-gradient(700px 600px at 70% 40%, rgba(125,87,255,.10), transparent 60%),
    radial-gradient(700px 700px at 50% 80%, rgba(31,214,255,.06), transparent 60%);
  filter: blur(18px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:-1;
}
@keyframes drift{
  from{ transform: translate3d(-1.2%, -1.0%, 0) scale(1.02); opacity:.85; }
  to{   transform: translate3d( 1.2%,  1.0%, 0) scale(1.06); opacity:1; }
}

.shell{
  min-height:100%;
  display:grid;
  place-items:center;
  padding:36px 16px;
}

.card{
  width:min(540px, 92vw);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding:26px 22px;
  position:relative;
  overflow:hidden;
  transform: translateZ(0);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 52px 130px rgba(0,0,0,.72);
  border-color: rgba(255,255,255,.20);
}
.card:focus-within{
  border-color: rgba(255,138,28,.26);
  box-shadow: 0 44px 120px rgba(0,0,0,.72), 0 0 0 1px rgba(255,138,28,.18);
}

.card--wide{
  width: min(1040px, 94vw);
  padding: 22px 22px 20px;
}

.card::after{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(520px 220px at 50% 0%, rgba(255,138,28,.14), transparent 55%),
    radial-gradient(520px 260px at 10% 100%, rgba(125,87,255,.10), transparent 55%);
  pointer-events:none;
}

.row{position:relative; z-index:2}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
  margin: 6px 0 18px;
}
.brandRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 2px 0 10px;
}
.brandRow .brandLeft{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}
.brandRow .brandText{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.brandRow h1{
  margin:0;
  font-size: 16px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.brandRow .sub{
  text-align:left;
}

.logoWrap{
  position:relative;
  width:54px;height:54px;
  display:grid;
  place-items:center;
}

.logo{
  width:44px;height:44px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,138,28,.95), rgba(255,138,28,.65));
  display:grid;
  place-items:center;
  box-shadow: 0 18px 44px rgba(255,138,28,.18);
  border:1px solid rgba(255,255,255,.16);
  position:relative;
  z-index:3;
  font-weight:900;
  letter-spacing:.5px;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.logoWrap:hover .logo{
  transform: translateY(-1px);
  box-shadow: 0 22px 54px rgba(255,138,28,.22);
}

/* Animated rotating ring behind logo */
.ring{
  position:absolute;
  inset:-16px;
  border-radius: 999px;
  border: 1px solid rgba(255,138,28,.22);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 0 0 1px rgba(255,255,255,.04);
  mask: radial-gradient(circle, transparent 54%, #000 56%);
  opacity:.70;
  animation: spin 34s linear infinite;
  z-index:1;
  transition: opacity 220ms var(--ease);
}
.ring::before{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:999px;
  background: conic-gradient(
    from 180deg,
    rgba(255,138,28,.00),
    rgba(255,138,28,.30),
    rgba(255,138,28,.02),
    rgba(31,214,255,.10),
    rgba(255,138,28,.00)
  );
  filter: blur(2px);
  opacity:.70;
  animation: spin 34s linear infinite;
}
.logoWrap:hover .ring{ opacity: .92; }
@keyframes spin{
  to{ transform: rotate(360deg); }
}

h1{
  font-size: 28px;
  margin: 2px 0 0;
  letter-spacing:.2px;
}
h1 .accent{ color: var(--orange); }
.sub{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,138,28,.10);
  border:1px solid rgba(255,138,28,.22);
  color: rgba(255,220,200,.92);
  font-size: 12px;
  letter-spacing:.18px;
  margin: 18px auto 14px;
}
.badge .dot{
  width:8px;height:8px;border-radius:999px;
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255,138,28,.65);
}

.grid{
  display:grid;
  gap:12px;
}
.grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:start;
}
.panel{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 14px 14px;
  position:relative;
  z-index:2;
}
.panelTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 2px 0 10px;
}
.panelTitle h3{
  margin:0;
  font-size: 13px;
  letter-spacing: .12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
  color: rgba(220,230,255,.88);
  font-size: 11.5px;
  white-space: nowrap;
}
.pill .dot{
  width:7px;height:7px;border-radius:999px;
  background: rgba(255,138,28,.92);
  box-shadow: 0 0 14px rgba(255,138,28,.55);
}
.divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 12px 0;
}
.mutedList{
  margin:0;
  padding-left: 18px;
  color: rgba(170,180,205,.80);
  font-size: 12px;
  line-height: 1.6;
}
.mutedList li{ margin: 6px 0; }

.kicker{
  font-size: 18px;
  font-weight: 800;
  margin: 14px 0 8px;
  text-align:center;
}

.p{
  color: var(--muted);
  line-height:1.55;
  font-size: 13.5px;
  text-align:center;
  margin: 0 0 14px;
}

.tiles{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin: 12px 0 18px;
}
.tiles--4{
  grid-template-columns: repeat(4, 1fr);
}
.tiles--3{
  grid-template-columns: repeat(3, 1fr);
}
.tilesTight{
  margin: 10px 0 14px;
}
.srOnly{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.inputRow{
  display:flex;
  align-items:center;
  gap:10px;
}
.inputRow input{ margin:0; }
.hint{
  color: rgba(170,180,205,.78);
  font-size: 11.5px;
  line-height: 1.45;
  margin: 8px 0 0;
}
.tile, .tileLink{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding:12px 12px;
  position:relative;
  z-index:2;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.tileLink{
  display:block;
  color: inherit;
  text-decoration:none;
}
.tile:hover, .tileLink:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow2);
}
.tile:focus-within, .tileLink:focus{
  outline:none;
  box-shadow: var(--shadow2), 0 0 0 3px rgba(255,138,28,.12);
  border-color: rgba(255,138,28,.22);
}
.tile h3{
  margin:0 0 4px;
  font-size: 13px;
}
.tile p{
  margin:0;
  color: var(--muted);
  font-size: 12px;
  line-height:1.35;
}
.tileMeta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 10px;
}
.tag{
  display:inline-flex;
  align-items:center;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(210,220,245,.85);
  font-size: 11px;
  letter-spacing:.12px;
}
.tagAccent{
  border-color: rgba(255,138,28,.22);
  background: rgba(255,138,28,.08);
  color: rgba(255,220,200,.92);
}

.form{
  margin-top: 6px;
}
label{
  display:block;
  font-size:12px;
  color: var(--muted);
  margin: 12px 0 6px;
}
input{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(10,14,26,.62);
  border:1px solid rgba(255,255,255,.12);
  color: var(--text);
  outline: none;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
input:focus{
  border-color: rgba(255,138,28,.38);
  box-shadow: 0 0 0 3px rgba(255,138,28,.14);
}
.rowFlex{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.link{
  color: var(--orange2);
  text-decoration:none;
  font-size: 12px;
}
.link:hover{ text-decoration: underline; }

.btn{
  width:100%;
  border:0;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight:800;
  letter-spacing:.2px;
  margin-top: 16px;
  cursor:pointer;
  background: linear-gradient(180deg, rgba(255,138,28,.95), rgba(255,138,28,.72));
  color:#0b0f16;
  box-shadow: 0 18px 44px rgba(255,138,28,.18);
  transition: transform 220ms var(--ease), filter 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btn:hover{
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 24px 60px rgba(255,138,28,.20);
}
.btn:active{
  transform: translateY(0px);
}
.btnGhost{
  width:100%;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
  cursor:pointer;
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(220,230,255,.92);
  font-weight: 700;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease), box-shadow 220ms var(--ease);
}
.btnGhost:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.045);
  box-shadow: var(--shadow2);
}
.footer{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(170,180,205,.75);
  font-size: 11.5px;
  text-align:center;
}
.small{
  color: rgba(170,180,205,.75);
  font-size: 11.5px;
  text-align:center;
  margin-top: 10px;
}
.center{ text-align:center; }

@media (max-width: 520px){
  .tiles{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  h1{ font-size: 24px; }
}
@media (max-width: 980px){
  .tiles--4{ grid-template-columns: repeat(2, 1fr); }
  .tiles--3{ grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce){
  .bg-drift::before{ animation: none !important; }
  .ring, .ring::before{ animation: none !important; }
  .card, .tile, .tileLink, .btn, .btnGhost, .logo{ transition: none !important; }
}
