/* klickfertig24 — motion layer styles (see js/fx.js). */

/* aurora: three slow fields of light behind every hero */
.aurora { position: absolute; inset: -10% -10% 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 46vw; height: 46vw; max-width: 780px; max-height: 780px; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.aurora i:nth-child(1) { left: 8%; top: 4%; background: var(--a1); }
.aurora i:nth-child(2) { right: 4%; top: 18%; background: var(--a2); opacity: 0.38; }
.aurora i:nth-child(3) { left: 38%; top: 46%; background: #6d5bff; opacity: 0.28; width: 34vw; height: 34vw; }
@media (prefers-reduced-motion: no-preference) {
  .aurora i:nth-child(1) { animation: aur1 22s ease-in-out infinite alternate; }
  .aurora i:nth-child(2) { animation: aur2 26s ease-in-out infinite alternate; }
  .aurora i:nth-child(3) { animation: aur3 19s ease-in-out infinite alternate; }
}
@keyframes aur1 { to { transform: translate(18vw, 10vh) scale(1.25); } }
@keyframes aur2 { to { transform: translate(-22vw, 14vh) scale(0.85); } }
@keyframes aur3 { to { transform: translate(-12vw, -18vh) scale(1.3); } }
.aurora::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--bg)); }

/* words that arrive */
.is-split .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .is-split .w { opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(10px); }
  .words-in .w { opacity: 1; transform: none; filter: none; transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease); transition-delay: calc(var(--wi) * 55ms + 80ms); }
}

.pill b { white-space: nowrap; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--a1), var(--a2)); pointer-events: none; }

/* light under the cursor */
.spot { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(520px circle at var(--x, -999px) var(--y, -999px), color-mix(in oklab, var(--a1) 12%, transparent), transparent 60%); }
main, .site-footer { position: relative; z-index: 1; }

/* phones in the home hero spread as you scroll and follow the mouse */
.fan { --sp: 0; --mx: 0; --my: 0; }
.fan .phone { transition: transform 600ms var(--ease); }
.fan .phone:nth-child(1) { transform: translateX(calc(-74% - var(--sp) * 22%)) translateY(calc(36px + var(--sp) * 30px)) rotate(calc(-8deg - var(--sp) * 6deg)) translate(calc(var(--mx) * -26px), calc(var(--my) * -18px)); }
.fan .phone:nth-child(2) { transform: translateY(calc(var(--sp) * -40px)) translate(calc(var(--mx) * 14px), calc(var(--my) * 10px)); }
.fan .phone:nth-child(3) { transform: translateX(calc(74% + var(--sp) * 22%)) translateY(calc(36px + var(--sp) * 30px)) rotate(calc(8deg + var(--sp) * 6deg)) translate(calc(var(--mx) * -26px), calc(var(--my) * -18px)); }
@media (max-width: 640px) {
  .fan .phone:nth-child(1) { transform: translateX(calc(-46% - var(--sp) * 10%)) rotate(-8deg) translateY(40px) scale(0.88); }
  .fan .phone:nth-child(3) { transform: translateX(calc(46% + var(--sp) * 10%)) rotate(8deg) translateY(40px) scale(0.88); }
}

/* tilt needs depth on its container */
.bento, .branches, .plans, .steps, .devices, .calc { perspective: 1400px; }
[data-tilt] { transform-style: preserve-3d; will-change: rotate; }

/* animated border light on the highlighted cards */
.ring { position: relative; isolation: isolate; }
.ring::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang, 0deg), transparent 0 55%, var(--a1) 70%, var(--a2) 80%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@media (prefers-reduced-motion: no-preference) { .ring::after { animation: ring 6s linear infinite; } }
@keyframes ring { to { --ang: 360deg; } }

/* big drifting type */
.drift { overflow: clip; padding-block: clamp(32px, 5vw, 72px); border-block: 1px solid var(--line); }
.drift p { white-space: nowrap; font-size: clamp(3.6rem, 1.5rem + 9vw, 11rem); font-weight: 750; letter-spacing: -0.06em; line-height: 0.95; will-change: transform; }
.drift p + p { margin-top: 0.08em; }
.drift .o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.38); }
.drift .a { color: var(--a1); }

/* sticky story (home): one phone, four screens, the step in view lights up */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story__stage { position: sticky; top: calc(var(--header-h) + 40px); height: calc(100svh - var(--header-h) - 80px); display: grid; place-items: center; }
.story__stage .phone { width: min(300px, 70%); }
.story__screen { position: absolute; inset: 0; opacity: 0; transform: scale(0.96); transition: opacity 500ms ease, transform 600ms var(--ease); }
.story__screen.is-on { opacity: 1; transform: none; }
.story__rail { position: absolute; left: -28px; top: 10%; bottom: 10%; width: 2px; background: var(--line); border-radius: 2px; }
.story__rail i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: top; transform: scaleY(calc(var(--story, 0) * 1)); background: linear-gradient(var(--a1), var(--a2)); transition: transform 500ms var(--ease); }
.story__steps { display: grid; }
.story__step { min-height: 72svh; display: grid; align-content: center; gap: 16px; opacity: 0.28; transition: opacity 400ms ease; position: relative; }
.story__step.is-on { opacity: 1; }
.story__num { font-size: 0.95rem; font-weight: 600; color: var(--a1); }
.story__step h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.story__step p { color: var(--text-2); font-size: var(--fs-lead); max-width: 34ch; }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__stage { display: none; }
  .story__step { min-height: 0; opacity: 1; padding-block: 28px; border-top: 1px solid var(--line); }
}

/* screens inside the story phone */
.call { height: 100%; display: grid; align-content: space-between; justify-items: center; padding: 28cqw 8cqw 14cqw; background: radial-gradient(ellipse at 50% 0%, color-mix(in oklab, var(--a1) 55%, #111), #0b0c12 70%); color: #fff; text-align: center; }
.call__who { display: grid; gap: 2cqw; justify-items: center; }
.call__who b { font-size: 8cqw; letter-spacing: -0.03em; }
.call__who span { font-size: 4.4cqw; opacity: 0.75; }
.call__avatar { width: 26cqw; height: 26cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); margin-bottom: 4cqw; }
.call__avatar .logo-mark { width: 14cqw; height: 14cqw; border-radius: 4cqw; }
.call__btns { display: flex; gap: 18cqw; }
.call__btns i { width: 17cqw; height: 17cqw; border-radius: 50%; display: block; }
.call__btns i:first-child { background: #ef4444; }
.call__btns i:last-child { background: #22c55e; }
@media (prefers-reduced-motion: no-preference) { .story__screen.is-on .call__btns i:last-child { animation: ringpulse 1.4s ease-out infinite; } }
@keyframes ringpulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); } 100% { box-shadow: 0 0 0 7cqw rgba(34, 197, 94, 0); } }
.build { height: 100%; display: flex; flex-direction: column; gap: 3cqw; padding: 16cqw 5cqw 5cqw; background: #fff; }
.build span { display: block; border-radius: 3cqw; background: linear-gradient(90deg, #eef0f4 0%, #f8f9fb 40%, #eef0f4 80%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .story__screen.is-on .build span { animation: shimmer 1.6s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }
.live { height: 100%; display: grid; place-content: center; justify-items: center; gap: 4cqw; background: #fff; color: #10121a; text-align: center; padding: 8cqw; }
.live__badge { display: inline-flex; align-items: center; gap: 2cqw; padding: 2cqw 4cqw; border-radius: 999px; background: #dcfce7; color: #15803d; font-weight: 700; font-size: 4.4cqw; }
.live__badge::before { content: ""; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: #22c55e; }
.live__url { font-size: 6.4cqw; font-weight: 700; letter-spacing: -0.03em; }
.live__sub { font-size: 4cqw; color: #6b7280; }

/* cinematic hero footage (Higgsfield, Seedance 2.5) */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.62; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse 80% 70% at 30% 40%, rgba(6, 7, 11, 0.55), rgba(6, 7, 11, 0.2) 70%), linear-gradient(180deg, rgba(6, 7, 11, 0.55) 0%, rgba(6, 7, 11, 0.15) 40%, var(--bg) 100%); }
.hero:has(.hero-video) .aurora { opacity: 0.55; mix-blend-mode: screen; }
.hero-reel { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1400ms ease, transform 6s linear; }
.hero-reel video.is-on { opacity: 0.5; transform: scale(1); }
.hero:has(.hero-reel) .aurora { opacity: 0.6; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .hero-video, .hero-reel { display: none; } }

/* still image in a hero, slowly pushed in like a camera move */
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; pointer-events: none; transform-origin: 60% 40%; }
@media (prefers-reduced-motion: no-preference) { .hero-still, .reel__panel img { animation: kenburns 18s ease-in-out infinite alternate; } }
@keyframes kenburns { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2%, 1.5%); } }
.hero:has(.hero-still) .aurora { opacity: 0.55; mix-blend-mode: screen; }

/* showreel: three tall panels, the one under the pointer opens up */
.reel__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reel { display: flex; gap: 12px; height: clamp(420px, 62vh, 640px); }
.reel__panel { position: relative; flex: 1; min-width: 0; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: flex-grow 700ms var(--ease); isolation: isolate; }
.reel__panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 900ms var(--ease); }
.reel__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 7, 11, 0.05) 30%, rgba(6, 7, 11, 0.85)); }
.reel__panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--a1), var(--a2)); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease); }
.reel__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.4vw, 32px); display: grid; gap: 8px; }
.reel__tag { justify-self: start; font-size: 0.82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); }
.reel__panel h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.reel__panel p { color: var(--text-2); max-width: 32ch; opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .reel:hover .reel__panel { flex-grow: 0.7; }
  .reel .reel__panel:hover { flex-grow: 2.4; }
  .reel__panel:hover video { transform: scale(1); }
  .reel__panel:hover::after { transform: scaleX(1); }
  .reel__panel:hover p { opacity: 1; transform: none; }
}
@media (max-width: 860px) { .reel { flex-direction: column; height: auto; } .reel__panel { height: 300px; flex: none; } .reel__panel p { opacity: 1; transform: none; } }

/* add-on extras per branch */
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1400px; }
.extras .card { display: flex; flex-direction: column; gap: 10px; }
.xprice { align-self: flex-start; padding: 5px 11px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: #07080c; background: linear-gradient(100deg, var(--a1), var(--a2)); }
.extras .vis { margin-top: auto; }
.stamps { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 2px; }
.stamps i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); }
.stamps i.on { background: var(--a1); border-color: var(--a1); }
.stamps i:last-child { border-style: dashed; border-color: var(--a2); }
@media (max-width: 960px) { .extras { grid-template-columns: minmax(0, 1fr); } }
.xlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.xlist .card { display: grid; gap: 14px; align-content: start; }
.xlist h3 a { text-decoration: none; }
.xrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.xrow span { color: var(--text-2); }
.xrow b { white-space: nowrap; font-weight: 600; }
@media (max-width: 960px) { .xlist { grid-template-columns: minmax(0, 1fr); } }

/* icons sit in the flow, no tiles */
.card .icon { width: auto; height: auto; background: none; border: 0; margin-bottom: 16px; display: block; }
.card .icon svg { width: 30px; height: 30px; color: var(--a1); stroke-width: 1.6; }
