:root{
  --bg:#f5f7ff;
  --bg2:#eef2ff;
  --text:rgba(10,14,25,.92);
  --muted:rgba(10,14,25,.62);
  --surface:rgba(255,255,255,.78);
  --card:rgba(255,255,255,.92);
  --stroke:rgba(10,14,25,.10);
  --stroke2:rgba(10,14,25,.14);
  --shadow:rgba(10,14,25,.14);
  --glowA:rgba(90,90,255,.18);
  --glowB:rgba(255,80,160,.14);
  --glowC:rgba(0,220,180,.12);
  --gridA:rgba(10,14,25,.05);
  --gridB:rgba(10,14,25,.04);
  --radius:24px;
  --control-height:48px;
  --control-radius:16px;
}

html[data-theme="dark"]{
  --bg:#06070b;
  --bg2:#0b1020;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --surface:rgba(255,255,255,.03);
  --card:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.14);
  --shadow:rgba(0,0,0,.55);
  --glowA:rgba(90,90,255,.35);
  --glowB:rgba(255,80,160,.25);
  --glowC:rgba(0,220,180,.22);
  --gridA:rgba(255,255,255,.05);
  --gridB:rgba(255,255,255,.04);
}

*{
  box-sizing:border-box;
}

html,
body{
  min-height:100%;
}

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 15% 20%,var(--glowB),transparent 60%),
    radial-gradient(1000px 700px at 85% 30%,var(--glowA),transparent 55%),
    radial-gradient(900px 600px at 50% 90%,var(--glowC),transparent 55%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  overflow-x:hidden;
}

.gridbg{
  position:fixed;
  inset:0;
  background:
    linear-gradient(to right,var(--gridA) 1px,transparent 1px),
    linear-gradient(to bottom,var(--gridB) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(900px 520px at 50% 30%,black 50%,transparent 80%);
  opacity:.25;
  pointer-events:none;
}

.wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:42px 18px;
}

.shell{
  width:min(1160px,100%);
}

header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 340px;
  min-width:260px;
}

.title{
  font-size:clamp(22px,2.4vw,30px);
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
}

.dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(90,90,255,.9),rgba(255,80,160,.9));
  box-shadow:0 0 0 6px rgba(255,255,255,.20),0 0 30px rgba(90,90,255,.18);
}

html[data-theme="dark"] .dot{
  box-shadow:0 0 0 6px rgba(255,255,255,.06),0 0 30px rgba(90,90,255,.25);
}

.sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.35;
}

.right{
  display:flex;
  gap:10px;
  align-items:flex-end;
  justify-content:flex-end;
  flex:0 0 auto;
}

.toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border-radius:var(--control-radius);
  background:var(--card);
  border:1px solid var(--stroke2);
  user-select:none;
  cursor:pointer;
  white-space:nowrap;
  height:var(--control-height);
  color:var(--text);
  font:inherit;
}

.toggleLabel{
  font-size:13px;
  color:color-mix(in oklab,var(--text) 78%,transparent);
}

.switch{
  width:44px;
  height:24px;
  border-radius:999px;
  border:1px solid var(--stroke2);
  background:rgba(0,0,0,.08);
  position:relative;
  display:block;
  flex:0 0 auto;
}

html[data-theme="dark"] .switch{
  background:rgba(0,0,0,.22);
}

.knob{
  position:absolute;
  left:3px;
  top:50%;
  width:18px;
  height:18px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(90,90,255,.85),rgba(255,80,160,.80));
  transform:translateY(-50%) translateX(0);
  box-shadow:0 10px 24px rgba(10,14,25,.14);
}

html[data-theme="dark"] .knob{
  transform:translateY(-50%) translateX(18px);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.panel{
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid var(--stroke);
  overflow:hidden;
  box-shadow:0 30px 90px var(--shadow);
  backdrop-filter:blur(14px);
  padding:14px;
}

.card{
  border-radius:22px;
  border:1px solid var(--stroke);
  background:color-mix(in oklab,var(--card) 68%,transparent);
  overflow:hidden;
  min-height:100%;
}

.cardInner,
.cardLink{
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20px;
  height:100%;
  min-height:260px;
  color:inherit;
  text-decoration:none;
}

.cardLink{
  cursor:pointer;
}

.cardLink:hover .go{
  transform:translateY(-1px);
}

.cardTop{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.cardText{
  min-width:0;
}

.websiteCard{
  margin-bottom:18px;
}

.websiteLink{
  min-height:180px;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
}

.websiteTop{
  flex-direction:row;
  align-items:center;
  gap:22px;
}

.websiteLogo{
  width:160px;
  height:110px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}

.websiteLogo img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.brandSectionTitle{
  padding:6px 6px 14px 6px;
}

.brandSectionTitle h2{
  margin:0;
  font-size:18px;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:color-mix(in oklab,var(--text) 85%,transparent);
}

.brandSectionTitle p{
  margin:4px 0 0 0;
  font-size:13px;
  color:var(--muted);
}

.brandGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.brandLogo{
  width:92px;
  height:92px;
  border-radius:24px;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.65);
  display:grid;
  place-items:center;
  overflow:hidden;
  flex:0 0 auto;
}

html[data-theme="dark"] .brandLogo{
  background:rgba(255,255,255,.08);
}

.brandLogo img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:14px;
  filter:saturate(1.05);
}

html[data-theme="dark"] .brandLogo img{
  filter:brightness(1.08) contrast(1.02);
}

.cardTitle{
  margin:0 0 6px 0;
  font-size:21px;
  letter-spacing:.2px;
}

.websiteCard .cardTitle{
  font-size:26px;
}

.cardHost{
  margin:0 0 8px 0;
  color:color-mix(in oklab,var(--text) 82%,transparent);
  font-size:14px;
}

.cardDesc{
  margin:0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.45;
}

.cardBottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:auto;
}

.pill{
  padding:8px 11px;
  border-radius:999px;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.65);
  font-size:12px;
  color:color-mix(in oklab,var(--text) 72%,transparent);
  user-select:none;
  white-space:nowrap;
}

html[data-theme="dark"] .pill{
  background:rgba(255,255,255,.08);
}

.go{
  width:40px;
  height:40px;
  border-radius:16px;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.65);
  display:grid;
  place-items:center;
  user-select:none;
  font-size:14px;
  flex:0 0 auto;
}

html[data-theme="dark"] .go{
  background:rgba(255,255,255,.08);
}

footer{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  color:color-mix(in oklab,var(--text) 55%,transparent);
  font-size:12.5px;
  padding:14px 4px 0;
}

.legalLinks{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

footer a,
.legalLinks a{
  color:color-mix(in oklab,var(--text) 72%,transparent);
  text-decoration:none;
}

footer a:hover,
.legalLinks a:hover{
  text-decoration:underline;
}

@media (max-width:900px){
  .wrap{
    padding:28px 14px;
    align-items:flex-start;
  }

  header{
    gap:12px;
    align-items:stretch;
  }

  .brand{
    min-width:0;
  }

  .sub{
    font-size:13.5px;
  }

  .right{
    width:100%;
    justify-content:flex-start;
  }

  .toggle{
    width:100%;
    justify-content:space-between;
  }

  .websiteLink{
    flex-direction:column;
    align-items:flex-start;
  }

  .websiteTop{
    flex-direction:column;
    align-items:flex-start;
  }

  .websiteLogo{
    width:150px;
    height:80px;
  }

  .websiteCard .cardTitle{
    font-size:22px;
  }

  .brandGrid{
    grid-template-columns:1fr;
  }

  .cardInner,
  .cardLink{
    min-height:240px;
  }

  .brandLogo{
    width:76px;
    height:76px;
    border-radius:20px;
  }

  .cardTitle{
    font-size:18px;
  }

  footer{
    flex-direction:column;
  }
}