/*
======================================================
CUSTOM BUSINESS SOFTWARE SUBPAGE STYLES (Orange Theme)
Requires: global.css for variables and base typography
======================================================
*/

/* --- 1. HERO SECTION (WHITE BACKGROUND) --- */

.hero {
    /* REVISION 4: Added !important to ensure white background applies over external styles */
    background: var(--bg-white) !important;
    padding: 5rem 0 2rem;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Existing float animation for the hero circle (KEPT) */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    /* CHANGED: Subtle light gray background for effect */
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 30px); }
}

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

.hero-badge {
    display: inline-block;
    /* CHANGED: Darker badge for contrast on white background */
    background: rgba(0, 0, 0, 0.05);
    /* REVISION: Increased padding to accommodate larger text */
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    /* REVISION: Increased font size */
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gray);
    backdrop-filter: blur(10px);
    color: var(--primary-accent-dark);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--text-dark);
}

.hero-subtitle {
    /* Font size reduced by 1 point */
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 600px;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    line-height: 1.7;
    color: var(--text-gray);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Primary Button inherits global style */

.btn-secondary {
    background: transparent;
    color: var(--primary-accent-dark);
    border: 2px solid var(--primary-accent-dark);
    transition: all 0.3s ease; /* Ensure transition for hover */
}

.btn-secondary:hover {
    background: var(--primary-accent-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* REVISION 5: Illustration Formatting for White Background */
.hero-illustration {
    /* Ensure no solid background color on the illustration container */
    background: transparent;
    height: 450px; /* Give it a fixed height for consistency */
}

/* Make all SVG elements (strokes, fills, etc.) visible on white background */
.illustration-svg * {
    stroke: var(--text-dark) !important; /* Force dark strokes for contrast */
    transition: stroke 0.3s ease; /* Animation for subtle hover effects */
}

/* Retain the brand color for the screen/specific elements */
.illustration-svg rect[fill*="var(--primary-accent)"] {
    fill: var(--primary-accent) !important;
    stroke: none !important; /* Ensure the brand color block doesn't have a dark stroke */
}

/* Ensure the light elements/dots/circles inside the illustration are slightly visible */
.illustration-svg circle[fill*="rgba(255,255,255"] {
    fill: rgba(0, 0, 0, 0.1) !important; /* Change faint white circles to faint dark circles */
}

/* Ensure the light background objects in the SVG are invisible */
.illustration-svg circle[fill*="rgba(255,255,255,0.1)"],
.illustration-svg rect[fill*="rgba(255,255,255,0.3)"] {
    fill: transparent !important;
}


/* --- 2. STATS SECTION --- */
.stats-section {
    padding: 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.stats-ticker {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    border: 1px solid var(--border-gray);
}

.stat-item {
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 1rem 0; /* Added padding to make hover area cleaner */
}

.stat-item:hover {
    background: var(--bg-light-gray);
    transform: translateY(-5px); /* KEPT/ENHANCED: Subtle lift on hover */
}

.stat-number {
    /* Font size slightly reduced */
    font-size: 3rem;
    font-weight: 900;
    display: block;
    margin-bottom: 0.5rem;
    /* Use orange gradient for text fill */
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    /* Font size reduced */
    font-size: 0.95rem;
    color: var(--text-gray);
}

/* --- 3. CALCULATOR SECTION --- */
.calculator-section {
    background: var(--bg-light-gray);
    padding: 8rem 0 5rem;
}

.calculator-box {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-gray);
    /* REVISION 2: Reduced max-width for compactness */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    /* ANIMATION: Slight lift on focus */
    transition: box-shadow 0.3s ease;
}
.calculator-box:focus-within {
    box-shadow: 0 15px 50px rgba(249, 115, 22, 0.1);
}

.calculator-grid {
    display: grid;
    /* REVISION 2: Adjusted grid columns for compactness */
    grid-template-columns: 2fr 1.5fr;
    gap: 2.5rem;
    align-items: stretch;
}

.calculator-input {
    margin-bottom: 1.5rem;
}

.calculator-input label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    /* Font size reduced */
    font-size: 0.95rem;
    color: var(--text-dark);
}

.calculator-input input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    border: 2px solid var(--border-gray);
    background: var(--bg-light-gray);
    font-family: 'Space Grotesk', sans-serif;
    border-radius: 8px;
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.results-box {
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
}

.results-box h3 {
    color: var(--bg-white);
    margin-top: 0;
    margin-bottom: 1.5rem;
    /* Font size slightly reduced */
    font-size: 1.4rem;
    font-weight: 700;
}

.result-item {
    color: var(--bg-white);
    padding: 1rem 0;
}

.result-value {
    color: var(--text-dark);
    /* Font size slightly reduced */
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    display: block;
    background-color: var(--bg-white);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.result-label {
    opacity: 0.9;
    /* Font size slightly reduced */
    font-size: 0.95rem;
    display: block;
}

.p-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* --- 4. WHY CUSTOM CARDS --- */
.why-custom {
    background: var(--bg-white);
}

.why-grid, .use-cases-grid {
    max-width: 1200px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-card {
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    /* ANIMATION: Added transition for smooth hover effects */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-accent), var(--primary-accent-dark));
    transition: height 0.3s ease;
}

.why-card:hover {
    /* ANIMATION: Added subtle perspective lift and shadow */
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.15);
    border-color: var(--primary-accent);
    transform: translateY(-5px);
}

.why-card h3 {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    /* Font size slightly reduced */
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.why-card p {
    /* Font size reduced */
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

/* REVISION 1: Made card icons smaller and more compact, removed background */
.card-icon {
    /* We removed background and border-radius in earlier revisions */
    color: var(--primary-accent);
    width: 30px; /* Reduced size */
    height: 30px; /* Reduced size */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0.8rem; /* Slightly reduced margin */
    font-size: 1rem; /* Reduced icon size */
    flex-shrink: 0; /* Prevent shrinking if content is long */
}

/* Styling for the custom image within the card-icon (for the first card) */
.card-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* ANIMATION: Added transition for smooth loading/resizing */
    transition: transform 0.3s ease;
}
/* REVISION 3: Removed .data-point styling */

/* --- 5. COMPARISON SECTION --- */
.comparison-section {
    background: linear-gradient(135deg, var(--footer-dark) 0%, var(--text-dark) 100%);
    color: var(--bg-white);
    padding: 5rem 0;
    /* ANIMATION: Fade in effect for the entire section */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s forwards;
    animation-delay: 0.2s;
}

/* Keyframes for general fade-in-slide-up for sections */
@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.comparison-section .section-title {
    color: var(--bg-white);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    /* ANIMATION: Subtle text shadow/glow */
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.5), 0 0 20px rgba(249, 115, 22, 0.3);
    /* Individual word animations */
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

/* Keyframes for title text glow */
@keyframes textGlow {
    0% {
        text-shadow: 0 0 5px rgba(249, 115, 22, 0.4), 0 0 10px rgba(249, 115, 22, 0.2);
    }
    100% {
        text-shadow: 0 0 15px rgba(249, 115, 22, 0.7), 0 0 25px rgba(249, 115, 22, 0.5);
    }
}

.comparison-section .section-title .highlight {
    /* ANIMATION: Highlight specific words with background fade-in */
    display: inline-block;
    position: relative;
    padding: 0 5px; /* Added padding for background */
    z-index: 1;
    color: var(--primary-accent); /* Ensure highlight color is visible */
}

/* Keyframes for the background highlight */
@keyframes highlightFade {
    0% {
        background-size: 0% 100%;
    }
    100% {
        background-size: 100% 100%;
    }
}

/* Applying highlight animation to the "Software" word */
.comparison-section .section-title .highlight:nth-child(1) { /* Assuming "Software" is the first highlight */
    background: linear-gradient(to right, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.5));
    background-repeat: no-repeat;
    background-position: left bottom;
    animation: highlightFade 1s ease-out forwards;
    animation-delay: 0.8s; /* Delay to appear after main section */
}


.comparison-section .section-subtitle {
    /* Font size reduced */
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,0.8) !important;
    max-width: 700px;
    margin: 0 auto;
    /* ANIMATION: Blur in effect */
    filter: blur(5px);
    opacity: 0;
    animation: blurIn 1s ease-out forwards;
    animation-delay: 1.2s; /* Delay after title highlight */
}

@keyframes blurIn {
    to {
        filter: blur(0);
        opacity: 1;
    }
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 3rem auto 0;
    /* ANIMATION: Fade in for the cards */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s forwards;
    animation-delay: 1.6s; /* Delay after subtitle */
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 12px;
    /* ANIMATION: Hover effect for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(249, 115, 22, 0.5); /* Highlight border on hover */
}

.comparison-card h3 {
    color: var(--bg-white);
    /* Font size slightly reduced */
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--border-gray);
    /* Font size reduced */
    font-size: 1.05rem;
}
.comparison-list li:last-child {
    border-bottom: none;
}

.check-icon, .cross-icon {
    width: 25px;
    text-align: center;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.check-icon { color: var(--svc-teal); }
.cross-icon { color: var(--svc-red); }

/* --- 6. USE CASES --- */
.use-cases-section {
    background: var(--bg-light-gray);
}

.use-case-card {
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease; /* ANIMATION: Added transition for smooth hover */
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    border-color: var(--primary-accent);
    /* ANIMATION: Subtle lift on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.use-case-icon {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary-accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    /* ANIMATION: Subtle icon spin on card hover */
    transition: transform 0.5s ease;
}

.use-case-card:hover .use-case-icon {
    transform: rotate(5deg);
}

.use-case-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    /* Font size reduced */
    font-size: 1.25rem;
}

.use-case-card p {
    /* Font size reduced */
    font-size: 1rem;
    color: var(--text-gray);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.real-example {
    background: var(--bg-light-gray);
    border-left: 3px solid var(--primary-accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-top: auto;
    /* Font size reduced */
    font-size: 0.95rem;
    color: var(--text-dark);
}

.real-example strong {
    color: var(--primary-accent);
    display: block;
    margin-bottom: 0.5rem;
}

/* --- 7. PROCESS TIMELINE (WHITE BACKGROUND & VERY LIGHT MULTI-COLOR ITEMS) --- */
.process-section {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 5rem 0;
}

.process-timeline {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 45px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-gray);
}

.timeline-item {
    /* FIX: Ensure items align from the start */
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 80px;
    /* ANIMATION: Added transition for smooth hover */
    transition: all 0.3s ease-in-out;
}

.timeline-item:hover {
    /* ANIMATION: Slight shift to the right on hover */
    transform: translateX(5px);
}

.timeline-number {
    position: absolute;
    left: 0;
    /* FIX: Vertical centering adjustment */
    top: 50%;
    transform: translateY(-50%);

    background: var(--primary-accent-dark);
    color: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Font size and size reduced */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 2;
    /* ANIMATION: Added transition */
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-number {
    /* ANIMATION: Subtle scale up on hover */
    transform: translateY(-50%) scale(1.1);
}

/* Reset default timeline-content styles for individual coloring */
.timeline-content {
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 10px;
    flex-grow: 1;
    transition: all 0.3s ease;
}

/* Specific increase for Process Section H4 headers */
.timeline-content h4 {
    color: var(--text-dark);
    margin-top: 0;
    /* Font size reduced to 1.3rem */
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    /* Font size reduced */
    font-size: 1rem;
    color: var(--text-gray);
}

/* NEW: Very Light Multi-Color Backgrounds for Timeline Items */

/* 1. Discovery (Light Blue/Cyan theme) */
.timeline-item:nth-child(1) .timeline-content {
    background: linear-gradient(135deg, #e6f7ff, #e0ffff); /* Very Light Blue/Cyan */
}

/* 2. Design & Planning (Light Purple/Violet theme) */
.timeline-item:nth-child(2) .timeline-content {
    background: linear-gradient(135deg, #f3e6ff, #fbe9ff); /* Very Light Purple/Pink */
}

/* 3. Development (Light Green/Teal theme) */
.timeline-item:nth-child(3) .timeline-content {
    background: linear-gradient(135deg, #e6ffe6, #f0fff0); /* Very Light Mint Green */
}

/* 4. Testing & Training (Light Orange/Yellow theme) */
.timeline-item:nth-child(4) .timeline-content {
    background: linear-gradient(135deg, #fff0e6, #fffaf5); /* Very Light Peach/Cream */
}

/* 5. Launch & Support (Light Red/Pink theme) */
.timeline-item:nth-child(5) .timeline-content {
    background: linear-gradient(135deg, #ffe6e6, #fff0f5); /* Very Light Rose */
}

/* Ensure text remains dark inside the light colored gradient boxes for readability */
.timeline-item .timeline-content h4 {
    color: var(--text-dark);
}
.timeline-item .timeline-content p {
    color: var(--text-gray);
}

/* --- 8. FAQ --- */
.faq-section {
    background: var(--bg-white);
    padding: 5rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-light-gray);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.faq-item:hover {
    border-color: var(--primary-accent);
}

.faq-item.active {
    border-color: var(--primary-accent-dark);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    /* Font size reduced */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    /* Font size reduced */
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-accent-dark);
}

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


/* --- 9. FINAL CTA --- */
.final-cta {
    background: var(--bg-white);
    text-align: center;
    padding: 5rem 0;
}

.final-cta h2 {
    color: var(--text-dark);
}

.final-cta p {
    /* Font size reduced */
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container, .calculator-grid, .comparison-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        min-height: auto;
    }
    .hero-illustration {
        max-width: 500px;
        margin: 2rem auto 0;
        height: 350px;
    }
    .results-box {
        margin-top: 2rem;
        background: var(--bg-light-gray);
        border: 2px solid var(--primary-accent);
        color: var(--text-dark);
    }
    .results-box h3, .result-label {
        color: var(--text-dark);
    }

    /* Process Timeline adjustments for small screens */
    .process-timeline::before {
        left: 25px;
    }
    .timeline-item {
        padding-left: 60px;
    }
    .timeline-number {
        left: 0;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .stats-ticker {
        grid-template-columns: 1fr 1fr;
        padding: 2rem;
    }
    .calculator-box {
        padding: 2rem;
    }
    .why-grid, .use-cases-grid {
        grid-template-columns: 1fr;
    }
    .faq-question {
        font-size: 1rem;
        padding: 1.2rem 1.5rem;
    }
    .comparison-card {
        padding: 1.5rem;
    }
}