/* ═══ LUMIDENT — premium scroll experience ═══ */

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

:root {
  --bg:        #0a0e1a;
  --bg-soft:   #0f1524;
  --gold:      #c9a962;
  --gold-soft: #e8d5a3;
  --pearl:     #f4f1ea;
  --text:      #d8d5cc;
  --text-dim:  #8a877f;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* subtelny szum */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.028'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 3;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; color: var(--gold-soft); }

/* ═══ PROGRESS ═══ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 100;
  transition: width .1s linear;
}

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 26px 48px;
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(10, 14, 26, .82);
  backdrop-filter: blur(16px);
  padding: 16px 48px;
  border-bottom: 1px solid rgba(201, 169, 98, .12);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .35em;
  color: var(--pearl);
}
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav__links a { color: var(--text-dim); transition: color .3s; }
.nav__links a:hover { color: var(--gold-soft); }
.nav__cta {
  color: var(--gold) !important;
  border: 1px solid rgba(201, 169, 98, .4);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background .3s, color .3s !important;
}
.nav__cta:hover { background: var(--gold); color: var(--bg) !important; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; padding: 4px; }
.nav__burger span { width: 26px; height: 1.5px; background: var(--pearl); transition: transform .3s, opacity .3s; }

/* ═══ STAGE — sticky central tooth ═══ */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  transition: transform 1s cubic-bezier(.3,.8,.3,1), opacity .7s ease, visibility .7s;
}
/* hero: kompozycja asymetryczna — ząb po prawej, tekst po lewej */
@media (min-width: 1021px) {
  body[data-section="hero"] .stage { transform: translateX(24vw); }
}
.stage__glow {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,98,.13) 0%, rgba(201,169,98,.04) 45%, transparent 70%);
  transition: opacity .8s, transform .8s;
}
.stage__ring {
  position: absolute;
  border: 1px solid rgba(201,169,98,.14);
  border-radius: 50%;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1), opacity .8s;
}
.stage__ring--1 { width: 440px; height: 440px; }
.stage__ring--2 { width: 560px; height: 560px; border-style: dashed; opacity: .5; }

.tooth-wrap {
  width: 300px;
  will-change: transform;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
}
.stage__shadow {
  position: absolute;
  width: 210px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  transform: translateY(185px);
  will-change: transform, opacity;
}
.tooth { width: 100%; height: auto; overflow: visible; }

/* warstwy zęba — sterowane przez data-section na body */
.tooth__implant, .tooth__aligner, .tooth__sparkles { opacity: 0; transition: opacity .9s ease; }
.tooth__implant { transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }

body[data-section="implant"] .tooth__implant { opacity: 1; transform: translateY(0); }
body[data-section="aligner"] .tooth__aligner { opacity: 1; }
body[data-section="estetyka"] .tooth__sparkles { opacity: 1; }
body[data-section="estetyka"] .tooth__crown { filter: brightness(1.12); }
.tooth__crown { transition: filter .9s ease; }

body[data-section="tech"] .stage,
body[data-section="quotes"] .stage,
body[data-section="contact"] .stage { opacity: 0; visibility: hidden; }

.sparkle { animation: twinkle 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.sparkle.s2 { animation-delay: .5s; }
.sparkle.s3 { animation-delay: 1.1s; }
@keyframes twinkle {
  0%, 100% { opacity: .2; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* gwiezdne iskry — krótkie błyski na krawędziach fasetek */
.star {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: starpop 7s ease-in-out infinite;
}
.star.st2 { animation-duration: 8.5s; animation-delay: 2.1s; }
.star.st3 { animation-duration: 6.5s; animation-delay: 4.3s; }
.star.st4 { animation-duration: 9s;   animation-delay: 5.6s; }
@keyframes starpop {
  0%, 90%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); }
  93% { opacity: .95; transform: scale(1.15) rotate(18deg); }
  96% { opacity: .4; transform: scale(.8) rotate(32deg); }
}

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

/* ═══ HERO ═══ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
}
@media (min-width: 1021px) {
  .hero { align-items: flex-start; text-align: left; padding-left: 10vw; }
  .hero__title { align-items: flex-start; }
  .hero__actions { justify-content: flex-start; }
}
.hero__eyebrow {
  font-size: .75rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 9vw, 7rem);
  line-height: 1.02;
  color: var(--pearl);
  display: flex;
  flex-direction: column;
}
.hero__title em { font-weight: 400; }
.hero__sub {
  margin-top: 32px;
  font-size: 1.02rem;
  color: var(--text-dim);
  font-weight: 300;
}
.hero__actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: .68rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.55); opacity: .4; }
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 100px;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .35s;
  border: 1px solid transparent;
}
.btn--gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #14100a; }
.btn--gold:hover { box-shadow: 0 8px 32px rgba(201,169,98,.35); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(244,241,234,.25); color: var(--pearl); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--outline-gold { border-color: rgba(201,169,98,.5); color: var(--gold); }
.btn--outline-gold:hover { background: var(--gold); color: #14100a; }
.btn--lg { padding: 19px 48px; font-size: .9rem; }

/* ═══ PANELS — treść scrollująca obok zęba ═══ */
.panel {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 8vw;
}
.panel--left  { justify-content: flex-start; }
.panel--right { justify-content: flex-end; }
.panel__content { max-width: 460px; }

.panel__eyebrow {
  font-size: .72rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.panel__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  color: var(--pearl);
  margin-bottom: 24px;
}
.panel__text { color: var(--text-dim); font-size: .98rem; margin-bottom: 26px; }
.panel__list { list-style: none; margin-bottom: 34px; }
.panel__list li {
  padding: 11px 0 11px 28px;
  position: relative;
  font-size: .92rem;
  border-bottom: 1px solid rgba(244,241,234,.07);
}
.panel__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.panel__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1;
}
.stat span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }

/* ═══ TECH ═══ */
.tech {
  position: relative;
  z-index: 2;
  background: var(--bg-soft);
  padding: 140px 8vw;
  border-top: 1px solid rgba(201,169,98,.1);
  border-bottom: 1px solid rgba(201,169,98,.1);
}
.tech__inner { max-width: 1180px; margin: 0 auto; }
.tech__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--pearl);
  text-align: center;
  margin-bottom: 72px;
}
.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,169,98,.14);
  border: 1px solid rgba(201,169,98,.14);
}
.tech__card {
  background: var(--bg-soft);
  padding: 44px 32px;
  transition: background .4s;
}
.tech__card:hover { background: #131a2e; }
.tech__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: .1em;
}
.tech__card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pearl);
  margin-bottom: 12px;
}
.tech__card p { font-size: .87rem; color: var(--text-dim); }

/* ═══ QUOTES ═══ */
.quotes { position: relative; z-index: 2; padding: 150px 8vw; }
.quotes__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--pearl);
  margin-bottom: 24px;
}
.quote p::before { content: ''; display: block; width: 48px; height: 1px; background: var(--gold); margin-bottom: 28px; }
.quote footer { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }

/* ═══ CONTACT ═══ */
.contact {
  position: relative;
  z-index: 2;
  padding: 150px 8vw 130px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,169,98,.09), transparent),
    var(--bg);
}
.contact__inner { max-width: 860px; margin: 0 auto; }
.contact__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  color: var(--pearl);
  margin-bottom: 20px;
}
.contact__sub { color: var(--text-dim); margin-bottom: 56px; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,169,98,.16);
  border: 1px solid rgba(201,169,98,.16);
  margin-bottom: 56px;
}
.contact__card {
  background: var(--bg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .4s;
}
a.contact__card:hover { background: var(--bg-soft); }
.contact__label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.contact__value { font-family: var(--serif); font-size: 1.3rem; color: var(--pearl); line-height: 1.3; }

/* ═══ FOOTER ═══ */
.footer { position: relative; z-index: 2; border-top: 1px solid rgba(244,241,234,.08); padding: 40px 8vw; }
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer p { font-size: .78rem; color: var(--text-dim); }
.footer a { color: var(--gold); }

/* ═══ REVEAL ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
.reveal.d4 { transition-delay: .48s; }
.reveal.d5 { transition-delay: .6s; }
.reveal.d6 { transition-delay: .9s; }

/* panel content reveals */
.panel__content > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.panel.in-view .panel__content > * { opacity: 1; transform: none; }
.panel.in-view .panel__content > *:nth-child(1) { transition-delay: 0s; }
.panel.in-view .panel__content > *:nth-child(2) { transition-delay: .1s; }
.panel.in-view .panel__content > *:nth-child(3) { transition-delay: .2s; }
.panel.in-view .panel__content > *:nth-child(4) { transition-delay: .3s; }
.panel.in-view .panel__content > *:nth-child(5) { transition-delay: .4s; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1020px) {
  .tech__grid { grid-template-columns: 1fr 1fr; }
  .quotes__inner { grid-template-columns: 1fr; gap: 56px; }
  .tooth-wrap { width: 230px; }
  .stage__ring--1 { width: 340px; height: 340px; }
  .stage__ring--2 { width: 430px; height: 430px; }
}

@media (max-width: 820px) {
  .nav { padding: 20px 24px; }
  .nav.scrolled { padding: 14px 24px; }
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10,14,26,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__burger { display: flex; z-index: 95; }
  .nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

  /* na mobile ząb za treścią, przygaszony */
  .stage { opacity: .35; }
  body[data-section="hero"] .stage { opacity: 1; }
  .tooth-wrap { width: 200px; }

  .panel { padding: 90px 24px; min-height: 88vh; }
  .panel--left, .panel--right { justify-content: center; }
  .panel__content {
    max-width: 520px;
    background: rgba(10,14,26,.72);
    backdrop-filter: blur(6px);
    padding: 32px 28px;
    border: 1px solid rgba(201,169,98,.14);
    border-radius: 4px;
  }

  .tech { padding: 90px 24px; }
  .tech__grid { grid-template-columns: 1fr; }
  .quotes { padding: 90px 24px; }
  .quote p { font-size: 1.3rem; }
  .contact { padding: 100px 24px 90px; }
  .contact__grid { grid-template-columns: 1fr; }
  .panel__stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .panel__content > * { transition: none; opacity: 1; transform: none; }
  .tooth-wrap { transition: none; }
  .sparkle, .hero__scroll-line { animation: none; }
}
