/* =============================================================
   Hack Club Melčice — stylesheet
   Tokens
============================================================= */
:root{
  --bg:            #FFFFFF;
  --bg-soft:       #FAFAFA;
  --ink:           #191320;
  --ink-soft:      #57515F;
  --white:         #FFFFFF;

  --red:           #EC3750;
  --red-dark:      #C92D42;
  --yellow:        #FFC800;
  --blue:          #338EDA;
  --green:         #33D6A6;
  --purple:        #A633D6;
  --orange:        #FF8C37;

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;

  --shadow-soft: 0 20px 44px -26px rgba(25,19,32,0.35);
  --shadow-soft-lg: 0 28px 60px -24px rgba(25,19,32,0.4);

  --font-display: 'Clash Display', 'Satoshi', sans-serif;
  --font-body: 'Satoshi', 'Clash Display', sans-serif;

  --max-w: 1160px;

  --ease: cubic-bezier(.22,.7,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }

:focus-visible{
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.section-inner, .nav-inner, .footer-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.skip-link{
  position: absolute;
  left: -999px; top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus{ left: 0; top: 0; }

/* =============================================================
   Typography
============================================================= */
h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--red-dark);
  background: #FFE9EC;
  padding: 7px 16px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.h2{
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
}
.h2-center{ text-align: center; margin: 0 auto 8px; max-width: 720px; }

.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 18px 0 0;
}
.lead-sub{
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 14px 0 0;
}
.lead-center{ margin-left:auto; margin-right:auto; text-align:center; max-width: 620px; }

/* =============================================================
   Buttons & links
============================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 0 var(--red-dark);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-dark); }
.btn-primary:active{ transform: translateY(2px); box-shadow: 0 3px 0 var(--red-dark); }
.btn-big{ font-size: 1.05rem; padding: 17px 30px; }
.btn-huge{ font-size: 1.25rem; padding: 22px 42px; }

.link-arrow{
  display: inline-block;
  margin-top: 30px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 3px solid var(--red);
  padding-bottom: 3px;
  transition: border-color 0.2s ease;
}
.link-arrow:hover{ border-color: var(--red-dark); }

/* =============================================================
   Nav
============================================================= */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(25,19,32,0.07);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.nav-brand{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.brand-mark{ flex-shrink: 0; }

.nav-links{ display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: 0.95rem; }
.nav-links a:not(.nav-cta){ position: relative; }
.nav-links a:not(.nav-cta)::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-links a:not(.nav-cta):hover::after{ transform: scaleX(1); }

.nav-cta{
  background: var(--red); color: var(--white);
  padding: 12px 24px; border-radius: 999px; font-weight: 700;
  box-shadow: 0 4px 0 var(--red-dark);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover{ transform: translateY(-2px); box-shadow: 0 6px 0 var(--red-dark); }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span{ display: block; height: 3px; border-radius: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* =============================================================
   Hero
============================================================= */
.hero{ padding: 96px 28px 90px; }
.hero-inner{
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy{ max-width: 560px; }

.pulse-dot{
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(51,214,166,0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(51,214,166,0.55); }
  70%{ box-shadow: 0 0 0 8px rgba(51,214,166,0); }
  100%{ box-shadow: 0 0 0 0 rgba(51,214,166,0); }
}

.hero-title{
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.98;
  color: var(--ink);
  font-weight: 700;
}
.hero-title-cool{ color: var(--red); }
.hero-dot{ color: var(--red); }

.hero-sub{
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 480px;
  margin: 24px 0 0;
}

.hero-actions{ margin-top: 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero-scroll{
  font-weight: 700; font-size: 0.94rem; color: var(--ink-soft);
  border-bottom: 2px dashed rgba(25,19,32,0.3); padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.hero-scroll:hover{ color: var(--ink); border-color: var(--ink); }

/* ---- Code window hero graphic ---- */
.hero-visual{ display: flex; justify-content: center; }
.code-window{
  width: 100%;
  max-width: 380px;
  background: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft-lg);
  transform: rotate(3deg);
  overflow: hidden;
}
.code-window-bar{
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
}
.code-window-dot{ width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.code-window-file{
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
}
.code-window-body{ padding: 26px 22px 30px; display: grid; gap: 14px; }
.code-line{ height: 10px; border-radius: 6px; opacity: 0.9; }
.code-line-indent{ margin-left: 22px; }
.code-cursor-line{ position: relative; }
.code-cursor-line::after{
  content: "";
  position: absolute;
  right: -10px; top: -2px;
  width: 3px; height: 14px;
  background: var(--white);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

/* =============================================================
   Scroll reveal (progressive enhancement — visible without JS)
============================================================= */
.reveal{ opacity: 1; transform: none; }
.js-reveal .reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js-reveal .reveal.is-visible{ opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .js-reveal .reveal{ opacity: 1; transform: none; transition: none; }
}

/* Gentle stagger for grouped grids */
.what-cards .reveal:nth-child(1){ transition-delay: 0s; }
.what-cards .reveal:nth-child(2){ transition-delay: .12s; }
.what-cards .reveal:nth-child(3){ transition-delay: .24s; }

.build-grid .reveal:nth-child(1){ transition-delay: 0s; }
.build-grid .reveal:nth-child(2){ transition-delay: .1s; }
.build-grid .reveal:nth-child(3){ transition-delay: .2s; }
.build-grid .reveal:nth-child(4){ transition-delay: .3s; }
.build-grid .reveal:nth-child(5){ transition-delay: .4s; }
.build-grid .reveal:nth-child(6){ transition-delay: .5s; }

.timeline-step:nth-child(2){ transition-delay: 0s; }
.timeline-step:nth-child(3){ transition-delay: .12s; }
.timeline-step:nth-child(4){ transition-delay: .24s; }
.timeline-step:nth-child(5){ transition-delay: .36s; }

.reward-gallery .reveal:nth-child(1){ transition-delay: 0s; }
.reward-gallery .reveal:nth-child(2){ transition-delay: .08s; }
.reward-gallery .reveal:nth-child(3){ transition-delay: .16s; }
.reward-gallery .reveal:nth-child(4){ transition-delay: .24s; }
.reward-gallery .reveal:nth-child(5){ transition-delay: .32s; }
.reward-gallery .reveal:nth-child(6){ transition-delay: .4s; }

.why-list .reveal:nth-child(1){ transition-delay: 0s; }
.why-list .reveal:nth-child(2){ transition-delay: .08s; }
.why-list .reveal:nth-child(3){ transition-delay: .16s; }
.why-list .reveal:nth-child(4){ transition-delay: .24s; }
.why-list .reveal:nth-child(5){ transition-delay: .32s; }
.why-list .reveal:nth-child(6){ transition-delay: .4s; }

.faq-list .reveal:nth-child(1){ transition-delay: 0s; }
.faq-list .reveal:nth-child(2){ transition-delay: .1s; }
.faq-list .reveal:nth-child(3){ transition-delay: .2s; }
.faq-list .reveal:nth-child(4){ transition-delay: .3s; }
.faq-list .reveal:nth-child(5){ transition-delay: .4s; }

/* =============================================================
   Generic section rhythm — single consistent white background
============================================================= */
.section{ padding: 100px 0; }

/* O Hack Clube */
.what-grid{ display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.what-cards{ display: grid; gap: 16px; }
.what-card{
  background: var(--white);
  border: 1.5px solid rgba(25,19,32,0.1);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.what-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft-lg); }
.what-card p{ margin: 12px 0 0; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.what-tag{
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
}
.what-tag-red{ background: #FFE9EC; color: var(--red-dark); }
.what-tag-blue{ background: #E1F0FC; color: #1D6FB8; }
.what-tag-orange{ background: #FFEADB; color: #C15A00; }

/* Timeline */
.timeline{ position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.timeline-line{
  position: absolute; top: 24px; left: 6%; right: 6%; height: 1.5px;
  background: repeating-linear-gradient(90deg, rgba(25,19,32,0.35) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.timeline-step{ position: relative; z-index: 1; text-align: center; }
.timeline-node{
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  box-shadow: 0 0 0 6px var(--white);
}
.timeline-step:nth-child(3) .timeline-node{ background: var(--blue); }
.timeline-step:nth-child(4) .timeline-node{ background: var(--purple); }
.timeline-step:nth-child(5) .timeline-node{ background: var(--green); }
.timeline-step h3{ font-size: 1.12rem; margin: 0 0 8px; }
.timeline-step p{ margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Build cards */
.build-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.build-card{
  background: var(--white);
  border: 1.5px solid rgba(25,19,32,0.1);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.build-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft-lg); }
.build-card h3{ font-size: 1.2rem; margin: 4px 0 8px; }
.build-card p{ margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.build-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.5rem; margin-bottom: 8px;
}
.build-icon-red{ background: #FFE9EC; }
.build-icon-blue{ background: #E1F0FC; }
.build-icon-purple{ background: #F3E4FC; }
.build-icon-green{ background: #E1FBF3; }
.build-icon-orange{ background: #FFEADB; }
.build-icon-yellow{ background: #FFF3CE; }
.build-card-highlight{ background: #FFFBF0; }

/* Rewards */
.reward-gallery{
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  margin: 52px 0 34px;
}
.reward-photo{
  width: 140px;
  background: var(--white);
  border: 1.5px solid rgba(25,19,32,0.1);
  border-radius: var(--radius-sm);
  padding: 26px 14px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.reward-photo svg{ margin: 0 auto 14px; }
.reward-photo p{ margin: 0; font-weight: 700; font-size: 0.88rem; }
.reward-photo:hover{ transform: rotate(0deg) translateY(-4px) !important; box-shadow: var(--shadow-soft-lg); }
.tilt-a{ transform: rotate(-3deg); }
.tilt-b{ transform: rotate(2deg); }
.tilt-c{ transform: rotate(-1.5deg); }
.tilt-d{ transform: rotate(3deg); }
.tilt-e{ transform: rotate(-2.5deg); }
.tilt-f{ transform: rotate(1.5deg); }

.reward-note{
  max-width: 560px; margin: 0 auto; text-align: center;
  font-size: 0.92rem; color: var(--ink-soft);
}
#odmeny .link-arrow{ display: block; text-align: center; width: fit-content; margin-left: auto; margin-right: auto; }

/* Prečo sa pridať */
.why-grid{ max-width: 760px; }
.why-list{ margin-top: 40px; display: grid; gap: 20px; }
.why-list li{ display: flex; align-items: flex-start; gap: 14px; font-size: 1.15rem; font-weight: 500; }
.why-check{
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}

/* FAQ */
.faq-grid{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.faq-list{ display: grid; gap: 14px; }
.faq-item{
  background: var(--white);
  border: 1.5px solid rgba(25,19,32,0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; padding: 18px 20px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--ink);
  text-align: left;
}
.faq-icon{
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.faq-item[data-open="true"] .faq-icon{ transform: rotate(45deg); background: var(--red); color: var(--white); }
.faq-answer{ max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; }
.faq-item[data-open="true"] .faq-answer{ max-height: 220px; padding: 0 20px 20px; }
.faq-answer p{ margin: 0; color: var(--ink-soft); }

/* Final CTA */
.final-cta{
  background: #FFE3E9;
  color: var(--ink);
  text-align: center;
  padding: 130px 28px;
}
.final-title{ font-size: clamp(3rem, 8vw, 5.2rem); color: var(--ink); }
.final-sub{ font-size: 1.2rem; margin: 18px 0 40px; color: var(--ink-soft); }

/* Footer */
.footer{ background: var(--ink); color: rgba(255,255,255,0.75); }
.footer-inner{ padding: 44px 28px 36px; text-align: center; }
.footer-brand{ font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin: 0; }
.footer-copy{ margin: 10px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.45); }

/* =============================================================
   Responsive
============================================================= */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; text-align: center; }
  .hero-copy{ margin: 0 auto; }
  .hero-actions{ justify-content: center; }
  .hero-visual{ margin-top: 20px; }
  .what-grid{ grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px){
  .build-grid{ grid-template-columns: repeat(2, 1fr); }
  .timeline{ grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline-line{ display: none; }
  .faq-grid{ grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px){
  .nav-toggle{ display: flex; }
  .nav-links{
    position: fixed; top: 74px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 28px 26px;
    border-bottom: 1px solid rgba(25,19,32,0.08);
    transform: translateY(-130%); opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open{ transform: translateY(0); opacity: 1; }
  .nav-links a{ padding: 14px 0; border-bottom: 1px solid rgba(25,19,32,0.08); }
  .nav-links a::after{ display: none; }
  .nav-cta{ text-align: center; margin-top: 12px; }

  .hero{ padding: 80px 22px 70px; }
  .build-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .btn-huge{ font-size: 1.05rem; padding: 18px 30px; }
  .final-cta{ padding: 100px 20px; }
  .reward-photo{ width: 42%; }
}
