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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.app {
    width: 100vw;
    height: 100vh;
    background: rgba(250, 248, 242, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    position: relative;
}

/* Hero Media Container - masked with SVG logo */
.hero-media-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    -webkit-mask-image: url('/masn-logo.svg');
    mask-image: url('/masn-logo.svg');
    -webkit-mask-size: 70% auto;
    mask-size: 70% auto;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
}

.hero-media-container img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Layered GIFs with organic gradient masks */
.gif-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-layer-1 {
    position: relative;
    z-index: 1;
    animation: gifRotate1 32s steps(8) infinite;
}

.gif-layer-2 {
    z-index: 2;
    animation: gifRotate2 32s steps(8) infinite;
    -webkit-mask-image: radial-gradient(
        ellipse 80% 70% at 20% 30%,
        black 0%,
        transparent 70%
    );
    mask-image: radial-gradient(
        ellipse 80% 70% at 20% 30%,
        black 0%,
        transparent 70%
    );
}

.gif-layer-3 {
    z-index: 3;
    animation: gifRotate3 32s steps(8) infinite;
    -webkit-mask-image: radial-gradient(
        ellipse 60% 80% at 80% 70%,
        black 0%,
        transparent 60%
    );
    mask-image: radial-gradient(
        ellipse 60% 80% at 80% 70%,
        black 0%,
        transparent 60%
    );
}

.gif-layer-4 {
    z-index: 4;
    animation: gifRotate4 32s steps(8) infinite;
    -webkit-mask-image: radial-gradient(
        ellipse 50% 50% at 50% 50%,
        black 0%,
        transparent 80%
    );
    mask-image: radial-gradient(
        ellipse 50% 50% at 50% 50%,
        black 0%,
        transparent 80%
    );
}

@keyframes gifRotate1 {
    0% { transform: rotate(0deg) scale(2); }
    100% { transform: rotate(360deg) scale(2); }
}

@keyframes gifRotate2 {
    0% { transform: rotate(45deg) scale(2); }
    100% { transform: rotate(405deg) scale(2); }
}

@keyframes gifRotate3 {
    0% { transform: rotate(90deg) scale(2); }
    100% { transform: rotate(450deg) scale(2); }
}

@keyframes gifRotate4 {
    0% { transform: rotate(135deg) scale(2); }
    100% { transform: rotate(495deg) scale(2); }
}

/* Overlay container */
.hero-overlay {
    position: absolute;
    top: -50px;
    left: -20px;
    right: -20px;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

/* Grain texture overlay */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.18;
    z-index: 100;
    pointer-events: none;
}

/* Abstract gradient blobs */
.gradient-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    filter: blur(40px);
    opacity: 0.6;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(20px);
}

/* Sardonyx-inspired colors: deep red-orange, creamy white, warm brown */
.blob-1 {
    width: 60%;
    height: 60%;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(180, 60, 40, 0.85) 0%, rgba(139, 35, 25, 0.5) 50%, transparent 70%);
    animation: blobMove1 12s ease-in-out infinite;
}

.blob-2 {
    width: 50%;
    height: 50%;
    top: 20%;
    right: -15%;
    background: radial-gradient(circle, rgba(255, 245, 235, 0.9) 0%, rgba(245, 222, 200, 0.5) 50%, transparent 70%);
    animation: blobMove2 15s ease-in-out infinite;
}

.blob-3 {
    width: 55%;
    height: 55%;
    bottom: -15%;
    left: 20%;
    background: radial-gradient(circle, rgba(205, 92, 50, 0.8) 0%, rgba(180, 70, 35, 0.45) 50%, transparent 70%);
    animation: blobMove3 18s ease-in-out infinite;
}

.blob-4 {
    width: 45%;
    height: 45%;
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, rgba(90, 50, 35, 0.75) 0%, rgba(60, 30, 20, 0.4) 50%, transparent 70%);
    animation: blobMove4 14s ease-in-out infinite;
}

@keyframes blobMove1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30%, 20%) scale(1.1); }
    50% { transform: translate(20%, 40%) scale(0.95); }
    75% { transform: translate(-10%, 25%) scale(1.05); }
}

@keyframes blobMove2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-25%, 15%) scale(1.05); }
    50% { transform: translate(-40%, 35%) scale(1.1); }
    75% { transform: translate(-15%, 50%) scale(0.95); }
}

@keyframes blobMove3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(25%, -30%) scale(1.08); }
    66% { transform: translate(-15%, -20%) scale(0.92); }
}

@keyframes blobMove4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-30%, -20%) scale(1.1); }
    50% { transform: translate(-50%, 10%) scale(0.9); }
    75% { transform: translate(-20%, -30%) scale(1.05); }
}

/* Tagline below the logo */
.tagline {
    position: fixed;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.tagline-line-1,
.tagline-line-2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    margin: 0;
    animation: float 4s ease-in-out infinite;
}

.tagline-line-2 {
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Responsive adjustments */
/* Floating Product Card */
.product-card {
    position: fixed;
    top: calc(50% - 80px);
    right: calc(50% - 280px);
    background: #fff;
    border-radius: 12px;
    padding: 12px 20px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatCard 3s ease-in-out infinite;
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.product-card-name {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Product Page */
.product-page {
    width: 100vw;
    min-height: 100vh;
    background: #fafafa;
    overflow-y: auto;
}

/* Product Navigation */
.product-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-back:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-spacer {
    width: 80px;
}

/* Product Hero */
.product-hero {
    padding: 120px 24px 40px;
    text-align: center;
}

.product-hero-title {
    font-size: 4rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -2px;
    margin-bottom: 4px;
}

.product-hero-tagline {
    font-size: 1.1rem;
    color: #888;
    font-weight: 400;
    margin-bottom: 16px;
}

.product-hero-description {
    font-size: 1.25rem;
    color: #555;
    font-weight: 400;
    max-width: 400px;
    margin: 0 auto;
}

/* Pricing Section */
.pricing-section {
    display: flex;
    justify-content: center;
    padding: 20px 24px 80px;
}

.pricing-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
}

.pricing-card-header {
    padding: 40px 40px 32px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #b43c28, #cd5c32);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.pricing-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-top: 8px;
}

.pricing-value {
    font-size: 4rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -2px;
    line-height: 1;
}

.pricing-subtitle {
    font-size: 0.95rem;
    color: #888;
}

.pricing-card-body {
    padding: 32px 40px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 16px;
}

.platforms-section {
    margin-bottom: 32px;
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-chip {
    background: #f5f5f5;
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
}

.features-section {
    margin-bottom: 0;
}

.features-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.features-grid li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #444;
}

.check-icon {
    width: 18px;
    height: 18px;
    color: #b43c28;
    flex-shrink: 0;
}

.pricing-card-footer {
    padding: 24px 40px 40px;
    text-align: center;
}

.buy-btn {
    width: 100%;
    background: #111;
    color: white;
    border: none;
    padding: 18px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.purchase-note {
    font-size: 0.8rem;
    color: #999;
    margin-top: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-media-container {
        -webkit-mask-size: 90% auto;
        mask-size: 90% auto;
    }

    .tagline-line-1,
    .tagline-line-2 {
        font-size: 1.2rem;
    }

    .product-card {
        top: auto;
        bottom: calc(25% + 80px);
        right: 50%;
        transform: translateX(50%);
    }

    @keyframes floatCard {
        0%, 100% { transform: translateX(50%) translateY(0); }
        50% { transform: translateX(50%) translateY(-8px); }
    }

    .product-card:hover {
        transform: translateX(50%) translateY(-4px) scale(1.02);
    }

    /* Product page mobile */
    .product-hero-title {
        font-size: 3rem;
    }

    .product-hero-description {
        font-size: 1.1rem;
    }

    .pricing-card {
        margin: 0 16px;
    }

    .pricing-card-header,
    .pricing-card-body,
    .pricing-card-footer {
        padding-left: 24px;
        padding-right: 24px;
    }

    .pricing-value {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
