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

:root {
    --primary: #ff0055;
    --primary-dark: #cc0044;
    --secondary: #00ffaa;
    --dark: #0a0a0f;
    --dark-2: #1a1a2e;
    --dark-3: #2a2a3e;
    --light: #ffffff;
    --gray: #a0a0b0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.hidden {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

/* Glitch Effect */
.glitch-wrapper {
    margin-bottom: 20px;
}

.glitch {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary), -0.025em -0.05em 0 var(--secondary);
    animation: glitch 500ms infinite;
    letter-spacing: 0.1em;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 650ms infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.glitch::after {
    animation: glitch-2 375ms infinite;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

@keyframes glitch {
    0% { text-shadow: 0.05em 0 0 var(--primary), -0.05em -0.025em 0 var(--secondary); }
    14% { text-shadow: 0.05em 0 0 var(--primary), -0.05em -0.025em 0 var(--secondary); }
    15% { text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--secondary); }
    49% { text-shadow: -0.05em -0.025em 0 var(--primary), 0.025em 0.025em 0 var(--secondary); }
    50% { text-shadow: 0.025em 0.05em 0 var(--primary), 0.05em 0 0 var(--secondary); }
    99% { text-shadow: 0.025em 0.05em 0 var(--primary), 0.05em 0 0 var(--secondary); }
    100% { text-shadow: -0.025em 0 0 var(--primary), -0.025em -0.025em 0 var(--secondary); }
}

@keyframes glitch-1 {
    0% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(-0.025em, -0.0125em); }
    10% { clip-path: polygon(0 25%, 100% 25%, 100% 50%, 0 50%); transform: translate(0.025em, 0.0125em); }
    20% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(-0.025em, 0.0125em); }
    30% { clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); transform: translate(0.025em, -0.0125em); }
}

@keyframes glitch-2 {
    0% { clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%); transform: translate(0.0125em, 0.025em); }
    15% { clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%); transform: translate(-0.0125em, -0.025em); }
    30% { clip-path: polygon(0 10%, 100% 10%, 100% 40%, 0 40%); transform: translate(0.0125em, 0.025em); }
}

/* Transition Picolo → Traknard */
.transition-wrapper {
    position: relative;
    min-height: clamp(6rem, 15vw, 10rem);
    margin: 30px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Picolo Item (appears then fades out) */
.picolo-item {
    animation: picolo-cycle 8s ease-in-out infinite;
}

.crossed-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    opacity: 0.4;
    text-decoration: line-through;
    text-decoration-color: var(--gray);
    text-decoration-thickness: 3px;
}

.cross-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--primary);
    text-shadow:
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 60px var(--primary);
    animation: cross-pulse 2s ease-in-out infinite;
    line-height: 1;
}

@keyframes cross-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
        text-shadow:
            0 0 20px var(--primary),
            0 0 40px var(--primary),
            0 0 60px var(--primary);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
        text-shadow:
            0 0 30px var(--primary),
            0 0 60px var(--primary),
            0 0 90px var(--primary);
    }
}

/* Traknard Item (appears after Picolo) */
.traknard-item {
    animation: traknard-cycle 8s ease-in-out infinite;
}

.traknard-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    text-shadow:
        0 0 10px var(--secondary),
        0 0 20px var(--secondary),
        0 0 30px var(--secondary),
        2px 2px 0 var(--primary);
}

.traknard-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(4rem, 10vw, 7rem);
    color: var(--secondary);
    text-shadow:
        0 0 20px var(--secondary),
        0 0 40px var(--secondary),
        0 0 60px var(--secondary);
    animation: traknard-glow-pulse 1.5s ease-in-out infinite;
    line-height: 1;
}

@keyframes traknard-glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
        opacity: 1;
    }
}

/* Animation cycles */
@keyframes picolo-cycle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }
    35% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }
    45% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: visible;
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: hidden;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: hidden;
    }
}

@keyframes traknard-cycle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: hidden;
    }
    45% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: hidden;
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: visible;
    }
    55% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
        visibility: visible;
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        visibility: visible;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
        visibility: visible;
    }
}

.tagline {
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 50px;
    color: var(--gray);
}

/* Counter Box */
.counter-box {
    background: var(--dark-3);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 30px 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.3);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 0, 85, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 0, 85, 0.5); }
}

.counter-label {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--gray);
}

.counter {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.5;
}

.scroll-indicator:hover {
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* Click Counter Easter Egg */
#click-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--light);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(255, 0, 85, 0.5);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(200px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary);
    opacity: 0.3;
    z-index: -1;
}

/* Why Section */
.why-section {
    background: var(--dark-2);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.comparison-card {
    background: var(--dark-3);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-10px);
}

.comparison-card.old {
    border: 2px solid var(--gray);
    opacity: 0.7;
}

.comparison-card.old:hover {
    box-shadow: 0 10px 40px rgba(160, 160, 176, 0.2);
}

.comparison-card.new {
    border: 2px solid var(--primary);
}

.comparison-card.new:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 85, 0.4);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 2rem;
    font-weight: 700;
}

.tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.tag.dead {
    background: var(--gray);
    color: var(--dark);
}

.tag.alive {
    background: var(--primary);
    color: var(--light);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 30px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.feature-list li.bad {
    color: var(--gray);
}

.feature-list li.bad::before {
    content: '❌';
}

.feature-list li.good::before {
    content: '✅';
}

.vs {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
}

/* Quote Box */
.quote-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    min-height: 250px;
}

blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--gray);
    padding: 40px;
    background: var(--dark-3);
    border-left: 5px solid var(--primary);
    border-radius: 10px;
}

blockquote.quote {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

blockquote.quote.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

blockquote footer {
    margin-top: 20px;
    font-size: 1rem;
    font-style: normal;
    color: var(--light);
}

/* Quote Navigation Dots */
.quote-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    opacity: 0.6;
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.3);
}

/* Features Section */
.features-section {
    background: var(--dark);
}

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

.feature-card {
    background: var(--dark-3);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 0, 85, 0.3);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: var(--dark-2);
}

.cta-box {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: clamp(2rem, 3vw, 3.5rem);
}

.cta-box p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 5px 20px rgba(255, 0, 85, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 85, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border-color: var(--light);
}

.btn-secondary:hover {
    background: var(--light);
    color: var(--dark);
}

.btn-icon {
    font-size: 1.5rem;
}

.cta-note {
    font-size: 1rem;
    color: var(--gray);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 80px 0 40px;
    text-align: center;
}

.tombstone {
    margin-bottom: 40px;
}

.tombstone-text {
    display: inline-block;
    background: var(--dark-3);
    border: 3px solid var(--gray);
    border-radius: 10px 10px 0 0;
    padding: 30px 50px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    position: relative;
}

.tombstone-text::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--dark-3);
}

.tombstone-text em {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-tagline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-copy {
    color: var(--gray);
    margin-bottom: 20px;
}

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

.footer-links a:hover {
    opacity: 0.7;
}

/* Floating Emojis */
#floating-emojis {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 3s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .vs {
        transform: rotate(90deg);
        margin: 20px 0;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: var(--dark-3);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 20px 25px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-out forwards;
}

.toast-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--light);
}

.toast-message {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.4;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Loading animation for page */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Toast */
@media (max-width: 768px) {
    #toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}
