:root {
  /* Unity / Authentik brand tokens (ops/authentik/brand-custom-css-unity-flow.css). */
  --emma-bg: #030712;
  --emma-ink: #e5e7eb;
  --emma-muted: #9ca3af;
  --emma-note: #6b7280;
  --emma-primary: #2563eb;
  --emma-primary-hover: #1d4ed8;
  --emma-copy-width: min(42vw, 32rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--emma-bg);
  color: var(--emma-ink);
}

body {
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.emma-landscape,
.emma-trail-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.emma-trail-overlay {
  z-index: 1;
}

.emma-hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.emma-copy {
  width: var(--emma-copy-width);
  max-width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 1.5rem;
  border-radius: 0.75rem;
  background: radial-gradient(
    ellipse at center,
    rgb(3 7 18 / 0.72) 0%,
    rgb(3 7 18 / 0.4) 55%,
    rgb(3 7 18 / 0) 100%
  );
  opacity: 1;
  transition-property: opacity;
  transition-timing-function: ease;
  transition-duration: 400ms;
  will-change: opacity;
}

/* Wallpaper mode: logo / copy / Login fade away so the chart fills the viewport. */
.emma-copy.emma-copy--wallpaper {
  opacity: 0;
  pointer-events: none;
}

.emma-copy.emma-copy--wallpaper .emma-cta {
  pointer-events: auto;
}

.emma-brand {
  margin: 0 0 1.25rem;
  line-height: 0;
}

.emma-brand-logo {
  display: block;
  width: min(100%, clamp(12.5rem, 28vw, 18.5rem));
  height: auto;
  margin: 0;
}

.emma-headline {
  margin: 0 0 1rem;
  font-family: Hack, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.35rem, 2.4vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #fff;
  text-align: left;
  max-width: none;
}

.emma-lede {
  margin: 0 0 1.75rem;
  font-family: Hack, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  color: var(--emma-muted);
  max-width: 36ch;
}

.emma-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  min-width: 7.5rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--emma-primary);
  border-radius: 0.5rem;
  color: #fff;
  background: var(--emma-primary);
  text-decoration: none;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.emma-cta:hover,
.emma-cta:focus-visible {
  background: var(--emma-primary-hover);
  border-color: var(--emma-primary-hover);
  outline: none;
}

.emma-cta:active {
  transform: translateY(1px);
}

@media (max-width: 720px) {
  .emma-hero {
    align-items: center;
    justify-content: center;
    padding-top: clamp(2rem, 8vh, 4rem);
  }

  .emma-copy {
    width: min(100%, 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .emma-cta {
    transition: none;
  }

  .emma-copy,
  .emma-copy.emma-copy--wallpaper {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}
