/* ==========================================
   HOME PAGE - NimbusLearn
   ========================================== */

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #eef3f1 0%, #e4ede9 40%, #dfe9e5 70%, #eaf0ee 100%);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 28px;
    font-weight: 600;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.hero-title {
    font-size: 50px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== APP PREVIEW MOCKUP ===== */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
}

.app-window {
    background: var(--bg-dark-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.5s ease;
    max-width: 100%;
}

.app-window:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.window-bar {
    background: #f5f9f7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.window-body {
    display: flex;
    min-height: 340px;
}

.app-sidebar {
    width: 56px;
    background: #f5f9f7;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border-right: 1px solid var(--border-color);
}

.sidebar-logo {
    margin-bottom: 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.nav-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--border-color);
    transition: var(--transition);
}

.nav-dot.active {
    background: rgba(16, 185, 129, 0.2);
    border: 1.5px solid rgba(16, 185, 129, 0.4);
}

.app-main {
    flex: 1;
    padding: 20px;
}

.app-greeting {
    margin-bottom: 20px;
}

.greeting-line {
    height: 5px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 6px;
}

.greeting-line.lg { width: 140px; }
.greeting-line.sm { width: 90px; opacity: 0.5; }

.app-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mini-card {
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-lighter);
}

.mini-card.accent-1 { border-left: 3px solid #10B981; }
.mini-card.accent-2 { border-left: 3px solid #0d9488; }
.mini-card.accent-3 { border-left: 3px solid #34D399; }

.mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    margin-bottom: 10px;
}

.mini-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ml {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    width: 80%;
}

.ml.short { width: 50%; opacity: 0.5; }

.app-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-row {
    height: 14px;
    background: var(--bg-lighter);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.table-row:nth-child(odd) {
    width: 100%;
}

.table-row:nth-child(even) {
    width: 92%;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    background: var(--bg-dark-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0;
}

.trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 6px;
}

.trust-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.trust-detail {
    font-size: 13px;
    color: var(--text-muted);
}

.trust-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* ===== CAPABILITIES GRID ===== */
.capabilities {
    background: var(--bg-dark);
}

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

.capability-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px;
    transition: var(--transition);
}

.capability-card:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cap-icon {
    width: 48px;
    height: 48px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.capability-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.capability-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    background: var(--bg-dark-card);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 0 32px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border-color);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ===== ROLES ===== */
.roles {
    background: var(--bg-dark);
}

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

.role-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 36px;
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.role-card.featured {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-dark-card) 100%);
}

.role-icon {
    width: 52px;
    height: 52px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.role-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.role-features {
    list-style: none;
    padding: 0;
}

.role-features li {
    position: relative;
    padding-left: 20px;
    padding: 8px 0 8px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.role-features li:last-child { border-bottom: none; }

.role-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ===== SCREENSHOTS SHOWCASE ===== */
.screenshots { background: var(--bg-dark-card); }

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.screenshot-item.large {
    grid-column: 1 / -1;
}

.screenshot-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

.screenshot-item.mobile-item .screenshot-img {
    width: 200px;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}

.screenshot-caption {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
}

/* ===== PRICING (home preview) ===== */
.pricing {
    background: var(--bg-dark-card);
}

/* Single pricing card on home page */
.pricing-single {
    max-width: 640px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 40px;
    position: relative;
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--bg-dark) 100%);
}

.pricing-header { text-align: center; margin-bottom: 28px; }

.pricing-price { display: flex; align-items: baseline; justify-content: center; }
.currency { font-size: 22px; color: var(--text-secondary); margin-right: 4px; }
.price { font-size: 48px; font-weight: 800; color: var(--text-primary); }
.period { font-size: 15px; color: var(--text-secondary); margin-left: 6px; }

.pricing-note {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.5;
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-bottom: 28px;
}

.pricing-features { list-style: none; margin-bottom: 0; padding: 0; }
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: var(--text-secondary);
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--primary); font-weight: 600; font-size: 16px; }

.btn-pricing {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.btn-pricing:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--primary);
}
.btn-featured {
    background: var(--primary);
    border: none;
    color: #fff;
}
.btn-featured:hover { background: var(--primary-dark); }

/* Add-ons preview under pricing card */
.addons-preview {
    text-align: center;
    margin-top: 28px;
}

.addons-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.addons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.addon-chip {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
}

.addons-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.addons-link:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 60px; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-item.large { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; min-height: auto; }
    .hero-title { font-size: 36px; }
    .hero-cta { flex-direction: column; }
    .hero-cta button { width: 100%; }
    .capabilities-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; gap: 32px; align-items: center; }
    .step-connector { width: 2px; height: 30px; }
    .roles-grid { grid-template-columns: 1fr; }
    .pricing-features-grid { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .trust-content { gap: 30px; }
    .trust-divider { display: none; }
    .app-window { transform: none; }

    .hero-subtitle {
        font-size: 15px;
    }
    
    .capability-card {
        padding: 24px;
    }
    
    .role-card {
        padding: 28px;
    }
    
    .step-card {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .app-cards { grid-template-columns: 1fr; }

    .trust-number {
        font-size: 26px;
    }
    
    .pricing-card {
        padding: 28px;
    }
}
