* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        Oxygen, Ubuntu, sans-serif;
}

:root {
    --primary-black: #0a0a0f;
    --secondary-black: #151520;
    --dark-gray: #1e1e2d;
    --accent-red: #a61706;
    --light-red: #d6321f;
    --text-light: #f0f0f0;
    --text-gray: #a0a0b0;
    --card-bg: #12121c;
}

body {
    background-color: var(--primary-black);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Modern Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 60px;
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(166, 23, 6, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-light);
}

.logo i {
    margin-right: 12px;
    font-size: 28px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: all 0.3s;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--accent-red);
}

nav ul li a:hover:after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    min-width: 320px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(166, 23, 6, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    z-index: 100;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 15px;
}

.dropdown-menu a:hover {
    background-color: rgba(166, 23, 6, 0.08);
    color: var(--text-light);
}

.dropdown-menu a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--accent-red);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 18px;
}

.btn {
    padding: 12px 26px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.btn-login {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-login:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
}

.btn-signup {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(166, 23, 6, 0.3);
}

.btn-signup:hover {
    background-color: var(--light-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(166, 23, 6, 0.4);
}

/* Hero Section */
.platform-hero {
    padding: 180px 60px 120px;
    background: linear-gradient(
        135deg,
        var(--primary-black) 0%,
        var(--secondary-black) 100%
    );
    position: relative;
    overflow: hidden;
}

.platform-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.platform-hero-text h1 {
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.platform-hero-text h1 span {
    color: var(--accent-red);
}

.platform-tagline {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 25px;
    font-weight: 500;
}

.platform-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.platform-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.platform-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(166, 23, 6, 0.2);
}

/* Main Functions Section */
.main-functions {
    padding: 100px 60px;
    background-color: var(--primary-black);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: center;
}

.section-title p {
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
}

/* .functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
} */

.functions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.functions-grid .function-card {
    flex: 0 0 calc(33.333% - 30px);
}

.function-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px 35px;
    transition: all 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.function-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(166, 23, 6, 0.3);
}

.function-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(166, 23, 6, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.function-icon i {
    font-size: 36px;
    color: var(--accent-red);
}

.function-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.function-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Features and Advantages Section */
.features-advantages {
    padding: 100px 60px;
    background-color: var(--secondary-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.features-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 40px 35px;
    transition: all 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(166, 23, 6, 0.3);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--accent-red);
}

.feature-icon {
    font-size: 44px;
    color: var(--accent-red);
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 16px;
}

/* Demo Section */
.demo-section {
    padding: 100px 60px;
    background-color: var(--primary-black);
    text-align: center;
}

.demo-container {
    max-width: 800px;
    margin: 0 auto;
}

.demo-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.demo-text {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-section {
    padding: 100px 60px;
    background-color: var(--secondary-black);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 60px;
    border: 1px solid rgba(166, 23, 6, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.contact-title {
    font-size: 38px;
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.contact-text {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 700px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-detail {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 18px;
}

.contact-detail i {
    color: var(--accent-red);
    margin-right: 15px;
    font-size: 22px;
    width: 30px;
}

/* Floating Contact Widget */
.contact-widget {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.contact-button {
    background-color: var(--accent-red);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 8px 25px rgba(166, 23, 6, 0.4);
    transition: all 0.3s;
}

.contact-button:hover {
    background-color: var(--light-red);
    transform: scale(1.1);
}

.contact-content {
    position: absolute;
    right: 0;
    top: -140px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    width: 380px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(166, 23, 6, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.contact-widget:hover .contact-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-content h4 {
    color: var(--accent-red);
    margin-bottom: 25px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-content h4 i {
    font-size: 22px;
}

/* Footer */
footer {
    background-color: var(--primary-black);
    padding: 70px 60px 30px;
    border-top: 1px solid rgba(166, 23, 6, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.footer-column ul li a:hover {
    color: var(--accent-red);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 15px;
}

/* Main Banner */
.main-banner {
    margin-top: 90px;
    /* height: 400px; */
    height: 20.833vw;
    background: url('../banner/banner.png') no-repeat center,
        linear-gradient(rgba(10, 10, 15, 0.8), rgba(166, 23, 6, 0.3));
    background-size: contain, cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.banner-content {
    text-align: center;
    max-width: 800px;
    padding: 0 30px;
}

.banner-content h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.banner-content h1 span {
    color: var(--accent-red);
}

.banner-content p {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1100px) {
    .platform-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .platform-hero-text h1 {
        font-size: 46px;
    }

    .platform-description,
    .platform-tagline {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    header {
        padding: 20px 30px;
    }

    nav ul {
        gap: 25px;
    }

    .platform-hero,
    .main-functions,
    .features-advantages,
    .demo-section,
    .contact-section {
        padding: 140px 30px 80px;
    }

    .contact-container {
        padding: 40px;
    }

    footer {
        padding: 60px 30px 30px;
    }

    .main-banner {
        /* height: 350px; */
        margin-top: 85px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .auth-buttons {
        margin-top: 10px;
    }

    .platform-hero-text h1 {
        font-size: 38px;
    }

    .platform-tagline {
        font-size: 22px;
    }

    .section-title h2,
    .demo-title,
    .contact-title {
        font-size: 36px;
    }

    .contact-widget {
        right: 20px;
    }

    .contact-content {
        width: 380px;
        right: -10px;
    }

    .main-banner {
        /* height: 300px; */
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .main-banner {
        /* height: 250px; */
        margin-top: 140px;
    }

    .platform-hero {
        padding: 140px 20px 60px;
    }

    .platform-hero-text h1 {
        font-size: 32px;
    }

    .platform-tagline {
        font-size: 20px;
    }

    .section-title h2,
    .demo-title,
    .contact-title {
        font-size: 30px;
    }

    .function-card,
    .feature-card {
        padding: 30px 25px;
    }
}
