/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #A78BFA;
    --secondary-color: #F59E0B;
    --accent-color: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-purple-gold: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient-purple-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.logo-text {
    background: var(--gradient-purple-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-purple-gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-download {
    background: var(--gradient-purple-gold);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    -webkit-text-fill-color: white;
}

.nav-link-download::after {
    display: none;
}

.nav-link-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.6;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-purple-gold);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-purple-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(145deg, #1F2937 0%, #111827 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-2xl);
    animation: float 3s ease-in-out infinite;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #374151;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-purple-gold);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS-Only Solitaire Card Display */
.solitaire-demo {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.card-stack {
    position: relative;
    width: 140px;
    height: 180px;
}

.playing-card {
    position: absolute;
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card-suit {
    font-size: 48px;
    font-weight: bold;
}

.card-1 {
    left: 0;
    top: 0;
    transform: rotate(-8deg);
    z-index: 1;
    animation: card-float-1 3s ease-in-out infinite;
}

.card-1 .card-suit {
    color: #000;
}

.card-2 {
    left: 20px;
    top: 10px;
    transform: rotate(-3deg);
    z-index: 2;
    animation: card-float-2 3s ease-in-out infinite 0.2s;
}

.card-2 .card-suit {
    color: #DC2626;
}

.card-3 {
    left: 40px;
    top: 5px;
    transform: rotate(3deg);
    z-index: 3;
    animation: card-float-3 3s ease-in-out infinite 0.4s;
}

.card-3 .card-suit {
    color: #DC2626;
}

.card-4 {
    left: 60px;
    top: 15px;
    transform: rotate(8deg);
    z-index: 4;
    animation: card-float-4 3s ease-in-out infinite 0.6s;
}

.card-4 .card-suit {
    color: #000;
}

.game-text {
    font-size: 56px;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 8px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes card-float-1 {
    0%, 100% {
        transform: rotate(-8deg) translateY(0);
    }
    50% {
        transform: rotate(-8deg) translateY(-10px);
    }
}

@keyframes card-float-2 {
    0%, 100% {
        transform: rotate(-3deg) translateY(0);
    }
    50% {
        transform: rotate(-3deg) translateY(-8px);
    }
}

@keyframes card-float-3 {
    0%, 100% {
        transform: rotate(3deg) translateY(0);
    }
    50% {
        transform: rotate(3deg) translateY(-12px);
    }
}

@keyframes card-float-4 {
    0%, 100% {
        transform: rotate(8deg) translateY(0);
    }
    50% {
        transform: rotate(8deg) translateY(-10px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.6);
    }
}

.screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-purple-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-top: 32px;
}

.about-list li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 8px;
}

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

/* CSS-Only Card Fan Illustration */
.about-illustration {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-fan {
    position: relative;
    width: 300px;
    height: 250px;
}

.fan-card {
    position: absolute;
    width: 120px;
    height: 170px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    transition: transform 0.3s ease;
    left: 50%;
    bottom: 0;
    transform-origin: center bottom;
}

.fan-1 {
    transform: translateX(-50%) rotate(-30deg);
    z-index: 1;
    animation: fan-hover-1 4s ease-in-out infinite;
}

.fan-2 {
    transform: translateX(-50%) rotate(-15deg);
    z-index: 2;
    color: #DC2626;
    animation: fan-hover-2 4s ease-in-out infinite 0.2s;
}

.fan-3 {
    transform: translateX(-50%) rotate(0deg);
    z-index: 3;
    animation: fan-hover-3 4s ease-in-out infinite 0.4s;
}

.fan-4 {
    transform: translateX(-50%) rotate(15deg);
    z-index: 4;
    color: #DC2626;
    animation: fan-hover-4 4s ease-in-out infinite 0.6s;
}

.fan-5 {
    transform: translateX(-50%) rotate(30deg);
    z-index: 5;
    animation: fan-hover-5 4s ease-in-out infinite 0.8s;
}

.about-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: var(--gradient-purple-gold);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: white;
    animation: badge-pulse 3s ease-in-out infinite;
}

.badge-icon {
    font-size: 36px;
}

.badge-text {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

@keyframes fan-hover-1 {
    0%, 100% {
        transform: translateX(-50%) rotate(-30deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(-30deg) translateY(-10px);
    }
}

@keyframes fan-hover-2 {
    0%, 100% {
        transform: translateX(-50%) rotate(-15deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(-15deg) translateY(-12px);
    }
}

@keyframes fan-hover-3 {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(0deg) translateY(-15px);
    }
}

@keyframes fan-hover-4 {
    0%, 100% {
        transform: translateX(-50%) rotate(15deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(15deg) translateY(-12px);
    }
}

@keyframes fan-hover-5 {
    0%, 100% {
        transform: translateX(-50%) rotate(30deg) translateY(0);
    }
    50% {
        transform: translateX(-50%) rotate(30deg) translateY(-10px);
    }
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(124, 58, 237, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(124, 58, 237, 0.6);
    }
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.download-card {
    text-align: center;
    color: white;
}

.download-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.download-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.download-note {
    margin-top: 24px;
    font-size: 14px;
    opacity: 0.85;
}

/* Footer */
.footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #374151;
    font-size: 14px;
}

/* 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(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .phone-mockup {
        width: 250px;
        height: 500px;
    }

    .download-title {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }

    .stat-number {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
    }
}
