
html {
    box-sizing: border-box;
}

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

body {
    margin: 0 auto;
    padding: 0 auto;
    color: var(--text);
}

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

.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: opacity 0.25s ease;
    z-index: 10000;
    overflow: auto;
}

.popup-content {
    position: relative;
    background: transparent;
    color: var(--text);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow: auto;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666!important;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #000;
}

a:hover i{
    transform: none !important;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.companies {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
}

.filters {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
}

.companies .section-header {
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--text);
}

.home-cta-section {
    padding: 60px 20px;
    background: transparent;
    position: relative;
}

.home-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.home-cta-grid .join-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 240px;
    gap: 14px;
}

.home-cta-grid .join-card h3 {
    margin: 0 0 8px 0;
    color: var(--text);
}

.home-cta-grid .join-card p {
    margin: 0;
    color: var(--muted);
    padding: 8px 0 16px 0;
    line-height: 1.6;
}

.home-cta-grid .join-card .hero-btn,
.home-cta-grid .join-card .companies-join-cta {
    margin-top: 12px;
    align-self: center;
}

.history-section {
    position: relative;
    padding: 80px 20px;
    background: transparent;
    color: var(--text);
    overflow: hidden;
}

.history-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
}

.history-image {
    flex: 0 0 400px;
    z-index: 2;
}

.history-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(2,6,23,0.5);
    border: 1px solid var(--glass-border);
}

.history-content {
    flex: 1;
    min-width: 300px;
    z-index: 3;
}

.history-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text);
}

.history-content p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--muted);
}

.history-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.private-icon {
    position: absolute;
    right: 49%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.private-icon.active {
    opacity: 1;
}

.private-column {
    width: 1px;
    padding: 0px;
}

.hero-section {
    padding: 0;
    background: 
        linear-gradient(to bottom, transparent 0%, transparent 100%),
        radial-gradient(circle at 1px 1px, rgba(96,149,190,0.15) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hero-section-bg {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 1;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(96,149,190,0.28) 0%, rgba(96,149,190,0.12) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    box-shadow: 0 0 100px rgba(96,149,190,0.3), 0 0 200px rgba(96,149,190,0.15);
    z-index: 0;
    animation: float-blob 18s ease-in-out infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(46,195,150,0.25) 0%, rgba(46,195,150,0.1) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    box-shadow: 0 0 100px rgba(46,195,150,0.25), 0 0 200px rgba(46,195,150,0.12);
    z-index: 0;
    animation: float-blob-reverse 22s ease-in-out infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 20px 100px;
    z-index: 10;
}

.hero {
    z-index: 2;
    max-width: 800px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(96,149,190,0.35), rgba(46,195,150,0.28));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(40px);
    animation: morph-shape 8s ease-in-out infinite;
    z-index: -1;
}

.hero-image {
    display: none;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 16px;
    font-weight: 800;
    color: var(--text);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 20px;
    margin: 0 0 20px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.3px;
}

.hero p {
    font-size: 17px;
    max-width: 680px;
    color: #d7e3e7;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(46,195,150,0.9), rgba(96,149,190,0.85));
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border: none;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(46,195,150,0.2), 0 0 40px rgba(96,149,190,0.15);
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn:hover {
    background: linear-gradient(90deg, rgba(46,195,150,1), rgba(96,149,190,0.95));
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(46,195,150,0.25), 0 0 50px rgba(96,149,190,0.25);
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
    width: 100%;
    max-width: 1200px;
}

.home-news-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin: 40px auto;
    max-width: 100%;
    width: 100%;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(46, 195, 150, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 195, 150, 0.15);
}

.news-card-image {
    width: 100%;
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 0.85rem;
    color: rgba(46, 195, 150, 0.8);
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 0 8px 0;
    height: 30px;
}

.news-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.4;
    height: 60px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 8px 0 0 0;
}

.news-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
    height: 110px;
    padding: 12px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: break-word;
}

.news-excerpt p {
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.news-link {
    font-size: 0.9rem;
    color: rgba(46, 195, 150, 0.9);
    font-weight: 600;
    transition: all 0.2s ease;
}

.news-card:hover .news-link {
    color: rgba(46, 195, 150, 1);
    transform: translateX(4px);
}

.news-footer {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

@media (max-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .home-news-section {
        padding: 60px 20px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card h3 {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
    }
}
