/* Landing — pełnoekranowa strona wejściowa, poza układem tablicy.
   Styl przeniesiony 1:1 z projektu dcodemanagement (static/features/css/landing.css).
   Celowo NIE korzysta z palety :root ze styles.css — to samodzielna strona
   o własnej, ciemnej kolorystyce; styles.css nie jest tu w ogóle ładowany. */

/* --- minimalny reset (odpowiednik base.css z dcodemanagement) --- */
* {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* --- landing --- */
.landing-body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: "IBM Plex Sans", sans-serif;
}

.landing-body a {
  color: oklch(0.87 0.10 170);
  text-decoration: none;
}

.landing-body a:hover {
  color: oklch(0.95 0.06 170);
}

.landing-body ::selection {
  background: oklch(0.60 0.10 180);
  color: oklch(0.98 0.005 180);
}

.landing-page {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, oklch(0.31 0.055 190) 0%, oklch(0.24 0.045 195) 55%, oklch(0.19 0.035 200) 100%);
  color: oklch(0.96 0.01 180);
}

/* Siatka tła wygaszana maską promienistą. */
.landing-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(oklch(0.96 0.01 180 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.96 0.01 180 / 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 60% at 50% 45%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 45%, #000 20%, transparent 100%);
}

.landing-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, oklch(0.87 0.10 170 / 0.16) 0%, transparent 65%);
  filter: blur(20px);
}

.landing-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.landing-nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: oklch(0.96 0.01 180);
  min-height: 0;
  padding: 0;
}

.landing-nav .brand:hover {
  color: oklch(0.96 0.01 180);
}

/* Odstępstwo od oryginału: zamiast litery "D" na limonkowym kwadracie jest logo
   (limonkowa strzałka). Kwadrat tła zniknął — kryłby znak w tym samym kolorze,
   a na ciemnym landingu samo logo ma i tak pełny kontrast. */
.landing-nav .brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.landing-nav .brand > span:last-child {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* Zagnieżdżone pod .landing-body, żeby wygrać z ogólną regułą `.landing-body a`. */
.landing-body .landing-nav-link {
  flex-shrink: 0;
  padding: 9px 20px;
  border: 1px solid oklch(0.45 0.05 185);
  border-radius: 999px;
  color: oklch(0.96 0.01 180);
  font-size: 15px;
  white-space: nowrap;
}

.landing-body .landing-nav-link:hover {
  border-color: oklch(0.87 0.10 170);
  color: oklch(0.87 0.10 170);
}

.landing-hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 32px;
  text-align: center;
}

.landing-modules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.landing-modules span {
  padding: 7px 16px;
  border-radius: 999px;
  background: oklch(0.30 0.05 190);
  color: oklch(0.82 0.06 175);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.landing-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  text-wrap: balance;
}

.landing-hero p {
  max-width: 560px;
  margin: 0;
  color: oklch(0.80 0.03 185);
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}

.landing-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.landing-body .landing-cta {
  padding: 14px 34px;
  border-radius: 999px;
  background: oklch(0.87 0.10 170);
  color: oklch(0.22 0.045 195);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}

.landing-body .landing-cta:hover {
  background: oklch(0.92 0.08 170);
  color: oklch(0.22 0.045 195);
}

.landing-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 24px;
  color: oklch(0.60 0.03 185);
  font-size: 13px;
}

@media (max-width: 640px) {
  .landing-nav {
    padding: 20px 22px;
    gap: 12px;
  }

  /* Sam znak "D" zostaje — pełna nazwa wypchnęłaby przycisk nawigacji. */
  .landing-nav .brand > span:last-child {
    display: none;
  }

  .landing-hero {
    gap: 22px;
    padding: 0 20px;
  }

  .landing-hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .landing-hero p {
    font-size: 17px;
  }

  .landing-modules span {
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  /* przycisk na pełną szerokość — łatwiej w niego trafić kciukiem */
  .landing-actions {
    width: 100%;
  }

  .landing-body .landing-cta {
    flex: 1;
    text-align: center;
    padding: 15px 24px;
  }

  .landing-footer {
    padding: 20px;
    text-align: center;
  }
}
