/* =========================================================
   Bodora — design tokens
   ========================================================= */
:root{
  --ink:        #070911;   /* page background — cool near-black */
  --surface:    #10131f;   /* raised surfaces / cards */
  --surface-2:  #161a2c;   /* nested surfaces */
  --line:       #262c48;   /* hairline borders */
  --line-soft:  #1a1f34;

  --paper:      #e9ebf5;   /* primary text — broken white */
  --paper-dim:  #9aa0c2;   /* secondary text */
  --paper-faint:#7c86ad;   /* tertiary / meta text — tuned for 4.5:1 AA contrast on --ink */

  --violet:     #5269ee;   /* primary accent — brand blue */
  --violet-2:   #7186f0;   /* lighter accent, hover / active states */
  --violet-tint:#a3b1ff;   /* text tint on dark — brand light tint */
  --brand-indigo:#1B2752;  /* exact brand indigo, logo badge background */

  --success:    #7fd9b0;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --container: 1120px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body.intro-lock{ overflow: hidden; }

/* =========================================================
   Intro sequence — plays once per session, skippable,
   disabled entirely under prefers-reduced-motion.
   ========================================================= */
.intro{
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  opacity: 1;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.intro.is-done{
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.intro__stage{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.intro__scene{
  width: min(64vmin, 440px);
  height: min(64vmin, 440px);
  perspective: 1000px;
}

.intro__group{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: introSpin 3.6s cubic-bezier(.16,.7,.2,1) both;
}
@keyframes introSpin{
  0%{ transform: rotateX(10deg) rotateY(-34deg) scale(2.6); }
  100%{ transform: rotateX(10deg) rotateY(8deg) scale(1); }
}

.orb{
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--size, 18px);
  height: var(--size, 18px);
  border-radius: 50%;
  transform: translate3d(var(--x, 0), var(--y, 0), var(--z, 0)) translate(-50%, -50%);
  background: radial-gradient(circle at 32% 26%, #c3caff, var(--violet-2) 55%, var(--violet) 100%);
  box-shadow: 0 0 14px rgba(113,134,240,0.4);
  opacity: 0;
  animation: orbIn 3.6s cubic-bezier(.16,1,.3,1) both;
}
.orb[data-i="0"]{ animation-delay: 0.34s; }
.orb[data-i="1"]{ animation-delay: 0.42s; }
.orb[data-i="2"]{ animation-delay: 0.5s; }
.orb[data-i="3"]{ animation-delay: 0.58s; }
.orb[data-i="4"]{ animation-delay: 0.66s; }
.orb[data-i="5"]{ animation-delay: 0.74s; }
@keyframes orbIn{
  0%{ opacity: 0; }
  60%{ opacity: 0; }
  80%{ opacity: 1; }
  100%{ opacity: 1; }
}

.orb--core{
  --size: 46px;
  --x: 0px; --y: 0px; --z: 0px;
  background: radial-gradient(circle at 34% 28%, #eef0ff, var(--violet-2) 55%, var(--brand-indigo) 100%);
  box-shadow: 0 0 54px rgba(113,134,240,0.75);
  opacity: 1;
  animation: none;
}

.intro__word{
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--paper-dim);
  opacity: 0;
  transform: translateY(8px);
  animation: introWord 3.6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes introWord{
  0%{ opacity: 0; transform: translateY(8px); }
  68%{ opacity: 0; transform: translateY(8px); }
  86%{ opacity: 1; transform: translateY(0); }
  100%{ opacity: 1; transform: translateY(0); }
}

.intro__skip{
  position: absolute;
  right: 28px;
  bottom: 28px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper-dim);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 9px 16px;
  cursor: pointer;
  opacity: 0;
  animation: introSkipIn 3.6s both;
  transition: border-color 0.2s, color 0.2s;
}
.intro__skip:hover{ border-color: var(--violet-2); color: var(--paper); }
@keyframes introSkipIn{
  0%{ opacity: 0; }
  20%{ opacity: 0.7; }
  100%{ opacity: 0.7; }
}

body{
  margin:0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5em;
}

a{ color: inherit; }

:focus-visible{
  outline: 2px solid var(--violet-2);
  outline-offset: 3px;
}

/* =========================================================
   Layout helpers
   ========================================================= */
main > section{
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px;
}

@media (max-width: 720px){
  main > section{ padding: 64px 24px; }
}

/* =========================================================
   Nav
   ========================================================= */
.nav{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 32px;
  background: rgba(8,7,10,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__logo{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.nav__mark{ width: 30px; height: 30px; flex-shrink: 0; }

.nav__wordmark{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.nav__links{ display: flex; gap: 24px; }
.nav__links a{
  position: relative;
  font-size: 14px;
  text-decoration: none;
  color: var(--paper-dim);
  transition: color 0.2s;
  padding-bottom: 3px;
}
.nav__links a::after{
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--violet-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover{ color: var(--paper); }
.nav__links a:hover::after,
.nav__links a.is-active::after{ transform: scaleX(1); }
.nav__links a.is-active{ color: #fff; }

/* Scroll progress */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--violet-2));
  z-index: 100;
  transition: width 0.1s linear;
}

@media (max-width: 640px){
  .nav{ padding: 16px 18px; }
  .nav__wordmark{ font-size: 16px; }
  .nav__mark{ width: 26px; height: 26px; }
  .nav__links{ gap: 11px; }
  .nav__links a{ font-size: 12px; }
}

@media (max-width: 420px){
  .nav__links{ gap: 7px; }
  .nav__links a{ font-size: 10.8px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{ position: relative; }

/* Scroll-driven stage: a tall scroller with a sticky, full-viewport
   network that stays centered on screen while its state advances
   through three "beats" as the visitor scrolls. */
.hero__scroller{
  position: relative;
  height: 320vh;
}

.hero__stage{
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  --mx: 50%;
  --my: 42%;
}

.hero__stage::before{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(640px circle at var(--mx) var(--my), rgba(113,134,240,0.12), transparent 62%);
  pointer-events: none;
}

.net--hero{
  position: relative;
  width: min(70vmin, 620px);
  height: min(70vmin, 620px);
  overflow: visible;
  --rx: 0deg;
  --ry: 0deg;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.3s ease-out;
}

.net__line{
  stroke: var(--violet);
  stroke-width: 1.5;
  opacity: 0.14;
  stroke-dashoffset: var(--len);
  transition: opacity 0.6s, stroke-dashoffset 0.9s cubic-bezier(.16,1,.3,1);
}
.net__line.is-on{ opacity: 0.85; stroke-dashoffset: 0; }

.net__halo{
  fill: none;
  stroke: var(--violet-2);
  stroke-width: 1.4;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.net--hero.is-active .net__halo{
  animation: haloPulse 2.8s ease-out infinite;
}

@keyframes haloPulse{
  0%{ r: 44px; opacity: 0.3; }
  100%{ r: 84px; opacity: 0; }
}

.net__node{
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1.5;
  transition: stroke 0.5s, opacity 0.5s;
  opacity: 0.45;
  transform-box: fill-box;
  transform-origin: center;
}
.net__sat.is-on .net__node{
  stroke: var(--violet-2);
  opacity: 1;
  animation: nodePop 0.5s cubic-bezier(.16,1,.3,1) forwards;
}
.net__node--core{ fill: var(--surface-2); stroke: var(--violet-2); opacity: 1; }

@keyframes nodePop{
  0%{ transform: scale(0.85); }
  100%{ transform: scale(1); }
}

.net__icon{
  color: var(--paper-faint);
  transition: color 0.5s;
  pointer-events: none;
}
.net__sat.is-on .net__icon{ color: var(--paper); }

.net__label{
  font-family: var(--font-body);
  font-size: 14px;
  fill: var(--paper-faint);
  transition: fill 0.5s;
}
.net__sat.is-on .net__label{ fill: var(--paper-dim); }
.net__label--core{ fill: var(--violet-tint); font-size: 15px; font-weight: 600; text-anchor: middle; }

@media (max-width: 640px){
  .net__label:not(.net__label--core){ display: none; }
}

.hero__beat{
  text-align: center;
  max-width: 46ch;
  padding: 0 24px;
}

.hero__beat-eyebrow{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--violet-tint);
  opacity: 1;
  transition: opacity 0.3s;
}

.hero__beat-text{
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.4;
  color: #fdfdff;
  opacity: 1;
  transition: opacity 0.3s;
}

.hero__text{
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  text-align: center;
}

.hero__title{
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  margin-left: auto;
  margin-right: auto;
}

.hero__lead{
  color: var(--paper-dim);
  max-width: 46ch;
  font-size: 17px;
  margin: 0 auto 32px;
}

.hero__actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__note{
  font-size: 13px;
  color: var(--paper-faint);
}

/* Buttons */
.btn{
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn:active{ transform: scale(0.98); }

.btn--primary{
  background: var(--violet);
  color: #fff;
}
.btn--primary:hover{ background: var(--violet-2); }

.btn--ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn--ghost:hover{ border-color: var(--violet-2); color: #fff; }

/* =========================================================
   Mission
   ========================================================= */
.mission{ padding-top: 48px !important; padding-bottom: 48px !important; }

.mission__quote{
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.5;
  color: #f4f1f8;
  max-width: 46ch;
}

/* =========================================================
   Paths (novostavba vs stávající dům)
   ========================================================= */
.paths h2{ max-width: 22ch; }

.paths__intro{
  color: var(--paper-dim);
  max-width: 50ch;
  margin: 0 0 32px;
}

.paths__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 800px){
  .paths__grid{ grid-template-columns: 1fr; gap: 0; }
}

.path-col{
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.path-col:first-child{
  padding-left: 0;
  border-left: none;
}

@media (max-width: 800px){
  .path-col{
    padding-left: 0;
    padding-top: 28px;
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .path-col:first-child{ padding-top: 0; border-top: none; }
}

.path-col p{
  color: var(--paper-dim);
  font-size: 14px;
  margin: 0;
}

.path-col__label{
  font-family: var(--font-display);
  font-size: 19px;
  color: #fff;
  margin: 0 0 10px !important;
}

/* =========================================================
   Services
   ========================================================= */
.services h2{ max-width: 16ch; }

.services__list{
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.service-row{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 30px 0;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.3s;
}
.service-row:hover{ background: var(--surface); }

.service-row__index{
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--paper-faint);
  padding-top: 2px;
}

.service-row__body h3{
  font-size: 18px;
  margin-bottom: 8px;
}

.service-row__body p{
  color: var(--paper-dim);
  font-size: 14px;
  max-width: 56ch;
  margin: 0;
}

@media (max-width: 560px){
  .service-row{ grid-template-columns: 40px 1fr; gap: 16px; }
}

/* =========================================================
   Approach (jedna smlouva, jedna záruka)
   ========================================================= */
.approach{ padding-top: 48px !important; padding-bottom: 48px !important; }

.approach h2{ max-width: 20ch; }

.approach p{
  color: var(--paper-dim);
  max-width: 56ch;
  margin: 0;
}

.approach__points{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.approach__points li{
  font-size: 13px;
  color: var(--violet-tint);
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.approach__points li:first-child{ padding-left: 0; border-left: none; }

/* =========================================================
   Care / monthly reports
   ========================================================= */
.care{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px){
  .care{ grid-template-columns: 1fr; }
}

.care__text p{
  color: var(--paper-dim);
  max-width: 46ch;
}

.care__card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.care__card-title{
  font-size: 13px;
  color: var(--paper-faint);
  margin: 0 0 16px;
}

.care__card-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.care__card-list li{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}
.care__card-list li:last-child{ border-bottom: none; padding-bottom: 0; }

.care__card-list .ok{ color: var(--success); }

/* =========================================================
   Contact
   ========================================================= */
.contact{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

@media (max-width: 800px){
  .contact{ grid-template-columns: 1fr; }
}

.contact__info p{ color: var(--paper-dim); max-width: 40ch; }

.contact__details{
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--paper-dim);
}

.contact__form{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field{ display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--paper-dim); }

.field input,
.field select,
.field textarea{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}

.field select{ appearance: auto; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--violet-2);
}

.field__note{
  margin: 0;
  font-size: 13px;
  color: var(--violet-tint);
  min-height: 1em;
}

.field--check{
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}
.field--check input{ margin-top: 3px; accent-color: var(--violet); flex-shrink: 0; }
.field--check a{ color: var(--violet-tint); text-decoration: underline; }

/* =========================================================
   Footer
   ========================================================= */
.footer{
  border-top: 1px solid var(--line-soft);
  padding: 32px 32px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--paper-faint);
}

.footer__legal{
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.footer__legal a{
  color: var(--paper-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer__legal a:hover{ color: var(--paper-dim); }

.footer__brand{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer__mark{ width: 24px; height: 24px; }

.footer__wordmark{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  letter-spacing: 0.3px;
}
.footer__wordmark em{
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--violet-tint);
  margin-left: 4px;
  vertical-align: 1px;
}

.counter{ font-variant-numeric: tabular-nums; }

/* =========================================================
   Legal pages (privacy, terms)
   ========================================================= */
.legal{
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 120px;
}

.legal h1{ font-size: clamp(28px, 4vw, 38px); }

.legal__updated{
  color: var(--paper-faint);
  font-size: 13px;
  margin: -8px 0 0;
}

.legal__notice{
  background: rgba(82,105,238,0.08);
  border: 1px solid rgba(82,105,238,0.35);
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--paper-dim);
  margin: 28px 0 44px;
}
.legal__notice code{
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.legal h2{
  font-size: 19px;
  margin-top: 2.2em;
}

.legal p,
.legal li{
  color: var(--paper-dim);
  font-size: 15px;
  line-height: 1.75;
}

.legal ul{ padding-left: 20px; }

.legal a{ color: var(--violet-tint); text-decoration: underline; text-underline-offset: 2px; }

.legal__back{ margin-top: 56px; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.6,.2,1), transform 0.7s cubic-bezier(.2,.6,.2,1);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
