@font-face {
  font-family: "DM Sans";
  src: url("/dotdb/fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/dotdb/fonts/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: "DM Sans", system-ui, sans-serif;
  background: #141022;
  color: #f9f5ff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 15% 40%, #2c2042, transparent 55%), radial-gradient(ellipse at 92% 8%, #31204a, transparent 46%), #141022; }
.portal-shell { width: min(1040px, calc(100% - 56px)); margin: 0 auto; }
.portal-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #7c6b9c54; }
.portal-brand { display: inline-flex; gap: 11px; align-items: center; color: inherit; text-decoration: none; font-size: 1.05rem; font-weight: 750; }
.brand-mark { width: 23px; height: 23px; background: linear-gradient(145deg, #d8c3ff, #8553ee); border-radius: 8px; box-shadow: 0 0 17px #a781f475; transform: rotate(-12deg); }
.portal-intro { margin: clamp(56px, 10vh, 118px) 0 27px; }
h1, h2 { font-family: "Space Grotesk", system-ui, sans-serif; margin: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.25rem); letter-spacing: -.075em; line-height: .99; }
p { margin: 0; }
.portal-intro p { color: #cfc0e5; margin-top: 14px; font-size: 1.08rem; }
.portal-form { display: flex; align-items: end; gap: 12px; margin: 0 0 37px; }
.portal-field { width: min(360px, 100%); }
.portal-field label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: 8px; color: #efdefe; }
.portal-password { display: flex; align-items: center; border: 1px solid #8671a9; border-radius: 10px; background: #211733; min-height: 50px; }
.portal-password:focus-within { outline: 2px solid #ba9cef; outline-offset: 2px; }
.portal-password input, button { font: inherit; }
.portal-password input { min-width: 0; width: 100%; color: #fff; outline: 0; border: 0; padding: 12px; background: transparent; }
.portal-password button, .quiet { background: transparent; color: #eddefe; font-size: .88rem; font-weight: 670; padding: 8px 10px; border: 1px solid #81669f; border-radius: 8px; cursor: pointer; }
.portal-password button { border-color: transparent; margin: 0 4px; }
.portal-password button:hover, .quiet:hover { background: #47325d; }
.portal-submit { min-height: 50px; padding: 0 22px; border: 1px solid #cdb3ff; border-radius: 10px; background: #d0b6ff; color: #251538; font-weight: 780; cursor: pointer; white-space: nowrap; }
.portal-submit:hover { background: #e1d0ff; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding-bottom: 38px; }
.tool-card { border: 1px solid #7c65a178; border-radius: 18px; background: linear-gradient(135deg, #302247, #231932); padding: 24px; min-height: 171px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 17px; text-decoration: none; color: inherit; transition: background .16s, transform .16s, border-color .16s; }
.tool-card:hover { border-color: #ba9add; background: linear-gradient(135deg, #3b2d55, #2f2045); transform: translateY(-2px); }
.tool-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: #4f3476; color: #ebdcff; }
.snop .tool-icon { background: #63384f; color: #ffcee6; }
.dns .tool-icon { background: #294d53; color: #adebe0; }
.tool-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.tool-card h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.tool-card p { color: #cdbdde; margin-top: 4px; font-size: .92rem; }
.all-tools { display: inline-block; margin-top: 20px; text-decoration: none; }
:focus-visible { outline: 2px solid #d5bcff; outline-offset: 4px; }
@media (max-width: 620px) {
  .portal-shell { width: calc(100% - 36px); }
  .portal-header { min-height: 63px; }
  .portal-intro { margin-top: 46px; }
  .portal-form { gap: 8px; margin-bottom: 25px; }
  .portal-submit { padding: 0 14px; }
  .tool-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { min-height: 89px; padding: 15px; flex-direction: row; align-items: center; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .tool-card { transition: none; } }
