/* ============================================
   Translator Website Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary: #007AFF;
    --primary-dark: #0056b3;
    --secondary: #5856D6;
    --success: #34C759;
    --warning: #FF9500;
    --danger: #FF3B30;
    
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

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

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

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

.download-link {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.download-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.download-link::after {
    display: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.5);
    color: white;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-large .btn-icon {
    width: 24px;
    height: 24px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.hero-text {
    max-width: 520px;
}

.app-icon-large {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
}

.app-icon-large svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 24px rgba(0, 122, 255, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gray-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-description strong {
    color: var(--primary);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-bottom: 36px;
}

/* Screenshot */
.hero-image {
    display: flex;
    justify-content: center;
}

.screenshot-wrapper {
    position: relative;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.screenshot-wrapper:hover {
    transform: translateY(-4px);
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Legacy styles - can be removed if not used elsewhere */
.screenshot-container {
    position: relative;
}

.screenshot-frame {
    width: 320px;
    background: var(--bg-primary);
    border-radius: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 12px var(--gray-900);
    overflow: hidden;
}

.screenshot-content {
    padding: 12px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: var(--gray-900);
    border-radius: 24px 24px 0 0;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-time {
    font-variant-numeric: tabular-nums;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.app-screen {
    background: var(--gray-50);
    padding: 20px;
    min-height: 380px;
}

.translation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: var(--radius);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.lang-label {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 28px;
    text-align: center;
}

.translation-item .text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.status-translation {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
}

.status-label {
    color: var(--text-tertiary);
    font-weight: 500;
}

.status-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-secondary);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

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

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-desc a {
    font-weight: 500;
}

/* ============================================
   Languages Section
   ============================================ */
.languages {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.languages-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.language-tag {
    background: var(--bg-primary);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.language-tag:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-section a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ============================================
   Policy Page
   ============================================ */
.policy-page {
    padding: 120px 0 80px;
    background: var(--bg-secondary);
    min-height: calc(100vh - 300px);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.policy-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--gray-200);
}

.policy-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.policy-date {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section:last-of-type {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    margin-top: 40px;
}

.policy-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 28px;
}

.policy-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.policy-section a {
    font-weight: 500;
}

.policy-footer {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 2px solid var(--gray-200);
    text-align: center;
}

.policy-footer p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .app-icon-large {
        margin: 0 auto 24px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 64px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero {
        padding: 120px 0 80px;
    }

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

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

    .screenshot-frame {
        width: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .feature-card {
        padding: 28px 24px;
    }

    .languages-grid {
        gap: 12px;
    }

    .language-tag {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-desc {
        font-size: 1.1rem;
    }

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

    .policy-content {
        padding: 40px 24px;
    }

    .policy-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .logo-text {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .screenshot-frame {
        width: 260px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: fadeIn 0.8s ease-out;
}

.hero-image {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.feature-card {
    animation: fadeIn 0.6s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
