* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2997FF;
    --tiktok-black: #000000;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #fbfbfd;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-button:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.back-button svg {
    transition: transform 0.3s ease;
}

.back-button:hover svg {
    transform: translateX(-4px);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.logo img {
    width: 240px;
    height: auto;
}

.content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tiktok-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    animation: pulse 2s ease-in-out infinite;
}

.icon-large {
    width: 60px;
    height: 60px;
}

.title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.search-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.username {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 600;
    color: var(--tiktok-black);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-button {
    background: var(--primary-blue);
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: #0066CC;
    transform: scale(1.1);
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button svg {
    display: block;
}

.copy-button path {
    fill: white;
}

.instruction {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.screenshot-container {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.phone-frame {
    position: relative;
    width: 100%;
    max-width: 375px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.phone-frame:hover {
    transform: scale(1.02);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: 32px;
    display: block;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.primary-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--tiktok-black);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.primary-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.primary-button:active {
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tiktok-black);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast svg path {
    fill: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 60px 15px 30px;
    }

    .logo img {
        width: 180px;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .tiktok-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }

    .icon-large {
        width: 48px;
        height: 48px;
    }

    .search-box {
        padding: 16px 24px;
    }

    .phone-frame {
        max-width: 320px;
    }

    .primary-button {
        padding: 16px 28px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
