:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  --text: #f7f7f8;
  --muted: rgba(195, 208, 220, .88);
  --line: rgba(113, 135, 158, .26);
  --blue: #58aefe;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--text);
  background: #121416;
}

button { font: inherit; }

.workspace-background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

body::after {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 14, .04), rgba(8, 10, 12, .2));
  content: "";
  pointer-events: none;
}

.workspace-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  padding: clamp(24px, 3.7vh, 48px) clamp(24px, 4.5vw, 76px);
  grid-template-rows: 1fr auto;
}

.workspace-stage {
  align-self: center;
  width: min(100%, 1060px);
  margin-inline: auto;
  text-align: center;
}

.workspace-brand__logo {
  display: block;
  width: clamp(220px, 23vw, 372px);
  height: auto;
  margin: 0 auto clamp(14px, 2.2vh, 24px);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .24));
}

.workspace-brand__rule {
  width: min(46vw, 390px);
  height: 1px;
  margin: 0 auto clamp(14px, 2vh, 22px);
  background: rgba(123, 189, 222, .5);
  box-shadow: 0 0 16px rgba(114, 196, 232, .16);
}

.workspace-brand__eyebrow {
  margin: 0 0 7px;
  color: rgba(166, 196, 220, .78);
  font-size: clamp(11px, .8vw, 13px);
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 780;
  line-height: 1;
  text-wrap: balance;
}

.workspace-brand__claim {
  max-width: 680px;
  margin: clamp(12px, 1.7vh, 18px) auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 650;
  line-height: 1.45;
}

.workspace-modules {
  display: grid;
  max-width: 940px;
  margin: clamp(28px, 4vh, 44px) auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-module {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 12px 14px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(rgba(16, 20, 24, .2), rgba(8, 10, 12, .14)),
    url("/assets/workspace-background.webp") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .17), inset 0 1px 0 rgba(255, 255, 255, .055);
  opacity: 1;
  overflow: hidden;
}

.workspace-module::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 0%, rgba(88, 174, 254, .1), transparent 42%);
  content: "";
  pointer-events: none;
}

.workspace-module__icon,
.workspace-module__copy,
.workspace-module__state { position: relative; }

.workspace-module__icon {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(137, 164, 188, .21);
  border-radius: 12px;
  place-items: center;
  color: rgba(196, 224, 246, .91);
  background: rgba(11, 14, 18, .25);
}

.workspace-module__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-module__copy {
  align-self: center;
  min-width: 0;
}

.workspace-module__copy strong,
.workspace-module__copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-module__copy strong {
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 850;
}

.workspace-module__copy small {
  margin-top: 5px;
  color: rgba(195, 208, 220, .78);
  font-size: 12.5px;
  font-weight: 650;
}

.workspace-module__state {
  display: inline-flex;
  align-items: center;
  align-self: end;
  grid-column: 1 / -1;
  color: rgba(198, 211, 222, .67);
  font-size: 11px;
  font-weight: 780;
}

.workspace-module__state::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: rgba(155, 172, 187, .76);
  box-shadow: 0 0 12px rgba(155, 172, 187, .18);
  content: "";
}

.workspace-module--ready .workspace-module__state::before {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(88, 174, 254, .34);
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: clamp(24px, 3.2vh, 36px);
  color: rgba(214, 225, 234, .84);
  font-size: clamp(13px, .95vw, 15px);
  font-weight: 700;
}

.workspace-status__mark {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(88, 174, 254, .08), 0 0 16px rgba(88, 174, 254, .24);
}

footer {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  color: rgba(196, 207, 215, .52);
  font-size: 11px;
  font-weight: 650;
}

.language-switcher {
  --closed-size: 58px;
  --open-width: 184px;
  --open-height: 154px;
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 20;
  width: var(--closed-size);
  height: var(--closed-size);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(rgba(19, 25, 31, .38), rgba(13, 17, 21, .46)), url("/assets/workspace-background.webp") center / cover no-repeat;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .055);
  overflow: hidden;
  isolation: isolate;
  transform-origin: right bottom;
  transition: width .34s var(--ease), height .34s var(--ease), border-color .22s ease, box-shadow .22s ease;
  will-change: width, height;
}

.language-switcher.is-opening,
.language-switcher.is-open {
  width: var(--open-width);
  height: var(--open-height);
  border-color: rgba(88, 174, 254, .34);
  box-shadow: 0 20px 54px rgba(0, 0, 0, .24), 0 0 0 1px rgba(88, 174, 254, .06), inset 0 1px 0 rgba(255, 255, 255, .065);
}

.language-trigger,
.language-menu { position: absolute; inset: 0; }

.language-trigger {
  display: grid;
  padding: 0;
  border: 0;
  place-items: center;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  transition: opacity .17s ease, transform .22s var(--ease);
}

.language-switcher.is-opening .language-trigger,
.language-switcher.is-open .language-trigger,
.language-switcher.is-closing .language-trigger {
  opacity: 0;
  transform: translateY(10px) scale(.94);
  pointer-events: none;
}

.language-switcher.show-closed .language-trigger {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: .17s;
  pointer-events: auto;
}

.language-menu {
  display: grid;
  padding: 10px;
  grid-template-rows: repeat(3, 42px);
  gap: 4px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .16s ease, transform .25s var(--ease);
}

.language-switcher.show-open .language-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-switcher.is-closing .language-menu {
  opacity: 0;
  transform: translateY(12px);
  transition-delay: 0s;
  pointer-events: none;
}

.language-option {
  display: grid;
  width: 100%;
  height: 42px;
  padding: 0 10px 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  color: rgba(214, 222, 231, .78);
  text-align: left;
  background: transparent;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 820;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.language-option:hover,
.language-option:focus-visible {
  border-color: rgba(138, 166, 194, .18);
  color: rgba(255, 255, 255, .95);
  outline: none;
  background: rgba(45, 59, 72, .64);
}

.language-option.is-active { color: rgba(255, 255, 255, .98); }

.language-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-flag {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(172, 185, 196, .38);
  border-radius: 50%;
  justify-self: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 8px 18px rgba(0, 0, 0, .19);
}

.language-option .language-flag { justify-self: end; }

.language-flag-de {
  background-color: #111;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath fill='%23111111' d='M0 0h60v20H0z'/%3E%3Cpath fill='%23dd1f2d' d='M0 20h60v20H0z'/%3E%3Cpath fill='%23f5cc25' d='M0 40h60v20H0z'/%3E%3C/svg%3E");
}

.language-flag-es {
  background-color: #f4c52a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath fill='%23AA151B' d='M0 0h60v15H0zM0 45h60v15H0z'/%3E%3Cpath fill='%23F1BF00' d='M0 15h60v30H0z'/%3E%3Ccircle cx='22' cy='30' r='5.2' fill='%23b8860b' opacity='.72'/%3E%3C/svg%3E");
}

.language-flag-en {
  background-color: #012169;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect width='60' height='60' fill='%23012169'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23fff' stroke-width='13'/%3E%3Cpath d='M0 0 60 60M60 0 0 60' stroke='%23C8102E' stroke-width='7'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23fff' stroke-width='17'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23C8102E' stroke-width='10'/%3E%3C/svg%3E");
}

@media (max-width: 860px) {
  body { overflow-y: auto; }
  .workspace-shell { padding: 28px 22px 100px; }
  .workspace-modules { max-width: 620px; grid-template-columns: 1fr; }
  .workspace-module { min-height: 104px; }
  footer { margin-top: 30px; }
}

@media (max-height: 760px) and (min-width: 861px) {
  .workspace-brand__logo { width: clamp(180px, 20vw, 288px); margin-bottom: 12px; }
  .workspace-brand__rule { margin-bottom: 12px; }
  h1 { font-size: clamp(36px, 4.4vw, 62px); }
  .workspace-modules { margin-top: 24px; }
  .workspace-module { min-height: 104px; padding: 15px; }
  .workspace-status { margin-top: 20px; }
}

@media (max-width: 520px) {
  .workspace-shell { padding-inline: 16px; }
  .workspace-brand__logo { width: min(74vw, 290px); }
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .language-switcher { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
