/* ============================================================
   home.css — TaskRevo homepage styles
   ============================================================ */

/* ── HERO ── */
.hero {
    padding: 64px 0 0;
    background: linear-gradient(160deg, var(--slate-50) 0%, #fff 60%);
    border-bottom: 1px solid var(--slate-200);
}

.hero-text {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.hero h1 {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.hero h1 em {
    font-style: normal;
    color: var(--purple-600);
}

.hero-sub {
    font-size: 1rem;
    color: var(--slate-500);
    line-height: 1.75;
    margin-bottom: 28px;
}

.hero-cta {
    margin-bottom: 40px;
}

.hero-image-wrap {
    width: 100%;
    border-top: 1px solid var(--slate-200);
    border-left: 1px solid var(--slate-200);
    border-right: 1px solid var(--slate-200);
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(83,74,183,0.08);
}

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

.hero-image-placeholder {
    background: var(--slate-100);
    aspect-ratio: 16/8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 13px;
}

.hero-image-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: var(--slate-300);
    fill: none;
    stroke-width: 1.5;
}

/* ── SECTION SHARED ── */
.feature-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--slate-200);
}

.feature-section:nth-child(even) {
    background: var(--slate-50);
}

.section-header {
    margin-bottom: 36px;
}

.section-header .section-title {
    margin-bottom: 8px;
}

.section-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-600), var(--blue-600));
    margin-top: 16px;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--slate-900);
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.section-intro {
    font-size: 0.95rem;
    color: var(--slate-500);
    line-height: 1.7;
    margin-top: 12px;
}

/* ── FEATURE CARDS GRID ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-body {
    padding: 16px 14px 4px;
    flex: 1;
}

.card-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.8rem;
    color: var(--slate-500);
    line-height: 1.6;
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top;
    display: block;
    cursor: zoom-in;
    border-top: 1px solid var(--slate-200);
}

.card-image-placeholder {
    aspect-ratio: 16/9;
    background: var(--slate-100);
    border-top: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--slate-400);
    font-style: italic;
    text-align: center;
    padding: 0 12px;
}

/* Coming soon badge */
.coming-soon-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-400);
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 100px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── TASK VIEWS ── */
.views-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── MYWORK SECTION ── */
.mywork-hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(83,74,183,0.10), 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.mywork-hero-placeholder {
    background: var(--slate-100);
    aspect-ratio: 21/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--slate-400);
    font-size: 13px;
}

.mywork-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ── COMPACT SECTIONS (Topics, Docs, Search) ── */
.compact-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--slate-200);
}

.compact-section:nth-child(even) {
    background: var(--slate-50);
}

.compact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.compact-cards.four-col {
    grid-template-columns: repeat(4, 1fr);
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(248,250,252,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 88vh;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(0,0,0,0.15);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--slate-800);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── FINAL CTA ── */
.cta-section {
    padding: 96px 0;
    background: #fff;
}

.cta-box {
    background: #26215c;
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--purple-700);
    opacity: 0.25;
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.cta-box p {
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-white {
    display: inline-block;
    background: #fff;
    color: var(--purple-700);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
}

.btn-cta-white:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: var(--purple-700);
}

.cta-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .mywork-cards { grid-template-columns: repeat(2, 1fr); }
    .compact-cards { grid-template-columns: repeat(2, 1fr); }
    .compact-cards.four-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .views-cards { grid-template-columns: repeat(1, 1fr); }
    .hero { padding: 40px 0 0; }
    .feature-section { padding: 48px 0; }
    .compact-section { padding: 48px 0; }
}

@media (max-width: 576px) {
    .cards-grid { grid-template-columns: repeat(1, 1fr); }
    .mywork-cards { grid-template-columns: repeat(1, 1fr); }
    .compact-cards { grid-template-columns: repeat(1, 1fr); }
    .compact-cards.four-col { grid-template-columns: repeat(1, 1fr); }
    .cta-box { padding: 48px 24px; }
}
