/* General Body and Typography */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background for general sections */
}

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

h1, h2, h3, h4 {
    font-family: 'Source Sans Pro', sans-serif;
    color: #2c3e50; /* Darker tone for headings */
    margin-top: 0;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    text-align: center;
}

h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #007bff; /* Standard link blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.highlight-text {
    color: #007bff; /* Primary highlight color, adjust if needed for 'loud' vibe */
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.primary-btn {
    background-color: #007bff; /* Tech blue */
    color: #fff;
    border: 2px solid #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;
}

.secondary-btn {
    background-color: #f8f9fa; /* Light background for secondary actions */
    color: #007bff;
    border: 2px solid #007bff;
}

.secondary-btn:hover {
    background-color: #e2e6ea;
    color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
    text-decoration: none;
}

.large-btn {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Blue gradient, can be adapted for 'loud' */
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* For potential background effects */
}

/* Subtle background pattern for hero - uncomment and adjust if desired */
/* .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(#grid)" /></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
} */

.hero-section .container {
    position: relative;
    z-index: 1; /* Ensure content is above background effects */
}

.main-logo-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 15px; /* Softer edges for tech icon */
}

.domain-name {
    font-size: 3.8em;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.sub-headline {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Sections General */
.section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.section:last-of-type {
    border-bottom: none;
}

/* Demo Section */
.demo-section {
    background-color: #fff;
}

.demo-section h2 {
    margin-bottom: 40px;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.tab-button {
    background-color: #e9ecef;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    color: #555;
    transition: background-color 0.3s ease, color 0.3s ease, border-bottom 0.3s ease;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    margin: 0 5px; /* Spacing between tabs */
    white-space: nowrap; /* Prevent breaking tab text */
    flex-grow: 1; /* Allow tabs to grow */
    max-width: 300px; /* Limit max width for large screens */
}

.tab-button:hover {
    background-color: #dee2e6;
    color: #333;
}

.tab-button.active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px); /* Slight lift for active tab */
    border-bottom: 3px solid #007bff; /* Stronger active indicator */
}

.demo-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: none; /* Hidden by default, controlled by JS */
}

.demo-content.active {
    display: block; /* Show active content */
}

.demo-content h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 20px;
}

.disclaimer {
    background-color: #fff3cd; /* Light yellow for warnings/disclaimers */
    color: #856404;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 30px;
    font-size: 0.95em;
    text-align: center;
}

.demo-strength {
    background-color: #e9f7ef; /* Light green for positive reinforcement */
    color: #28a745;
    border: 1px solid #d4edda;
    border-radius: 5px;
    padding: 15px 20px;
    margin-top: 30px;
    font-size: 0.95em;
    font-weight: 600;
}

/* Demo Placeholders - Specific to content within each tab */
.demo-placeholder {
    min-height: 250px; /* Ensure space for visual content */
    background-color: #f8f8f8; /* Light gray background for the demo area */
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: flex; /* Use flexbox for demo content arrangement */
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
    color: #666;
    font-style: italic;
    font-size: 1.1em;
    text-align: center;
    position: relative; /* For absolutely positioned elements within demos */
    overflow: hidden; /* To contain any visual effects */
}

/* KPI Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.kpi-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.kpi-value.warning {
    color: #dc3545; /* Red for warning */
}

.kpi-trend {
    font-size: 0.85em;
    color: #666;
}

.kpi-trend.positive {
    color: #28a745; /* Green for positive */
}

.kpi-trend.negative {
    color: #dc3545; /* Red for negative */
}

/* Charts */
.chart-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-card h4 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
}

.chart-visual {
    width: 100%;
    height: 200px; /* Adjust height as needed for charts */
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-legend {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9em;
}

.chart-legend li {
    display: flex;
    align-items: center;
    margin: 0 10px 5px 10px;
}

.chart-legend li span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 5px;
}

.workflow-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    margin: 30px 0;
    padding: 20px;
    background-color: #eaf3f8; /* Light blue background for workflows */
    border-radius: 8px;
}

.workflow-stage {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin: 10px;
    min-width: 120px;
    position: relative; /* For tooltips */
}

.stage-icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.stage-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.stage-count {
    font-size: 1.2em;
    font-weight: 700;
    color: #007bff;
}

.workflow-arrow {
    width: 30px;
    height: 2px;
    background-color: #007bff;
    position: relative;
    margin: 0 5px;
}

.workflow-arrow::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -2px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #007bff;
}

/* Tooltip for workflow stages (CSS only example, JS for dynamic content) */
.workflow-stage[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.85em;
    z-index: 10;
    pointer-events: none;
}

/* Servicing Dashboard (Adapt for CDN Media Dashboard) */
.servicing-dashboard {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr; /* Default to single column */
}

@media (min-width: 768px) {
    .servicing-dashboard {
        grid-template-columns: 2fr 1fr; /* Example split for larger screens */
    }
}

.servicing-header {
    grid-column: 1 / -1; /* Spans all columns */
    text-align: center;
    margin-bottom: 15px;
}

.cdn-summary-card, .communication-log-card {
    background-color: #fefefe;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.03);
}

.cdn-details {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
}

.cdn-details:last-of-type {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #555;
}

.detail-value {
    color: #333;
}

.highlight-value {
    color: #007bff; /* Blue for important dates/values */
    font-weight: 700;
}

.cdn-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.action-btn {
    flex-grow: 1;
    min-width: 120px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.activity-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-date {
    font-size: 0.85em;
    color: #888;
    min-width: 100px;
    margin-right: 15px;
}

.activity-desc {
    color: #333;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}


/* Power of Name Section (Features Grid) */
.power-of-name-section {
    background-color: #eaf7f7; /* Lighter tech-blue/green background */
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-item h3 {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 0.95em;
    color: #555;
}

/* Opportunity Section (Contact/CTA) */
.opportunity-section {
    background-color: #2c3e50; /* Darker, professional background */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.opportunity-section h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.opportunity-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1em;
    opacity: 0.9;
}

.opportunity-section .btn {
    margin-top: 20px;
}

.opportunity-section .contact-info {
    font-size: 1em;
    margin-top: 30px;
    opacity: 0.8;
}

.opportunity-section .contact-info a {
    color: #fff;
    font-weight: 600;
}

.opportunity-section .contact-info a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #333;
    color: #bbb;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer a {
    color: #ddd;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8em;
    }

    .domain-name {
        font-size: 3em;
    }

    .tagline {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .large-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .demo-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 90%;
        margin-bottom: 10px;
        border-radius: 8px; /* Full rounded corners for stacked tabs */
        max-width: none;
    }

    .tab-button.active {
        transform: none; /* No lift for stacked tabs */
        border-bottom: none;
        border: 2px solid #007bff; /* Highlight active tab with border */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .workflow-arrow {
        width: 2px;
        height: 30px;
        margin: 5px 0;
    }

    .workflow-arrow::after {
        top: auto;
        left: -4px;
        right: auto;
        bottom: -2px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid #007bff;
    }

    .workflow-diagram {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }

    .main-logo-icon {
        width: 80px;
        height: 80px;
    }

    .domain-name {
        font-size: 2.5em;
    }

    .tagline {
        font-size: 1.2em;
    }

    .sub-headline {
        font-size: 1em;
    }

    .section {
        padding: 40px 0;
    }

    .demo-content {
        padding: 20px;
    }

    .feature-item {
        padding: 20px;
    }

    .opportunity-section {
        padding: 50px 0;
    }

    .opportunity-section h2 {
        font-size: 2em;
    }
}