/* Root Variables & Color System */
:root {
    --primary: #FF7B54;
    --primary-hover: #E76138;
    --secondary: #70A1FF;
    --secondary-hover: #548CFF;
    --accent: #FF5E7E;
    --warning: #FFA502;
    --success: #2ED573;
    
    /* Backgrounds */
    --bg-main: #FFFDF9;
    --bg-card: #FFFFFF;
    --bg-footer: #2F3542;
    --bg-soft-blue: #F0F4FF;
    --bg-soft-orange: #FFF2EE;
    --bg-soft-green: #EFFDF3;
    
    /* Text Colors */
    --text-main: #2F3542;
    --text-muted: #747D8C;
    --text-light: #F1F2F6;
    
    /* Fonts */
    --font-heading: 'Fredoka', 'Noto Sans KR', sans-serif;
    --font-body: 'Nunito', 'Noto Sans KR', sans-serif;
    
    /* Shadow & Border Radius */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(255, 123, 84, 0.15);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 253, 249, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.logo-lita {
    color: var(--primary);
}

.logo-studio {
    color: var(--secondary);
}

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

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 123, 84, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(255, 123, 84, 0.35);
}

.btn-secondary {
    background-color: var(--bg-soft-blue);
    color: var(--secondary-hover);
}

.btn-secondary:hover {
    background-color: #e2ebff;
    transform: translateY(-2px);
}

.btn-block {
    display: width;
    width: 100%;
}

.contact-btn {
    background-color: var(--secondary);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.contact-btn::after {
    display: none;
}

.contact-btn:hover {
    background-color: var(--secondary-hover);
    transform: scale(1.05);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #FFF6EE 0%, #FFFDF9 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 48px;
}

.badge {
    display: inline-block;
    background-color: var(--bg-soft-orange);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 123, 84, 0.15);
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.25;
    margin-bottom: 24px;
}

.highlight {
    color: var(--primary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

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

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 8px solid white;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation: floating 3s ease-in-out infinite alternate;
}

.card-2 {
    bottom: 15%;
    right: -5%;
    animation: floating 3s ease-in-out infinite alternate-reverse;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 50px;
}

.hero-wave .shape-fill {
    fill: var(--bg-main);
}

/* Mission Section */
.mission-section {
    padding: 120px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-muted);
}

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

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

.mission-card {
    background: var(--bg-card);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

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

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
}

.bg-soft-blue { background-color: var(--bg-soft-blue); }
.text-blue { color: var(--secondary-hover); }

.bg-soft-orange { background-color: var(--bg-soft-orange); }
.text-orange { color: var(--primary); }

.bg-soft-green { background-color: var(--bg-soft-green); }
.text-green { color: var(--success); }

.mission-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.mission-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Apps Section */
.apps-section {
    padding: 120px 0;
    background-color: #FFFDF9;
}

.app-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.app-item:last-child {
    margin-bottom: 0;
}

.app-reverse {
    direction: rtl;
}

.app-reverse .app-info {
    direction: ltr;
}

.app-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 16px;
}

.app-info h3 {
    font-size: 32px;
    margin-bottom: 16px;
}

.app-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.app-features {
    list-style: none;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 15px;
}

/* Mockup Design Showcase */
.app-mockup {
    display: flex;
    justify-content: center;
}

.mockup-frame {
    width: 320px;
    height: 520px;
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    border: 4px solid #fff;
    position: relative;
    overflow: hidden;
}

.bg-blue-grad { background: linear-gradient(135deg, #70A1FF 0%, #548CFF 100%); }
.bg-orange-grad { background: linear-gradient(135deg, #FF7B54 0%, #FF5E7E 100%); }
.bg-green-grad { background: linear-gradient(135deg, #2ED573 0%, #1B9CFC 100%); }

.app-mockup-inner {
    background: #FFFDF9;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: #fff;
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #f1f2f6;
}

.app-name-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #F8F9FA;
}

/* Lita Word UI */
.word-game {
    gap: 20px;
}

.word-card {
    background: white;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary);
}

.word-card-img {
    font-size: 64px;
    margin-bottom: 10px;
}

.word-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.speech-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-soft-blue);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--secondary-hover);
    font-weight: 700;
    font-size: 13px;
}

.text-danger { color: #ff4757; }

/* Lita Play UI */
.play-game {
    gap: 24px;
}

.target-shadow {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    border: 3px dashed #bdc581;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ced6e0;
}

.shapes-palette {
    display: flex;
    gap: 20px;
}

.shape-item {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
}

.text-info { color: #17a2b8; }
.text-warning { color: var(--warning); }

.drag-hint {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Lita Math UI */
.math-game {
    gap: 16px;
}

.math-problem {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
}

.dot-count {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
}

.dot {
    margin: 0 2px;
}

.text-success { color: var(--success); }

.math-options {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.opt-btn {
    background: white;
    border: 2px solid #ced6e0;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.opt-btn.active {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

/* Features/Philosophy Section */
.features-section {
    padding: 120px 0;
    background-color: var(--bg-soft-blue);
}

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

.feature-item {
    background: white;
    padding: 40px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--bg-soft-orange);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background-color: var(--bg-main);
}

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

.contact-info h2 {
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 24px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
}

.detail-item i {
    width: 40px;
    height: 40px;
    background: var(--bg-soft-blue);
    color: var(--secondary-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ced6e0;
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 123, 84, 0.15);
}

.form-status {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-top: 10px;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--accent);
}

/* Footer */
.main-footer {
    background-color: var(--bg-footer);
    color: var(--text-light);
    padding: 80px 0 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: var(--font-heading);
}

.footer-brand .logo-lita {
    font-size: 32px;
    font-weight: 700;
}

.footer-brand .logo-studio {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.footer-brand p {
    margin-top: 12px;
    color: #a4b0be;
    font-size: 14px;
}

.footer-links h4, .footer-info h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #a4b0be;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-info p {
    color: #a4b0be;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Custom Keyframe Animations */
@keyframes floating {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

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

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

.animate-pulse {
    animation: pulse 2.5s infinite ease-in-out;
}

.animate-bounce {
    animation: bounce 3s infinite ease-in-out;
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-on-scroll.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content p {
        margin: 0 auto 36px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-card {
        display: none; /* Hide cards on smaller viewports to prevent overflow */
    }
    
    .app-item {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .app-reverse {
        direction: ltr;
    }
    
    .app-features li {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #FFFDF9;
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        transition: 0.4s ease-in-out;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .mission-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
