/* ===================================
   Tech Ledger - Landing Page Styles
   Used by index.html only
   =================================== */

body {
    background: var(--bg);
}

/* ===== Hero ===== */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
}
.hero-label {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-pale);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8em;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.15s forwards;
}
.hero p {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 40px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.3s forwards;
}
.hero-divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.45s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Section ===== */
.section {
    padding: 60px 0;
}
.section-header {
    margin-bottom: 48px;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.05em;
}

/* ===== Course Cards ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 28px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}
.card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.6s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.card.revealed:hover {
    transform: translateY(-4px);
}
.card.disabled {
    cursor: default;
}
.card.disabled:hover {
    transform: none;
    box-shadow: none;
}
.card.disabled.revealed:hover {
    transform: none;
}

.card-accent {
    height: 4px;
}
.card-accent.aws { background: linear-gradient(90deg, #F59E0B, #F97316); }
.card-accent.js { background: linear-gradient(90deg, #EAB308, #A3E635); }

.card-body {
    padding: 32px;
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-icon.aws { background: var(--accent-light); }
.card-icon.js { background: #FEF9C3; }

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.45em;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 4px;
}
.card-subtitle {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}
.card-desc {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Tags */
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.tag {
    font-size: 0.78em;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* Topic list */
.topic-list {
    list-style: none;
    margin-bottom: 24px;
}
.topic-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.92em;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.topic-item.revealed {
    opacity: 1;
    transform: translateX(0);
}
.topic-item:last-child { border-bottom: none; }
.topic-item svg {
    flex-shrink: 0;
    margin-right: 10px;
}
.topic-badge {
    margin-left: auto;
    font-size: 0.72em;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
    white-space: nowrap;
}
.badge-active {
    background: var(--success-light);
    color: #065F46;
}
.badge-soon {
    background: #F1F5F9;
    color: var(--text-muted);
}

/* CTA button */
.card-cta {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    text-decoration: none;
}
.card-cta.primary {
    background: var(--dark);
    color: var(--white);
}
.card-cta.primary:hover {
    background: #1E293B;
}
.card-cta.disabled {
    background: #F1F5F9;
    color: var(--text-muted);
    cursor: default;
}

/* Progress */
.progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: 10px;
}
.progress-track {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--success);
    border-radius: 3px;
    transition: width 1.2s ease;
}
.progress-fill.animated {
    width: 7%;
}
.progress-text {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.4em; }
    .hero { padding: 70px 0 50px; }
    .courses-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 2em; }
    .hero p { font-size: 1em; }
    .section-header h2 { font-size: 1.6em; }
    .card-body { padding: 24px; }
}
