/**
 * landing-page.css
 * Styling for tool landing pages
 */

:root {
    --primary: #007AFF;
    --primary-dark: #0051D5;
    --secondary: #34C759;
    --bg: #ffffff;
    --bg-alt: #F8F9FA;
    --text: #1A1A1A;
    --text-light: #6B6B6B;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

/* ==================== TOOLS NAVIGATION ==================== */
.tools-nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.tools-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: #667eea;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.nav-logo:hover {
    color: #5568d3;
}

.tools-menu {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tools-menu::-webkit-scrollbar {
    display: none;
}

.tool-nav-item {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
    background: white;
    border: 2px solid var(--border);
}

.tool-nav-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.tool-nav-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-all-tools {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
    border: 2px solid #667eea;
}

.nav-all-tools:hover {
    background: #5568d3;
    border-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .tools-nav {
        padding: 12px 0;
    }
    
    .tools-nav-container {
        gap: 12px;
    }
    
    .nav-logo {
        font-size: 18px;
    }
    
    .tool-nav-item {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .nav-all-tools {
        font-size: 13px;
        padding: 8px 16px;
    }
}



/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0 Q300,60 600,30 T1200,0 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') bottom;
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-size: 16px;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-cta {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.trust-indicators {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 80px 20px;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text);
}

.steps {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    font-size: 15px;
}

/* ==================== COMPARISON TABLE ==================== */
.comparison {
    padding: 80px 20px;
    background: var(--bg-alt);
}

.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    font-weight: 700;
    font-size: 16px;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-size: 15px;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.check { color: var(--success); font-size: 20px; }
.cross { color: #EF4444; font-size: 20px; }

.highlight-col {
    background: #F0F9FF;
}

.comparison-note {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.7;
}

/* ==================== FEATURES GRID ==================== */
.features {
    padding: 80px 20px;
    background: var(--bg);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0,122,255,0.15);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 80px 20px;
    background: var(--bg-alt);
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 25px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.faq-answer {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== CTA SECTION ==================== */
.final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.social-proof {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    font-size: 14px;
}

/* ==================== TOOL EMBED ==================== */
.tool-embed {
    padding: 0;
    background: #f8f9fa;
}

.tool-embed iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: none;
}

/* ==================== SHARE SECTION ==================== */
.share-wrapper {
    padding: 40px 20px;
    background: var(--bg);
}

.share-wrapper > div {
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero-features { flex-direction: column; gap: 15px; align-items: center; }
    .steps { grid-template-columns: 1fr; }
    .comparison-table { font-size: 13px; overflow-x: auto; }
    .comparison-table th, .comparison-table td { padding: 12px 8px; }
    .features-grid { grid-template-columns: 1fr; }
    .trust-indicators { flex-direction: column; gap: 15px; }
    .social-proof { flex-direction: column; gap: 15px; }
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs-container {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #667eea;
}

.breadcrumbs .separator {
    color: var(--border);
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 600;
}

/* ==================== LANGUAGE SELECTOR ==================== */
.language-selector {
    position: relative;
}

.lang-button {
    padding: 10px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-button:hover {
    border-color: #667eea;
    color: #667eea;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: #f8f9fa;
    color: #667eea;
}

.lang-option.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

/* ==================== INLINE CTA ==================== */
.cta-inline {
    background: linear-gradient(135deg, #f8f9fa 0%, #e5e7eb 100%);
    padding: 60px 20px;
    text-align: center;
}

.cta-inline-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-inline h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.cta-inline p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ==================== PRO FEATURES ==================== */
.pro-features {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
}

.pro-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pro-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.pro-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.pro-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.15);
}

.pro-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.pro-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pro-card p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.6;
}

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

.pro-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.pro-note {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}

/* ==================== RELATED TOOLS ==================== */
.related-tools {
    padding: 80px 20px;
    background: #f8f9fa;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-tool-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.related-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.related-tool-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.related-tool-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

.related-arrow {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px;
    }
    
    .lang-menu {
        right: 0;
        left: auto;
    }
    
    .cta-inline h3 {
        font-size: 24px;
    }
    
    .cta-inline p {
        font-size: 16px;
    }
    
    .pro-features {
        padding: 60px 20px;
    }
    
    .pro-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== STICKY CTA (Floating Action Button) ==================== */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sticky-cta.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sticky-cta-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.sticky-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.5);
}

.sticky-cta-button:active {
    transform: translateY(-1px);
}

.sticky-cta-icon {
    font-size: 20px;
    animation: pulse 2s infinite;
}

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

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .sticky-cta-button {
        padding: 14px 24px;
        font-size: 15px;
    }
}
