/**
 * ╔═══════════════════════════════════════════════════════════════════════════╗
 * ║                    SciQuest.io — index.html stili                         ║
 * ╠═══════════════════════════════════════════════════════════════════════════╣
 * ║  Samo vsebina strani (hero, subjects, demos, how-it-works, cta)          ║
 * ║  Okvir (nav, footer) je v styles.css                                     ║
 * ╚═══════════════════════════════════════════════════════════════════════════╝
 */


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.1rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.hero-input {
    flex: 1;
    padding: 16px 20px;
    font-family: 'Play', sans-serif;
    font-size: 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    transition: border-color 0.2s ease;
}

.hero-input:focus {
    outline: none;
    border-color: var(--accent);
}

.hero-input::placeholder {
    color: var(--text-muted);
}

.hero-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image {
    max-width: 900px;
    margin: 48px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SUBJECTS
   ═══════════════════════════════════════════════════════════════════════════ */

.subjects {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.subject-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.subject-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subject-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.subject-content {
    flex: 1;
}

.subject-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--accent);
}

.subject-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.subject-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════════════════════
   DEMOS
   ═══════════════════════════════════════════════════════════════════════════ */

.demos {
    padding: 100px 0;
}

.demos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.demo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
}

.demo-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.demo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: var(--radius-sm);
}

.demo-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.demo-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.demo-cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════════════════════ */

.how-it-works {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.step {
    text-align: center;
    padding: 24px 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════════ */

.cta {
    padding: 100px 0;
    text-align: center;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .demos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-form {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .demos-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .subjects,
    .demos,
    .how-it-works,
    .cta {
        padding: 60px 0;
    }
}
