/* ==========================================================================
   ENTRY GATE – Vastelasten Desk choice screen (Business / Consumer)
   All classes are prefixed with "vg-" to prevent conflicts with existing styles.
   Colors: black + Ziggo-orange (#ff5f00).
   ========================================================================== */

@property --vg-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Locking: as long as <html> has the "vg-locked" class, only the gate is
   visible. (The critical version is also inline in index.html.) */
html.vg-locked,
html.vg-locked body {
    overflow: hidden !important;
    height: 100%;
    background: #0a0a0a;
}

html.vg-locked body > *:not(#vldGate) {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.vg {
    --vg-orange: #ff5f00;
    --vg-orange-2: #ff7a1f;
    --vg-amber: #ffb400;
    --vg-black: #0a0a0a;
    --vg-green: #2ee6b6;
    --vg-green-2: #1f9e86;

    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--vg-black);
    color: #fff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: opacity .35s cubic-bezier(.2, 0, .2, 1),
                transform .35s cubic-bezier(.2, 0, .2, 1),
                filter .35s ease-out;
}

.vg.is-leaving {
    opacity: 0;
    transform: scale(1.03);
    filter: blur(4px);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Background: orbs, halo, noise
   -------------------------------------------------------------------------- */
.vg-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.vg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    will-change: translate;
}

.vg-orb--orange {
    width: 60vmax;
    height: 60vmax;
    top: -24vmax;
    right: -18vmax;
    background: radial-gradient(circle at 35% 35%, rgba(255, 95, 0, .85), rgba(255, 95, 0, 0) 65%);
    opacity: .7;
    animation: vgFloatA 18s ease-in-out infinite alternate;
}

.vg-orb--amber {
    width: 42vmax;
    height: 42vmax;
    bottom: -20vmax;
    left: -14vmax;
    background: radial-gradient(circle, rgba(255, 180, 0, .7), rgba(255, 180, 0, 0) 65%);
    opacity: .4;
    animation: vgFloatB 22s ease-in-out infinite alternate;
}

.vg-orb--green {
    width: 30vmax;
    height: 30vmax;
    bottom: -12vmax;
    right: 8vmax;
    background: radial-gradient(circle, rgba(46, 230, 182, .6), rgba(46, 230, 182, 0) 65%);
    opacity: .22;
    animation: vgFloatC 26s ease-in-out infinite alternate;
}

.vg-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80vmin;
    height: 80vmin;
    margin: -40vmin 0 0 -40vmin;
    border-radius: 50%;
    background: conic-gradient(from var(--vg-angle),
                rgba(255, 95, 0, .55), transparent 25%,
                rgba(255, 180, 0, .4) 50%, transparent 75%,
                rgba(255, 95, 0, .55));
    filter: blur(90px);
    opacity: .35;
    animation: vgSpin 14s linear infinite;
}

.vg-noise {
    position: absolute;
    inset: 0;
    opacity: .07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Floating particles (dynamically created via JS) */
.vg-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.vg-particle {
    position: absolute;
    bottom: -12px;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 12px var(--c);
    opacity: 0;
    animation: vgParticle var(--d) linear var(--delay) infinite;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.vg-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1040px;
    margin: auto;
    padding: 48px 24px;
    text-align: center;
}

.vg-logo-wrap {
    position: relative;
    display: inline-flex;
    padding: 16px 30px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .7),
        0 0 0 8px rgba(255, 255, 255, .06),
        0 24px 60px -12px rgba(255, 95, 0, .55),
        0 0 90px rgba(255, 95, 0, .25);
    animation: vgDrop .9s cubic-bezier(.2, .9, .3, 1.2) backwards;
}

.vg-logo-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .9), transparent);
    transform: skewX(-20deg);
    animation: vgShine 5s ease-in-out 1.4s infinite;
}

.vg-logo {
    display: block;
    width: clamp(210px, 34vw, 360px);
    height: auto;
    max-width: none;
}

.vg-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 36px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 95, 0, .12);
    border: 1px solid rgba(255, 95, 0, .4);
    color: #ffb07a;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    animation: vgFadeUp .8s cubic-bezier(.2, .8, .2, 1) .25s backwards;
}

.vg-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vg-orange);
    animation: vgPulse 1.8s ease-out infinite;
}

.vg .vg-title {
    max-width: 820px;
    margin: 20px auto 16px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    animation: vgFadeUp .8s cubic-bezier(.2, .8, .2, 1) .35s backwards;
}

.vg-title-accent {
    white-space: nowrap;
    background: linear-gradient(90deg, var(--vg-orange), var(--vg-amber), var(--vg-orange));
    background-size: 200% auto;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: vgGradText 5s linear infinite;
}

.vg .vg-sub {
    max-width: 580px;
    margin: 0 auto 46px;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    animation: vgFadeUp .8s cubic-bezier(.2, .8, .2, 1) .45s backwards;
}

/* --------------------------------------------------------------------------
   Choice cards
   -------------------------------------------------------------------------- */
.vg-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.vg .vg-card {
    --mx: 50%;
    --my: 50%;
    --rx: 0deg;
    --ry: 0deg;

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 270px;
    padding: 30px 30px 28px;
    border-radius: 26px;
    text-align: left;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    outline: none;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .25s ease-out, box-shadow .35s ease, background .35s ease, translate .35s ease;
    animation: vgRise .9s cubic-bezier(.2, .8, .2, 1) backwards;
}

.vg-card--biz {
    --c1: var(--vg-green);
    --c2: var(--vg-green-2);
    --spot: rgba(46, 230, 182, .2);
    --shadow: rgba(46, 230, 182, .4);
    background: linear-gradient(160deg, rgba(46, 230, 182, .13), rgba(255, 255, 255, .025) 60%);
    animation-delay: .55s !important;
}

.vg-card--con {
    --c1: var(--vg-orange);
    --c2: var(--vg-amber);
    --spot: rgba(255, 95, 0, .28);
    --shadow: rgba(255, 95, 0, .55);
    background: linear-gradient(160deg, rgba(255, 95, 0, .24), rgba(255, 95, 0, .04) 60%);
    animation-delay: .68s !important;
}

/* Animated glow border */
.vg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--vg-angle), var(--c1), transparent 25%, transparent 50%, var(--c2) 75%, var(--c1));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: .55;
    transition: opacity .3s ease;
    animation: vgSpin 6s linear infinite;
}

/* Spotlight tracking the cursor */
.vg-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), var(--spot), transparent 45%);
    opacity: 0;
    transition: opacity .3s ease;
}

.vg .vg-card:hover,
.vg .vg-card:focus-visible {
    color: #fff;
    translate: 0 -6px;
    box-shadow: 0 30px 80px -24px var(--shadow);
}

.vg-card:hover::before,
.vg-card:focus-visible::before,
.vg-card:hover::after,
.vg-card:focus-visible::after {
    opacity: 1;
}

.vg-card--con:hover,
.vg-card--con:focus-visible {
    background: linear-gradient(160deg, rgba(255, 95, 0, .36), rgba(255, 95, 0, .08) 65%);
}

.vg-card--biz:hover,
.vg-card--biz:focus-visible {
    background: linear-gradient(160deg, rgba(46, 230, 182, .2), rgba(255, 255, 255, .04) 65%);
}

.vg-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 6px;
}

.vg-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 1.55rem;
    color: #0a0a0a;
    transition: transform .35s cubic-bezier(.2, .9, .3, 1.3);
}

.vg-card--biz .vg-card-icon {
    background: linear-gradient(135deg, var(--vg-green), var(--vg-green-2));
    box-shadow: 0 12px 30px -8px rgba(46, 230, 182, .6);
}

.vg-card--con .vg-card-icon {
    background: linear-gradient(135deg, var(--vg-orange-2), var(--vg-orange));
    box-shadow: 0 12px 30px -8px rgba(255, 95, 0, .75);
}

.vg-card:hover .vg-card-icon {
    transform: translateZ(30px) rotate(-8deg) scale(1.08);
}

.vg-card-kicker {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

.vg-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
}

.vg-card-text {
    color: rgba(255, 255, 255, .65);
    font-size: .98rem;
    line-height: 1.55;
}

.vg-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    transition: gap .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}

.vg-card--biz .vg-card-cta {
    color: var(--vg-green);
    border: 1.5px solid rgba(46, 230, 182, .6);
}

.vg-card--con .vg-card-cta {
    background: var(--vg-orange);
    color: #0a0a0a;
    box-shadow: 0 10px 30px -8px rgba(255, 95, 0, .8);
}

.vg-card:hover .vg-card-cta,
.vg-card:focus-visible .vg-card-cta {
    gap: 16px;
}

.vg-card--biz:hover .vg-card-cta,
.vg-card--biz:focus-visible .vg-card-cta {
    background: var(--vg-green);
    color: #0a0a0a;
}

.vg-card--con:hover .vg-card-cta,
.vg-card--con:focus-visible .vg-card-cta {
    background: var(--vg-orange-2);
    box-shadow: 0 14px 36px -6px rgba(255, 95, 0, .95);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
    .vg-inner {
        padding: 34px 18px 40px;
    }

    .vg-logo-wrap {
        padding: 12px 22px;
    }

    .vg-badge {
        margin-top: 26px;
    }

    .vg .vg-sub {
        margin-bottom: 30px;
    }

    .vg-choices {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vg .vg-card {
        min-height: 0;
        padding: 22px 20px 20px;
        border-radius: 22px;
        gap: 10px;
    }

    .vg-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
        font-size: 1.3rem;
    }

    .vg-card-cta {
        margin-top: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vg *,
    .vg *::before,
    .vg *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .vg-particles {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes vgFloatA {
    from { translate: 0 0; }
    to   { translate: -8vmax 10vmax; }
}

@keyframes vgFloatB {
    from { translate: 0 0; }
    to   { translate: 10vmax -6vmax; }
}

@keyframes vgFloatC {
    from { translate: 0 0; }
    to   { translate: -12vmax -8vmax; }
}

@keyframes vgSpin {
    to { --vg-angle: 360deg; }
}

@keyframes vgSpinBasic {
    to { transform: rotate(360deg); }
}

@keyframes vgParticle {
    0%   { translate: 0 0; opacity: 0; }
    10%  { opacity: .9; }
    85%  { opacity: .5; }
    100% { translate: var(--dx) -110vh; opacity: 0; }
}

@keyframes vgDrop {
    from { opacity: 0; translate: 0 -30px; scale: .9; }
    to   { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes vgFadeUp {
    from { opacity: 0; translate: 0 22px; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes vgRise {
    from { opacity: 0; translate: 0 48px; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes vgShine {
    0%, 60% { left: -60%; }
    100%    { left: 130%; }
}

@keyframes vgPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 95, 0, .7); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 95, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0); }
}

@keyframes vgGradText {
    to { background-position: 200% center; }
}
