/* The look follows xnoise.au: black, #ff9800 accent, Outfit, and the slowly
   turning wireframe dodecahedrons. Outfit is served from this site, so the
   pages' Content-Security-Policy can stay at 'self'. */

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 100 600;
  font-display: swap;
  src: url(/outfit.woff2) format("woff2");
}

:root {
  --accent: #ff9800;
  --pass: #4caf50;
  --fail: #f44336;
  --ease: cubic-bezier(0, 0, .3642, 1);
  --muted: hsla(0, 0%, 100%, .9);
  --soft: hsla(0, 0%, 100%, .4);
  --line: hsla(0, 0%, 100%, .1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
  color: var(--soft);
  background: #000;
}

h1, h5 { margin: 0; font-weight: 500; line-height: 120%; }
h1 { font-size: 74px; }
h5 { font-size: 22px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
strong, em { color: var(--muted); }
strong { font-weight: 500; }

.thin { font-weight: 100; }
.muted { color: var(--muted); }
.light-soft { color: var(--soft); }
.sprite { position: absolute; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 30px; }
.dark { position: relative; background: #000; overflow: hidden; }
main.dark { min-height: 100vh; padding-bottom: 120px; }

/* Header bar */
.frame {
  position: fixed; inset: 0 0 auto; z-index: 10;
  height: 90px; padding: 0 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.logo { font-size: 36px; font-weight: 500; line-height: 100%; color: #fff; }

/* Links and buttons */
.link {
  display: inline-flex; align-items: center;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted);
}
.link svg {
  margin-left: 15px; width: 40px; height: 40px; padding: 10px;
  border-radius: 50%; background: var(--line); fill: #fff;
  transition: .4s var(--ease);
}
.link:hover svg { transform: scale(1.15); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 10px 0 40px; border: 0; border-radius: 70px;
  background: var(--accent); color: #000; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  transition: .4s var(--ease);
}
.button span { white-space: nowrap; }
.button svg {
  margin-left: 25px; width: 40px; height: 40px; padding: 10px;
  border-radius: 50%; background: #000; fill: var(--accent);
  transition: .4s var(--ease);
}
.button:hover { transform: scale(1.015); filter: brightness(110%); }
.button:hover svg { transform: scale(1.15); }
.button svg.down { transform: rotate(90deg); }
.button:hover svg.down { transform: scale(1.15) rotate(90deg); }

/* Small uppercase text links: "Open in a new tab", "Delete" and so on. */
.text-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
  transition: .4s var(--ease);
}
.text-button:hover { filter: brightness(120%); text-decoration: underline; }

/* Hero */
.gradient {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 0%, rgba(255, 152, 0, .1), transparent 55%);
}
.hero { position: relative; z-index: 1; padding-top: 200px; padding-bottom: 90px; }
.hero h1 { margin-bottom: 40px; }
.hero h1:last-child { margin-bottom: 0; }
.lead { max-width: 640px; }
.stage { position: relative; z-index: 1; }

/* Wireframe dodecahedrons. shapes.js builds the 12 pentagons inside each one. */
.shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; width: 300px; height: 300px; opacity: .2; }
.pos-1 { top: 100px; right: 100px; }
.pos-2 { top: 40px; right: 34%; }
.dodecahedron {
  position: relative; left: 100px; top: 40px; width: 100px; height: 223px;
  transform-style: preserve-3d;
  animation: rotate 100s linear infinite;
}
.pos-2 .dodecahedron { animation-delay: -.5s; }
.pentagon { position: absolute; width: 100px; }
.pentagon div { position: absolute; width: 100px; height: 69px; transform-origin: bottom; border-top: 1px solid #fff; }
.pos-1 .pentagon div { border-top-width: .1px; }
.pentagon div:nth-child(1) { transform: rotate(72deg); }
.pentagon div:nth-child(2) { transform: rotate(.4turn); }
.pentagon div:nth-child(3) { transform: rotate(.6turn); }
.pentagon div:nth-child(4) { transform: rotate(.8turn); }
.pentagon div:nth-child(5) { transform: rotate(1turn); }
.pentagon:nth-child(1)  { transform: rotateY(72deg) translateZ(69px) rotateX(26.5deg); }
.pentagon:nth-child(2)  { transform: rotateY(.4turn) translateZ(69px) rotateX(26.5deg); }
.pentagon:nth-child(3)  { transform: rotateY(.6turn) translateZ(69px) rotateX(26.5deg); }
.pentagon:nth-child(4)  { transform: rotateY(.8turn) translateZ(69px) rotateX(26.5deg); }
.pentagon:nth-child(5)  { transform: rotateY(1turn) translateZ(69px) rotateX(26.5deg); }
.pentagon:nth-child(6)  { bottom: 0; transform: rotateY(72deg) translateZ(-69px) rotateX(206.5deg); }
.pentagon:nth-child(7)  { bottom: 0; transform: rotateY(.4turn) translateZ(-69px) rotateX(206.5deg); }
.pentagon:nth-child(8)  { bottom: 0; transform: rotateY(.6turn) translateZ(-69px) rotateX(206.5deg); }
.pentagon:nth-child(9)  { bottom: 0; transform: rotateY(.8turn) translateZ(-69px) rotateX(206.5deg); }
.pentagon:nth-child(10) { bottom: 0; transform: rotateY(1turn) translateZ(-69px) rotateX(206.5deg); }
.pentagon:nth-child(11) { transform: translateZ(69px) rotateX(-90deg); }
.pentagon:nth-child(12) { bottom: 0; transform: translateZ(-69px) rotateX(90deg); }

@keyframes rotate {
  from { transform: rotateX(0deg) rotateY(1turn) rotate(1turn); }
  to   { transform: rotateX(1turn) rotateY(0deg) rotate(-1turn); }
}

/* The three steps, as cards in the xnoise.au services grid */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.step {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 60px 30px; background: rgba(0, 0, 0, .8);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.step:before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 0; height: 4px; background: var(--accent);
  transition: .6s var(--ease);
}
.step:first-child:before, .step:hover:before { width: 100%; }
.step h5 { margin-bottom: 30px; }
.step p { margin-bottom: 30px; }
.step p:last-child { margin-bottom: 0; }
.label {
  margin-bottom: 30px;
  font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
}

/* Waiting, sign-in and other boxes */
.panel { padding: 40px 30px; border: 1px solid var(--line); background: rgba(0, 0, 0, .8); }
.status { display: flex; align-items: center; gap: 15px; font-size: 22px; font-weight: 400; }
.hint { margin-top: 20px; }
.spinner {
  flex: none; width: 22px; height: 22px;
  border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The report */
.result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 15px 30px; margin-bottom: 30px; }
.result-links { display: flex; gap: 30px; margin-left: auto; }
.overall, .badge {
  display: inline-block; border-radius: 70px; color: #000;
  font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.overall { padding: 10px 24px; }
.badge { padding: 4px 14px; font-size: 11px; letter-spacing: 1px; }
.overall.pass, .badge.pass { background: var(--pass); }
.overall.warning, .badge.warning { background: var(--accent); }
.overall.fail, .badge.fail { background: var(--fail); color: #fff; }
#report { display: block; width: 100%; height: 75vh; border: 0; background: #fff; }

.error {
  margin-top: 30px; padding: 20px 30px;
  border: 1px solid rgba(244, 67, 54, .5); border-left: 4px solid var(--fail);
  color: var(--muted);
}

/* Admin */
.inline-form { display: flex; flex-wrap: wrap; gap: 15px; }
.inline-form input {
  flex: 1; min-width: 240px; max-width: 420px; height: 60px; padding: 0 30px;
  border: 1px solid var(--line); border-radius: 70px; background: hsla(0, 0%, 100%, .05);
  font: inherit; color: #fff; outline: none;
  transition: .4s var(--ease);
}
.inline-form input:focus { border-color: var(--accent); }
.inline-form input::placeholder { color: var(--soft); }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 30px; }
.table-wrap { overflow-x: auto; }
.reports { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.reports th, .reports td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.reports th { font-weight: 500; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.reports td { color: var(--muted); }
.reports tbody tr { transition: background .4s var(--ease); }
.reports tbody tr:hover { background: hsla(0, 0%, 100%, .03); }
.actions { display: flex; gap: 20px; justify-content: flex-end; }

/* Footer */
footer.dark { border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-top: 60px; padding-bottom: 60px; }
footer .logo { font-size: 28px; }

@media (prefers-reduced-motion: reduce) {
  .dodecahedron, .spinner { animation: none; }
}

@media (max-width: 992px) {
  h1 { font-size: 58px; }
  .frame { padding: 0 30px; }
  .steps { grid-template-columns: 1fr; }
  .pos-2 { display: none; }
}

@media (max-width: 768px) {
  h1 { font-size: 42px; }
  .logo { font-size: 22px; }
  .frame .link span { display: none; }
  .shapes { display: none; }
  .hero { padding-top: 150px; padding-bottom: 60px; }
  .result-links { margin-left: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
