/* Curvly Landing Page Styles */

/* Sticky Footer Layout */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, #1a0533 0%, #4c1d95 50%, #a855f7 100%);
    color: white;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.2) 0%, transparent 60%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.game-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff, #e9d5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-tagline {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

.game-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.btn-download {
    background: #a855f7;
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #9333ea;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5);
}

.btn-icon {
    font-size: 1.4rem;
}

/* Hero Visual — Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.phone-mockup {
    position: relative;
    width: 200px;
    height: 380px;
    background: linear-gradient(180deg, #1e1b4b, #0f0a2a);
    border-radius: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.curve-path {
    width: 160px;
    height: 200px;
}

.path-svg {
    width: 100%;
    height: 100%;
}

.draw-path {
    animation: dashDraw 3s linear infinite;
}

.curve-text {
    font-size: 12px;
    fill: white;
    font-weight: 600;
}

.mockup-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(168, 85, 247, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.label-icon {
    font-size: 0.9rem;
}

.label-text {
    font-size: 0.7rem;
    color: #e9d5ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.float-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.6);
    animation: float 3s ease-in-out infinite;
}

.float-dot:nth-child(1) { top: 15%; left: -30px; animation-delay: 0s; }
.float-dot:nth-child(2) { top: 40%; right: -25px; animation-delay: 0.8s; background: rgba(236, 72, 153, 0.7); width: 8px; height: 8px; }
.float-dot:nth-child(3) { bottom: 25%; left: -20px; animation-delay: 1.5s; background: rgba(168, 85, 247, 0.4); width: 14px; height: 14px; }
.float-dot:nth-child(4) { top: 65%; right: -35px; animation-delay: 0.4s; width: 6px; height: 6px; }

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works Section */
.how-to-play {
    padding: 5rem 0;
    background: white;
}

.how-to-play h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.instruction {
    text-align: center;
    padding: 2rem;
}

.instruction-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4c1d95, #a855f7);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.instruction h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.instruction p {
    color: #666;
    line-height: 1.6;
}

.play-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-store-large {
    background: linear-gradient(135deg, #4c1d95, #a855f7);
    color: white;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4);
    transition: all 0.3s ease;
}

.btn-store-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5);
}

/* App Footer Section */
.game-footer-section {
    padding: 2rem 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.footer-links {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #6d28d9;
    text-decoration: underline;
}

.separator {
    color: #9ca3af;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes dashDraw {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 40;
    }
}

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

    .game-title {
        font-size: 3rem;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .game-title {
        font-size: 2.5rem;
    }

    .game-tagline {
        font-size: 1.2rem;
    }

    .btn-download {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .features-section,
    .how-to-play {
        padding: 3rem 0;
    }

    .features-section h2,
    .how-to-play h2 {
        font-size: 2rem;
    }

    .phone-mockup {
        width: 160px;
        height: 300px;
    }

    .curve-path {
        width: 130px;
        height: 160px;
    }
}
