:root {
    --perplexity-primary: #20B2AA;
    --perplexity-secondary: #40E0D0;
    --perplexity-accent: #00CED1;
    --perplexity-dark: #2F4F4F;
    --perplexity-light: #F0FFFF;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.hero-section {
    background: linear-gradient(135deg, var(--perplexity-primary) 0%, var(--perplexity-secondary) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::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 100 100"><defs><pattern id="search-grid" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23search-grid)"/></svg>') repeat;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.perplexity-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--perplexity-primary), var(--perplexity-secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.search-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.search-demo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.search-box {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 15px 25px;
    color: white;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.search-box::placeholder {
    color: rgba(255,255,255,0.7);
}

.prompt-example {
    background: #f8f9fa;
    border-left: 4px solid var(--perplexity-primary);
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.prompt-example::before {
    content: '🔍';
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--perplexity-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--perplexity-primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
}

.stats-section {
    background: linear-gradient(135deg, var(--perplexity-primary) 0%, var(--perplexity-secondary) 100%);
    color: white;
    padding: 80px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: var(--perplexity-primary);
    color: white;
    padding: 20px;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.btn-perplexity {
    background: linear-gradient(135deg, var(--perplexity-primary), var(--perplexity-secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-perplexity:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.3);
    color: white;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--perplexity-primary), var(--perplexity-secondary));
    border-radius: 2px;
}

.source-badge {
    background: var(--perplexity-accent);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    display: inline-block;
}

/* Tutorial Styles */
.tutorial-section {
    margin-bottom: 60px;
}

.tutorial-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tutorial-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.tutorial-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    background: linear-gradient(135deg, var(--perplexity-primary), var(--perplexity-secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: var(--perplexity-dark);
    margin-bottom: 15px;
}

.tip-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid var(--perplexity-primary);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
}

.tip-box .tip-icon {
    color: var(--perplexity-primary);
    margin-right: 10px;
}

/* Guide Pratiche Styles */
.guide-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-icon {
    background: linear-gradient(135deg, var(--perplexity-primary), var(--perplexity-secondary));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Esempi Prompt Styles */
.prompt-category {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.prompt-category h4 {
    color: var(--perplexity-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.prompt-category h4 i {
    margin-right: 10px;
    color: var(--perplexity-primary);
}

.prompt-item {
    background: #f8f9fa;
    border-left: 4px solid var(--perplexity-primary);
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.prompt-item::before {
    content: '🔍';
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--perplexity-primary);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Casi d'Uso Styles */
.use-case-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.use-case-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.use-case-icon {
    background: linear-gradient(135deg, var(--perplexity-primary), var(--perplexity-secondary));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}

/* Trucchi Avanzati Styles */
.advanced-tip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.advanced-tip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.advanced-tip h5 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.advanced-tip h5 i {
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .tutorial-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .tutorial-card,
    .guide-card,
    .prompt-category,
    .use-case-card {
        padding: 20px;
    }
}