:root {
  color-scheme: light dark;
  --color-primary: light-dark(#44b9b9, #d67a24);
  --color-accent: light-dark(#d67a24, #44b9b9);
  --color-body: light-dark(#3e3e3e, #fff);
  --color-bg: light-dark(#fff, #313131);
  --color-bg-alt: light-dark(#f5f5f5, #2a2a2a);
  --color-success: light-dark(#3e8b24, #66bb6a);
  --color-error: light-dark(#d3223a, #ef5350);
  --color-muted: light-dark(#888, #aaa);
  --color-border: light-dark(#ddd, #444);
  
  /* Chart colors */
  --color-chart-90d: light-dark(#10b981, #34d399);
  --color-chart-180d: light-dark(#3b82f6, #60a5fa);
  --color-chart-270d: light-dark(#4f22b8, #a78bfa);
  --color-chart-fill: light-dark(rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.12));

  --content-width: 128rem;
  --border-radius: 50em;
  --font-stack: 'Lato', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-weight-regular: 200;
  --font-weight-bold: 600;
}

*, *:after, *:before {
  box-sizing: inherit;
}
*::selection {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  margin: 0;
  font-size: 2em;
  line-height: 1.6;
  font-family: var(--font-stack);
  overflow-y: scroll;
  background-color: var(--color-bg);
  color: var(--color-body);
}
main {
  font-size: 2.4rem;
}

hr {
  border: 0;
  border-top: .2rem solid currentColor;
  margin-top: 4rem;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1;
  margin: 6rem 0 2rem;
  margin: 0;
}

h1, .h1-sized {
  font-size: 5rem;
  margin: 0;
  font-weight: normal;
}
h2, .h2-sized {
  font-size: 3rem;
}
h3, .h3-sized {
  font-size: 2.5rem;
}
.small {
  font-size: 2rem;
}

a {
  color: currentColor;
  text-decoration: none;
  font-weight: var(--font-weight-bold);
}

#wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.6rem;
  width: 100%;
}


.bg-glow header {
  color: light-dark(var(--color-bg), var(--color-body));
}
.logo {
  display: block;
  width: 23.5rem;
  height: 6rem;
}
.bg-glow .logo {
  color: light-dark(var(--color-bg), var(--color-body));
}

.center {
  text-align: center;
}
section {
  margin-top: 4rem !important;
  margin-bottom: 8rem !important;
}
footer {
  margin-top: auto;
  font-size: 1.4rem;
  padding: 2rem 0;
}


.flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-start;
}
.flex-gap {
  gap: 3rem;
}
.direction-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex.last-right>*:last-child, .pull-right {
  margin-left: auto;
}
.flex > * {
  flex: 0 1 auto;
}
.align-items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.flex-columns {
  width: 100%;
  gap: 6rem;
  align-items: stretch;
}
.flex-columns > * {
  flex: 1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
}
.grid-big {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10rem;
}

.tile {
  border-radius: 4rem;
  min-height: 15rem;
  padding: 4rem;
}
.rule {
  border-radius: 50em;
  padding: 2rem 2.5rem 2rem 3rem;
  margin: 2rem 0;
}
.rule > h3 {
  min-width: 28rem;
}

.bg-beach {
  background: linear-gradient(
    135deg,
    light-dark(#a8e6e6, #4a8d8d) 0%,
    light-dark(#e0f7f7, #5a9d9d) 25%,
    light-dark(#f5f5f5, #2a2a2a) 50%,
    light-dark(#fff9e6, #7abdbd) 75%,
    light-dark(#f5e6d3, #8acdcd) 100%
  );
  background-attachment: fixed;
}

.hidden {
  display: none;
}

#loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(88, 88, 88, .6);
  z-index: 1000;
  font-size: 5rem;
}
#msg {
  display: none;
  position: fixed;
  left: 2rem;
  bottom: 2rem;
  z-index: 1001;
  max-width: 80%;
  text-wrap: wrap;
  cursor: pointer;
}
#msg, .message {
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  background-color: var(--color-body);
  color: var(--color-bg);
}

*:disabled, .disabled {
  opacity: 45%;
  pointer-events: none;
  cursor: not-allowed;
}

code {
  font-family: monospace;
  font-size: 80%;
  background-color: var(--color-bg-alt);
  padding: .4rem .6rem;
  border: .1rem solid currentColor;
  border-radius: var(--border-radius);
}

pre > code {
  display: block;
}


.only-mobile {
  display: none;
}
@media (max-width: 768px) {
  .only-mobile {
    display: block;
  }
}

.bg-primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}
.bg-panel {
  background-color: var(--color-bg-alt);
}

.bg-alert {
  background: linear-gradient(
    135deg,
    light-dark(#6b8e7f, #2d4a3e) 0%,
    light-dark(#7fa893, #3a5a4d) 50%,
    light-dark(#93c2a8, #476a5c) 100%
  );
  color: var(--color-bg);
}

.bg-dots {
  position: relative;
  overflow: hidden;
}
.bg-dots::before {
  content: '';
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><circle cx="20" cy="20" r="8" fill="%23acbdbd" opacity="0.6"/></svg>');
  background-size: 4rem 4rem;
  mask-image: linear-gradient(135deg,
    rgba(0,0,0,0.45) 20%,
    rgba(0,0,0,0.3) 40%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0) 80%
  );
  transform: rotate(-3deg) scale(1.1);
}

.bg-glow {
  position: relative;
  overflow: hidden;
}
.bg-glow::before {
  content: '';
  position: absolute;
  top: -70rem;
  left: 50%;
  transform: translateX(-50%);
  width: 280rem;
  height: 170rem;
  background: radial-gradient(
    ellipse at center top,
    light-dark(var(--color-primary), black) 40%,
    light-dark(rgba(68, 185, 185, 0.4), rgba(0, 0, 0, 0.4)) 50%,
    light-dark(rgba(68, 185, 185, 0.2), rgba(0, 0, 0, 0.2)) 55%,
    light-dark(rgba(68, 185, 185, 0.0), rgba(0, 0, 0, 0.1)) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}



.glowing-panel {
  position: relative;
}
.glowing-panel::before {
  content: '';
  position: absolute;
  inset: -2rem;
  background: var(--color-bg-alt);
  filter: blur(3rem);
  transform: scale(1.4, 1.2);
  z-index: -1;
}

/* Modal */
.modal-wrapper {
  z-index: 99999;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  background: var(--color-bg);
  min-width: 20rem;
  margin: 1rem;
  padding: 2rem;
  border-radius: 1rem;
  max-height: 90vh;
  overflow: auto;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}
.icon-large {
  width: 3em;
  height: 3em;
  display: inline-block;
  vertical-align: middle;
}
.icon-huge {
  width: 5em;
  height: 5em;
  display: inline-block;
  vertical-align: middle;
}

.color-primary {
  color: var(--color-primary);
}
.color-muted {
  color: var(--color-muted);
}