/* =========================================================
   Digital Muscles — entrance page
   ========================================================= */

:root {
  /* Color tokens */
  --color-bg: #101211;
  --color-bg-soft: #141613;
  --color-text: #F2F0EA;
  --color-text-secondary: #989A94;
  --color-text-muted: #6B6E68;
  --color-border: #2A2D2A;
  --color-border-strong: #3B3E3A;
  --color-accent: #B98A57;      /* muted copper/bronze */
  --color-accent-soft: rgba(185, 138, 87, 0.14);

  /* Type */
  --font-display: "El Messiri", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 200ms;

  /* Layout */
  --stage-max: 960px;
  --edge: clamp(24px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle background lighting — almost invisible */
body {
  background-image:
    radial-gradient(ellipse 900px 500px at 50% 8%, rgba(185, 138, 87, 0.045), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 100%, rgba(255, 255, 255, 0.015), transparent 60%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------------------------------------------------------
   Stage — full viewport frame
   --------------------------------------------------------- */

.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--edge);
}

/* ---------------------------------------------------------
   Brand
   --------------------------------------------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 0 0;
}

.brand__mark {
  color: var(--color-accent);
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 0;
}

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

/* ---------------------------------------------------------
   Language switch
   --------------------------------------------------------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  border-color: var(--color-border-strong);
  outline: none;
}

.lang-switch__option {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease);
}

.lang-switch__option.is-active {
  color: var(--color-accent);
}

.lang-switch__divider {
  width: 1px;
  height: 10px;
  background: var(--color-border-strong);
}
/* ---------------------------------------------------------
   Entrance — center content
   --------------------------------------------------------- */

.entrance {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--stage-max);
  margin: 0 auto;
  width: 100%;
  padding: 48px 0;
}

.entrance__intro {
  margin-bottom: clamp(36px, 5vw, 56px);
  max-width: 480px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.headline {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.subline {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 34ch;
}

/* ---------------------------------------------------------
   Paths — the three routes
   --------------------------------------------------------- */

.paths {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.path {
  position: relative;
  display: grid;
  grid-template-columns: 28px 20px 44px 1fr 20px;
  align-items: center;
  column-gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--dur) var(--ease);
  outline: none;
}

.path:hover,
.path:focus-visible {
  background-color: rgba(242, 240, 234, 0.02);
}

.path:focus-visible {
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
}

.path__index {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--dur) var(--ease);
}

.path:hover .path__index,
.path:focus-visible .path__index {
  color: var(--color-text-secondary);
}

.path__rail {
  position: relative;
  height: 22px;
  width: 1px;
  background: var(--color-border-strong);
  justify-self: center;
  overflow: hidden;
}

.path__rail::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--color-accent);
  transition: height var(--dur) var(--ease);
}

.path:hover .path__rail::after,
.path:focus-visible .path__rail::after {
  height: 100%;
}

.path__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: var(--color-text-secondary);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.path:hover .path__icon,
.path:focus-visible .path__icon {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.path__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.path__eyebrow {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.path__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--dur) var(--ease), letter-spacing var(--dur) var(--ease);
}

.path:hover .path__title,
.path:focus-visible .path__title {
  color: var(--color-accent);
}

.path__desc {
  font-size: 13.5px;
  color: var(--color-text-secondary);
}

.path__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.path:hover .path__arrow,
.path:focus-visible .path__arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.foot {
  padding: 20px 0 28px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------
   Entrance fade-in (single orchestrated moment)
   --------------------------------------------------------- */

.brand,
.entrance__intro,
.paths {
  animation: rise 560ms var(--ease) both;
}

.entrance__intro { animation-delay: 60ms; }
.paths { animation-delay: 120ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .path {
    grid-template-columns: 22px 16px 40px 1fr;
    column-gap: 14px;
    padding: 20px 2px;
  }

  .path__arrow {
    display: none;
  }

  .path__icon {
    width: 40px;
    height: 40px;
  }

  .entrance {
    padding: 32px 0;
  }

  .entrance__intro {
    margin-bottom: 32px;
  }
}

@media (max-width: 420px) {
  :root {
    --edge: 20px;
  }

  .path__desc {
    display: none;
  }

  .path__body {
    justify-content: center;
  }

  .path {
    padding: 18px 2px;
  }
}

@media (min-height: 900px) and (min-width: 900px) {
  .entrance {
    padding: 64px 0;
  }
}
