/* Motion layer. Everything here is optional: the page reads fine without it. */
html { scroll-behavior: smooth; }

.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Sticky header that gains a backdrop once the page scrolls. */
.hero > header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 50; max-width: none; padding-left: max(56px, calc((100vw - 1320px) / 2 + 56px)); padding-right: max(56px, calc((100vw - 1320px) / 2 + 56px)); transition: background .3s, padding .3s, box-shadow .3s; }
.scrolled .hero > header { background: rgba(7, 16, 13, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px !important; padding-bottom: 14px !important; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); color: #fff; }
.hero > header + div { margin-top: 100px; }

/* Headline: words rise in on load. */
.js .hero-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.js .hero-h .w > span { display: inline-block; transform: translateY(105%); animation: dz-rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
@keyframes dz-rise { to { transform: none; } }

.js .hero-fade { opacity: 0; transform: translateY(18px); animation: dz-fade .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: var(--d, 700ms); }
@keyframes dz-fade { to { opacity: 1; transform: none; } }

/* Hero card floats and tilts toward the pointer. */
.hero-card { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; will-change: transform; }
.js .bar { width: 0 !important; transition: width 1.3s cubic-bezier(.2, .8, .2, 1); }
.js .bars-in .bar { width: var(--w) !important; }

/* Scroll reveal. */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* Chart line draws itself. */
.js .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .in .draw { transition: stroke-dashoffset 2s cubic-bezier(.3, .7, .2, 1) .3s; stroke-dashoffset: 0; }

/* Panels light up under the pointer. */
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 193, 82, .16), transparent 60%); }
.panel:hover::after { opacity: 1; }
.panel > * { position: relative; z-index: 1; }

.pill { transition: transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(244, 193, 82, .22); opacity: 1; }
.marquee:hover { animation-play-state: paused; }

@media (max-width: 1000px) {
  .navlinks { display: none !important; }
  .two { grid-template-columns: 1fr !important; }
}

@media (max-width: 760px) {
  .hero > header { padding-left: 20px; padding-right: 20px; gap: 12px !important; }
  .hero > header > div { gap: 10px !important; }
  .hero > header a[href="#iletisim"] { white-space: nowrap; padding-left: 14px !important; padding-right: 14px !important; font-size: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-h .w > span, .js .hero-fade { animation: none; transform: none; opacity: 1; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .bar { width: var(--w) !important; transition: none; }
  .js .draw { stroke-dashoffset: 0; }
  .hero-card { transform: none; }
}
