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

:root {
    --primary-color: #FF6B35;
    --primary-dark: #E85A2A;
    --primary-light: #FFA07A;
    --secondary-color: #00D9FF;
    --accent-color: #FFD23F;
    --purple: #9B59B6;
    --green: #2ECC71;
    --text-primary: #ffffff;
    --text-secondary: #555555;
    --text-dark: #2C3E50;
    --bg-light: #FFF9F0;
    --bg-card: #ffffff;
    --bg-hover: #FFF5E6;
    --gradient-1: linear-gradient(135deg, #FF6B35 0%, #FFD23F 50%, #00D9FF 100%);
    --gradient-2: linear-gradient(135deg, #9B59B6 0%, #FF6B35 100%);
    --shadow-sm: 0 3px 10px rgba(255, 107, 53, 0.15);
    --shadow-md: 0 6px 20px rgba(255, 107, 53, 0.2);
    --shadow-lg: 0 10px 40px rgba(255, 107, 53, 0.25);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.back-home {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    color: var(--primary-color);
    border: 3px solid var(--text-dark);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 15px;
    padding: 10px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-home:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.ttkid-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 40%, #00D9FF 70%, #9B59B6 100%);
    overflow: hidden;
    padding: 80px 20px;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

.float1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.float2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.float3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 20%;
    animation-delay: 4s;
}

.float4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 25%;
    animation-delay: 6s;
}

.float5 {
    width: 220px;
    height: 220px;
    bottom: 30%;
    right: 10%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

.ttkid-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
}

.badge-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    border: 3px solid var(--accent-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pulse {
    animation: pulse 2s infinite;
}

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

.ttkid-title {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2), 
                 8px 8px 0px rgba(255, 210, 63, 0.3);
    transform: rotate(-2deg);
}

.title-word {
    display: inline-block;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.title-word:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ttkid-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: white;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 6px 0 #E5B82F, var(--shadow-md);
    border: 3px solid var(--text-dark);
    font-weight: 700;
    transform: translateY(0);
}

.download-btn:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #E5B82F, var(--shadow-sm);
}

.pulse-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 157, 0.6);
    }
}

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 3px solid var(--text-dark);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.btn-outline:hover {
    transform: translateY(3px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

/* Content Section */
.ttkid-content {
    background: var(--bg-dark);
    padding: 80px 20px;
}

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

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

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--bg-card);
    border: 4px solid var(--text-dark);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
    transform: rotate(0deg);
}

.feature-card:nth-child(1) {
    transform: rotate(-1deg);
}

.feature-card:nth-child(2) {
    transform: rotate(1deg);
}

.feature-card:nth-child(3) {
    transform: rotate(-1deg);
}

.feature-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.1), var(--shadow-lg);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    border: 4px solid var(--text-dark);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features List Grid */
.features-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.feature-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-list-item:hover {
    background: var(--bg-hover);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateX(5px);
}

.feature-list-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-list-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshot Grid */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid rgba(255, 107, 157, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(255, 107, 157, 0.9), transparent);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-item:hover::after {
    transform: translateY(0);
}

.screenshot-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 107, 157, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: none;
}

.screenshot-overlay {
    display: none;
}

/* Download Section */
.download-section {
    background: var(--bg-card);
    border: 2px solid rgba(255, 107, 157, 0.2);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--primary-color);
}

.download-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.download-btn-large {
    background: var(--gradient-1);
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

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

.download-info {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.download-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-info i {
    color: var(--primary-color);
}

/* Footer */
.ttkid-footer {
    background: var(--bg-card);
    border-top: 2px solid rgba(255, 107, 157, 0.1);
    padding: 40px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ttkid-hero {
        padding: 60px 20px;
        min-height: 100vh;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

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

    .screenshot-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .download-section {
        padding: 40px 20px;
    }

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

    .footer-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .back-home {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 13px;
    }

    .badge-container {
        flex-direction: column;
        align-items: center;
    }

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

    .ttkid-hero {
        padding: 40px 15px;
        min-height: 100vh;
    }

    .ttkid-content {
        padding: 40px 15px;
    }
}
