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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    overflow-x: hidden;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv01", "cv02", "cv03", "cv04";
    transition: background-color 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-5deg);
    filter: brightness(1.1);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* Dropdown Styles */
.dropdown-icon {
    transition: transform 0.2s ease;
    opacity: 0.8;
}

.nav-item:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: inherit;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropdown-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.875rem;
}

.dropdown-desc {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sign-in {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.sign-in:hover {
    color: #ffffff;
}

.cta-button {
    background: #ffffff;
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 100;
    margin-left: 1rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    background: linear-gradient(
        145deg,
        #000000 0%,
        #111827 50%,
        #1F2937 100%
    );
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 72px;
    padding: 4rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 179, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(99, 179, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.2;
    animation: gridFade 1s ease-out forwards;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: translate(-2%, -2%);
        opacity: 1;
    }
}

@keyframes gridFade {
    from {
        opacity: 0;
        background-size: 45px 45px;
    }
    to {
        opacity: 0.2;
        background-size: 50px 50px;
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideUp 1s ease-out;
}

.hero-content {
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: #ffffff;
    font-feature-settings: "salt" 1, "ss01" 1, "ss02" 1, "calt" 1;
    max-width: 800px;
    transform: translateY(20px);
    opacity: 0;
    animation: titleFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.4rem);
    color: #E5E7EB;
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 580px;
    font-weight: 400;
    letter-spacing: -0.015em;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleFade 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    opacity: 0;
    animation: buttonsFade 0.8s ease-out 0.4s forwards;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: #f8fafc;
    color: #000000;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.1);
    color: #000000;
}

.btn-secondary:active {
    transform: translateY(1px) scale(0.98);
}

@keyframes buttonsFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-element {
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.1) 35%,
        rgba(59, 130, 246, 0.05) 70%,
        rgba(99, 102, 241, 0.02) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: float 8s ease-in-out infinite;
    position: relative;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(99, 102, 241, 0.1),
        0 0 80px rgba(99, 102, 241, 0.1);
}

.visual-element::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.08) 50%,
        transparent 100%
    );
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.visual-content {
    text-align: center;
    z-index: 2;
    animation: contentFloat 8s ease-in-out infinite;
}

.visual-icon {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 
        0 0 30px rgba(99, 102, 241, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3);
    animation: iconGlow 8s ease-in-out infinite;
    filter: saturate(1.2);
}

.visual-text {
    background: linear-gradient(
        to right,
        #ffffff,
        rgba(255, 255, 255, 0.9)
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Platform Section */
.platform-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    color: #ffffff;
}

.platform-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.platform-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 1);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, #283b74, #3ab7ed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: saturate(1.2);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-subtitle {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-description {
    color: #6B7280;
    line-height: 1.6;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(
        145deg,
        #000000 0%,
        #111827 50%,
        #1F2937 100%
    );
    padding: 4rem 0 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #E5E7EB;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 2;
    transition: color 0.2s ease;
    display: block;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-link {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-bottom-link:hover {
    color: #ffffff;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: #6b7280;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #1a1a1a;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(1deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes iconGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
    }
}

@keyframes contentFloat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .platform-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .features-grid {
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .platform-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-subtitle {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-actions {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: linear-gradient(
            145deg,
            #000000 0%,
            #111827 50%,
            #1F2937 100%
        );
        padding: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1.125rem;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0 0.5rem 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }

    .dropdown-title {
        color: #ffffff;
    }

    .dropdown-desc {
        color: rgba(255, 255, 255, 0.7);
    }

    .nav-actions {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        width: 100%;
    }

    .sign-in {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        color: #ffffff;
    }

    .cta-button {
        width: 100%;
        text-align: center;
        padding: 0.875rem;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .visual-element {
        width: 300px;
        height: 300px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
