/* --- Basic Reset & Typography --- */
* {
    box-sizing: border-box;
}

body {
    color: var(--text-normal);
}

h1, h2, h3, h4 {
    color: var(--text-dark);
}

.site-header {
    box-shadow: none !important;
}

.site-header.scrolled {
    /*border-bottom: 1px solid var(--border-color);*/
    box-shadow: var(--shadow-xs) !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 50px 0 80px 0;
    overflow: hidden;
    /*min-height: 90vh;*/
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    position: relative;
    z-index: 3;
    max-width: 500px;
    padding: 2rem;
}

.hero-text p {
    font-size: 1.2rem;
}

.hero-text .mobile-download {
    margin-top: 15px;
    font-weight: bold;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone-img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 2;
}

.hero-blob {
    will-change: transform;
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 0;
    opacity: 0;
    animation: showHeroBlob 300ms 300ms forwards, superGentleFloat1 40s 600ms infinite ease-in-out;
    transform: scale(2.5);
    top: -45%;
    right: -25%;
}

.hero-blob-shadow {
    will-change: transform;
    position: absolute;
    width: 100%;
    height: auto;
    z-index: 0;
    opacity: 0;
    transform-origin: center;
    transform: scale(2.7) translate(-7px, 0px);

    top: -45%;
    right: -30%;
    animation: showHeroBlobShadow 300ms 300ms forwards, superGentleFloatShadow 50s 600ms infinite ease-in-out;
}

@keyframes showHeroBlob {
    to {
        opacity: 0.95;
    }
}

@keyframes showHeroBlobShadow {
    to {
        opacity: 0.3;
    }
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 3rem;
    max-width: 500px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-section {
        padding-bottom: 50px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }

    .hero-text {
        order: 2;
        margin: 0 auto;
        padding: 1rem;
    }

    .hero-image-container {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-phone-img {
        max-width: 60%;
        transform: rotate(180deg);
    }
}

/* --- Features Section --- */

.features-section {
    scroll-margin-top: 80px;
    padding-bottom: 8px;
}

.features-section .container {
    padding: 60px 40px;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.feature-item:last-child {
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .feature-item:last-child {
        margin-bottom: 0;
    }
}

.feature-item.reverse .feature-image {
    order: 2;
}

.feature-item.reverse .feature-text {
    order: 1;
}

.feature-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-img {
    width: 400px;
    position: relative;
    border-radius: var(--border-radius);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.blurred-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
    opacity: 0.8;
}

.blurred-svg {
    position: absolute;
    top: 0;
    bottom: 0;
    transform: scale(1.58) translate(2%, 3%);
    /*filter: blur(50px);*/
    z-index: 1;
    opacity: 0.8;
    max-height: 100% !important;
    pointer-events: none;
}

.feature-text p {
    margin-bottom: 1.5rem;
}

.image-with-sticker {
    position: relative;
}

.sparky-sticker {
    position: absolute;
    z-index: 2;
    max-height: 40%;
}

.sparky-sticker-left {
    left: -12%;
    bottom: -10%;
}

.sparky-sticker-right {
    transform-origin: right;
    right: -15%;
    bottom: -10%;
}

/* --- Pricing Section --- */
.pricing-section {
    scroll-margin-top: 60px;
}

.pricing-section .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* --- Animation on Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    /*animation: fadeIn 1s ease-out forwards;*/
}

.fade-in.hero-phone-img {
    animation: phoneFadeIn 1s ease-out forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-phone-img.fade-in {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
        margin: 0 auto;
    }

    .hero-image-container {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-phone-img {
        max-width: 60%;
        transform: rotate(180deg);
    }

    .feature-item, .feature-item.reverse {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-item .feature-image, .feature-item.reverse .feature-image {
        order: 1;
    }

    .feature-item .feature-text, .feature-item.reverse .feature-text {
        order: 2;
    }

    .feature-text h3 {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 30px;
    }
}

/* --- Keyframe Animations --- */
@keyframes superGentleFloat1 {
    0% {
        transform: scale(2.5) translate(0, 0) rotate(0deg);
    }
    50% {
        transform: scale(2.5) translate(-5px, 8px) rotate(-1.5deg);
    }
    100% {
        transform: scale(2.5) translate(0, 0) rotate(0deg);
    }
}

@keyframes superGentleFloatShadow {
    0% {
        transform: scale(2.7) translate(-7px, 0px) rotate(0deg);
    }
    50% {
        transform: scale(2.7) translate(-12px, -6px) rotate(1deg);
    }
    100% {
        transform: scale(2.7) translate(-7px, 0px) rotate(0deg);
    }
}

@keyframes phoneFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(5deg);
    }
}

.mobile-apps-section {
    padding: 80px 0 60px;
    scroll-margin-top: 60px;
    border-bottom: 1px solid #f3f4f6;
}