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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: white;
    background: linear-gradient(160deg,
            #c94b2a 0%,
            #b84a3a 15%,
            #a8536a 30%,
            #8c5a7d 45%,
            #6d5c80 60%,
            #5a5a70 75%,
            #4a4a50 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Header Hero */
.header {
    text-align: center;
    padding: 80px 24px 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.app-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Emoji Cloud */
.emoji-cloud {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.7;
    animation: floatEmoji 6s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    z-index: 0;
}

@media (max-width: 768px) {
    .emoji-cloud {
        font-size: 2rem;
        opacity: 0.4;
        animation: none;
    }

    .emoji-cloud:nth-child(1) {
        top: 5%;
        left: 5%;
    }

    .emoji-cloud:nth-child(2) {
        top: 8%;
        right: 5%;
    }

    .emoji-cloud:nth-child(3) {
        top: 75%;
        left: 3%;
    }

    .emoji-cloud:nth-child(4) {
        top: 78%;
        right: 3%;
    }

    .emoji-cloud:nth-child(5) {
        top: 85%;
        left: 8%;
    }

    .emoji-cloud:nth-child(6) {
        top: 88%;
        right: 8%;
    }
}

.emoji-cloud:nth-child(1) {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
}

.emoji-cloud:nth-child(2) {
    top: 18%;
    right: 10%;
    animation-delay: 1s;
}

.emoji-cloud:nth-child(3) {
    top: 38%;
    left: 5%;
    animation-delay: 2s;
}

.emoji-cloud:nth-child(4) {
    top: 32%;
    right: 6%;
    animation-delay: 0.5s;
}

.emoji-cloud:nth-child(5) {
    top: 58%;
    left: 12%;
    animation-delay: 1.5s;
}

.emoji-cloud:nth-child(6) {
    top: 55%;
    right: 8%;
    animation-delay: 2.5s;
}

@keyframes floatEmoji {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotate(5deg) scale(1.05);
    }
}

h1 {
    font-family: 'Nunito', 'SF Pro Rounded', -apple-system, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header p {
    font-size: 1.3rem;
    margin-bottom: 12px;
    opacity: 0.85;
    max-width: 500px;
    line-height: 1.5;
    font-weight: 400;
}

#beta-info {
    font-size: 0.95rem;
    opacity: 0.6;
    margin-bottom: 32px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #1a1a1a;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cta-button .apple-icon {
    width: 22px;
    height: 22px;
}

.examples-text {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 32px;
    letter-spacing: 1px;
    font-weight: 500;
}

.ios-only {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Content */
.main-content {
    flex: 1;
    position: relative;
}

.section {
    min-height: 100vh;
    padding: 100px 24px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.large-title,
h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section p {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.75;
    margin-bottom: 20px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation Container */
.animation-container {
    min-height: 400px;
    height: 400px;
    margin-top: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* Features Strip */
.features-strip {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 60px 24px;
    opacity: 0.8;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item span:first-child {
    font-size: 1.8rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 12px;
    transition: opacity 0.2s;
}

.footer a:hover {
    color: white;
}

.footer span {
    opacity: 0.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translate(-150%, -150%) rotate(22deg);
    }

    100% {
        transform: translate(150%, 150%) rotate(22deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Grid Item Styles */
.grid-item {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Deck Card Styles */
.deck-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Send Card Styles */
.send-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
}

/* Send Wave Container - GPU acceleration */
#send-wave {
    will-change: contents;
    contain: layout style paint;
}

/* Intersection Observer fade-in */
.section-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .footer {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header {
        padding: 40px 20px 60px;
        min-height: 90vh;
    }

    .section {
        min-height: auto;
        padding: 60px 20px;
    }

    h1 {
        font-size: 3rem;
        letter-spacing: 1px;
    }

    .header p {
        font-size: 1.1rem;
    }

    #beta-info {
        font-size: 0.95rem;
    }

    .cta-button {
        padding: 16px 40px;
        font-size: 1.1rem;
    }

    .large-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1.1rem;
    }

    .animation-container {
        min-height: 250px;
        margin-top: 40px;
        transform: scale(0.9);
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .large-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .animation-container {
        transform: scale(0.8);
    }
}