:root {
    --primary-color: #00aaff;
    --secondary-color: #0a2e4a;
    --background-color: #010a14;
    --text-color: #c0c8d1;
    --heading-color: #ffffff;
    --card-bg-color: rgba(10, 30, 50, 0.5);
    --border-color: rgba(0, 170, 255, 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
}

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

a:hover {
    color: #4dc4ff;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(1, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--heading-color);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.nav-open .hamburger {
    background: transparent;
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #33bbff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 170, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 5% 5rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at center, rgba(10, 46, 74, 0.4) 0%, transparent 60%),
        var(--background-color);
}

#globe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#globe-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.headline {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #a7d9f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 1s ease-out;
    min-height: 100px;
}

.headline.typing-effect::after {
    content: '_';
    font-weight: bold;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

.subheadline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    animation: fadeInUp 1s ease-out 0.5s;
    animation-fill-mode: backwards;
}

.btn-large {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    animation: pulse 2s infinite, fadeInUp 1s ease-out 1s;
    animation-fill-mode: backwards;
}

section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

#features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 170, 255, 0.1);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    position: relative;
    border-radius: 50%;
    background: rgba(0, 170, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.feature-icon::before,
.feature-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
    transition: transform 0.5s ease;
}

/* --- Icon Styles --- */
.speed-icon::before {
    width: 3px; height: 25px; transform: rotate(45deg);
}
.speed-icon::after {
    width: 3px; height: 15px; transform: translate(6px, -6px) rotate(45deg); border-top-left-radius: 5px; border-bottom-left-radius: 5px;
}

.security-icon::before {
    width: 25px; height: 30px; background: none; border: 3px solid var(--primary-color); border-top: none; border-radius: 0 0 12px 12px;
}

.support-icon::before {
    width: 25px; height: 25px; border: 3px solid var(--primary-color); border-radius: 50%; background: none;
}
.support-icon::after {
    width: 3px; height: 10px; transform: translateY(-3px);
}

.performance-icon::before {
    width: 8px; height: 25px; transform: translateX(-8px); box-shadow: 8px 0, 16px 0;
}

.routing-icon::before {
    width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 -10px, -10px 10px, 10px 10px;
}

.analytics-icon::before {
    width: 5px; height: 25px; transform: translateX(-8px); box-shadow: 8px 5px, 16px -5px;
    background-color: transparent; border-left: 5px solid; border-color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pricing-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    flex-basis: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
     transform: scale(1.05);
     box-shadow: 0 10px 30px rgba(0, 170, 255, 0.2);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    position: relative;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 1.7rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: normal;
}

.pricing-card ul {
    margin: 1.5rem 0;
    width: 100%;
    text-align: center;
}

.pricing-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin-top: auto;
}

#contact {
    text-align: center;
    background: var(--secondary-color);
    padding: 6rem 5%;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    margin: 6rem auto;
}

#contact p {
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
}

#contact .btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

footer {
    text-align: center;
    padding: 2rem 5%;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 170, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 170, 255, 0);
    }
}

@keyframes blink {
    from, to {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* For JS animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    nav ul {
        gap: 1.5rem;
    }
    .headline {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        justify-content: space-between;
    }
    
    #nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--background-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-open #nav-menu {
        transform: translateX(0);
    }

    #nav-menu li a {
        font-size: 1.5rem;
    }

    .actions {
        display: none; /* Hide login/signup on mobile nav, can be moved into the slide-out menu if needed */
    }

    .headline {
        font-size: 2.5rem;
        min-height: 80px;
    }

    .subheadline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    #features .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
        max-width: 400px;
    }
    
    #contact {
        padding: 3rem 1.5rem;
    }

    #globe-container {
        opacity: 0.3;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-left: none;
        border-top: 2px solid var(--primary-color);
        padding-top: 2rem;
        padding-left: 0;
        padding-right: 0;
    }

    #contact .section-title {
        text-align: center;
    }

    #contact .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-graphic {
        opacity: 0.1;
    }
}

/* --- Global Network Section --- */
#global-network {
    text-align: center;
    background: var(--secondary-color);
    padding-top: 6rem;
    padding-bottom: 6rem;
    margin-top: 6rem;
    margin-bottom: 6rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.network-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.network-intro p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

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

.stat-item {
    padding: 2rem;
    border-left: 2px solid var(--primary-color);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
}

.network-coverage {
    font-size: 1.2rem;
    font-weight: 500;
}

.network-coverage strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* --- Infrastructure Section --- */
#infrastructure {
    padding-top: 0;
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.infra-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.infra-icon::before,
.infra-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.infra-item:hover .infra-icon {
    transform: scale(1.1);
}

/* --- Infra Icon Styles --- */
.multi-cloud-icon::before {
    width: 25px; height: 25px; border-radius: 5px; background: none; border: 3px solid; transform: rotate(45deg);
}
.multi-cloud-icon::after {
    width: 15px; height: 15px; background: var(--primary-color); transform: translate(-10px, 10px); box-shadow: 20px -20px var(--primary-color);
}

.precise-scheduling-icon {
    transform: rotate(45deg);
}
.precise-scheduling-icon::before {
    width: 3px; height: 40px;
}
.precise-scheduling-icon::after {
    width: 40px; height: 3px;
}
.infra-item:hover .precise-scheduling-icon {
    transform: rotate(225deg);
    transition: transform 0.4s ease;
}


.smart-cache-icon::before {
    width: 30px; height: 30px; background: none; border: 3px solid; border-radius: 5px;
}
.smart-cache-icon::after {
    width: 15px; height: 3px; transform: rotate(-45deg) translate(8px, 10px); box-shadow: -2px 2px 0 0 var(--heading-color);
}

.infra-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.infra-item p {
    font-size: 1rem;
}

/* --- Partners Section --- */
#partners {
    padding-top: 6rem;
}

.logo-scroller {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
    mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.logo-scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.scroller-inner {
    display: flex;
    width: fit-content;
    animation: scroll-horizontal 40s linear infinite;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem 2rem;
    padding: 1.5rem;
    width: 1200px; /* Match logo-scroller width */
    flex-shrink: 0;
}

.partner-logo {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-height: 100%;
    max-width: 160px;
    width: auto;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-horizontal {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* --- Contact Section --- */
#contact {
    position: relative;
    padding: 6rem 5%;
    overflow: hidden;
    background: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

#contact .section-title {
    text-align: left;
}

#contact .section-title::after {
    left: 0;
    transform: translateX(0);
}

.contact-info p {
    margin: 2rem 0;
    max-width: 450px;
}

a.contact-email {
    font-size: 1.2rem;
    font-weight: 500;
    word-break: break-all;
}

.contact-form-wrapper {
    background: var(--card-bg-color);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 0;
    color: var(--heading-color);
    font-size: 1rem;
    outline: none;
    position: relative;
    z-index: 1;
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-color);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -15px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.contact-graphic {
    position: absolute;
    width: 800px;
    height: 800px;
    bottom: -400px;
    right: -300px;
    z-index: 0;
}

.contact-graphic::before,
.contact-graphic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 2px solid rgba(0, 170, 255, 0.1);
}

.contact-graphic::before {
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 6s ease-out infinite;
}

.contact-graphic::after {
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 6s ease-out 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
} 