/* ============================================================
   CUSTOM ERP PAGE - style.css
   FIX: Scoped all section selectors to prevent footer bleed.
   - Removed duplicate :root blocks (merged into one)
   - Scoped .container overrides to their parent sections
   - Scoped global tags (p, label, input, textarea, h1, h2) to page sections
   - Removed duplicate / conflicting selector blocks
   ============================================================ */

/* ── GLOBAL CSS VARIABLES (single merged block) ─────────────── */
:root {
    --bg-dark: #0a0e14;
    --card-bg: #1c232d;
    --form-card: #141b24;
    --input-bg: #0d121a;
    --accent-gold: #c5a059;
    --brand-orange: #eb773e;
    --text-white: #ffffff;
    --text-muted: #a0aab4;
    --faq-bg: #0a0e14;
    --item-bg: #1c232d;
    --text-main: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   SECTION 1 – HERO
   ============================================================ */
.hero-section {
    background: radial-gradient(circle at 85% 15%, #16263a 0%, #060b13 100%);
    padding: 100px 0;
    color: #ffffff;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-section .badge {
    background: rgba(255, 102, 36, 0.1);
    color: #ff6624;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 102, 36, 0.2);
}

.hero-section h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 25px 0;
    font-weight: 800;
}

.hero-section .highlight {
    color: #ff6624;
}

.hero-section p {
    color: #94a3b8;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.hero-section .btn {
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.hero-section .btn-primary {
    background: #ff6624;
    color: white;
}

.hero-section .btn-secondary {
    background: #252e3b;
    color: white;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.glass-card img {
    width: 100%;
    max-width: 550px;
    border-radius: 18px;
    display: block;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-section p {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }
}

/* ============================================================
   SECTION 2 – FEATURES
   ============================================================ */
.features-section {
    background-color: #ffffff;
    padding: 80px 0;
    width: 100%;
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: #1a232e;
    padding: 40px 25px;
    border-radius: 8px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    color: #ff6624;
    font-size: 24px;
    margin-bottom: 25px;
}

.feature-card h3 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 0;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 30px 20px;
        min-height: auto;
    }
}

/* ============================================================
   SECTION 3 – CAPABILITIES
   ============================================================ */
.capabilities-section {
    background-color: #060b13;
    padding: 100px 0;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.capabilities-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

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

.capability-card {
    background-color: #121926;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.capability-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.capability-card:hover .card-image img {
    opacity: 1;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 1100px) {
    .capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   SECTION 4 – STATS RIBBON + FEATURE DETAIL
   ============================================================ */
.stats-ribbon {
    background: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.stats-ribbon .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ribbon-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.stat-item h2 {
    color: #ff6624;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: #1a232e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background-color: #e2e8f0;
}

/* Feature Detail */
.feature-detail {
    background-color: #060b13;
    padding: 100px 0;
    color: #ffffff;
}

.feature-detail .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-image,
.feature-text {
    flex: 1;
}

.glass-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-container img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.feature-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
}

.feature-text p {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 40px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.feature-list i {
    color: #ff6624;
    font-size: 20px;
    margin-top: 3px;
}

.feature-list strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.feature-list span {
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 992px) {
    .ribbon-flex {
        flex-direction: column;
        gap: 40px;
    }

    .stat-divider {
        display: none;
    }

    .feature-flex {
        flex-direction: column;
        text-align: center;
    }

    .feature-list li {
        text-align: left;
        justify-content: center;
    }
}

/* ============================================================
   SECTION 5 – ROADMAP
   ============================================================ */
.roadmap-section {
    background-color: #ffffff;
    padding: 100px 0;
    color: #1a232e;
    font-family: 'Inter', sans-serif;
}

/* Scoped container override — ONLY for roadmap */
.roadmap-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.roadmap-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 80px;
    letter-spacing: -0.5px;
}

.roadmap-container {
    position: relative;
    padding-left: 60px;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    left: 82px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.roadmap-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    z-index: 2;
}

.step-marker {
    min-width: 44px;
    height: 44px;
    background-color: #2b3441;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    margin-right: 30px;
}

.roadmap-step:first-child .step-marker {
    background-color: #ff6624;
}

.step-content {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
    width: 100%;
}

.roadmap-step:last-child .step-content {
    border-bottom: none;
}

.step-content h3 {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.step-content p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .roadmap-container {
        padding-left: 0;
    }

    .roadmap-container::before {
        left: 22px;
    }

    .step-marker {
        margin-right: 20px;
    }

    .roadmap-title {
        font-size: 1.8rem;
    }
}

/* ============================================================
   SECTION 6 – VERTICALS
   ============================================================ */
.verticals-section {
    background-color: var(--bg-dark);
    padding: 80px 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
    text-align: center;
}

.verticals-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.verticals-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.vertical-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    width: 280px;
    overflow: hidden;
    transition: transform 0.3s ease, border 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.vertical-card:hover {
    transform: translateY(-10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
    min-height: 120px;
}

.icon-box {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding-top: 5px;
}

.text-content h3 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.text-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.image-container {
    width: 90%;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
}

@media (max-width: 768px) {
    .vertical-card {
        width: 100%;
        max-width: 350px;
    }
}

/* ============================================================
   SECTION 7 – FAQ
   ============================================================ */
.faq-section {
    background-color: var(--faq-bg);
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.faq-section .faq-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--item-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question i {
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: rgba(0, 0, 0, 0.1);
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* ============================================================
   SECTION 8 – CONTACT
   ============================================================ */
.contact-section {
    background-color: var(--bg-dark);
    padding: 100px 20px;
    font-family: 'Inter', sans-serif;
    color: var(--text-white);
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.detail-item i {
    color: var(--brand-orange);
}

.contact-form-card {
    flex: 1;
    background-color: var(--form-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

/* Scoped label/input/textarea — ONLY inside contact form card */
.contact-form-card label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.3s;
    box-sizing: border-box;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--brand-orange);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--brand-orange);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, background 0.3s;
}

.submit-btn:hover {
    background-color: #f38a56;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-subtitle {
        margin: 0 auto 40px auto;
    }

    .contact-details {
        align-items: center;
    }

    .form-row {
        flex-direction: column;
    }
}