:root {
    --primary-orange: #FF6B35;
    --primary-yellow: #FFD93D;
    --primary-grey: #4A4A4A;
    --primary-white: #FFFFFF;
    --accent-blue: #2B2D42;
    --accent-green: #2EC4B6;
}

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

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

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

body {
    font-family: 'General Sans', sans-serif;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-grey));
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--primary-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.content {
    border-radius: 2rem;
    padding: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    height: 100px;
    font-family: 'Syne', sans-serif;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-yellow));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out, gradientShift 8s ease infinite;
    transition: transform 0.3s ease;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-white);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subtitle-line {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    transition: transform 0.8s ease-out;
    white-space: nowrap;
}

.subtitle-line-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.subtitle-line-container:last-child {
    margin-bottom: 0;
}

/* First container lines */
.subtitle > .subtitle-line-container:nth-child(1) .subtitle-line:nth-child(1) { 
    animation-delay: .5s; 
    transform: translateX(-100%);
}
.subtitle > .subtitle-line-container:nth-child(1) .subtitle-line:nth-child(1).visible { 
    transform: translateX(0);
}
.subtitle > .subtitle-line-container:nth-child(1) .subtitle-line:nth-child(2) { 
    animation-delay: 2s;
    transform: translateX(100%);
}
.subtitle > .subtitle-line-container:nth-child(1) .subtitle-line:nth-child(2).visible { 
    transform: translateX(0);
}

/* Second container lines */
.subtitle > .subtitle-line-container:nth-child(2) .subtitle-line:nth-child(1) { 
    animation-delay: 3.5s;
    transform: translateX(-100%);
}
.subtitle > .subtitle-line-container:nth-child(2) .subtitle-line:nth-child(1).visible { 
    transform: translateX(0);
}
.subtitle > .subtitle-line-container:nth-child(2) .subtitle-line:nth-child(2) { 
    animation-delay: 5s;
    transform: translateX(100%);
}
.subtitle > .subtitle-line-container:nth-child(2) .subtitle-line:nth-child(2).visible { 
    transform: translateX(0);
}

/* Coming soon line */
.subtitle > .subtitle-line-container:nth-child(3) .subtitle-line { 
    animation-delay: 6.5s;
    transform: translateY(20px);
}
.subtitle > .subtitle-line-container:nth-child(3) .subtitle-line.visible { 
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .content {
        padding: 2rem;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
}

/* Font animation styles */
.animate-font {
    transition: text-shadow 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                background-position 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                filter 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 30s;
    transform-origin: center;
    position: relative;
    perspective: 1000px;
}

.animate-font::before,
.animate-font::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-font::before {
    transform: scale(1.2) rotateX(20deg) translateY(20px);
    text-shadow: 2px 0 var(--primary-orange);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.animate-font::after {
    transform: scale(1.2) rotateX(-20deg) translateY(-20px);
    text-shadow: -2px 0 var(--accent-green);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.animate-font.fade-out {
    opacity: 0;
    transform: scale(0.95) rotateX(-20deg) translateY(-20px);
    filter: blur(8px) contrast(150%);
    animation: glitchOut 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.animate-font.fade-in {
    opacity: 1;
    transform: scale(1) rotateX(0) translateY(0);
    filter: blur(0) contrast(100%);
    animation: glitchIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.animate-font.fade-in::before {
    opacity: 1;
    transform: scale(1) rotateX(0) translateY(0);
    filter: blur(0);
}

.animate-font.fade-in::after {
    opacity: 1;
    transform: scale(1) rotateX(0) translateY(0);
    filter: blur(0);
}

@keyframes glitchOut {
    0% {
        transform: scale(1) rotateX(0) translateY(0);
        filter: blur(0) contrast(100%);
    }
    20% {
        transform: scale(1.1) rotateX(10deg) translateY(-10px);
        filter: blur(2px) contrast(150%);
    }
    40% {
        transform: scale(0.9) rotateX(-10deg) translateY(10px);
        filter: blur(4px) contrast(200%);
    }
    60% {
        transform: scale(1.05) rotateX(5deg) translateY(-5px);
        filter: blur(6px) contrast(150%);
    }
    80% {
        transform: scale(0.95) rotateX(-5deg) translateY(5px);
        filter: blur(8px) contrast(100%);
    }
    100% {
        transform: scale(0.95) rotateX(-20deg) translateY(-20px);
        filter: blur(8px) contrast(150%);
    }
}

@keyframes glitchIn {
    0% {
        transform: scale(0.95) rotateX(-20deg) translateY(-20px);
        filter: blur(8px) contrast(150%);
    }
    20% {
        transform: scale(1.05) rotateX(-5deg) translateY(5px);
        filter: blur(6px) contrast(200%);
    }
    40% {
        transform: scale(0.9) rotateX(5deg) translateY(-5px);
        filter: blur(4px) contrast(150%);
    }
    60% {
        transform: scale(1.1) rotateX(-10deg) translateY(10px);
        filter: blur(2px) contrast(100%);
    }
    80% {
        transform: scale(1) rotateX(10deg) translateY(-10px);
        filter: blur(0) contrast(100%);
    }
    100% {
        transform: scale(1) rotateX(0) translateY(0);
        filter: blur(0) contrast(100%);
    }
}

/* Font-specific styles with unique transformations */
.general-sans {
    font-family: 'General Sans', sans-serif;
    letter-spacing: -0.02em;
    transform: skewX(-2deg);
}

.satoshi {
    font-family: 'Satoshi', sans-serif;
    letter-spacing: -0.01em;
    transform: skewX(2deg);
}

.switzer {
    font-family: 'Switzer', sans-serif;
    letter-spacing: 0.01em;
    transform: scaleX(1.1);
}

.plus-jakarta-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.02em;
    transform: scaleX(0.9);
}

.syne {
    font-family: 'Syne', sans-serif;
    letter-spacing: -0.03em;
    /* transform: skewY(-2deg); */
}

.cabinet-grotesk {
    font-family: 'Cabinet Grotesk', sans-serif;
    letter-spacing: 0.03em;
    transform: skewY(2deg);
}

/* Add a glitch effect animation */
@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: 2px 0 var(--primary-orange), -2px 0 var(--accent-green);
    }
    25% {
        transform: translate(-2px, 2px);
        text-shadow: -2px 0 var(--primary-orange), 2px 0 var(--accent-green);
    }
    50% {
        transform: translate(2px, -2px);
        text-shadow: 2px 0 var(--accent-green), -2px 0 var(--primary-orange);
    }
    75% {
        transform: translate(-2px, -2px);
        text-shadow: -2px 0 var(--accent-green), 2px 0 var(--primary-orange);
    }
    100% {
        transform: translate(0);
        text-shadow: 2px 0 var(--primary-orange), -2px 0 var(--accent-green);
    }
}

/* Add a subtle gradient animation to enhance the morphing effect */
@keyframes gradientMorph {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
} 

.animate-font {
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-yellow), var(--accent-green));
    background-size: 200% 200%;
    animation: gradientMorph 3s ease infinite, glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.animate-font:hover {
    animation: gradientMorph 3s ease infinite, glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.animate-font.fade-out,
.animate-font.fade-in {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}