:root {
  --bg-deep: #091016;
  --bg-mid: #112434;
  --accent: #e5f4ff;
  --panel: #f4f7f2;
  --panel-2: #ffffff;
  --ink: #112031;
  --muted: #61778f;
  --line: #d4dde2;
  --menu-active: #d4e6f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: #fff;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #1f4668 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #1b2b3d 0%, transparent 40%),
    linear-gradient(130deg, var(--bg-mid), var(--bg-deep));
}

.page {
  min-height: 100vh;
}

.coming-soon {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 56px);
  overflow: hidden;
  padding: 24px;
}

.fog-logo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(71.5vw, 910px);
  transform: translate(-50%, -50%);
  opacity: 0.28;
  filter: blur(4px) saturate(0.9);
}

.fog-logo::after {
  content: "";
  position: absolute;
  inset: -20% -15%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), rgba(8, 15, 24, 0.72) 70%);
}

.fog-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  margin: 0;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 0.08em;
  line-height: 1.72;
  padding-top: 0.2em;
  font-size: clamp(1.8rem, 4.2vw, 4.6rem);
  color: #ffe45a;
  max-width: 960px;
  text-shadow: 0 2px 0 rgba(8, 14, 21, 0.8), 0 0 18px rgba(255, 222, 110, 0.55), 0 0 34px rgba(255, 180, 80, 0.3);
  z-index: 2;
}

.hero-letter-anchor {
  display: inline-block;
  position: relative;
  z-index: 4;
  transform: translate(0, 0);
  will-change: transform;
}

.hero-geometry-anchor {
  display: inline-block;
}

.hero-line {
  display: block;
}

.hero-text::before {
  content: "";
  position: absolute;
  inset: -0.24em -0.3em;
  border-radius: 26px;
  background: radial-gradient(ellipse at center, rgba(255, 206, 92, 0.34) 0%, rgba(255, 168, 89, 0.2) 42%, rgba(255, 168, 89, 0) 75%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.letter-pong-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.ping-table {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  --table-thickness: 12px;
  --net-height: 64px;
  --leg-height: 10px;
  pointer-events: none;
  z-index: 2;
}

.ping-table::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--table-thickness);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 88, 131, 0.94) 0%, rgba(18, 37, 58, 0.94) 100%);
  box-shadow: 0 0 0 1px rgba(225, 240, 252, 0.18) inset, 0 -1px 0 rgba(248, 252, 255, 0.3) inset,
    0 12px 20px rgba(4, 11, 18, 0.28);
}

.ping-table-half {
  position: absolute;
  bottom: calc(var(--leg-height) * -1 + 1px);
  height: var(--leg-height);
  width: 50%;
}

.ping-table-half::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 18%,
      #2f3438 18%,
      #2f3438 20.5%,
      transparent 20.5%,
      transparent 78%,
      #2f3438 78%,
      #2f3438 80.5%,
      transparent 80.5%);
}

.ping-table-half-left {
  left: 0;
}

.ping-table-half-right {
  right: 0;
}

.ping-net {
  position: absolute;
  left: 50%;
  bottom: var(--table-thickness);
  width: 4px;
  height: var(--net-height);
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 10%, #070707 10%, #070707 100%);
}

#bouncing-ball {
  position: absolute;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background-color: #f8f3d5;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 248, 208, 0.85), 0 0 16px rgba(255, 216, 104, 0.58);
  pointer-events: none;
  z-index: 5;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#bouncing-ball::after {
  content: "WLTS";
  position: absolute;
  left: 50%;
  top: 50%;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #111;
  transform: translate(-50%, -52%) scaleX(0.38);
  transform-origin: center;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: linear-gradient(90deg, #e5ebef 0%, #f2f5f8 70%, #f8fafc 100%);
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f0f3f6 0%, #e9eff4 100%);
  padding: 24px 20px;
}

.brand-box {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.brand-logo {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.brand-sub {
  margin: 0;
  color: #31495f;
  font-weight: 700;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #143754;
  background: linear-gradient(180deg, #1f567e 0%, #153954 100%);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 55, 84, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(20, 55, 84, 0.24);
}

.menu-toggle:focus-visible {
  outline: 3px solid #8fb6da;
  outline-offset: 2px;
}

.menu-toggle-icon {
  display: grid;
  gap: 4px;
}

.menu-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu {
  display: grid;
  gap: 8px;
}

.menu-group {
  display: grid;
  gap: 0;
}

.menu-item,
.menu-subitem {
  width: 100%;
  text-align: left;
  border: 1px solid #c8d7e2;
  background: #fff;
  color: #193047;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.93rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.menu-item:hover,
.menu-subitem:hover {
  transform: translateX(3px);
  box-shadow: 0 5px 16px rgba(30, 64, 98, 0.14);
}

.menu-subitem {
  margin-left: 10px;
  width: calc(100% - 10px);
  background: #f8fbfe;
}

.menu-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.menu-item-label {
  flex: 1;
}

.menu-group-icon {
  flex: 0 0 auto;
  width: 12px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.menu-group.is-open .menu-group-icon {
  transform: rotate(180deg);
}

.menu-group-panel {
  display: grid;
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 0.36s ease, margin-top 0.36s ease, opacity 0.24s ease, transform 0.36s ease;
}

.menu-group.is-open .menu-group-panel {
  max-height: var(--submenu-height, 0px);
  margin-top: 8px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-item.is-active,
.menu-subitem.is-active {
  background: var(--menu-active);
  border-color: #8fb6da;
}

.content {
  color: var(--ink);
  padding: 26px clamp(18px, 3vw, 44px);
}

.view {
  display: none;
  background: var(--card-bg, var(--panel-2));
  border: 1px solid var(--card-border, var(--line));
  border-radius: 18px;
  padding: clamp(18px, 2vw, 32px);
  box-shadow: 0 20px 44px var(--card-shadow, rgba(0, 0, 0, 0.08));
  color: var(--card-text, var(--ink));
}

.view.is-active {
  display: block;
  animation: reveal 0.35s ease;
}

.view h2 {
  margin-top: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  color: var(--card-text-heading, var(--card-text, var(--ink)));
}

.view p,
.view li {
  color: var(--card-text-muted, color-mix(in srgb, var(--card-text, var(--ink)) 82%, #ffffff 18%));
  line-height: 1.65;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.is-hidden {
  display: none;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    grid-template-columns: 1fr;
    transform-origin: top;
  }

  .menu-item,
  .menu-subitem {
    padding: 8.5px 12px;
    min-height: 36px;
  }

  .menu-group-panel {
    gap: 6px;
  }

  .sidebar.has-collapsible-menu .menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.22s ease, transform 0.35s ease;
  }

  .sidebar.has-collapsible-menu.is-menu-open .menu {
    max-height: min(70vh, var(--menu-height, 0px));
    opacity: 1;
    overflow-y: auto;
    pointer-events: auto;
    transform: translateY(0);
    margin-top: 12px;
  }

  .sidebar.has-collapsible-menu.is-menu-open .menu-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .sidebar.has-collapsible-menu.is-menu-open .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .sidebar.has-collapsible-menu.is-menu-open .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}