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

:root {
    --primary: #4a90e2;
    --primary-dark: #357abd;
    --white: #ffffff;
    --dark: #1a1a2e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
.header {
    background: linear-gradient(180deg, rgba(10, 10, 30, 0.8), rgba(10, 10, 30, 0));
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 30, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.8s ease-out;
}

.logo-icon {
    font-size: 30px;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.6));
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(90deg, #4a90e2, #00d2ff, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientShift 4s linear infinite;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 12px rgba(74, 144, 226, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #00d2ff);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hero Section */
.main {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slowZoom 20s ease-in-out infinite alternate;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(10, 10, 30, 0.85) 0%,
        rgba(10, 10, 30, 0.6) 45%,
        rgba(10, 10, 30, 0.35) 100%
    );
}

.hero {
    width: 100%;
    padding: 120px 0 60px;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Content */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 58px;
    font-weight: 900;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #ffffff, #00d2ff, #7b68ee, #ffffff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s linear infinite, slideUp 1s ease-out;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 30px rgba(74, 144, 226, 0.4));
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    letter-spacing: 6px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    animation: fadeInUp 1.4s ease-out;
}

/* Download Section */
.download-section {
    animation: fadeInUp 1.6s ease-out;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, #00d2ff, #7b68ee);
    border-radius: 2px;
}

.download-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 480px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
}

.btn-icon {
    font-size: 32px;
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.download-btn:hover .btn-icon {
    transform: scale(1.15) rotate(-8deg);
}

.btn-text {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
}

/* Phone Mockup */
.phone-area {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out;
    padding: 30px 0;
}

.phone-aura {
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.35), rgba(123, 104, 238, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: auraPulse 4s ease-in-out infinite;
    z-index: -1;
}

.phone-mockup {
    width: 290px;
    height: 590px;
    background: linear-gradient(160deg, #1c1c3a, #2a1f5e);
    border-radius: 42px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 0 2px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(74, 144, 226, 0.1);
    padding: 14px;
    position: relative;
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s ease;
    animation: phoneFloat 5s ease-in-out infinite;
}

.phone-mockup:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 26px;
    background: #0a0a1e;
    border-radius: 15px;
    z-index: 10;
}

.phone-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 8px 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 11;
    position: relative;
}

.phone-app {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-radius: 24px;
    height: calc(100% - 24px);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
}

.app-logo {
    font-weight: 900;
    font-size: 15px;
    background: linear-gradient(90deg, #4a90e2, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-settings {
    font-size: 16px;
    opacity: 0.6;
}

.app-connect {
    text-align: center;
    padding: 6px 0;
}

.connect-ring {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(#00d2ff, #7b68ee, #4a90e2, #00d2ff);
    animation: ringSpin 6s linear infinite;
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.4);
}

.connect-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #23235a, #15153a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.connect-icon {
    font-size: 34px;
    color: #00d2ff;
    animation: float 2s ease-in-out infinite;
}

.connect-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.connect-status {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.app-nodes {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px 12px;
    overflow: hidden;
}

.nodes-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.node-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.node-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 11px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.node-item.active {
    background: rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.5);
}

.node-flag {
    font-size: 14px;
}

.node-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
}

.node-ping {
    color: #00d2ff;
    font-size: 10px;
}

.nodes-more {
    margin-top: 8px;
    text-align: center;
    font-size: 10px;
    color: rgba(0, 210, 255, 0.7);
}

/* Floating Badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(20, 20, 50, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: float 4s ease-in-out infinite;
    z-index: 5;
}

.badge-icon {
    font-size: 22px;
}

.badge-text strong {
    display: block;
    font-size: 13px;
}

.badge-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.badge-1 {
    top: 18%;
    left: -8%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 22%;
    right: -6%;
    animation-delay: 1.5s;
}

/* Footer */
.footer {
    position: relative;
    background: rgba(10, 10, 30, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}

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

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ringSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes phoneFloat {
    0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(-14px); }
}

@keyframes auraPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        margin-bottom: 25px;
    }

    .download-buttons {
        margin: 0 auto;
        max-width: 480px;
    }

    .badge-1 {
        left: 5%;
    }

    .badge-2 {
        right: 5%;
    }
}

@media (max-width: 640px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding-top: 150px;
    }

    .hero-title {
        font-size: 38px;
        letter-spacing: 3px;
    }

    .hero-subtitle {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .download-buttons {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        width: 250px;
        height: 510px;
    }

    .float-badge {
        padding: 9px 12px;
    }

    .badge-1 {
        top: 10%;
        left: 0;
    }

    .badge-2 {
        bottom: 12%;
        right: 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 30, 0.9);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a90e2, #7b68ee);
    border-radius: 4px;
}