/* =====================================================
   NEO-X Landing Page Styles
   Corporate Colors:
   - X-Black: #0A0A0A
   - X-Dark Grey: #414141
   - X-Light Grey: #E1E1E1
   - X-White: #FFFFFF
   ===================================================== */

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --x-black: #0A0A0A;
    --x-dark-grey: #414141;
    --x-light-grey: #E1E1E1;
    --x-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-primary: rgba(225, 225, 225, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--x-black);
    color: var(--x-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background - Vanta.js Globe */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Overlay for better text readability */
.background-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .background-animation::after {
        background: rgba(0, 0, 0, 0.75);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 4rem 2rem;
    }
}

/* Header / Logo */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

@media (min-width: 768px) {
    .logo {
        max-width: 360px;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--x-white) 0%, var(--x-light-grey) 50%, var(--x-dark-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--x-light-grey);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.description strong {
    color: var(--x-white);
    font-weight: 600;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.launching-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--x-light-grey);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(225, 225, 225, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(225, 225, 225, 0);
    }
}

.badge-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--x-light-grey);
}

.countdown-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 500;
    color: var(--x-light-grey);
    margin-bottom: 2.5rem;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .countdown-container {
        gap: 1rem;
    }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    min-width: 70px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
    .countdown-item {
        padding: 1.5rem 2rem;
        min-width: 100px;
    }
}

.countdown-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, var(--x-white) 0%, var(--x-light-grey) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--x-dark-grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 640px) {
    .countdown-label {
        font-size: 0.875rem;
    }
}

.countdown-separator {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--x-dark-grey);
    display: none;
}

@media (min-width: 640px) {
    .countdown-separator {
        display: block;
    }
}

.launch-date {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--x-white);
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--x-dark-grey) 0%, var(--x-black) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: inline-block;
}

/* Pillars Section */
.pillars {
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.pillars-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--x-white);
}

.pillars-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.pillar-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    flex: 0 0 100%;
    width: 100%;
}

@media (min-width: 640px) {
    .pillar-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (min-width: 1024px) {
    .pillar-card {
        /* 3 columns: (100% - 2 * 1.5rem gap) / 3 = 33.333% - 1rem */
        flex: 0 0 calc(33.333% - 1rem);
    }
}

.pillar-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--x-dark-grey) 0%, var(--x-black) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1.25rem;
    color: var(--x-light-grey);
    transition: background 0.3s ease, color 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    background: linear-gradient(135deg, var(--x-light-grey) 0%, var(--x-dark-grey) 100%);
    color: var(--x-black);
}

.pillar-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--x-white);
}

.pillar-desc {
    font-size: 1rem;
    color: var(--x-light-grey);
    line-height: 1.7;
    opacity: 0.9;
}

.pillar-card:hover .pillar-desc {
    opacity: 1;
}

/* Network Visualization Section */
.network-section {
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.network-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--x-white);
}

.network-description {
    font-size: 1rem;
    color: var(--x-light-grey);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    opacity: 0.9;
}

.network-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto 3rem;
}

/* Connection Lines */
.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection-line {
    stroke: var(--x-light-grey);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    opacity: 0.6;
    filter: drop-shadow(0 0 4px rgba(225, 225, 225, 0.4));
    animation: flowData 3s linear infinite;
}

@keyframes flowData {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -20;
    }
}

/* Network Nodes */
.network-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--x-light-grey);
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.network-node:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--x-light-grey);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(225, 225, 225, 0.3);
}

.network-node::after {
    content: attr(data-label);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--x-light-grey);
    white-space: nowrap;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.network-node:hover::after {
    opacity: 1;
    color: var(--x-white);
}

/* Central Node */
.central-node {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: var(--x-light-grey);
    animation: pulseNode 3s ease-in-out infinite;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--x-light-grey);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseNode {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(225, 225, 225, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(225, 225, 225, 0.6);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Distributed Nodes */
.distributed-node {
    width: 60px;
    height: 60px;
    animation: float 6s ease-in-out infinite;
}

.node-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.node-2 {
    top: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.node-3 {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    animation-delay: 1s;
}

.node-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

.node-5 {
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

.node-6 {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    animation-delay: 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Network Features Grid */
.network-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.network-feature {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.network-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--x-white);
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: all 0.3s ease;
}

.network-feature:hover .feature-icon {
    transform: scale(1.1);
    color: var(--x-light-grey);
}

.network-feature:hover .feature-icon svg {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.network-feature h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--x-white);
    margin-bottom: 0.5rem;
}

.network-feature p {
    font-size: 0.9rem;
    color: var(--x-light-grey);
    opacity: 0.8;
    line-height: 1.5;
}

/* WhatsApp CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 5rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.7s both;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--x-white);
}

.cta-description {
    font-size: 1rem;
    color: var(--x-light-grey);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0.9;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.whatsapp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-icon {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copyright {
    font-size: 0.875rem;
    color: var(--x-light-grey);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--x-light-grey);
    opacity: 0.7;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .grid-overlay {
        animation: none;
    }

    .glow-orb {
        animation: none;
    }
}

/* Mobile Responsive Improvements */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .header {
        margin-bottom: 2.5rem;
    }

    .logo {
        max-width: 200px;
    }

    .hero {
        margin-bottom: 3rem;
    }

    .tagline {
        font-size: 2rem;
        line-height: 1.3;
    }

    .description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .countdown-section {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
    }

    .countdown-title {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 65px;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-separator {
        display: none;
    }

    .launch-date {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }

    .pillars {
        margin-bottom: 3rem;
    }

    .pillars-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .pillar-card {
        padding: 1.5rem;
    }

    .pillar-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 1rem;
    }

    .pillar-name {
        font-size: 1.1rem;
    }

    .pillar-desc {
        font-size: 0.95rem;
    }

    .footer {
        padding-top: 2rem;
    }

    .cta-section {
        margin-bottom: 3rem;
        padding: 2rem 1.5rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .whatsapp-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    .network-section {
        margin-bottom: 3rem;
    }

    .network-container {
        height: 300px;
        max-width: 100%;
        padding: 0 1rem;
    }

    .central-node {
        width: 60px;
        height: 60px;
    }

    .central-node svg {
        width: 24px;
        height: 24px;
    }

    .distributed-node {
        width: 45px;
        height: 45px;
    }

    .distributed-node svg {
        width: 18px;
        height: 18px;
    }

    .network-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .network-feature {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .countdown-container {
        gap: 0.4rem;
    }

    .countdown-item {
        padding: 0.6rem 0.8rem;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.6rem;
    }
}

/* Very small devices (iPhone SE, etc) */
@media (max-width: 375px) {
    .tagline {
        font-size: 1.75rem;
    }

    .countdown-item {
        padding: 0.5rem 0.7rem;
        min-width: 55px;
    }

    .countdown-value {
        font-size: 1.4rem;
    }
}

/* Selection */
::selection {
    background: var(--x-dark-grey);
    color: var(--x-white);
}