/* SRTTS 3D landing page. Loaded after style.css and auth.css. */
:root {
    --l3d-bg: #060918;
    --l3d-surface: rgba(255, 255, 255, .06);
    --l3d-border: rgba(255, 255, 255, .12);
    --l3d-text: #e8ecff;
    --l3d-muted: #9aa3c7;
    --l3d-primary: #4f7cff;
    --l3d-primary-dark: #2f4fc4;
    --l3d-cyan: #22d3ee;
    --l3d-violet: #8b5cf6;
    --l3d-green: #34d399;
    --l3d-amber: #fbbf24;
    --l3d-radius: 20px;
}

html {
    scroll-behavior: smooth;
}

.l3d-body {
    margin: 0;
    background: var(--l3d-bg);
    color: var(--l3d-text);
    font-family: Inter, system-ui, sans-serif;
    overflow-x: hidden;
}

.l3d-body h1,
.l3d-body h2,
.l3d-body h3 {
    font-family: "Space Grotesk", Inter, sans-serif;
    color: #fff;
}

.l3d-body main,
.l3d-topbar,
.l3d-footer {
    position: relative;
}

.l3d-body a:focus-visible,
.l3d-body button:focus-visible {
    outline: 3px solid var(--l3d-cyan);
    outline-offset: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Background */
.l3d-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at top, #121a44 0%, var(--l3d-bg) 60%);
}

.l3d-grid {
    position: absolute;
    left: -50%;
    bottom: -10%;
    width: 200%;
    height: 70%;
    background-image: linear-gradient(rgba(79, 124, 255, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 124, 255, .35) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(70deg);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, transparent, #000 40%);
    animation: l3d-grid-move 4s linear infinite;
}

@keyframes l3d-grid-move {
    to {
        background-position: 0 60px, 0 0;
    }
}

.l3d-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    animation: l3d-orb-float 14s ease-in-out infinite alternate;
}

.l3d-orb-a {
    width: 420px;
    height: 420px;
    background: var(--l3d-primary);
    top: -120px;
    left: -80px;
}

.l3d-orb-b {
    width: 360px;
    height: 360px;
    background: var(--l3d-violet);
    top: 30%;
    right: -120px;
    animation-delay: -5s;
}

.l3d-orb-c {
    width: 300px;
    height: 300px;
    background: var(--l3d-cyan);
    bottom: 10%;
    left: 30%;
    opacity: .22;
    animation-delay: -9s;
}

@keyframes l3d-orb-float {
    to {
        transform: translate3d(60px, 80px, 0) scale(1.15);
    }
}

.l3d-topbar,
.l3d-body main,
.l3d-footer {
    z-index: 1;
}

/* Navigation */
.l3d-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 5vw;
    transition: background .3s, box-shadow .3s, padding .3s;
}

.l3d-topbar.is-scrolled {
    background: rgba(6, 9, 24, .82);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    padding-block: .6rem;
}

.l3d-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--l3d-text);
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.25;
}

.l3d-brand img {
    height: 48px;
    width: auto;
    /* No box behind the logo: it sits directly on the page and blends in */
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 4px 14px rgba(79, 124, 255, .35));
}

.l3d-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}

.l3d-nav a:not(.l3d-btn) {
    color: var(--l3d-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .92rem;
    position: relative;
    transition: color .2s;
}

.l3d-nav a:not(.l3d-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--l3d-primary), var(--l3d-cyan));
    transform: scaleX(0);
    transition: transform .25s;
}

.l3d-nav a:not(.l3d-btn):hover {
    color: #fff;
}

.l3d-nav a:not(.l3d-btn):hover::after {
    transform: scaleX(1);
}

.l3d-menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.l3d-menu-toggle span {
    display: block;
    height: 2px;
    width: 24px;
    margin: 0 auto;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.l3d-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.l3d-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.l3d-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.l3d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.6rem;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transform: translateY(0);
    transition: transform .15s, box-shadow .15s, filter .2s;
}

.l3d-btn-sm {
    padding: .6rem 1.1rem;
    font-size: .9rem;
}

.l3d-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #6a92ff, var(--l3d-primary));
    box-shadow: 0 6px 0 var(--l3d-primary-dark), 0 14px 30px rgba(79, 124, 255, .35);
}

.l3d-btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 8px 0 var(--l3d-primary-dark), 0 20px 40px rgba(79, 124, 255, .4);
}

.l3d-btn-primary:active {
    transform: translateY(5px);
    box-shadow: 0 1px 0 var(--l3d-primary-dark), 0 6px 14px rgba(79, 124, 255, .3);
}

.l3d-btn-ghost {
    color: #fff;
    background: var(--l3d-surface);
    border: 1px solid var(--l3d-border);
    box-shadow: 0 6px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
}

.l3d-btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .1);
}

.l3d-btn-ghost:active {
    transform: translateY(5px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

/* Hero */
.l3d-hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 2rem 5vw 5rem;
}

.l3d-hero-copy {
    min-width: 0;
}

.l3d-eyebrow {
    display: inline-block;
    padding: .4rem .9rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--l3d-cyan);
    background: rgba(34, 211, 238, .1);
    border: 1px solid rgba(34, 211, 238, .3);
}

.l3d-hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.08;
    margin: 1.2rem 0 1rem;
    text-shadow: 0 2px 0 #9fb2ff, 0 4px 0 #5a77f0, 0 12px 30px rgba(0, 0, 0, .5);
}

.l3d-gradient-text {
    background: linear-gradient(90deg, var(--l3d-cyan), var(--l3d-primary), var(--l3d-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.l3d-tagline {
    display: flex;
    gap: .6rem;
    margin-bottom: 1rem;
}

.l3d-tagline span {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    opacity: 0;
    transform: translateY(20px) rotateX(-90deg);
    animation: l3d-flip-in .7s forwards;
}

.l3d-tagline span:nth-child(1) {
    animation-delay: .2s;
    color: var(--l3d-cyan);
}

.l3d-tagline span:nth-child(2) {
    animation-delay: .45s;
    color: var(--l3d-primary);
}

.l3d-tagline span:nth-child(3) {
    animation-delay: .7s;
    color: var(--l3d-violet);
}

@keyframes l3d-flip-in {
    to {
        opacity: 1;
        transform: none;
    }
}

.l3d-hero p {
    color: var(--l3d-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 34rem;
}

.l3d-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Floating ticket stack */
.l3d-stage {
    perspective: 1200px;
    height: 440px;
    display: grid;
    place-items: center;
    min-width: 0;
}

.l3d-stack {
    position: relative;
    width: min(380px, 90%);
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(calc(14deg + var(--rx, 0deg))) rotateY(calc(-18deg + var(--ry, 0deg)));
    transition: transform .2s ease-out;
    animation: l3d-bob 6s ease-in-out infinite;
}

@keyframes l3d-bob {
    50% {
        translate: 0 -14px;
    }
}

.l3d-ticket {
    position: absolute;
    inset: 0;
    height: max-content;
    padding: 1.3rem 1.4rem;
    border-radius: var(--l3d-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
    border: 1px solid var(--l3d-border);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

.l3d-ticket small {
    color: var(--l3d-muted);
}

.l3d-ticket-back {
    transform: translate3d(40px, -70px, -120px);
    opacity: .55;
}

.l3d-ticket-mid {
    transform: translate3d(20px, -35px, -60px);
    opacity: .8;
}

.l3d-ticket-front {
    transform: translate3d(0, 40px, 30px);
    background: linear-gradient(145deg, rgba(79, 124, 255, .3), rgba(139, 92, 246, .18));
    border-color: rgba(122, 156, 255, .45);
}

.l3d-ticket-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--l3d-cyan);
    margin-bottom: .7rem;
}

.l3d-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.l3d-ticket-head strong {
    font-size: .88rem;
}

.l3d-chip {
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    white-space: nowrap;
}

.l3d-chip-now {
    background: rgba(34, 211, 238, .18);
    color: var(--l3d-cyan);
}

.l3d-chip-review {
    background: rgba(251, 191, 36, .16);
    color: var(--l3d-amber);
}

.l3d-chip-done {
    background: rgba(52, 211, 153, .16);
    color: var(--l3d-green);
}

.l3d-progress {
    margin-top: 1.1rem;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.l3d-progress span {
    display: block;
    width: 62%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--l3d-cyan), var(--l3d-primary));
    animation: l3d-fill 1.6s ease-out;
}

@keyframes l3d-fill {
    from {
        width: 0;
    }
}

.l3d-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: .6rem;
}

.l3d-progress-steps i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
}

.l3d-progress-steps i.done {
    background: var(--l3d-cyan);
    box-shadow: 0 0 10px var(--l3d-cyan);
}

.l3d-float-badge {
    position: absolute;
    right: -24px;
    bottom: -40px;
    padding: .6rem 1rem;
    border-radius: 14px;
    font-size: .85rem;
    font-weight: 700;
    color: #052e1f;
    background: linear-gradient(180deg, #6ee7b7, var(--l3d-green));
    box-shadow: 0 5px 0 #059669, 0 18px 30px rgba(52, 211, 153, .25);
    transform: translateZ(90px);
    animation: l3d-badge 3s ease-in-out infinite;
}

@keyframes l3d-badge {
    50% {
        translate: 0 -10px;
    }
}

/* Sections and cards */
.l3d-section {
    position: relative;
    padding: 5rem 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

.l3d-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin: 0;
}

.l3d-subtitle {
    text-align: center;
    color: var(--l3d-muted);
    margin: .6rem 0 3rem;
}

.l3d-grid-cards {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.l3d-card {
    position: relative;
    overflow: hidden;
    padding: 2rem 1.7rem;
    border-radius: var(--l3d-radius);
    background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
    border: 1px solid var(--l3d-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .2s ease-out, box-shadow .3s, border-color .3s;
}

.l3d-card:hover {
    border-color: rgba(122, 156, 255, .5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .4), 0 0 0 1px rgba(79, 124, 255, .2);
}

.l3d-card h3 {
    margin: 1rem 0 .5rem;
    transform: translateZ(30px);
}

.l3d-card p {
    color: var(--l3d-muted);
    line-height: 1.6;
    margin: 0;
    transform: translateZ(20px);
}

.l3d-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--l3d-primary), var(--l3d-violet));
    box-shadow: 0 6px 0 #3730a3, 0 16px 26px rgba(79, 124, 255, .3);
    transform: translateZ(50px);
}

.l3d-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

.l3d-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .18), transparent 55%);
    opacity: 0;
    transition: opacity .3s;
}

.l3d-card:hover .l3d-glare,
.l3d-cta:hover .l3d-glare {
    opacity: 1;
}

/* Steps and number cubes */
.l3d-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.l3d-step {
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    padding: 1.6rem;
    border-radius: var(--l3d-radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--l3d-border);
    transition: transform .3s, background .3s;
}

.l3d-step:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .07);
}

.l3d-step h3 {
    margin: .2rem 0 .4rem;
}

.l3d-step p {
    margin: 0;
    color: var(--l3d-muted);
    line-height: 1.55;
}

.l3d-step-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--l3d-cyan);
}

.l3d-cube {
    --s: 52px;
    flex: 0 0 var(--s);
    width: var(--s);
    height: var(--s);
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-22deg) rotateY(-35deg);
    animation: l3d-spin 8s linear infinite;
    animation-delay: calc(var(--i)*-1.2s);
    margin: 6px;
}

.l3d-step:hover .l3d-cube {
    animation-play-state: paused;
}

.l3d-cube span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font: 700 1.4rem "Space Grotesk", sans-serif;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    background: linear-gradient(145deg, rgba(79, 124, 255, .85), rgba(139, 92, 246, .85));
}

.l3d-cube .f1 {
    transform: translateZ(calc(var(--s)/2));
}

.l3d-cube .f2 {
    transform: rotateY(180deg) translateZ(calc(var(--s)/2));
}

.l3d-cube .f3 {
    transform: rotateY(90deg) translateZ(calc(var(--s)/2));
    background: rgba(34, 211, 238, .75);
}

.l3d-cube .f4 {
    transform: rotateY(-90deg) translateZ(calc(var(--s)/2));
    background: rgba(34, 211, 238, .75);
}

.l3d-cube .f5 {
    transform: rotateX(90deg) translateZ(calc(var(--s)/2));
    background: rgba(139, 92, 246, .9);
}

.l3d-cube .f6 {
    transform: rotateX(-90deg) translateZ(calc(var(--s)/2));
}

@keyframes l3d-spin {

    0%,
    70% {
        transform: rotateX(-22deg) rotateY(-35deg);
    }

    100% {
        transform: rotateX(-22deg) rotateY(325deg);
    }
}

/* About, contact, footer */
.l3d-about {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr 1fr;
}

.l3d-panel h3 {
    margin-top: 0;
}

.l3d-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateZ(20px);
}

.l3d-list li {
    position: relative;
    padding: .7rem 0 .7rem 2rem;
    color: var(--l3d-muted);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.l3d-list li:last-child {
    border-bottom: 0;
}

.l3d-list li b {
    color: #fff;
}

.l3d-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 4px;
    background: linear-gradient(145deg, var(--l3d-cyan), var(--l3d-primary));
    box-shadow: 0 3px 0 var(--l3d-primary-dark);
}

.l3d-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(79, 124, 255, .35), rgba(139, 92, 246, .3));
    border: 1px solid rgba(122, 156, 255, .4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .35);
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .2s ease-out;
}

.l3d-cta h2 {
    margin: 0 0 .6rem;
    font-size: 1.8rem;
    transform: translateZ(40px);
}

.l3d-cta p {
    margin: 0;
    color: #c9d1f5;
    line-height: 1.6;
    max-width: 40rem;
    transform: translateZ(25px);
}

.l3d-cta .l3d-btn {
    flex-shrink: 0;
    transform: translateZ(60px);
}

.l3d-footer {
    text-align: center;
    padding: 2rem 5vw 2.5rem;
    color: var(--l3d-muted);
    font-size: .9rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Scroll reveal */
.l3d-reveal {
    opacity: 0;
    transform: perspective(900px) translateY(50px) rotateX(18deg);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}

.l3d-reveal.is-visible {
    opacity: 1;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.l3d-step.l3d-reveal {
    transition-delay: calc(var(--i)*80ms);
}

/* Responsive */
@media (max-width:960px) {
    .l3d-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 1rem;
    }

    .l3d-hero p {
        margin-inline: auto;
    }

    .l3d-hero-actions,
    .l3d-tagline {
        justify-content: center;
    }

    .l3d-stage {
        height: 380px;
    }

    .l3d-about {
        grid-template-columns: 1fr;
    }

    .l3d-cta {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

@media (max-width:820px) {
    .l3d-menu-toggle {
        display: flex;
    }

    .l3d-nav {
        position: absolute;
        top: 100%;
        left: 5vw;
        right: 5vw;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .4rem;
        padding: 1rem;
        border-radius: 18px;
        background: rgba(10, 14, 36, .97);
        border: 1px solid var(--l3d-border);
        box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
        transform-origin: top center;
        transform: perspective(800px) rotateX(-25deg) translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s, opacity .3s, visibility .3s;
    }

    .l3d-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .l3d-nav a:not(.l3d-btn) {
        padding: .7rem .5rem;
    }

    .l3d-brand span {
        display: none;
    }
}

@media (max-width:520px) {
    .l3d-hero {
        padding-inline: 6vw;
    }

    .l3d-hero h1 {
        font-size: 2.25rem;
    }

    .l3d-stage {
        height: 330px;
    }

    .l3d-ticket {
        padding: 1rem;
    }

    .l3d-ticket-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .l3d-float-badge {
        right: -8px;
    }

    .l3d-section {
        padding: 3.5rem 6vw;
    }

    .l3d-step {
        padding: 1.1rem;
        gap: .8rem;
    }

    .l3d-cube {
        --s: 42px;
    }
}

@media (prefers-reduced-motion:reduce) {

    .l3d-body *,
    .l3d-body *::before,
    .l3d-body *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .l3d-reveal,
    .l3d-tagline span {
        opacity: 1;
        transform: none;
    }
}