/* ==========================================================================
   Harriers s.r.o. — presentation site
   Light / dark auto via prefers-color-scheme. One signature gradient accent.
   ========================================================================== */

:root {
  --bg: #f3f3f6;
  --bg-soft: #e9eaef;
  --fg: #0a0a0b;
  --fg-soft: #5b5d66;
  --line: rgba(10, 10, 11, 0.10);
  --nav-bg: rgba(243, 243, 246, 0.72);

  --accent-1: #5b3df5;
  --accent-2: #0bb6d6;
  --grad: linear-gradient(110deg, var(--accent-1), var(--accent-2));

  --maxw: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #0c0d10;
    --fg: #f5f6f8;
    --fg-soft: #9a9da7;
    --line: rgba(255, 255, 255, 0.12);
    --nav-bg: rgba(10, 10, 12, 0.62);

    --accent-1: #8b7bff;
    --accent-2: #3fe0ff;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-soft);
  transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--fg); }

.nav__cta {
  color: var(--fg) !important;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__cta:hover { border-color: var(--accent-1); transform: translateY(-1px); }

/* Language switch */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.lang__btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--fg-soft);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 100px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang__btn:hover { color: var(--fg); }
.lang__btn.is-active { color: #fff; background: var(--grad); }

@media (max-width: 600px) {
  .nav__links { gap: 18px; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ---------- Buttons ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), opacity 0.25s var(--ease);
  will-change: transform;
}
.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 30px -8px var(--accent-1);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent-1); }
.btn--ghost {
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--fg); }
.btn--lg { font-size: 19px; padding: 18px 40px; }

/* ---------- Hero --------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__aura {
  position: absolute;
  top: 50%; left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%, -55%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-1) 38%, transparent), transparent 70%),
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 32%, transparent), transparent 70%);
  background-position: 30% 40%, 70% 60%;
  background-size: 70% 70%, 65% 65%;
  background-repeat: no-repeat;
  filter: blur(40px);
  opacity: 0.9;
  animation: drift 16s ease-in-out infinite alternate;
  z-index: 0;
}
@media (prefers-color-scheme: light) { .hero__aura { opacity: 0.55; } }

@keyframes drift {
  from { transform: translate(-50%, -55%) scale(1) rotate(0deg); }
  to   { transform: translate(-48%, -52%) scale(1.12) rotate(8deg); }
}

.hero__content { position: relative; z-index: 1; max-width: 880px; }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0;
}

.hero__sub {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--fg-soft);
  max-width: 560px;
  margin: 28px auto 0;
  font-weight: 400;
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--line);
  border-radius: 100px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--fg-soft);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  60% { opacity: 1; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Generic section spacing -------------------------------------- */

section { padding: clamp(90px, 14vh, 160px) 24px; }
.statement, .impact, .contact {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Soft two-blob accent aura behind each section — violet + cyan, like the
   hero / OG image, sent a different direction in each section. */
.statement::before, .impact::before, .contact::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-1) 46%, transparent), transparent 72%),
    radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 42%, transparent), transparent 72%);
  background-repeat: no-repeat;
  background-size: 66% 66%, 60% 60%;
  filter: blur(72px);
  opacity: 0.72;
  pointer-events: none;
}
@media (prefers-color-scheme: light) {
  .statement::before, .impact::before, .contact::before { opacity: 0.44; }
}
/* per-section direction: violet blob, then cyan blob */
.statement::before { background-position: 42% 28%, 58% 72%; } /* kde — top → bottom */
.impact::before    { background-position: 58% 28%, 42% 72%; } /* jak — top → bottom */
#pro-koho::before  { background-position: 34% 66%, 68% 34%; } /* pro koho — BL → TR */
.contact::before   { background-position: 30% 46%, 72% 56%; } /* kdo — L → R */
/* keep section content above the aura */
.statement > *, .impact > *, .contact > * { position: relative; z-index: 1; }

/* ---------- Statement ---------------------------------------------------- */

.statement__text {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.8rem, 5.2vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.statement__sub {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--fg-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.platforms {
  margin: clamp(40px, 6vw, 68px) auto 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 56px);
}

.pgroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.pgroup__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pgroup__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.ptile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 88px;
}
.ptile__icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--fg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.ptile__icon svg { width: 32px; height: 32px; }
.ptile:hover .ptile__icon {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-1) 55%, transparent);
  box-shadow: 0 12px 30px -14px var(--accent-1);
}
.ptile__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--fg-soft);
}
.ptile--ghost .ptile__icon {
  border-style: dashed;
  background: transparent;
  color: var(--fg-soft);
}
.ptile--ghost:hover .ptile__icon { color: var(--fg); }

/* ---------- Impact ------------------------------------------------------- */

.impact__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.impact__title {
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}
.impact__sub {
  max-width: 600px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--fg-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}
.metrics {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(40px, 8vw, 88px);
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}

.metric { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.metric__val {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric__lbl { color: var(--fg-soft); font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 500; }

/* ---------- Contact ------------------------------------------------------ */

.contact { text-align: center; padding-bottom: 36px; }
.contact__body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact__inner { max-width: var(--maxw); margin: 0 auto; }
.contact__title {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}
.contact__sub { color: var(--fg-soft); margin: 22px 0 40px; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }

/* ---------- Footer (part of last section) -------------------------------- */

.site-foot {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 28px;
}
.site-foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  text-align: left;
  color: var(--fg-soft);
  font-size: 1.02rem;
}
.site-foot__col { display: flex; flex-direction: column; gap: 5px; font-style: normal; }
.site-foot__brand { font-weight: 600; color: var(--fg); font-size: 1.12rem; }
@media (max-width: 560px) {
  .site-foot__inner { align-items: center; text-align: center; gap: 18px; }
}

/* ---------- Scroll reveal ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* stagger children within a group */
.hero__content .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero__content .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero__content .reveal:nth-child(4) { transition-delay: 0.24s; }
.metrics .metric:nth-child(2) { transition-delay: 0.1s; }
.metrics .metric:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__aura, .hero__scroll span { animation: none; }
}
