/* landing.html page styles (moved out of the inline <style> block for the CSP). */
body { font-family: 'Plus Jakarta Sans', sans-serif; }

/* Signed-in visitors (landing.js sets html.signed-in from /api/auth/session) see "Kabinet"
   instead of the sign-in / sign-up buttons. */
.member-only { display: none !important; }
.signed-in .member-only { display: inline-flex !important; }
.signed-in .guest-only { display: none !important; }

/* Motion Keyframes */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float-reverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-1deg); }
}
@keyframes pulse-subtle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.04); }
}
@keyframes glow-shift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}
@keyframes shine-sweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}
.animate-float-delayed {
    animation: float-reverse 7s ease-in-out infinite 1.5s;
}
.animate-glow {
    animation: pulse-subtle 8s ease-in-out infinite;
}

.shine-button {
    background-size: 200% auto;
    background-image: linear-gradient(110deg, #2563eb 0%, #4f46e5 25%, #60a5fa 50%, #4f46e5 75%, #2563eb 100%);
    animation: shine-sweep 4s linear infinite;
}

.glass-header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 1. Retro Grid with Horizon Fade (21st.dev inspired) */
.retro-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.45;
    background-image: 
        linear-gradient(to right, rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 15%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 15%, #000 40%, transparent 85%);
}

/* 2. Border Beam Effect (Magic UI / 21st.dev) */
.border-beam-wrapper {
    position: relative;
    padding: 2px;
    border-radius: 1.75rem;
    overflow: hidden;
}
.border-beam-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, transparent 70%, #3b82f6 80%, #6366f1 90%, #a855f7 96%, transparent 100%);
    animation: rotate-beam 5s linear infinite;
    z-index: 1;
}
.border-beam-wrapper-fast::before {
    animation-duration: 3.5s;
}
@keyframes rotate-beam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.border-beam-inner {
    position: relative;
    z-index: 2;
    border-radius: calc(1.75rem - 2px);
    background: #ffffff;
    height: 100%;
    width: 100%;
}

/* 3. Live Velocity Marquee */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 45s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}

/* 4. Spotlight Card (Mouse follow glow) */
.spotlight-card {
    position: relative;
    border-radius: 1.5rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.85);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(59, 130, 246, 0.12), transparent 75%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}
.spotlight-card:hover::before {
    opacity: 1;
}
.spotlight-card:hover {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 20px 35px -10px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

/* 5. Crosshair Corner Markers */
.corner-crosshair {
    position: absolute;
    font-family: monospace;
    font-size: 11px;
    color: #94a3b8;
    pointer-events: none;
    user-select: none;
    z-index: 2;
}

/* 6. Radar & Circuit Flow Keyframes */
@keyframes radar-sweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.radar-sweep-hand {
    animation: radar-sweep 3.5s linear infinite;
    transform-origin: center;
}
@keyframes pulse-ring {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}
.pulse-sonar {
    animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes flow-circuit {
    0% { stroke-dashoffset: 120; }
    100% { stroke-dashoffset: 0; }
}
.circuit-flow-path {
    stroke-dasharray: 6 10;
    animation: flow-circuit 2s linear infinite;
}

/* ================= Motion design (landing.js adds these classes only when motion is welcome) ================= */
.reveal-init { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-init.is-visible { opacity: 1; transform: none; }

/* How-it-works: the connecting line draws itself, the step icons pop in */
.steps-line-fill { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.65,0,.35,1) .2s; }
.steps-line.is-drawn .steps-line-fill { transform: scaleX(1); }
.step-card.is-visible .step-dot { animation: step-pop .6s cubic-bezier(.34,1.56,.64,1) both; animation-delay: inherit; }
@keyframes step-pop { from { transform: scale(.6) rotate(-8deg); } to { transform: none; } }
.step-dot { transition: transform .3s ease; }
.step-card:hover .step-dot { transform: translateY(-4px) rotate(-4deg); }

/* Hero demo: looked-up company card and new calculator rows slide in */
.demo-pop { animation: demo-pop .5s cubic-bezier(.2,.8,.2,1); }
@keyframes demo-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.demo-row-in { animation: demo-row .35s ease-out; }
@keyframes demo-row { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Feature cards tilt smoothly (transform set by landing.js) */
.tilt-card { transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }

/* Headline gradient drifts slowly */
.bg-clip-text { background-size: 200% auto; animation: headline-drift 8s ease-in-out infinite alternate; }
@keyframes headline-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
    .reveal-init { opacity: 1; transform: none; transition: none; }
    .steps-line-fill { transform: none; transition: none; }
    .marquee-track, .bg-clip-text, .animate-float, .animate-float-delayed, .animate-glow,
    .demo-pop, .demo-row-in, .step-card.is-visible .step-dot { animation: none !important; }
}

/* Honeypot: off-screen for people and screen readers (aria-hidden), filled only by bots */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

