/* IBM Carbon Design System Imitation */
:root {
    --cds-text-primary: #161616;
    --cds-text-secondary: #525252;
    --cds-link-primary: #0f62fe;
    --cds-link-hover: #0353e9;
    --cds-ui-background: #ffffff;
    --cds-ui-01: #f4f4f4;
    --cds-ui-02: #e0e0e0; /* Borders */
    --cds-interactive-01: #0f62fe;
    --cds-hover-primary: #0353e9;
    --cds-inverse-01: #161616;
    --cds-inverse-text: #ffffff;
    --font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--cds-text-primary);
    background-color: var(--cds-ui-background);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* 1. Global Header Styles (Removed) */

.brand {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.1px;
    margin-right: 32px;
    color: var(--cds-text-primary);
}

/* 2. Sub Header */
.sub-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--cds-ui-02);
    height: 48px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.sub-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1584px; /* IBM Grid max width usually around here */
    margin: 0 auto;
    padding-left: 16px; 
}

.sub-nav-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.sub-nav-title {
    font-weight: 600;
    font-size: 16px;
    margin-right: 32px;
    border-bottom: 2px solid var(--cds-interactive-01);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.sub-nav-links {
    display: flex;
    height: 100%;
}

.sub-nav-links a {
    font-size: 14px;
    color: var(--cds-text-secondary);
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
}

.sub-nav-links a:hover {
    color: var(--cds-text-primary);
}

.btn-blue {
    background-color: var(--cds-interactive-01);
    color: var(--cds-inverse-text);
    font-size: 14px;
    font-weight: 600;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background-color 0.1s;
    margin-left: auto; /* Ensure it pushes to the right if needed, though justify-content: space-between handles it */
}

.btn-blue:hover {
    background-color: var(--cds-hover-primary);
    text-decoration: none;
    color: var(--cds-inverse-text);
}

/* 3. Main Content */
.main-content {
    background-color: #ffffff;
}

/* Hero Section */
.hero-section {
    border-bottom: 1px solid var(--cds-ui-02);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 400px; /* Approximate height */
}

.hero-text-col {
    padding: 64px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    max-width: 1584px;
    margin-left: auto; /* Push content to align with grid if needed */
    width: 100%; /* Or set a specific width */
}

.breadcrumbs {
    font-size: 14px;
    color: var(--cds-text-secondary);
    margin-bottom: 16px;
}

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

.hero-text-col h1 {
    font-weight: 300;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--cds-text-primary);
}

.hero-spacer {
    flex-grow: 1;
}

.hero-lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cds-text-primary);
    max-width: 500px;
}

.hero-image-col {
    background: linear-gradient(135deg, #e5f6ff 0%, #d4efff 50%, #82cfff 100%);
    position: relative;
    overflow: hidden;
}

.gradient-overlay {
    /* Mimicking the abstract waves */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(15, 98, 254, 0.1) 0%, transparent 50%);
}

/* Feature Grid */
.feature-grid-section {
    border-bottom: 1px solid var(--cds-ui-02);
    /* No padding, grid items handle it */
}

.ibm-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Border collapse trick with negative margins or box shadows usually, 
       but here we use gap: 1px with a background color */
    background-color: var(--cds-ui-02);
    gap: 1px;
}

.content-card {
    background-color: #ffffff;
    padding: 16px;
    height: 320px; /* Fixed height for uniformity */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.2s;
}

.content-card:hover {
    background-color: #f3f3f3;
}

.card-content {
    flex-grow: 1;
}

.card-icon {
    margin-bottom: 32px;
    color: var(--cds-link-primary);
}

.card-eyebrow {
    font-size: 12px;
    color: var(--cds-text-secondary);
    margin-bottom: 8px;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
}

.card-footer {
    margin-top: 16px;
}

.link-arrow {
    color: var(--cds-link-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.arrow-icon {
    fill: currentColor;
    margin-left: auto; /* Push to right */
}

/* Image Card specific overrides */
.image-card-type {
    padding: 0;
    position: relative;
    background-color: #f4f4f4;
}

.image-area {
    height: 70%;
    width: 100%;
    overflow: hidden;
}

.card-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blue-promo-box {
    background-color: var(--cds-interactive-01);
    color: white;
    padding: 16px;
    height: 30%;
    display: flex;
    align-items: center;
}

.blue-promo-box p {
    font-size: 1.1rem;
}

/* Info Section */
.info-section {
    padding: 64px 32px;
    max-width: 1584px;
    margin: 0 auto;
}

.ibm-grid-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-text .eyebrow {
    font-size: 14px;
    color: var(--cds-text-secondary);
    margin-bottom: 8px;
}

.info-text h2 {
    font-size: 2rem;
    font-weight: 300;
}

.gray-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--cds-ui-01);
}

/* Crisis of Modernity Section */
.crisis-section {
    background-color: var(--cds-inverse-01);
    color: var(--cds-inverse-text);
    padding: 80px 32px;
}

.crisis-container {
    max-width: 1584px;
    margin: 0 auto;
}

.crisis-header {
    max-width: 600px;
    margin-bottom: 64px;
}

.section-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cds-link-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.crisis-section .section-eyebrow {
    color: #78a9ff;
}

.crisis-header h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 16px;
}

.crisis-lead {
    font-size: 1.125rem;
    color: #c6c6c6;
    line-height: 1.6;
}

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

.crisis-item {
    padding: 24px 0;
    border-top: 1px solid #393939;
}

.crisis-icon {
    color: #78a9ff;
    margin-bottom: 16px;
}

.crisis-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.crisis-item p {
    font-size: 14px;
    color: #c6c6c6;
    line-height: 1.5;
}

/* Mission & Vision Section */
.mission-vision-section {
    border-bottom: 1px solid var(--cds-ui-02);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--cds-ui-02);
    gap: 1px;
}

.mission-block,
.vision-block {
    background-color: #ffffff;
    padding: 64px 32px;
}

.mission-block {
    background-color: var(--cds-ui-01);
}

.mission-block h3,
.vision-block h3 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 24px;
    color: var(--cds-text-primary);
}

.statement-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cds-text-secondary);
    max-width: 500px;
}

/* About Us Section */
.about-section {
    padding: 80px 32px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--cds-ui-02);
}

.about-container {
    max-width: 1584px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 64px;
    align-items: start;
}

.about-text-col h2 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--cds-text-primary);
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--cds-text-primary);
    margin-bottom: 24px;
}

.about-details p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--cds-text-secondary);
    margin-bottom: 16px;
}

.about-details strong {
    color: var(--cds-text-primary);
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cds-link-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 24px;
    transition: gap 0.2s ease;
}

.about-cta:hover {
    gap: 12px;
}

.about-cta .arrow-icon {
    fill: currentColor;
}

.about-stats-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background-color: var(--cds-ui-02);
    border: 1px solid var(--cds-ui-02);
}

.stat-card {
    background-color: var(--cds-ui-01);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--cds-link-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--cds-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    position: relative;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--cds-interactive-01) 0%, #0043ce 100%);
    padding: 40px 40px 32px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.modal-header .section-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.modal-header .modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-header .modal-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-content {
    padding: 32px 40px 40px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--cds-text-primary);
}

.modal-description {
    font-size: 14px;
    color: var(--cds-text-secondary);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden-field {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--cds-text-secondary);
    transition: color 0.2s ease;
}

.form-group:focus-within label {
    color: var(--cds-interactive-01);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-family);
    font-size: 15px;
    padding: 14px 16px;
    border: 1px solid var(--cds-ui-02);
    border-radius: 10px;
    background-color: #fafafa;
    color: var(--cds-text-primary);
    transition: all 0.2s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #c6c6c6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cds-interactive-01);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a8a8a8;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23525252' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.btn-submit {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--cds-interactive-01) 0%, #0043ce 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: stretch;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(15, 98, 254, 0.25);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Checkbox styles */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--cds-text-primary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cds-ui-02);
    border-radius: 4px;
    background-color: #fafafa;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.checkbox-label:hover .checkmark {
    border-color: #c6c6c6;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--cds-interactive-01);
    border-color: var(--cds-interactive-01);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label input[type="checkbox"]:focus ~ .checkmark {
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.1);
    border-color: var(--cds-interactive-01);
}

.checkbox-text {
    flex: 1;
}

.form-disclaimer {
    font-size: 12px;
    color: var(--cds-text-secondary);
    margin-top: 0px;
    line-height: 1.5;
    padding-left: 32px;
}

/* Discord field */
.discord-field {
    transition: all 0.3s ease;
}

.discord-field.hidden {
    display: none;
}

/* Form success message */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    min-height: 300px;
}

.form-success .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--cds-interactive-01) 0%, #0043ce 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cds-text-primary);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 14px;
    color: var(--cds-text-secondary);
    max-width: 300px;
}

/* Footer */
.ibm-footer {
    background-color: var(--cds-ui-01);
    padding: 64px 32px 32px;
    margin-top: 0;
    font-size: 14px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    max-width: 1584px;
    margin: 0 auto;
    margin-bottom: 64px;
}

.footer-brand-col h4 {
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-brand-col p {
    color: var(--cds-text-secondary);
    max-width: 300px;
    line-height: 1.5;
}

.footer-links-col h5 {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--cds-text-primary);
    font-size: 14px;
}

.footer-links-col ul li {
    margin-bottom: 12px;
}

.footer-links-col ul li a {
    color: var(--cds-text-secondary);
}

.footer-links-col ul li a:hover {
    text-decoration: underline;
    color: var(--cds-text-primary);
}

.footer-bottom {
    max-width: 1584px;
    margin: 0 auto;
    padding-top: 0px;
    color: var(--cds-text-secondary);
    font-size: 12px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--cds-text-primary);
}


/* Responsive */
@media (max-width: 1056px) {
    .hero-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-image-col {
        height: 200px;
    }
    .ibm-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .crisis-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 672px) {
    .global-nav, .sub-nav-links {
        display: none;
    }
    
    .sub-nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--cds-ui-02);
        padding: 16px 0;
        z-index: 1000;
    }

    .sub-nav-links.active a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--cds-ui-01);
        width: 100%;
    }
    
    .hamburger {
        display: flex;
    }

    .sub-nav-title {
        border-bottom: none;
    }

    .ibm-grid-3 {
        grid-template-columns: 1fr;
    }

    .ibm-grid-split {
        grid-template-columns: 1fr;
    }

    .hero-text-col h1 {
        font-size: 2.5rem;
    }
    
    .btn-blue {
        padding: 0 16px;
        font-size: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .crisis-section {
        padding: 48px 16px;
    }

    .crisis-header h2 {
        font-size: 1.75rem;
    }

    .crisis-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .mission-block,
    .vision-block {
        padding: 48px 16px;
    }

    .about-section {
        padding: 48px 16px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-text-col h2 {
        font-size: 1.75rem;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-stats-col {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .modal-overlay {
        padding: 16px;
    }

    .modal-container {
        border-radius: 12px;
    }

    .modal-header {
        padding: 32px 24px 24px;
        border-radius: 12px 12px 0 0;
    }

    .modal-content {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-submit {
        padding: 14px 24px;
    }
}
