/* PredictChain Coming Soon Page - Matching Main App Hero Section */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

/* Spline 3D Animation Background - Responsive */
.spline-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
    overflow: hidden;
}

.spline-container spline-viewer {
    width: 100%;
    height: 100%;
    display: block;
}

.spline-container spline-viewer canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Ensure main content is above Spline */
body > *:not(.spline-container) {
    position: relative;
    z-index: 1;
}

/* Grid Background Pattern - Exact match from HomePage.tsx */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    pointer-events: none;
    z-index: 0;
}

.background::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Grid lines - exact match from main app */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

.background::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Vertical fade gradient - transparent at top and bottom, stronger in center */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.4) 20%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 1) 100%
    );
}

/* Subtle center highlight overlay */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particles::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 60%
    );
}

/* Animated particles - subtle floating effect */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: float linear infinite;
    opacity: 0.3;
}

.particle:nth-child(1) {
    width: 120px;
    height: 120px;
    left: 10%;
    top: 20%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 80px;
    height: 80px;
    right: 15%;
    top: 60%;
    animation-duration: 25s;
    animation-delay: 3s;
}

.particle:nth-child(3) {
    width: 150px;
    height: 150px;
    left: 50%;
    bottom: 10%;
    animation-duration: 22s;
    animation-delay: 6s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 30%;
    top: 15%;
    animation-duration: 28s;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.05;
    }
    25% {
        transform: translate(30px, -40px) scale(1.1);
        opacity: 0.08;
    }
    50% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.06;
    }
    75% {
        transform: translate(35px, 20px) scale(1.05);
        opacity: 0.07;
    }
}

/* Hero Section Container */
.hero-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    z-index: 10;
}

/* Content Wrapper */
.content-wrapper {
    max-width: 64rem;
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
}

/* Badge with Ping Animation - exact match from main app */
.badge-wrapper {
    display: inline-block;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    animation: fadeInDown 1s ease-out;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ping-container {
    position: relative;
    display: flex;
    height: 0.625rem;
    width: 0.625rem;
}

.ping {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
    border-radius: 9999px;
    background-color: #22c55e;
    opacity: 0.75;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-dot {
    position: relative;
    display: inline-flex;
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 9999px;
    background-color: #10b981;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Main Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.main-logo {
    width: 280px;
    height: auto;
    max-width: 90vw;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 15px 40px rgba(255, 255, 255, 0.15));
}

/* Fade-in-up animation for logo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Heading - matching HomePage h1 style */
.main-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Description - matching HomePage paragraph style */
.description {
    font-size: 1.25rem;
    color: rgba(209, 213, 219, 1);
    margin-bottom: 1.5rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    animation: fadeIn 1s ease-out 1.2s both;
}

.sub-description {
    font-size: 1rem;
    color: rgba(156, 163, 175, 1);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    animation: fadeIn 1s ease-out 1.5s both;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 1.8s both;
}

.twitter-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #000000;
    background: #ffffff;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.1), 0 4px 6px -4px rgba(255, 255, 255, 0.1);
}

.twitter-button:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(255, 255, 255, 0.1), 0 10px 10px -5px rgba(255, 255, 255, 0.04);
}

.twitter-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    padding: 2rem 1rem;
    animation: fadeIn 1s ease-out 2.1s both;
}

/* Footer Logo Container */
.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.25rem;
}

.footer-logo {
    width: 150px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.copyright {
    margin: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Mobile First */
@media (min-width: 768px) {
    .hero-container {
        padding: 6rem 1rem;
    }

    .main-logo {
        width: 320px;
    }

    .main-heading {
        font-size: 4.5rem;
    }

    .description {
        font-size: 1.5rem;
    }

    .sub-description {
        font-size: 1.125rem;
    }

    .footer-logo {
        width: 160px;
    }
}

@media (max-width: 767px) {
    .hero-container {
        padding: 3rem 1rem;
    }

    .badge-wrapper {
        margin-top: 1rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }

    .main-logo {
        width: 200px;
    }

    .logo-container {
        margin-bottom: 2rem;
    }

    .main-heading {
        font-size: 2rem;
    }

    .description {
        font-size: 1.125rem;
    }

    .sub-description {
        font-size: 0.875rem;
    }

    .twitter-button {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .footer-logo {
        width: 130px;
    }
}

@media (max-width: 480px) {
    .main-logo {
        width: 160px;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .main-heading {
        font-size: 1.5rem;
    }

    .description {
        font-size: 1rem;
    }

    .sub-description {
        font-size: 0.8125rem;
    }

    .twitter-button {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    .footer-logo {
        width: 110px;
    }
}

/* Accessibility - Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.twitter-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}
