/* Homepage specific styles - extends common.css */

:root {
    --primary-color: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.4);
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-dim: #888888;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-card: linear-gradient(145deg, rgba(26, 26, 26, 0.9) 0%, rgba(32, 32, 32, 0.9) 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    position: relative;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    background: radial-gradient(circle at top center, #1a1a1a 0%, #0a0a0a 70%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.hero-content p {
    font-size: 1.35rem;
    margin-bottom: 3.5rem;
    color: #cccccc;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: var(--glass-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Tools Section */
.tools-section {
    padding: 6rem 2rem;
    background: #0a0a0a;
    position: relative;
}

.tools-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tools-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.tools-header p {
    font-size: 1.125rem;
    color: #888;
}

.tools-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.tool-card {
    background: var(--gradient-card);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 255, 136, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tool-card.available:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
}

.tool-card.available:hover::before {
    opacity: 1;
}

.tool-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    border: 1px solid rgba(255, 170, 0, 0.2);
}

.tool-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.3));
}

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

.tool-content {
    position: relative;
    z-index: 1;
}

.tool-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.tool-content p {
    color: #999;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-card.available .tool-status {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

.tool-card.coming-soon .tool-status {
    background: rgba(255, 170, 0, 0.1);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.tool-arrow {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 24px;
    height: 24px;
    color: #444;
    transition: all 0.3s ease;
    z-index: 1;
}

.tool-card.available:hover .tool-arrow {
    color: #00ff88;
    transform: translate(5px, -5px);
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

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

.feature {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    padding: 16px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

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

.feature h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.feature p {
    color: #888;
    line-height: 1.6;
}

/* Comparison Table Section */
.comparison-section {
    padding: 6rem 2rem;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #888;
}

.comparison-table-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto;
    background: #151515;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    -webkit-overflow-scrolling: touch;
}

/* Desktop only scrollbar for table (not touch devices) */
@media (hover: hover) and (pointer: fine) {
    .comparison-table-wrapper {
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #1a1a1a;
    }

    .comparison-table-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .comparison-table-wrapper::-webkit-scrollbar-track {
        background: #1a1a1a;
        border-radius: 4px;
    }

    .comparison-table-wrapper::-webkit-scrollbar-thumb {
        background-color: var(--primary-color);
        border-radius: 4px;
    }
}

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

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #2a2a2a;
}

.comparison-table th {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: #1a1a1a;
}

.comparison-table th.highlight {
    color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
    border-bottom: 2px solid var(--primary-color);
}

.comparison-table td {
    color: #ccc;
    font-size: 1.1rem;
}

.comparison-table td.highlight {
    background: rgba(0, 255, 136, 0.02);
    font-weight: 600;
    color: #fff;
}

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

.check {
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cross {
    color: #ff4444;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #555;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

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

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #aaa;
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        min-height: auto;
        display: block;
    }

    .hero {
        flex: none;
        overflow: visible;
        padding: 4rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem 2rem;
        padding: 1rem 0.75rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .comparison-table th {
        font-size: 0.9rem;
    }

    .tools-section,
    .features-section,
    .comparison-section,
    .faq-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        min-height: auto;
        display: block;
    }

    .hero {
        flex: none;
        overflow: visible;
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 1rem 1.5rem;
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }

    .tools-header,
    .features-header,
    .section-header {
        margin-bottom: 3rem;
    }

    .tools-header h3,
    .features-header h3,
    .section-header h3 {
        font-size: 1.75rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .tool-content h4 {
        font-size: 1.25rem;
    }

    .tool-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .tool-arrow {
        top: 1.5rem;
        right: 1.5rem;
        width: 20px;
        height: 20px;
    }

    .feature {
        padding: 2rem 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        padding: 12px;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-icon {
        font-size: 1.25rem;
    }

    .faq-answer p {
        padding: 0 1rem 1rem;
    }
    
    /* Smaller table for small mobile */
    .comparison-table-wrapper {
        margin: 0 -0.5rem;
    }
    
    .comparison-table {
        min-width: 500px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .comparison-table th {
        font-size: 0.8rem;
    }
}