body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* KEYCORE.PL — landinka (produkcja) */

body {
  --kc-bg: #07090d;
  --kc-ink: #f4f1ea;
  --kc-muted: #a8b0be;
  --kc-gold: #e8b84a;
  --kc-gold-deep: #c4922a;
  --kc-ember: #ff6b35;
  --kc-surface: rgba(10, 12, 16, 0.55);
  --kc-line: rgba(232, 184, 74, 0.28);
  --kc-font-display: "Syne", system-ui, sans-serif;
  --kc-font-body: "DM Sans", system-ui, sans-serif;

  color: var(--kc-ink);
  font-family: var(--kc-font-body);
  background: var(--kc-bg);
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

.shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 4.25rem;
}

.shell--legal {
  padding-top: 4.5rem;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg__image {
  position: absolute;
  inset: 0;
  background:
    url("hero-bg.jpg?v=20261110ui") center 32% / cover no-repeat;
  filter: none;
}

.bg__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.48) 34%, rgba(7, 9, 13, 0.08) 62%, transparent 78%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.22) 0%, rgba(7, 9, 13, 0.08) 42%, rgba(7, 9, 13, 0.88) 100%);
}

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

/* Czysty full-width header — tylko podgląd /strona */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.82) 0%, rgba(7, 9, 13, 0.55) 70%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav__inner {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-synthesis: none;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: #f4f1ea;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.nav__brand:hover {
  color: var(--kc-gold);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  min-width: 0;
}

.nav__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.8rem;
  color: #d5dbe6;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--kc-ink);
}

.nav__links a:focus-visible,
.nav__brand:focus-visible {
  outline: 2px solid var(--kc-gold);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.nav__cta,
body a.nav__cta {
  margin-left: 0.35rem;
  min-height: 2.35rem;
  padding: 0.4rem 1rem;
  border-radius: 0.55rem;
  background: var(--kc-gold);
  color: #1a1204 !important;
  -webkit-text-fill-color: #1a1204;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.15s ease;
}

.nav__cta:hover,
body a.nav__cta:hover {
  background: #f0c45c;
  color: #1a1204 !important;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
  position: relative;
}

.content {
  position: relative;
  z-index: 1;
  background: #0a0c11;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -24px 48px rgba(7, 9, 13, 0.55);
}

.content .wrap {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

.hero,
.section {
  scroll-margin-top: 4.75rem;
}

.legal {
  margin: 0.5rem 0 1.5rem;
  padding: 1.6rem 1.35rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.15rem;
  background: var(--kc-surface);
  backdrop-filter: blur(14px);
}

.legal__eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--kc-muted);
}

.legal__eyebrow a:hover {
  color: var(--kc-gold);
}

.legal h1 {
  margin: 0;
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
}

.legal__lead {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--kc-muted);
  line-height: 1.55;
}

.legal__meta {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: #6a7280;
}

.legal__body {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.35rem;
}

.legal__body section h2 {
  margin: 0 0 0.45rem;
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-synthesis: none;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.legal__body p,
.legal__body li {
  margin: 0;
  color: #c5ccd8;
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal__body p + p {
  margin-top: 0.65rem;
}

.legal__body ul {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.legal__body a {
  color: var(--kc-gold);
  text-decoration: underline;
  text-decoration-color: rgba(232, 184, 74, 0.35);
  text-underline-offset: 0.15em;
}

.legal__body a:hover {
  text-decoration-color: var(--kc-gold);
}

.hero {
  min-height: min(78vh, 34rem);
  min-height: min(78dvh, 34rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 3.5rem;
  animation: rise 0.65s ease-out both;
}

.hero__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0c78a;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.brand-wrap {
  margin: 0;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, 0.7));
}

.brand {
  display: inline-block;
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  color: #f7f0df;
  -webkit-text-fill-color: #f7f0df;
}

.tagline {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.5;
  color: #eef2f8;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--kc-gold);
  outline-offset: 3px;
}

.btn--primary,
body a.btn--primary {
  background: var(--kc-gold);
  color: #1a1204;
  -webkit-text-fill-color: #1a1204;
}

.btn--primary:hover {
  background: #f0c45c;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--kc-line);
  color: var(--kc-ink);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(232, 184, 74, 0.55);
  background: rgba(232, 184, 74, 0.1);
}

.btn--discord {
  background: #5865f2;
  color: #fff;
}

.btn--discord:hover {
  background: #4752c4;
}

.ip {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.45rem 0.85rem 0.45rem 1rem;
  border: 1px solid rgba(232, 184, 74, 0.4);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  font-family: ui-monospace, "DM Mono", monospace;
  font-size: 0.95rem;
}

.ip span {
  color: var(--kc-gold);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ip button {
  border: 0;
  border-radius: 0.45rem;
  background: rgba(232, 184, 74, 0.2);
  color: var(--kc-ink);
  font: inherit;
  font-family: var(--kc-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.ip button:hover {
  background: rgba(232, 184, 74, 0.3);
}

.section {
  padding: 1.85rem 0 1.35rem;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section h2 {
  font-family: var(--kc-font-display);
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.lead {
  margin: 0 0 1.15rem;
  color: #aeb6c4;
  max-width: 36rem;
  line-height: 1.5;
  font-size: 0.98rem;
}

.nowrap {
  white-space: nowrap;
}

.modes {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.modes li {
  flex: 0 0 auto;
}

.mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 184, 74, 0.28);
  background: #12151c;
  font-size: 0.84rem;
  font-weight: 500;
  color: #e8edf5;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mode:hover {
  border-color: rgba(232, 184, 74, 0.65);
  background: #1a1e28;
  color: var(--kc-gold);
}

.mode:focus-visible {
  outline: 2px solid var(--kc-gold);
  outline-offset: 3px;
}

.votes {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .votes {
    grid-template-columns: 1fr 1fr;
  }
}

.vote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  background: #12151c;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.vote:hover {
  border-color: rgba(232, 184, 74, 0.4);
  background: #171a23;
}

.vote strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f0f3f8;
}

.vote small {
  display: block;
  margin-top: 0.12rem;
  color: #8b94a3;
  font-size: 0.78rem;
}

.vote em {
  font-style: normal;
  color: var(--kc-gold);
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.foot {
  padding: 1.35rem 0 1.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #6a7280;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.55rem;
  text-align: center;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0;
}

.foot__nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  padding: 0.1rem 0;
}

.foot__nav a:hover {
  color: #a8b0be;
}

.foot__nav a + a::before {
  content: "·";
  display: inline-block;
  margin: 0 0.55rem;
  color: #4a5260;
  pointer-events: none;
}

.foot__sep {
  color: #4a5260;
}

.foot__copy {
  margin: 0;
  white-space: nowrap;
  color: inherit;
  opacity: 0.85;
}

/* Telefon: hero wyśrodkowany, równe CTA */
@media (max-width: 639px) {
  .shell {
    padding-top: 3.85rem;
  }

  .nav__inner {
    width: min(72rem, calc(100% - 1.5rem));
    min-height: 3.35rem;
    gap: 0.5rem;
  }

  .nav__brand {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .nav__links {
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav__links::-webkit-scrollbar {
    display: none;
  }

  .nav__links a {
    min-height: 2.15rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.82rem;
  }

  .nav__cta,
  body a.nav__cta {
    margin-left: 0.15rem;
    min-height: 2.15rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
  }

  .legal {
    padding: 1.25rem 1rem 1.4rem;
  }

  .wrap {
    width: min(72rem, calc(100% - 1.5rem));
  }

  .hero {
    min-height: 0;
    padding: 2.35rem 0 1.75rem;
    align-items: center;
    text-align: center;
  }

  .hero__kicker {
    margin-inline: auto;
  }

  .brand {
    font-size: clamp(2.55rem, 12vw, 3.25rem);
    letter-spacing: -0.035em;
  }

  .tagline {
    margin-inline: auto;
    max-width: 22rem;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #d7dde8;
  }

  .cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .cta .btn {
    width: min(16rem, 100%);
    min-height: 2.75rem;
  }

  .ip {
    width: max-content;
    max-width: 100%;
    min-height: 2.75rem;
  }

  .section {
    text-align: left;
  }

  .content .wrap {
    padding-bottom: 0.25rem;
  }

  .foot {
    padding: 1.15rem 0 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}
