/* Design 01: Flight. Full-screen flyovers, kinetic headline, sideways reel, pinned steps. */
.dz-flight { background: #03090c; }

/* Hero */
.fl-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 120px; overflow: hidden; isolation: isolate; }
.fl-hero-stage { position: absolute; inset: 0; z-index: -1; }
.fl-hero-clip { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 7s linear; }
.fl-hero-clip.is-active { opacity: 1; transform: scale(1); }
.fl-hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(3,9,12,.55) 0%, rgba(3,9,12,0) 30%, rgba(3,9,12,.2) 55%, rgba(3,9,12,.94) 100%),
  linear-gradient(90deg, rgba(3,9,12,.7) 0%, rgba(3,9,12,0) 60%); }
.fl-hero-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; pointer-events: none; }
.fl-hero-inner { z-index: 1; }
.fl-title { margin: 18px 0 22px; font-size: clamp(48px, 9vw, 132px); line-height: .9; letter-spacing: -.055em; font-weight: 800; }
.fl-line { display: block; overflow: hidden; padding-bottom: .06em; }
.fl-title em { font-style: normal; display: inline-block; background: linear-gradient(90deg, #60f5b2, #78d6f2 55%, #ffbf87); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.fl-title em.is-swapping { opacity: 0; transform: translateY(40%); filter: blur(8px); }
.fl-lede { max-width: 56ch; font-size: clamp(16px, 1.5vw, 20px); color: #d3dfe0; margin: 0; }
.fl-rise { display: inline-block; animation: fl-rise 1s cubic-bezier(.2,.8,.2,1) both; }
.fl-lede.fl-rise, .hero-actions.fl-rise, .dz-kicker.fl-rise { display: block; }
.hero-actions.fl-rise { display: flex; }
.fl-d1 { animation-delay: .1s; } .fl-d2 { animation-delay: .22s; } .fl-d3 { animation-delay: .34s; } .fl-d4 { animation-delay: .5s; } .fl-d5 { animation-delay: .62s; }
@keyframes fl-rise { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }

.fl-hud { position: absolute; right: 24px; top: 96px; display: grid; gap: 6px; padding: 14px 16px; min-width: 250px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(3,9,12,.5); backdrop-filter: blur(10px); font: 12px/1.4 "SFMono-Regular", Consolas, monospace; color: #b8c9cb; letter-spacing: .08em; }
.fl-hud b { color: #60f5b2; font-weight: 600; }
.fl-hud-bar { height: 2px; background: rgba(255,255,255,.15); overflow: hidden; border-radius: 2px; }
.fl-hud-bar i { display: block; height: 100%; width: 0; background: #60f5b2; }
.fl-scroll { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px; transform: translateX(-50%); }
.fl-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: fl-wheel 1.8s ease-in-out infinite; }
@keyframes fl-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 760px) { .fl-hud { display: none; } .fl-hero { padding-bottom: 90px; } }

/* Marquee */
.fl-marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: #050d10; }
.fl-marquee-track { display: flex; width: max-content; gap: 28px; animation: fl-marquee 38s linear infinite; font-size: clamp(22px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.fl-marquee-track span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px rgba(244,248,247,.55); }
.fl-marquee-track i { color: #60f5b2; font-style: normal; font-size: .5em; align-self: center; }
@keyframes fl-marquee { to { transform: translateX(-50%); } }

/* Stats */
.fl-stats { padding: 70px 0; }
.fl-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fl-stats-grid > div { background: #04100f; padding: 30px 26px; }
.fl-stats-grid > div:nth-child(odd) { background: #050d10; }
.fl-stats-grid strong { display: block; font-size: clamp(38px, 4.4vw, 60px); letter-spacing: -.04em; line-height: 1; }
.fl-stats-grid > div > span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .fl-stats-grid { grid-template-columns: 1fr 1fr; } }

/* Sideways reel: the section is tall, its content sticks, and JS slides the track. */
.fl-reel { position: relative; height: 420vh; }
.fl-reel-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 28px; overflow: hidden; }
.fl-reel-head .dz-h2 { margin-bottom: 0; }
.fl-reel-track { display: flex; gap: 22px; padding-left: max(24px, calc((100vw - 1220px) / 2)); will-change: transform; }
.fl-card { position: relative; flex: 0 0 auto; width: min(62vw, 720px); aspect-ratio: 16 / 9; margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px rgba(0,0,0,.5); transform: perspective(1200px) rotateY(var(--fl-rot, 0deg)) scale(var(--fl-scale, 1)); transition: transform .2s linear; }
.fl-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-weight: 700; font-size: 20px; }
.fl-card figcaption b { color: #60f5b2; font: 12px "SFMono-Regular", Consolas, monospace; margin-right: 8px; }
.fl-card figcaption span { display: block; font-weight: 400; font-size: 14px; color: #c3d0d2; }
.fl-reel-foot { display: flex; align-items: center; gap: 18px; color: var(--muted); font: 12px "SFMono-Regular", Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.fl-reel-progress { flex: 1; height: 2px; background: var(--line); }
.fl-reel-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #60f5b2, #78d6f2); }
@media (max-width: 760px) {
  .fl-reel { height: auto; }
  .fl-reel-sticky { position: relative; height: auto; padding: 80px 0; }
  .fl-reel-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-right: 24px; transform: none !important; }
  .fl-card { width: 82vw; scroll-snap-align: center; }
  .fl-reel-foot .fl-reel-progress { display: none; }
}

/* Pinned how-it-works */
.fl-how { position: relative; height: 320vh; }
.fl-how-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.fl-how-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.fl-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.fl-steps li { display: flex; gap: 18px; padding: 18px 20px; border-radius: 14px; border: 1px solid transparent; opacity: .38; transition: opacity .5s, border-color .5s, background .5s; }
.fl-steps li.is-active { opacity: 1; border-color: var(--line-strong); background: rgba(9,24,29,.7); }
.fl-steps li > span { font: 600 13px "SFMono-Regular", Consolas, monospace; color: #60f5b2; padding-top: 4px; }
.fl-steps h3 { margin: 0 0 4px; font-size: 20px; }
.fl-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.fl-how-frames { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.fl-how-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); clip-path: inset(0 0 100% 0); transition: opacity .8s ease, transform 1.4s cubic-bezier(.2,.8,.2,1), clip-path .9s cubic-bezier(.7,0,.2,1); }
.fl-how-frames img.is-active { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.fl-how-ring { position: absolute; right: 16px; bottom: 16px; width: 120px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.fl-how-ring i { display: block; height: 100%; width: 0; background: #60f5b2; }
@media (max-width: 900px) {
  .fl-how { height: auto; }
  .fl-how-sticky { position: relative; height: auto; padding: 90px 0; }
  .fl-how-grid { grid-template-columns: 1fr; gap: 30px; }
  .fl-steps li { opacity: 1; }
}

/* Feature bento with tilt */
.fl-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 44px; }
.fl-w7 { grid-column: span 7; } .fl-w5 { grid-column: span 5; }
.fl-w12 { grid-column: span 12; }
.fl-tile-parcel img { object-position: 75% 45%; }
.fl-tile { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: #071216; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .3s; }
.fl-tile:hover { border-color: rgba(96,245,178,.5); }
.fl-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.fl-tile:hover img { transform: scale(1.14); }
.fl-tile > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; background: linear-gradient(transparent, rgba(3,9,12,.92) 45%); }
.fl-tile h3 { margin: 8px 0 4px; font-size: 26px; letter-spacing: -.02em; }
.fl-tile p { margin: 0; color: #c3d0d2; max-width: 46ch; }
@media (max-width: 900px) { .fl-w7, .fl-w5 { grid-column: span 12; } .fl-tile { min-height: 300px; } }

/* Tutorials */
.fl-tut-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.fl-tut { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #071216; }
.fl-tut video { aspect-ratio: 960 / 608; height: auto; }
.fl-tut figcaption { padding: 14px 16px; color: var(--muted); font-size: 14px; }
.fl-tut figcaption b { display: block; color: var(--ink); font-size: 16px; }
@media (max-width: 900px) { .fl-tut-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fl-tut-row { grid-template-columns: 1fr; } }

/* Final */
.fl-final { position: relative; min-height: 90svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.fl-final .dz-cover { z-index: -2; }
.fl-final-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(3,9,12,.35), rgba(3,9,12,.92) 75%); }
.fl-final-inner { text-align: center; }
.fl-final-inner .hero-actions { justify-content: center; }
.fl-how .dz-h2 { font-size: clamp(30px, 3.6vw, 54px); }
@media (min-width: 901px) and (max-height: 820px) {
  .fl-steps li:not(.is-active) p { display: none; }
  .fl-steps li { padding: 12px 16px; }
  .fl-steps { margin-top: 18px; }
}
@media (max-width: 760px) {
  .fl-hero-shade { background: linear-gradient(180deg, rgba(3,9,12,.55) 0%, rgba(3,9,12,.72) 45%, rgba(3,9,12,.96) 100%); }
}
