:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #34495e;
    --light-bg-color: #ffffff;
    --secondary-bg-color: #f8f9fa;
    --icon-color: #3498db;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg-color);
}

header {
    background-color: var(--light-bg-color);
    padding: 10px 5%;
    border-bottom: 1px solid var(--secondary-bg-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-height: 150px; 
}

.logo-container {
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 200px;
}

.logo {
    width: 200px;
    height: auto;
    margin-right: 0;
}

.tagline {
    font-size: 0.8em;
    font-weight: 600;
    color: #14967c;
    white-space:nowarp;
    letter-spacing: 0.5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
}

section {
    padding: 40px 0;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #0e563b;
    font-weight: 600;
}

h1 {
    font-size: 1.8rem; 
}

.what-is-coast-section {
    background: var(--light-bg-color);
    text-align: center;
}

.what-is-coast-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

.features-section-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
}

.features-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 30px;
    min-width: 900px;
}

.features-section .feature i {
    color: #169880; 
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature {
    flex-shrink: 0;
    width: 180px; 
    padding: 30px;
    background: var(--secondary-bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.feature i {
    font-size: 2.5em;
    color: var(--icon-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature:hover i {
    transform: scale(1.1);
}

.feature h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature p {
    font-size: 0.9em;
    color: #666;
}

.bottom-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.diagram-container, .outcomes-container {
    flex-basis: 45%;
    min-width: 350px;
    background: var(--secondary-bg-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.diagram-image {
    max-width: 30%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.diagram-image:hover {
    transform: scale(1.02);
}

.click-to-enlarge {
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    color: #999;
}

.outcome-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.outcome-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1em;
}

.outcome-item i {
    font-size: 2.5em;
    color: #169880;
}

.outcome-item p {
    text-align: left;
    margin: 0;
}

.demo-section {
    text-align: center;
    margin-top: 60px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.demo-button {
    display: inline-block;
    padding: 18px 40px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px;
    text-align: center;
}

.setup-button {
    background-color: #2ecc71;
    color: #fff;
}

.setup-button:hover {
    background-color: #44a44c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.demo-link {
    background-color: #3498db;
    color: #fff;
}

.demo-link:hover {
    background-color: #2b84c8;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

footer {
    background-color: #063828;
    color: #fff;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
    margin-top: 50px;
}

/* Expanded Diagram Styles */
#expanded-diagram-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#expanded-diagram-container img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Scrollbar for features row on small screens */
.features-section-wrapper::-webkit-scrollbar {
    height: 8px;
}

.features-section-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

/* Highlights Section */
.highlights-section {
    padding: 60px 20px;
    background-color: var(--secondary-bg-color);
}

.highlights-section h2 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0;
}

.highlight-item {
    background-color: var(--light-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.highlight-item h3 {
    text-align: left;
    font-size: 1.4em;
    font-weight: 600;
    color: #169880;
    margin-bottom: 10px;
}

.highlight-item p {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-color);
}

/* Business Outcomes Section */
.outcomes-container {
    padding: 60px 20px;
    background-color: var(--light-bg-color);
}

.outcome-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: var(--secondary-bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outcome-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.outcome-icon span {
    font-size: 2.5em;
    line-height: 1;
}

.outcome-content {
    display: flex;
    flex-direction: column;
}

.outcome-content h3 {
    text-align: left;
    margin-bottom: 5px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
}

.outcome-content p {
    font-size: 0.9em;
    color: #555;
}
