/* Reset and Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066CC;
    --primary-dark: #0052a3;
    --secondary-color: #00AA55;
    --accent-color: #FF6B35;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-dark: #1A1A2E;
    --bg-dark-secondary: #16213E;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-secondary);
}

.btn-download {
    background-color: var(--secondary-color);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-download:hover {
    background-color: #008f47;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 170, 85, 0.3);
}

.btn-download-large {
    background-color: var(--secondary-color);
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    border-radius: var(--radius-xl);
}

.btn-download-large:hover {
    background-color: #008f47;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 170, 85, 0.35);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 170, 85, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.hero-content {
    color: white;
}

.hero-title {
    margin-bottom: 20px;
}

.hero-title-main {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-sub {
    display: block;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    margin-top: 8px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.hero-stats {
    margin-bottom: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #00AA55 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.hero-badges {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-icon {
    width: 40px;
    height: 28px;
}

.badge-icon svg {
    width: 100%;
    height: 100%;
}

.badge-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Hero App Showcase */
.hero-image {
    position: relative;
    height: 500px;
}

.app-showcase {
    position: relative;
    width: 100%;
    height: 100%;
}

.app-window {
    position: absolute;
    width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transition: var(--transition);
}

.app-window:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.app-window.writer {
    top: 0;
    left: 0;
    z-index: 3;
}

.app-window.spreadsheet {
    top: 60px;
    left: 100px;
    z-index: 2;
}

.app-window.presentation {
    top: 120px;
    left: 200px;
    z-index: 1;
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #FF5F56; }
.dot.yellow { background-color: #FFBD2E; }
.dot.green { background-color: #27C93F; }

.window-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.window-content {
    padding: 20px;
}

.doc-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-line {
    height: 10px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
    border-radius: 4px;
}

.doc-title {
    height: 16px;
    width: 70%;
    background: linear-gradient(90deg, #0066CC 0%, #4d94e6 100%);
}

.doc-short {
    width: 50%;
}

.sheet-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sheet-row {
    display: flex;
    gap: 6px;
}

.sheet-cell {
    flex: 1;
    height: 24px;
    background: #f9fafb;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.sheet-cell.header {
    background: linear-gradient(135deg, #0066CC 0%, #4d94e6 100%);
}

.slide-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.slide-chart {
    width: 80%;
    height: 60px;
    background: linear-gradient(135deg, #00AA55 0%, #4dd47f 100%);
    border-radius: var(--radius-sm);
}

.slide-text {
    width: 60%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 4px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-title-light {
    color: white;
}

.section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.benefit-item {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.benefit-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Security Section */
.security {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    overflow: hidden;
}

.security-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(0, 170, 85, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.security-content {
    position: relative;
    z-index: 1;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.security-item {
    text-align: center;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.security-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.security-icon svg {
    width: 100%;
    height: 100%;
}

.security-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.security-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Awards Section */
.awards {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.award-item {
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.award-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.award-badge {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.award-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 48px auto 0;
    overflow: hidden;
}

.testimonial-card {
    display: none;
    padding: 48px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-rating {
    margin-bottom: 24px;
}

.star {
    font-size: 24px;
    color: #FFC107;
}

.testimonial-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 14px;
    color: var(--text-secondary);
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.nav-dot:hover {
    background-color: var(--primary-color);
}

/* Community Section */
.community {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.community-card {
    padding: 40px 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.community-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.community-icon svg {
    width: 100%;
    height: 100%;
}

.community-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.community-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.community-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.community-link:hover {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-icon {
    height: 32px;
}

.language-select {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.language-select option {
    background: var(--bg-dark);
    color: white;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .stat-item {
        align-items: center;
    }
    
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .security-grid,
    .community-grid {
        grid-template-columns: 1fr;
    }
    
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-right {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title-main,
    .hero-title-sub {
        font-size: 32px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .features-grid,
    .benefits-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .testimonial-text {
        font-size: 16px;
    }
    
    .testimonial-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title-main,
    .hero-title-sub {
        font-size: 24px;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-download,
    .btn-download-large {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-window {
    animation: float 6s ease-in-out infinite;
}

.app-window.spreadsheet {
    animation-delay: -2s;
}

.app-window.presentation {
    animation-delay: -4s;
}

/* Scroll animations */
.feature-card,
.benefit-item,
.security-item,
.community-card,
.award-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.benefit-item.visible,
.security-item.visible,
.community-card.visible,
.award-item.visible {
    opacity: 1;
    transform: translateY(0);
}
