:root {
    /* 2025 Ukraine Flag Palette - Deep & Premium */
    /* Deep Navy Blue Base (Darker than standard Azure for readability) */
    --color-bg-base: #051e3e;
    /* Rich Blue Gradient Start */
    --color-bg-gradient-start: #004b93;
    /* Deepest Navy End */
    --color-bg-gradient-end: #031226;

    --color-text-main: #F8FAFC;
    --color-text-muted: #CBD5E1;
    /* Lighter slate for better contrast on blue */

    /* Vibrant Animated Orbs - Flag Colors */
    /* Blue Orb */
    --orb-1: rgba(0, 87, 183, 0.5);
    /* Yellow Orb - WARM SATURATED GOLD (Amber) */
    --orb-2: rgba(255, 193, 7, 0.6);
    /* Mixed Light Warm Yellow */
    --orb-3: rgba(255, 160, 0, 0.4);

    /* Glassmorphism Polish relative to blue bg */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.3);

    /* Neon Accents - Golden Yellow */
    --neon-ctas: #FFD700;
    /* Gold/Yellow */
    --neon-ctas-hover: #FFC107;
    /* Amber/Gold Hover */
    --neon-glow: 0 0 30px rgba(255, 215, 0, 0.4);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Animation settings */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* More expressive gradient */
    /* More expressive gradient */
    background: var(--color-bg-base);
}

/* Dynamic Background Elements */
/* Dynamic Background Elements - Lava Lamp */
.mesh-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: var(--color-bg-base);
    transition: transform 0.1s linear;
    /* Smooth parallax */
}

/* Orbs Base */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    /* Slightly less blur for more definition */
    opacity: 0.9;
    /* Increased visibility */
    mix-blend-mode: screen;
    /* Critical for color mixing */
    animation: morphOrb 20s infinite ease-in-out alternate;
    will-change: transform, border-radius;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--orb-1);
    /* Indigo */
    animation-duration: 25s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 70vw;
    height: 70vw;
    background: var(--orb-2);
    /* Fuchsia */
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    top: 30%;
    left: 40%;
    width: 50vw;
    height: 50vw;
    background: var(--orb-3);
    /* Sky */
    animation-duration: 28s;
    animation-delay: -10s;
}

.orb-4 {
    bottom: 10%;
    left: 10%;
    width: 40vw;
    height: 40vw;
    background: rgba(124, 58, 237, 0.4);
    /* Violet 600 */
    animation-duration: 22s;
    animation-delay: -2s;
}

/* Morphing Animation */
@keyframes morphOrb {
    0% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        transform: translate(5%, 10%) scale(1.1);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        transform: translate(-5%, 20%) scale(0.9);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    75% {
        transform: translate(10%, -10%) scale(1.05);
        border-radius: 40% 60% 70% 30% / 40% 80% 60% 50%;
    }

    100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Tech Lines Overlay (Static Grid) */
.tech-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    opacity: 0.4;
    pointer-events: none;
    animation: pulseGrid 12s infinite alternate;
}

@keyframes pulseGrid {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.5;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Full Screen Sections */
.section,
#process {
    min-height: 120vh;
    /* Extended to isolate curve view */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10rem 0 4rem 0;
    /* Added top padding */
}

#oferta {
    scroll-margin-top: 30px;
    /* Lands higher per user request */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 0;
    position: relative;
    /* Clean background - no noise */
}

/* Hero Section Full Height */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-list a:not(.btn-glow):hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.btn-glow {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--neon-ctas);
    color: #031226;
    /* Dark Navy Text for contrast on Yellow */
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: var(--neon-glow);
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

/* Ensure nav button has correct color (overriding .nav-list a) */
.nav-list .btn-glow {
    color: #031226;
}

.btn-glow:hover {
    background-color: var(--neon-ctas-hover);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.hero-section {
    min-height: 100vh;
    /* Full height */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 8rem 0 4rem 0;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--color-text-muted);
    max-width: 100%;
    margin-left: 8rem;
    /* Aligned to end of logo (approx) */
}

@media (max-width: 1024px) {
    .hero-content {
        margin-left: 0;
        /* Reset on mobile/tablet */
    }
}

/* Typography Hierarchy */
.hero-top {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #C7D2FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-middle {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    margin: 0.5rem 0 1rem 0;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    position: relative;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-bottom {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    line-height: 1;
}

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #C7D2FE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Hero Subtitle - Responsive */
.hero-subtitle {
    color: #fff;
    margin-bottom: 0.5rem;
    margin-top: 2rem;
    white-space: nowrap;
    /* Responsive sizing: scales with viewport, capped at 1.5rem, shrinks if needed */
    font-size: clamp(0.1rem, 3.5vw, 1.5rem);
}

/* New Large Section Title (for Offer) */
.section-title-large {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    /* ExtraBold */
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    text-align: right;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Offer Item Styles */
/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Offer Item Styles - Aurora Glow System */
.offer-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    border-radius: 20px;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Base Deep Matte with Ambient Light - Aurora Glow */
    background: radial-gradient(circle at 100% 100%,
            color-mix(in srgb, var(--card-glow), transparent 90%) 0%,
            rgba(15, 23, 42, 0.95) 50%);

    /* Milled Bezel Effect */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
        0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Animation Entrance */
    opacity: 0;
    transform: translateY(40px);

    /* Default color fallback */
    --card-glow: #3B82F6;
}

/* Aurora Glow - Individual Color Assignments */
/* Aurora Glow - Individual Color Assignments */
.offer-item:nth-child(1) {
    --card-glow: #3B82F6;
}

/* Blue - Prawo Jazdy */
.offer-item:nth-child(2) {
    --card-glow: #10B981;
}

/* Emerald - Akty */
.offer-item:nth-child(3) {
    --card-glow: #8B5CF6;
}

/* Violet - Pobyt */
.offer-item:nth-child(4) {
    --card-glow: #EC4899;
}

/* Pink - Medyczne */
.offer-item:nth-child(5) {
    --card-glow: #F59E0B;
}

/* Amber - Notariusz */
.offer-item:nth-child(6) {
    --card-glow: #06B6D4;
}

/* Cyan - Finanse */

/* --- Visual Polish (High-End UI) --- */

/* 2. Floating Assets (Premium 3D) */
.hero-floating-assets {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    perspective: 1000px;
    /* overflow: hidden; Removed to prevent clipping of edge assets */
}

.float-asset {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.1s cubic-bezier(0.2, 0, 0.2, 1);
}

/* Asset 1: Document Stack */
.asset-doc-stack {
    top: 15%;
    left: 10%;
    width: 120px;
    height: 160px;
    transform: rotateY(15deg) rotateX(10deg) rotate(-15deg);
}

.glass-layer {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Stack Layering - Dense "Book" Stack */
.layer-content {
    transform: translateZ(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    z-index: 10;
    /* Ensure content layer distinctness */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Stronger border for top sheet */
}

/* Background layers decreasing in opacity and depth - Fanned Stack */
/* Rotation pivot is left center */
.layer-3 {
    transform: translateZ(-2px) rotate(-4deg);
    opacity: 0.8;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform-origin: 0% 50%;
    animation: fanLayer3 5s ease-in-out infinite;
}

.layer-2 {
    transform: translateZ(-4px) rotate(-8deg);
    opacity: 0.6;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform-origin: 0% 50%;
    animation: fanLayer2 5s ease-in-out infinite;
}

.layer-1 {
    transform: translateZ(-6px) rotate(-12deg);
    opacity: 0.4;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform-origin: 0% 50%;
    animation: fanLayer1 5s ease-in-out infinite;
}

@keyframes fanLayer3 {

    0%,
    80%,
    100% {
        transform: translateZ(-2px) rotate(0deg);
    }

    88%,
    92% {
        transform: translateZ(-2px) rotate(-4deg);
    }
}

@keyframes fanLayer2 {

    0%,
    80%,
    100% {
        transform: translateZ(-4px) rotate(0deg);
    }

    88%,
    92% {
        transform: translateZ(-4px) rotate(-8deg);
    }
}

@keyframes fanLayer1 {

    0%,
    80%,
    100% {
        transform: translateZ(-6px) rotate(0deg);
    }

    88%,
    92% {
        transform: translateZ(-6px) rotate(-12deg);
    }
}

.doc-lines span {
    display: block;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    width: 100%;
}

.doc-lines span:nth-child(2) {
    width: 80%;
}

.doc-lines span:nth-child(3) {
    width: 60%;
}

.doc-seal {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    align-self: flex-end;
    margin-top: 10px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* Asset 2: Badge */
/* Asset 2: Badge */
.asset-badge {
    bottom: 80%;
    /* Updated to 80% as requested */
    right: -13%;
    width: 100px;
    height: 100px;
    opacity: 0.8;
}

.badge-spin {
    animation: slowSpin 20s linear infinite;
}

@keyframes slowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Asset 3: Signature */
.asset-signature {
    top: 30%;
    right: 25%;
    width: 200px;
    height: 80px;
    opacity: 0.6;
    transform: rotate(-10deg);
}

.draw-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawSign 4s ease-in-out infinite alternate;
}

@keyframes drawSign {
    0% {
        stroke-dashoffset: 300;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* 3. System Ready Pulse */
.system-ready-dot {
    width: 12px;
    height: 12px;
    background-color: #10B981;
    /* Emerald/Green */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: systemPulse 2s infinite;
}

@keyframes systemPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
}

/* Asset 4: Stamp Tool (Physical Side View) - Bottom Right */
.asset-stamp-tool {
    top: auto;
    bottom: 5%;
    /* Moved higher by 5% */
    right: -23%;
    width: 140px;
    height: 200px;
    transform-origin: bottom center;
    animation: stampFloat 6s ease-in-out infinite, stampAction 5s ease-in-out infinite;
    z-index: 10;
}

.stamp-handle {
    width: 54px;
    /* Slightly wider for substantial feel */
    height: 120px;
    /* Combined height */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    margin: 0 auto;
    border-radius: 27px 27px 0 0;
    /* Perfect half-circle top */
    box-shadow:
        inset 4px 0 8px rgba(255, 255, 255, 0.1),
        inset -4px 0 8px rgba(255, 255, 255, 0.05),
        0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

.stamp-handle::before {
    /* Internal highlight/core to give 3D depth without breaking the silhouette */
    content: '';
    position: absolute;
    top: 6px;
    /* Moved slightly up to follow curvature closer */
    left: 10px;
    right: 10px;
    height: 25px;
    /* Extended slightly */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    /* More organic clear oval/round reflection */
    opacity: 0.7;
    filter: blur(1px);
    /* Soften the reflection slightly */
}

.stamp-base {
    width: 100px;
    height: 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.stamp-plate {
    width: 100px;
    height: 4px;
    /* Thin line */
    background: #FFD700;
    /* Solid Gold */
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    /* Glow */
}

@keyframes stampAction {

    0%,
    85%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    90% {
        transform: translateY(20px) rotate(-2deg);
    }

    /* Deeper press */
    95% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Asset 5: Glass Paragraph (Bottom Left) */
.asset-paragraph {
    top: auto;
    bottom: 25%;
    left: -35%;
    /* Updated to -35% as requested */
    right: auto;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(46deg);
    /* Updated to 46deg */
    z-index: 10;
}

.glass-char {
    font-family: 'Playfair Display', serif;
    font-size: 10rem;
    font-weight: 700;
    /* Gradient text for glimmer effect - Thinner & Cleaner */
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.2) 55%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    /* Removed background, border, padding, backdrop-filter for clean look */
    animation: floatOnly 7s ease-in-out infinite, glimmerShine 6s linear infinite;
}

@keyframes glimmerShine {
    0% {
        background-position: 250% 0;
    }

    100% {
        background-position: -150% 0;
    }
}

@keyframes floatOnly {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 4. Liquid Button Effect */
.btn-glow {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8) 0%, rgba(255, 165, 0, 0.8) 100%);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50% 50% 0 0;
    transform: scaleX(1.5);
}

.btn-glow:hover {
    color: #000;
    /* Contrast for yellow background */
    text-shadow: none;
    border-color: #FFD700;
}

.btn-glow:hover::before {
    top: 0;
    border-radius: 0;
}

.offer-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.offer-item:hover {
    transform: translateY(-5px);
    /* Border Glow matching the card color */
    border-color: color-mix(in srgb, var(--card-glow), transparent 50%);
    /* Stronger Shadow */
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
        0 20px 40px -10px color-mix(in srgb, var(--card-glow), transparent 85%);
}

/* Premium SVG Watermark Seal */
.card-watermark {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.5s ease;
    z-index: 0;
}

.offer-item:hover .card-watermark {
    color: rgba(255, 255, 255, 0.08);
    transform: rotate(0deg) scale(1.1);
}

.offer-item::before {
    display: none;
}

/* Typography Hierarchy for Cards */
.card-num {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3.5rem;

    /* Watermark Styling - Subordinate to Seal */
    color: var(--card-glow);
    opacity: 0.08;
    filter: drop-shadow(0 0 10px var(--card-glow));

    line-height: 1;
    text-shadow: none;
    margin-bottom: auto;
    transition: all 0.4s ease;
    transform-origin: top left;

    /* Ensure it stays behind text but visible */
    position: relative;
    z-index: 0;
}



.offer-item:hover .card-num {
    opacity: 0.15;
    transform: scale(1.1);
}

.card-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    /* Increased weight */
    font-size: 1.3rem;
    /* Increased size */
    color: #FFFFFF;
    margin: 1rem 0 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.offer-item:hover h3 {
    color: #C7D2FE;
    /* Accent color on hover */
}

.card-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #94A3B8;
    line-height: 1.5;
}

/* Arrow Icon */
/* Arrow Icon - Top Right */
.arrow-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--ease-smooth);

    /* Circular Button Base */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-item:hover .arrow-icon {
    background: var(--card-glow);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px color-mix(in srgb, var(--card-glow), transparent 40%);
    transform: rotate(45deg);
}

/* Apply float animation ONLY to specific items */
.float-animate {
    animation: gentleFloat 6s ease-in-out infinite;
}

/* Process Grid (3 columns) */
#process .section-title-large {
    text-align: center;
    margin-bottom: 5rem;
}

/* Process Section: 2025 Future Minimal + Neon Curve */
.process-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 6rem auto;
    padding: 2rem 0;
    min-height: 500px;
    gap: 2rem;
    /* Added gap */
}

/* Individual Step Container */
.timeline-step {
    flex: 1;
    position: relative;
    z-index: 1;
    /* Ensure above SVG */
}

/* Neon Curve - Positioned at Card Bottom (260px) */
.timeline-curve {
    position: absolute;
    top: 300px;
    /* Card Bottom */
    left: 0;
    width: 100%;
    height: 200px;
    /* Exact SVG Height */
    z-index: 0;
    overflow: visible;
}

/* Energy Flow Curve Styles */
.timeline-curve path.path-active {
    stroke: url(#energyGradient);
    /* Ensure gradient is applied */
    stroke-dasharray: 2000;
    /* Max length cover */
    stroke-dashoffset: 2000;
    /* Initially hidden */
    /* will-change: stroke-dashoffset; */
    /* Transition removed for scroll-synced JS */

    /* Neon Glow (Fintech Style) */
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
}

.timeline-curve path.path-background {
    opacity: 1;
}

/* Deep Matte Glass Card - Fixed Height */
/* Deep Matte Glass Card - Fixed Height */
.step-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    width: 100%;
    height: 260px;
    /* Fixed height for alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;

    /* Default Dimmed State */
    opacity: 0.4;
    transform: scale(0.95);
    filter: grayscale(100%);
}

.step-card.visible {
    opacity: 1;
    transform: scale(1);
    filter: grayscale(0%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.step-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-10px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Cinematic Number */
.step-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 8rem;
    color: #fff;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

/* Content */
.step-card h3 {
    position: relative;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
    font-weight: 600;
    z-index: 1;
    letter-spacing: -0.02em;
}

.step-card p {
    position: relative;
    font-size: 0.95rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
    z-index: 1;
}

/* Minimalist Marker - Neon Ready */
/* Minimalist Marker - Energy Trigger */
.step-marker {
    width: 16px;
    height: 16px;
    background: transparent;
    /* Empty initially */
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Dim border */
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Active State (Triggered by JS) */
.step-marker.active {
    border-color: transparent;
    transform: scale(1.3);
    box-shadow: 0 0 15px currentColor;
}

/* Pulsing Animation for Active Markers */
@keyframes signalPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.step-marker.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    animation: signalPulse 2s infinite;
}

/* Step 1 Marker Color (Yellow) */
.timeline-step:nth-child(2) .step-marker.active {
    background: #FFD700;
    color: #FFD700;
}

/* Step 2 Marker Color (Transition) */
.timeline-step:nth-child(3) .step-marker.active {
    background: color-mix(in srgb, #FFD700 20%, #0057B7);
    color: color-mix(in srgb, #FFD700 20%, #0057B7);
}

/* Step 3 Marker Color (Blue) */
.timeline-step:nth-child(4) .step-marker.active {
    background: #0057B7;
    color: #0057B7;
}

@keyframes neon-on {
    0% {
        background: #ffffff;
        border-color: #ffffff;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }

    100% {
        background: #d946ef;
        border: 0;
        box-shadow: 0 0 15px #d946ef, 0 0 30px #a855f7;
        transform: scale(1.2);
    }
}

/* Marker Delays & Exact Bezier Positions (Y=57, Y=100, Y=143) */
/* Marker Delays & Calculated Positions for Symmetric U-Curve */
/* Marker Delays & Exact Bezier Positions (Symmetrical Right-Extended) */
/* Calculated for S-Curve: M-100,125 C300,375 800,-125 1119,125 */
/* Right end extended to 1119 for equal overhangs */
.timeline-step:nth-child(2) .step-marker {
    animation-delay: 0.8s;
    margin-top: 160px;
    /* Side Left */
}

.timeline-step:nth-child(3) .step-marker {
    animation-delay: 1.6s;
    margin-top: 107px;
    /* Center */
}

.timeline-step:nth-child(4) .step-marker {
    animation-delay: 2.4s;
    margin-top: 45px;
    /* Side Right - Adjusted to 45px (Sweet spot) */
}

.step-card:hover+.step-marker {
    transform: scale(1.5) !important;
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.8) !important;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
}

.mobile-menu-dropdown.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-dropdown a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 768px) {

    .desktop-nav,
    .main-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    /* Hero */
    /* Hero */
    .hero-content {
        text-align: center;
        padding-top: 2rem;
    }

    .hero-top,
    .hero-middle,
    .hero-bottom,
    .hero-subtitle {
        text-align: center;
    }

    /* Center Trust Bar and CTA */
    /* Trust Bar Mobile: Compact Row */
    .trust-item svg {
        display: none;
    }

    .trust-bar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.1rem 0.4rem;
        /* Minimal gap */
        padding: 0.25rem 0.5rem;
        /* Tight padding */
        width: 100%;
        max-width: none;
        margin: 0.5rem auto;
    }

    .trust-item {
        width: auto;
        border: none;
        padding: 0;
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        color: rgba(255, 255, 255, 0.7);
        white-space: nowrap;
        line-height: 1.1;
        /* Tight line height */
    }

    .trust-item::after {
        display: none !important;
    }

    /* Add bullets back for row layout separation? User said 'remove dots' before.
       Let's stick to spacing (gap). */

    .trust-item:last-child {
        border-bottom: none;
    }

    /* Process Section Mobile */
    .process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        /* Clean stack spacing */
        margin: 4rem auto;
        padding-left: 0;
    }

    .timeline-curve,
    .step-marker {
        display: none;
    }

    /* Hide Curve and Markers */

    .timeline-step {
        width: 100%;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .step-card {
        width: 100%;
        position: relative;
        overflow: hidden;
        /* Ensure watermark doesn't spill */
    }

    /* Mobile Step Design: Watermark Number */
    .step-num {
        position: absolute;
        top: -1rem;
        right: 1rem;
        font-size: 6rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.05);
        /* Very subtle watermark */
        pointer-events: none;
        z-index: 0;
        transform: none;
        /* Reset desktop transforms */
        left: auto;
    }

    /* No connectors */
    .timeline-step::after {
        display: none;
    }
}



.why-us-grid .stat-item:nth-child(2) {
    animation-delay: 1.5s;
}

/* Trust Bar */
/* Trust Bar & Items */
.trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 2rem;
    border-radius: 99px;
    backdrop-filter: blur(10px);
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
}

.trust-item svg {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

/* Vertical Separator for Desktop */
/* Separator (Bullet) */
.trust-item:not(:last-child)::after {
    content: '•';
    display: inline-block;
    width: auto;
    height: auto;
    background: none;
    margin-left: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2em;
    line-height: 1;
}

.subtitle-pl {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-top: 0.5rem;
}



/* Premium Guarantee Badge */
.guarantee-badge {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(234, 179, 8, 0.3);
    /* Gold tint */
    border-radius: 20px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    /* Animated by default in gentleFloat */
}

.guarantee-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(234, 179, 8, 0.08), transparent 70%);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-item {
    text-align: center;
}

/* Cleaned up syntax error */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    /* Tighter gap */
}

/* Mobile */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.premium-footer {
    background: rgba(15, 23, 42, 0.95);
    /* Slightly more opaque */
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 0 0;
    /* Removed bottom padding */
    margin-top: 1.8rem;
    /* Reduced gap by ~35px per user request */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.contact-list p {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
}

.contact-list a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Mobile Hero Fix */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 8rem;
    }
}

/* Valuation Form Styles */
.valuation-form-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* User Request: Form Button Transparent Black Tint when inactive */
.valuation-form .btn-glow {
    background-color: rgba(3, 18, 38, 0.6);
    /* Transparent Dark Tint */
    color: #ffffff;
    /* White text */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure hover retains the "glow" effect (Gold) or just brightens? 
   User said "preserve animations". Standard .btn-glow:hover sets background to gold.
   We can leave it to inherit or explicitly smooth the transition. */
.valuation-form .btn-glow:hover {
    /* If we want it to turn Gold on hover like normal btn-glow: */
    /* The cascade structure of style.css puts this AFTER .btn-glow definition, 
       but BEFORE .btn-glow:hover definition? 
       Check line numbers. .btn-glow is around 271. .btn-glow:hover is 292.
       This block is being inserted around 1630. It will override .btn-glow default.
       BUT .btn-glow:hover has higher specificity? No, class spec is same.
       Actually .valuation-form .btn-glow (2 classes) is MORE specific than .btn-glow:hover (1 class + 1 pseudo).
       So this will OVERRIDE hover unless I specify hover here too. 
    */
    background-color: var(--neon-ctas-hover);
    color: #031226;
    border-color: transparent;
}

.valuation-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #94A3B8;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus {
    outline: none;
    border-color: #3B82F6;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-note {
    font-size: 0.85rem;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 0.5rem;
    line-height: 1.5;
}

.recaptcha-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.cloudflare-mockup {
    background: #252525;
    /* Cloudflare Dark Theme */
    border: 1px solid #3c3c3c;
    border-radius: 4px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.1);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    height: 65px;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.cloudflare-mockup:hover {
    border-color: #555;
}

.cloudflare-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #555;
    border-radius: 2px;
    background: #333;
    margin-right: 12px;
    flex-shrink: 0;
}

.cloudflare-text {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #fff;
    flex-grow: 1;
}

.cloudflare-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    margin-left: 8px;
}

/* Dynamic Passport Hint */
.passport-hint {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Fade-in transition */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.hint-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.hint-text {
    font-size: 0.9rem;
    color: #E0F2FE;
    line-height: 1.5;
}

.hint-text strong {
    color: #60A5FA;
    display: block;
    margin-bottom: 0.25rem;
}


/* Progress Button Styles */
.btn-progress {
    position: relative;
    overflow: hidden;
    /* Clean gradient transition */
    background: linear-gradient(90deg, #FFD700 0%, #031226 0%);
    /* Start with 0% Yellow */
    transition: background 0.5s ease;
    /* Smooth fill */
    z-index: 1;
}

.btn-progress span {
    position: relative;
    z-index: 2;
}

/* 100% Completion Pulse */
@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Smart CTA Styles */
.smart-cta-container {
    margin-top: 0;
    margin-bottom: 1rem;
    min-height: 1.5rem;
    /* Reserve space or keep 0 to avoid gap if hidden? User says "appear", prefer 0 or small transparent */
    text-align: center;
    font-size: 1.05rem;
    color: #cbd5e1;
    /* Light slate/muted blue-grey */
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
    padding: 0 0.5rem;
}

.smart-cta-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Wycena Sky Animation --- */

.sky-animation-container {
    position: fixed;
    /* Fixed relative to viewport (background layer) */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content but above background elements */
    pointer-events: none;
    overflow: hidden;
    /* Ensure no overflow */
}

.sky-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Variable controls */
:root {
    --sky-anim-duration: 12s;
    /* Extended loop duration */
    --sky-anim-delay: 1s;
    /* Start immediately for loop */
}

/* Sun/Moon Walker Group */
.sun-moon-walker {
    /* Origin is 0,0 (center of circle) */
    transform-box: fill-box;
    transform-origin: center;
    color: #FFD700;
    /* Initial Gold */
    will-change: transform;
    /* Removed color/filter from will-change to save memory */
    animation:
        skyTrajectory var(--sky-anim-duration) ease-in-out infinite,
        skyColor var(--sky-anim-duration) linear infinite;
    animation-delay: var(--sky-anim-delay);

    /* Removed CSS drop-shadow filter as it causes repaints on masked elements. 
       Now using static SVG filter element inside the group. */
}

@keyframes skyTrajectory {
    0% {
        transform: translate3d(80px, 85px, 0) rotate(0deg);
        /* Start: Bottom Right */
    }

    40% {
        transform: translate3d(50px, 65px, 0) rotate(360deg);
        /* Mid: Transition */
    }

    60% {
        transform: translate3d(20px, 35px, 0) rotate(720deg);
        /* End: Moon Position (Hold start) */
    }

    75% {
        transform: translate3d(20px, 35px, 0) rotate(720deg);
        /* Hold Moon */
    }

    85% {
        transform: translate3d(20px, -50px, 0) rotate(800deg);
        /* Exit: Fly UP off screen */
        opacity: 1;
    }

    90% {
        transform: translate3d(20px, -50px, 0) rotate(800deg);
        opacity: 0;
        /* Fade out at top */
    }

    91% {
        transform: translate3d(80px, 120px, 0) rotate(0deg);
        /* Reset to bottom (hidden) */
        opacity: 0;
    }

    100% {
        transform: translate3d(80px, 85px, 0) rotate(0deg);
        /* Ready to start */
        opacity: 1;
    }
}

@keyframes skyColor {

    0%,
    30% {
        color: #FFD700;
        /* Gold (Sun) */
    }

    50%,
    85% {
        color: #E2E8F0;
        /* Silver (Moon) */
    }

    90%,
    100% {
        color: #FFD700;
        /* Reset to Gold */
    }
}

/* Rays */
.sun-rays {
    transform-origin: 0 0;
    will-change: transform, opacity;
    animation: raysFade var(--sky-anim-duration) linear infinite;
    animation-delay: var(--sky-anim-delay);
}

@keyframes raysFade {

    0%,
    30% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0;
        transform: scale(0.5);
    }

    85% {
        opacity: 0;
        /* Stay hidden during Moon phase */
    }

    95% {
        opacity: 0;
        /* Stay hidden during reset */
        transform: scale(1);
    }

    100% {
        opacity: 1;
        /* Reappear for start */
    }
}

/* Moon Shadow Mask */
.moon-shadow-mask {
    transform-origin: 0 0;
    will-change: transform;
    animation: shadowSlide var(--sky-anim-duration) ease-in-out infinite;
    animation-delay: var(--sky-anim-delay);
}

@keyframes shadowSlide {

    0%,
    35% {
        transform: translate3d(20px, 0, 0);
        /* Hidden shadow (Full circle/Sun) */
    }

    60%,
    85% {
        transform: translate3d(0, 0, 0);
        /* Exposed shadow (Crescent) */
    }

    100% {
        transform: translate3d(20px, 0, 0);
        /* Reset */
    }
}

/* Stars */
.stars-group {
    opacity: 0;
    transform: translate3d(0, 25px, 0);
    /* Align with Moon */
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
    will-change: opacity, transform;
    animation: starsLoop var(--sky-anim-duration) ease-out infinite;
    animation-delay: var(--sky-anim-delay);
}

@keyframes starsLoop {

    0%,
    50% {
        opacity: 0;
    }

    60%,
    75% {
        opacity: 1;
    }

    /* Visible with Moon */
    85% {
        opacity: 0;
    }

    /* Fade out for exit */
    100% {
        opacity: 0;
    }
}

.star {
    transform-origin: center;
    transform-box: fill-box;
    will-change: transform, opacity;
    animation: twinkle 3s infinite ease-in-out var(--d);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Clouds */
.clouds-group {
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    will-change: opacity, transform;
    animation: cloudLoop var(--sky-anim-duration) ease-out infinite;
    animation-delay: var(--sky-anim-delay);
}

@keyframes cloudLoop {

    0%,
    40% {
        opacity: 0;
        transform: translate3d(-30px, 25px, 0);
    }

    60% {
        opacity: 0.8;
        /* Enter */
    }

    75% {
        opacity: 0.8;
        /* Hold */
        transform: translate3d(0, 25px, 0);
    }

    85% {
        opacity: 0;
        /* Fade out */
        transform: translate3d(20px, 25px, 0);
        /* Continue drift */
    }

    100% {
        opacity: 0;
        transform: translate3d(-30px, 25px, 0);
        /* Reset */
    }
}

/* Footer Layering Fix */
.premium-footer {
    position: relative;
    z-index: 10;
    /* Ensure it stays above the fixed sky animation */
    background: var(--color-bg-base);
    /* Ensure opacity to cover stars */
}

/* User Request: Header Styling */
.text-outline-glow {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    line-height: 1;
}

/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
/* Handwritten Graphic for 24/7 */
.graphic-247 {
    color: #FFD700;
    font-family: 'Nanum Pen Script', cursive;
    /* Natural, clean sharpie annotation style */
    font-weight: 400;
    font-size: 7rem;
    /* Significantly larger to integrate with header */
    position: absolute;
    right: -170px;
    /* Slightly adjusted for larger size */
    top: -40px;
    /* Adjusted vertical alignment */
    transform: rotate(-15deg);
    /* Golden angle for stickers/stamps */
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    z-index: 10;
    white-space: nowrap;
    opacity: 0.95;
    pointer-events: none;
    letter-spacing: 0;
    /* Natural handwriting spacing */
}