:root {
  --bg: #09101f;
  --bg-accent: #14213d;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.72);
  --soft: rgba(255, 255, 255, 0.52);
  --shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
  --radius: 18px;
  --radius-sm: 12px;
  --ok: #22c55e;
  --nok: #ef4444;
  --accent: #ff9f1c;
  --accent-soft: rgba(255, 159, 28, 0.18);
  --link: #ffd180;
  --overlay: rgba(3, 6, 16, 0.74);
  --panel: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 700px at 15% 0%, rgba(56, 189, 248, 0.22), transparent 58%),
    radial-gradient(800px 520px at 88% 12%, rgba(255, 159, 28, 0.22), transparent 55%),
    radial-gradient(960px 840px at 50% 100%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-accent), var(--bg));
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 18px 42px;
}

.container--narrow {
  max-width: 920px;
}

.site-header {
  padding: 6px 0 30px;
}

.page-home .site-header {
  padding-bottom: 16px;
}

.site-header--compact {
  padding-bottom: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.site-navigation {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.menu-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 140ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.burger-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: rgba(20, 33, 61, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.burger-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}

.burger-menu a:hover,
.burger-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.scroll-top {
  position: fixed;
  z-index: 9;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 209, 128, 0.6);
  border-radius: 50%;
  color: #261500;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: #ffd180;
  transform: translateY(-2px);
}

.scroll-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-chip__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ffe29a);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.topbar > .brand-chip,
.topbar > .topbar__actions {
  display: none;
}

.utility-nav,
.lang-switch,
.footer-nav,
.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.utility-nav a,
.lang-switch a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.utility-nav a:hover,
.lang-switch a:hover,
.footer-nav a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.lang-switch__current {
  color: var(--accent);
  font-weight: 700;
}

.lang-switch {
  gap: 8px;
}

.lang-switch__separator {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: center;
}

.hero__visual,
.hero__copy,
.account-card,
.legal-card,
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero__visual {
  padding: 24px;
}

.hero__copy {
  padding: 28px;
}

.account-card {
  padding: 28px;
}

.account-card--full {
  margin-bottom: 42px;
}

.account-card .subtitle {
  margin: 12px 0 0;
}

.account-card .hero__actions {
  margin-top: 18px;
}

.hero__copy .hero__actions {
  margin-top: 18px;
}

.brand-wrap {
  position: relative;
  display: inline-block;
  width: min(520px, 100%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.logo-hotspot {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 14px;
}

.logo-hotspot:hover,
.logo-hotspot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), 0 12px 24px rgba(0, 0, 0, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow,
.section-heading__eyebrow {
  margin: 0 0 10px;
  color: #ffe29a;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h3 {
  font-size: 1.15rem;
}

.subtitle,
.section-heading__copy,
.desc,
.legal-lead,
.content-block p,
.site-footer,
.hint,
.meta-list dt,
.meta-list dd {
  line-height: 1.6;
}

.subtitle,
.section-heading__copy,
.desc,
.legal-lead,
.content-block p,
.site-footer {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), #ffcf70);
  color: #261500;
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.section {
  padding-top: 12px;
}

.section-heading {
  margin-bottom: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 12;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.project-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--card-strong);
}

.project-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 800;
  color: #201000;
  /*background: linear-gradient(135deg, #ffcf70, #ff9f1c);*/
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-logo--edgerun {
  color: #fff;
  background: linear-gradient(135deg, #00d9ff, #d600ff 58%, #ff9f1c);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.project-body {
  flex: 1 1 auto;
  min-width: 0;
}

.project-header {
  display: grid;
  gap: 4px;
}

.project-subtitle {
  margin: 0;
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.project-footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--link);
}

.project-link__icon {
  width: 24px;
  height: auto;
  fill: currentColor;
}

.project-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.project-card .desc {
  grid-column: 1 / -1;
  margin: 12px 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px;
  /*border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.18);*/
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  white-space: nowrap;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.status[data-health="ok"] .dot {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.status[data-health="nok"] .dot {
  background: var(--nok);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.status[data-health="loading"] .dot {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.status--stores .dot {
  background: var(--nok);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18);
}

.legal-shell {
  padding-top: 6px;
}

.legal-card {
  padding: 28px;
}

.content-block + .content-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.meta-list div {
  display: grid;
  gap: 4px;
}

.meta-list dt {
  color: var(--soft);
  font-size: 0.92rem;
}

.meta-list dd {
  margin: 0;
  color: var(--text);
}

.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--overlay);
  z-index: 999;
}

.overlay[aria-hidden="false"] {
  display: flex;
}

.panel {
  width: min(820px, 96vw);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel-header,
.panel-actions,
.hint {
  display: flex;
  align-items: center;
}

.panel-header {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-actions {
  gap: 8px;
}

.panel-title {
  font-size: 14px;
  font-weight: 700;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
  font-size: 12px;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.panel-body {
  padding: 12px;
}

canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  touch-action: manipulation;
}

.hint {
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 2px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.kbd {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 760px) {
  .card {
    grid-column: span 12;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 2;
  }

  .hero__copy {
    order: 1;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 14px;
  }

  .topbar,
  .site-footer,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .project-statuses {
    flex-wrap: wrap;
  }

  .topbar__actions {
    justify-content: flex-start;
  }

  .legal-card,
  .hero__copy,
  .account-card,
  .hero__visual {
    padding: 22px;
  }
}
