/* ╔══════════════════════════════════════════════════════════════════╗
   ║  ÚDRŽÁK · web · Sofie Holfeuerová · FA ČVUT                       ║
   ╚══════════════════════════════════════════════════════════════════╝ */

:root {
  --yellow: #FFD60A;
  --orange: #FF7A00;
  --purple: #8A09BD;
  --pink:   #EDB3E3;
  --ink:    #181018;
  --paper:  #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  font-family: "Barlow Condensed", "DIN Condensed", "DIN Alternate", sans-serif-condensed, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ─────────────── HERO (yellow) ─────────────── */
.hero {
  position: relative;
  background: var(--yellow);
  min-height: 88vh;
  padding: 72px 6vw 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: visible;
  z-index: 2;
}
.hero-lang {
  position: absolute;
  top: 28px; right: 6vw;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  z-index: 3;
  background: transparent;
}
.hero-lang .lang-alt { opacity: 0.4; }

.hero-star { display: none; }

.hero-wordmark {
  display: block;
  margin: 0;
  image-rendering: -webkit-optimize-contrast;
  position: absolute;
  left: -8vw;
  bottom: -18vw;
  width: 110vw;
  z-index: 3;
  pointer-events: none;
}
.hero-tag {
  align-self: flex-end;
  margin: 16px 4vw 16px 0;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  background: var(--pink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.06em;
  position: absolute;
  bottom: -10vw;
  right: 4vw;
  z-index: 4;
}

@media (max-width: 720px) {
  .hero { padding: 72px 24px 48px; }
  .hero-star-tl { width: 70px; top: 70px; }
  .hero-star-br { width: 60px; }
  .hero-tag { font-size: 12px; margin-right: 0; align-self: center; }
}

/* ─────────────── ABOUT (pink) ─────────────── */
.about {
  background: var(--pink);
  padding: 96px 0 104px 8vw;
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: center;
  min-height: 540px;
  position: relative;
  z-index: 1;
}
.about-copy {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  margin: 120px 0 0;
  color: var(--purple);
  max-width: 46ch;
  align-self: start;
}
.about-art {
  position: relative;
  width: 100%;
  max-width: 1000px;
  justify-self: end;
  align-self: center;
  margin-top: 80px;
  margin-right: -3vw;
  padding-right: 0;
}
.about-doodle {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.about-star {
  position: absolute;
  width: 30%;
  height: auto;
  top: 36%;
  left: 5%;
  transform: rotate(-12deg);
  z-index: 0;
  pointer-events: none;
  filter: saturate(1.3) brightness(1.05);
}

@media (max-width: 880px) {
  .about {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    gap: 40px;
    text-align: center;
  }
  .about-art { justify-self: center; max-width: 320px; }
  .about-copy { margin: 0 auto; }
}

/* ─────────────── DOWNLOAD (purple) ─────────────── */
.dl {
  position: relative;
  background: var(--purple);
  color: var(--paper);
  padding: 120px 8vw 96px;
  text-align: center;
  overflow: hidden;
}
.dl-arrow {
  position: absolute;
  top: 64px;
  left: 7vw;
  width: 150px;
  height: auto;
  transform: rotate(-32deg);
  filter: brightness(0) invert(1);
  z-index: 2;
}

.dl-title {
  margin: 0 0 56px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.06em;
  color: var(--paper);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--paper);
}

.dl-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}
.dl-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.dl-btn {
  appearance: none;
  background: var(--yellow);
  color: var(--ink);
  border: 0;
  border-radius: 36px;
  padding: 20px 36px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.1em;
  width: 100%;
  max-width: 460px;
  transition: transform .15s, box-shadow .15s;
}
.dl-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 0 0 rgba(0,0,0,0.25);
}
.dl-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 0 transparent;
}
.dl-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.dl-pwd {
  display: flex; flex-direction: column; gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.22em;
  width: 100%;
  max-width: 300px;
  align-items: center;
  margin-top: 18px;
}
.dl-pwd input {
  width: 100%;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 1.5px solid var(--paper);
  padding: 10px 0;
  letter-spacing: 0.3em;
  outline: none;
  text-align: center;
}
.dl-pwd input:focus { border-bottom-color: var(--yellow); }
.dl-pwd input::placeholder { color: rgba(255,255,255,0.35); }

.status {
  min-height: 1.4em;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.status.error { color: #FFB3B3; }
.status.success { color: var(--yellow); }

@media (max-width: 720px) {
  .dl { padding: 96px 24px 72px; }
  .dl-arrow { width: 100px; top: 36px; left: 4vw; }
  .dl-btn { font-size: 13px; padding: 18px 22px; letter-spacing: 0.06em; }
}

/* ─────────────── ASSEMBLY (orange) ─────────────── */
.assembly {
  background: var(--orange);
  color: var(--paper);
  padding: 96px 8vw 104px;
  position: relative;
}
.assembly-title {
  margin: 0 0 56px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: 0.06em;
  color: var(--paper);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--paper);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto -16px;
  align-items: end;
}
.step {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
}
.step-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 28px;
  color: var(--paper);
  align-self: flex-start;
}
.step-art {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 240px;
  padding-top: 8px;
}
.step-art img {
  width: 60%;
  max-width: 180px;
  max-height: 220px;
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.step:nth-child(1) .step-art img {
  max-height: 160px;
  max-width: 110px;
  margin-top: -44px;
}
.step-art-line img {
  filter: brightness(0) invert(1);
}
.assembly-info {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  max-width: 80ch;
  margin: 0 auto;
  color: var(--paper);
  text-align: center;
}
.assembly-info-alt {
  color: var(--yellow);
  margin-top: 18px;
}

@media (max-width: 720px) {
  .assembly { padding: 72px 24px; }
  .steps { grid-template-columns: 1fr; max-width: 320px; gap: 40px; }
}

/* ─────────────── FOOTER (pink) ─────────────── */
.foot {
  background: var(--pink);
  padding: 132px 8vw 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  position: relative;
}
.foot-burst {
  width: 240px;
  height: auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%) rotate(-12deg);
  z-index: 5;
  filter: drop-shadow(4px 5px 0 rgba(24, 16, 24, 0.15));
}
.foot-credits {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.foot-credits p { margin: 0; }
.credit-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.foot-ustav {
  margin: 8px 0 0;
}
.foot-ustav img {
  width: 220px;
  height: auto;
}

@media (max-width: 720px) {
  .foot { padding: 96px 24px 48px; }
  .foot-burst { width: 170px; }
  .foot-ustav img { width: 180px; }
}
