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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d2129;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Navigation - Figma Color System */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid #f0f0f0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 28px;
    color: #fc8530;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fc8530, #ca6b26);
    box-shadow: 0 4px 15px rgba(252, 133, 48, 0.3);
}

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

.nav-link {
    text-decoration: none;
    color: #1d2129;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
}

.nav-link:hover {
    color: #fc8530;
    background: rgba(252, 133, 48, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #fc8530;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

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

.bar {
    width: 28px;
    height: 4px;
    background: #fc8530;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section - Duolingo Style with Character */
.hero {
    background: linear-gradient(135deg, #fff3ea 0%, #fee7d6 50%, #eff0f1 100%);
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 133, 48, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(254, 206, 172, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #1d2129;
    letter-spacing: -1px;
}

.highlight {
    color: #fc8530;
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(252, 133, 48, 0.3);
    z-index: -1;
    border-radius: 6px;
    transform: skew(-12deg);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #4e5969;
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 500;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #fc8530, #ca6b26);
    color: white;
    box-shadow: 0 8px 25px rgba(252, 133, 48, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ca6b26, #b85a1f);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(252, 133, 48, 0.5);
}

.btn-secondary {
    background: white;
    color: #fc8530;
    border: 3px solid #fc8530;
    box-shadow: 0 8px 25px rgba(252, 133, 48, 0.2);
}

.btn-secondary:hover {
    background: #fc8530;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(252, 133, 48, 0.3);
}

/* Character Section - Duolingo Style */
.hero-character {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.character-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.character {
    position: relative;
    z-index: 2;
    text-align: center;
}

.character-img {
    width: 300px;
    height: 400px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: characterFloat 4s ease-in-out infinite;
    object-fit: cover;
}

.character-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fc8530;
    margin-top: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.character-bubble {
    background: white;
    padding: 20px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
    position: relative;
    border: 3px solid rgba(252, 133, 48, 0.2);
    animation: bubbleFloat 3s ease-in-out infinite;
}

.character-bubble::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid white;
}

.character-bubble p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d2129;
    margin: 0;
    text-align: center;
}

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

/* How It Works Section - Duolingo Style */
.how-it-works {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, rgba(252, 133, 48, 0.05) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1d2129;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.3rem;
    color: #4e5969;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.6;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(252, 133, 48, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(252, 133, 48, 0.2);
    border-color: rgba(252, 133, 48, 0.3);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fc8530, #ca6b26);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(252, 133, 48, 0.4);
}

.step-character {
    margin: 20px 0 25px;
    text-align: center;
}

.step-character-img {
    width: 120px;
    height: 160px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.step:hover .step-character-img {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(252, 133, 48, 0.2);
}

.step-character-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fc8530;
    margin-bottom: 10px;
}

.step-icon {
    margin: 20px 0 25px;
}

.step-icon i {
    font-size: 48px;
    color: #fc8530;
    background: rgba(252, 133, 48, 0.1);
    padding: 25px;
    border-radius: 50%;
    display: inline-block;
}

.step h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.step p {
    font-size: 1.1rem;
    color: #4e5969;
    line-height: 1.6;
    font-weight: 500;
}

/* Download Section - Duolingo Style with Character */
.download {
    padding: 120px 0;
    background: linear-gradient(135deg, #1d2129 0%, #2d3748 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(252, 133, 48, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.download-character {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.character-img-small {
    width: 200px;
    height: 250px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: characterFloat 4s ease-in-out infinite;
    object-fit: cover;
    margin-bottom: 15px;
}

.character-name-small {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fc8530;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.download-text {
    text-align: left;
}

.download-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.download-text p {
    font-size: 1.3rem;
    color: #cbd5e1;
    margin-bottom: 50px;
    font-weight: 500;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 25px;
    flex-direction: column;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 30px;
    background: white;
    color: #1d2129;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(252, 133, 48, 0.3);
    border-color: rgba(252, 133, 48, 0.3);
}

.download-btn i {
    font-size: 32px;
    color: #fc8530;
}

.download-text .download-label {
    font-size: 12px;
    color: #86909c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-text .download-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Footer - Figma Color System */
.footer {
    background: linear-gradient(135deg, #1d2129 0%, #2d3748 100%);
    color: white;
    padding: 80px 0 50px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(252, 133, 48, 0.05) 0%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 28px;
    color: #fc8530;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fc8530, #ca6b26);
    box-shadow: 0 4px 15px rgba(252, 133, 48, 0.3);
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 500;
    font-size: 1.1rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
    letter-spacing: -0.5px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 18px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
}

.footer-section ul li a:hover {
    color: #fc8530;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cbd5e1;
    position: relative;
    z-index: 2;
}

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

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

.footer-links a:hover {
    color: #fc8530;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .download-text {
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 50px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .character-img {
        width: 250px;
        height: 350px;
    }
    
    .character-img-small {
        width: 150px;
        height: 200px;
    }
    
    .step-character-img {
        width: 100px;
        height: 130px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .download-text h2 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .character-img {
        width: 200px;
        height: 280px;
    }
    
    .character-img-small {
        width: 120px;
        height: 160px;
    }
    
    .step-character-img {
        width: 80px;
        height: 110px;
    }
    
    .step {
        padding: 30px 20px;
    }
    
    .step-icon i {
        font-size: 36px;
        padding: 20px;
    }
    
    .character-name {
        font-size: 1.3rem;
    }
    
    .step-character-name {
        font-size: 1rem;
    }
    
    .character-name-small {
        font-size: 1.1rem;
    }
}
