﻿
:root {
    --yellow: #ffc107;
    --dark: #212529;
    --accent: #fff8e1;
}

/* BUTTONS */
.btn-learn, .btn-cta {
    background: var(--yellow);
    color: var(--dark);
    border: none;
    padding: .75rem 1.5rem;
    border-radius: .25rem;
    font-weight: 600;
}

    .btn-learn:hover, .btn-cta:hover {
        background: #e0a800;
    }

/* MODAL BASE */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

    .modal.show {
        display: flex;
    }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(2px);
}

.modal__content {
    position: relative;
    background: #fff;
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    border-radius: .5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity .3s, transform .3s;
}

.modal.show .modal__content {
    transform: translateY(0);
    opacity: 1;
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

/* HERO */
.modal__hero {
    background: url('https://source.unsplash.com/1200x300/?technology,startup') center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 2rem;
}

    .modal__hero h2 {
        text-shadow: 0 0 6px rgba(0,0,0,.6);
    }

.modal__sub {
    opacity: .9;
    margin-top: .5rem;
}

/* BODY FLEX */
.modal__body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 2rem;
}

.modal__left {
    flex: 2 1 500px;
    min-width: 300px;
}

.modal__sidebar {
    flex: 1 1 250px;
    min-width: 200px;
}

.modal__sections {
    flex: 2 1 400px;
    min-width: 300px;
}

/* FLIP-CARDS */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: var(--accent);
    border-radius: .5rem;
    perspective: 800px;
    cursor: pointer;
    position: relative;
    min-height: 160px;
    overflow: hidden;
}

.feature__front, .feature__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: .5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .6s;
}

.feature__front {
    background: var(--accent);
}

    .feature__front i {
        font-size: 2rem;
        color: var(--yellow);
        margin-bottom: .5rem;
    }

.feature__back {
    background: #fff;
    color: #333;
    transform: rotateY(180deg);
    text-align: center;
    overflow-y: auto;
}

.feature.flipped .feature__front {
    transform: rotateY(180deg);
}

.feature.flipped .feature__back {
    transform: rotateY(0);
}

/* PILLARS */
.pillars {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pillar {
    background: #fff;
    padding: .75rem 1rem;
    border-radius: .5rem;
    text-align: center;
    cursor: pointer;
    min-width: 120px;
}

    .pillar i {
        font-size: 1.5rem;
        color: var(--yellow);
        margin-bottom: .25rem;
    }

/* TABS */
.tabs {
    margin-bottom: 1.5rem;
}

.tab-list {
    display: flex;
    list-style: none;
    border-bottom: 2px solid var(--accent);
    margin: 0;
    padding: 0;
}

.tab {
    padding: .5rem 1rem;
    cursor: pointer;
    color: #666;
    transition: color .2s;
}

    .tab.active {
        color: var(--dark);
        border-bottom: 3px solid var(--yellow);
    }

.tab-content {
    padding: .75rem 0;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

/* SIDEBAR & SECTIONS */
.modal__sidebar ul li {
    cursor: pointer;
    padding: .5rem 1rem;
    border-radius: .25rem;
    transition: background .2s;
}

    .modal__sidebar ul li.active,
    .modal__sidebar ul li:hover {
        background: var(--accent);
        color: #000;
    }

.modal__section {
    display: none;
    padding-bottom: 1rem;
}

    .modal__section.active {
        display: block;
    }

.erp-modules li {
    cursor: pointer;
    padding: .25rem 0;
}

    .erp-modules li:hover {
        color: var(--yellow);
    }

/* CTA */
.modal__cta {
    text-align: center;
    padding: 1.5rem 0;
}

.link-secondary {
    color: #666;
    margin-left: 1rem;
    text-decoration: none;
}

    .link-secondary:hover {
        color: var(--dark);
    }
