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

:root {
    --primary-color: #007AFF;
    --primary-dark: #0056CC;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --background: #FFFFFF;
    --surface: #F5F5F7;
    --border: #E5E5E7;
    --gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--background);
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Apps Overview Styles */
.apps-overview {
    padding: 100px 0;
    background: var(--surface);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.app-card {
    background: var(--background);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.app-card .app-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.app-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.app-tagline {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px !important;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}

.feature-tag {
    background: var(--surface);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.app-cta {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 16px;
}

.app-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* App Detail Sections */
.app-detail {
    padding: 100px 0;
}

.app-detail.life-simulator-detail {
    background: var(--surface);
}

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

.app-detail-content.reverse {
    direction: rtl;
}

.app-detail-content.reverse > * {
    direction: ltr;
}

.app-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.app-detail h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.app-detail p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-item .feature-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Game Mockup Styles */
.game-mockup {
    width: 300px;
    height: 500px;
    background: #1a1a1a;
    border-radius: 24px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.game-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.game-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-hud {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.character-stats {
    display: flex;
    gap: 12px;
}

.character-stats .stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: white;
    font-weight: 600;
}

.game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.game-scene {
    font-size: 4rem;
    margin-bottom: 20px;
}

.quest-dialog {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 16px;
    color: white;
    max-width: 200px;
}

.quest-dialog h4 {
    color: #ffd700;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.quest-dialog p {
    font-size: 0.75rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.choices {
    display: flex;
    gap: 8px;
}

.choice-btn {
    flex: 1;
    padding: 6px 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.choice-btn:hover {
    background: var(--primary-dark);
}

/* Download Section Updates */
.download-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin: 48px 0;
}

.download-app {
    background: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    text-align: center;
}

.app-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.app-info .app-icon {
    font-size: 2.5rem;
}

.app-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.app-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.download-app .download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Pricing Updates */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.pricing-card .app-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .app-detail {
        padding: 80px 0;
    }
    
    .app-detail-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .app-detail h2 {
        font-size: 2rem;
    }
    
    .download-apps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .download-app {
        padding: 24px;
    }
    
    .download-app .download-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .app-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .game-mockup {
        width: 250px;
        height: 400px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border);
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        padding: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .download-app .download-buttons img {
        height: 40px;
    }
    
    .game-mockup {
        width: 200px;
        height: 320px;
    }
}

/* Legal Pages Styles */
.legal-content {
    padding: 120px 0 80px;
    background-color: var(--background);
    min-height: 100vh;
}

.legal-header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.legal-body h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.legal-body h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-body p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.legal-body ul {
    margin: 20px 0;
    padding-left: 30px;
}

.legal-body li {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.legal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-info {
    background-color: var(--surface);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Navigation logo link styles */
.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-logo a:hover {
    text-decoration: none;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.logo-icon {
    font-size: 1.5rem;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link.cta-button {
    background: var(--gradient);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #F8F9FF 0%, #FFFFFF 100%);
    overflow: hidden;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: white;
    box-shadow: var(--shadow);
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1D1D1F 0%, #2D2D2F 100%);
    border-radius: 40px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-interface {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.trial-badge {
    background: var(--warning-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-icon {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.dice-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.app-content p {
    color: var(--text-secondary);
    margin: 0;
}

.surprise-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--surface);
}

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

.feature-card {
    background: white;
    padding: 40px 32px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    margin-top: 64px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
    background: var(--surface);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 400px;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 4px;
}

.trial-badge {
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 32px;
    display: inline-block;
}

.card-features {
    text-align: left;
    margin-bottom: 32px;
}

.feature {
    padding: 8px 0;
    color: var(--text-secondary);
}

.pricing-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Download Section */
.download {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
    margin-bottom: 16px;
}

.download p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}

.download-btn img {
    height: 60px;
    transition: var(--transition);
}

.download-btn:hover img {
    transform: scale(1.05);
}

.download-note p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 64px 0 32px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.link-group h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: white;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 32px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

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

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

    .step {
        flex-direction: column;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-links {
        justify-content: center;
        gap: 32px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

    .pricing-card.featured {
        transform: none;
    }
}