/**
 * css/pages/home.css
 * Home page: Hero section, Features grid
 */

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
}

.hero-content {
    animation: slideInLeft 0.6s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.badge-icon {
    animation: sparkle 2s ease-in-out infinite;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideInRight 0.6s ease-out 0.2s backwards;
}

/* Hero preview card */
.hero-card {
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    background: var(--bg-glass);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: var(--transition-base);
}

.hero-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.avatar-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.hero-card-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.hero-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Chat preview bubbles */
.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.chat-msg {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    animation: fadeIn 0.4s ease-out backwards;
}

.chat-msg:nth-child(1) { animation-delay: 0.3s; }
.chat-msg:nth-child(2) { animation-delay: 0.5s; }
.chat-msg:nth-child(3) { animation-delay: 0.7s; }

.chat-msg.interviewer {
    background: var(--bg-tertiary);
    align-self: flex-start;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.chat-msg.candidate {
    background: var(--gradient-primary);
    align-self: flex-end;
    color: white;
    flex-direction: row-reverse;
}

.msg-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

/* Hero stats row */
.hero-card-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =============================================================================
   FEATURES GRID
   ============================================================================= */
.features {
    padding: 4rem 0;
    scroll-margin-top: var(--header-height);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background: var(--bg-glass);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon-wrap {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.feature-icon {
    font-size: 1.75rem;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}