html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0 auto;
    padding: 0 auto;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, p, ul {
    padding: 0;
    margin: 0;
    font-weight: 400;
}

.brokers-header {
    background: linear-gradient(135deg, rgba(46, 195, 150, 0.15), rgba(96, 149, 190, 0.15)), linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    background-attachment: fixed;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brokers-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(46, 195, 150, 0.1), transparent 50%), radial-gradient(circle at 80% 80%, rgba(96, 149, 190, 0.1), transparent 50%);
    pointer-events: none;
}

.brokers-header .header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.brokers-header h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.brokers-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.header-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color-gradient);
    color: #FFF;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 195, 150, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color-gradient);
    color: #FFF;
    border-color: var(--accent-color);
}

.brokers-container {
    padding: 80px 20px;
    position: relative;
}

.brokers {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.brokers-content {
    flex: 1;
    min-width: 0;
}

.brokers-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.brokers-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.brokers-img-container {
    flex: 0.6;
    min-width: 0;
    overflow: hidden;
    max-width: 450px;
}

.brokers-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.brokers-img-container:hover img {
    transform: scale(1.05);
}

.why-do-container {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(96, 149, 190, 0.08), rgba(46, 195, 150, 0.05));
    position: relative;
}

.why-do {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
    flex-direction: row-reverse;
}

.why-do-content {
    flex: 1;
    min-width: 0;
}

.why-do-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.why-do-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.why-do-img-container {
    flex: 0.6;
    min-width: 0;
    overflow: hidden;
    max-width: 450px;
}

.why-do-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.why-do-img-container:hover img {
    transform: scale(1.05);
}

.how-do-container {
    padding: 80px 20px;
    position: relative;
}

.how-do {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 60px;
}

.how-do-content {
    flex: 1;
    min-width: 0;
}

.how-do-content h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.how-do-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.how-do-img-container {
    flex: 0.6;
    min-width: 0;
    overflow: hidden;
    max-width: 450px;
}

.how-do-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.how-do-img-container:hover img {
    transform: scale(1.05);
}

.technology-container {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(96, 149, 190, 0.08), rgba(46, 195, 150, 0.05));
}

.latest-technology {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
}

.latest-technology p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.latest-technology h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.technology-left {
    flex: 1;
    min-width: 300px;
}

.technology-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.technology-right h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.technology-right img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

/* Brokers Index Page Styles */
.page-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 20px;
}

.content-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left {
    flex: 0 0 320px;
    position: sticky;
    top: 100px;
}

.index {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.index h1 {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 24px;
    margin: 0;
    background: var(--accent-color-gradient);
    color: #FFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.index-wrap {
    padding: 16px 0;
}

.index-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.index-wrap li {
    margin: 0;
    padding: 0;
}

.index-wrap li a {
    display: block;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.index-wrap li a:hover {
    background: rgba(46, 195, 150, 0.1);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.index-wrap li a span {
    font-size: 14px;
    line-height: 1.5;
}

.right {
    flex: 1;
    min-width: 0;
}

.right > h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px 0;
    color: var(--text);
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(46, 195, 150, 0.3);
    scroll-margin-top: 100px;
}

.brokers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.broker {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.broker:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(46, 195, 150, 0.15);
    border-color: rgba(46, 195, 150, 0.3);
}

.broker h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.4;
}

.broker p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.broker p strong {
    color: var(--accent-color);
    font-weight: 600;
}

.broker a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.broker a:hover {
    color: #FFF;
    text-decoration: underline;
}

.broker a p {
    color: inherit;
}

@media (max-width: 1024px) {
    .content-container {
        flex-direction: column;
    }

    .left {
        position: static;
        flex: 1;
        width: 100%;
    }

    .index {
        margin-bottom: 40px;
    }

    .brokers-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 900px) {
    .brokers-header h1 {
        font-size: 36px;
    }

    .brokers-img-container,
    .why-do-img-container,
    .how-do-img-container {
        display: none;
    }

    .brokers,
    .why-do,
    .how-do {
        gap: 0;
    }

    .brokers-content h1,
    .why-do-content h1,
    .how-do-content h1 {
        font-size: 28px;
    }

    .latest-technology {
        flex-direction: column;
        gap: 40px;
    }

    .right > h1 {
        font-size: 26px;
    }

    .brokers-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .brokers-header h1 {
        font-size: 28px;
    }

    .brokers-content h1,
    .why-do-content h1,
    .how-do-content h1 {
        font-size: 24px;
    }

    .latest-technology h2 {
        font-size: 28px;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .right > h1 {
        font-size: 22px;
    }

    .page-container {
        padding: 0 16px;
    }
}
