body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f7;
}

.container {
    text-align: center;
    padding: 2rem 0;
    max-width: 1200px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes logoHover {
    0% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        filter: hue-rotate(180deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
        filter: hue-rotate(360deg);
    }
}

.logo {
    width: 150px;
    height: 150px;
    margin: 0;
    padding: 0;
    display: block;
    cursor: pointer;
    transform-origin: center;
    transition: transform 0.5s ease-out, filter 0.5s ease-out;
    animation: none;
    transform: scale(1) rotate(0deg);
    filter: hue-rotate(0deg);
}

.logo:hover {
    animation: logoHover 2s infinite ease-in-out;
}

.logo:not(:hover) {
    animation: none;
    transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

.headline {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    margin-top:-1.5rem;
    padding: 0;
    color: #1d1d1f;
    line-height: 1;
    z-index:9999;
}

.tagline {
    font-size: 1.5rem;
    color: #515154;
    margin: 2rem 0 2rem 0;
    padding: 0;
    font-weight: 400;
    line-height: 1.2;
}

.button-container {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
    box-sizing: border-box;
}

#browserButtons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.button {
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-sizing: border-box;
}

#conversionButtons {
    margin: 1rem auto;
    display: none;
    gap: 0.75rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.conversion-button {
    padding: 16px 24px;
    font-size: 1.1rem;
    border-radius: 12px;
    background: #007AFF;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    position: relative;
}

.conversion-button:disabled {
    background: #E5E5EA;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.conversion-button.loading {
    color: transparent;
}

.conversion-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: button-loading-spinner 1s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

.button.primary {
    background-color: #007AFF;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button.primary:hover,
.conversion-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background-color: #0066CC;
}

.button.disabled {
    background-color: #E5E5EA;
    color: #8E8E93;
    cursor: not-allowed;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: center;
    background-color: transparent;
}

.footer-link {
    color: #515154;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: #007AFF;
    opacity: 1;
}

.policy-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.policy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: #515154;
    margin-bottom: 2rem;
}

.policy-container section {
    margin-bottom: 2rem;
}

.policy-container h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1d1d1f;
}

.policy-container h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #1d1d1f;
}

.policy-container p, .policy-container li {
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.policy-container ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.policy-container a {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-container a:hover {
    color: #0066CC;
}

.video-container {
    width: fit-content;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.demo-video, .demo-gif {
    display: block;
    border-radius: 12px;
    width: 600px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.demo-media {
    display: block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .video-container {
        margin: 1rem auto;
        border-radius: 8px;
        width: 100%;
        max-width: 400px;
    }
    
    .demo-video, .demo-gif {
        border-radius: 8px;
        width: 100%;
    }
    
    .container {
        width: 95%;
        padding: 1rem 0;
    }

    .button-container,
    #conversionButtons {
        width: 90%;
        padding: 0;
        gap: 0.75rem;
    }

    .button,
    .conversion-button {
        font-size: 1rem;
        padding: 14px 20px;
        width: 100%;
        max-width: 100%;
    }

    #browserButtons {
        width: 100%;
    }

    #browserButtons .button {
        width: 100%;
    }

    #browserButtons {
        width: 100%;
        padding: 0 1rem;
    }

    #browserButtons .button {
        width: 100%;
        max-width: none;
    }
}

@media (min-width: 769px) {
    .demo-gif {
        display: none !important;
    }
}

.clipboard-demo {
    margin: 2rem auto;
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
}

.clipboard-text {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #515154;
    word-break: break-all;
    max-width: 100%;
    padding: 0 1rem;
}

.url-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.url-input {
    width: 100%;
    padding: 16px 50px 16px 16px;
    font-size: 1.1rem;
    border: 2px solid #E5E5EA;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.paste-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.paste-button:hover {
    opacity: 1;
}

.paste-button svg {
    width: 20px;
    height: 20px;
    fill: #007AFF;
}

.url-input:focus {
    border-color: #007AFF;
    box-shadow: 0 4px 8px rgba(0,122,255,0.1);
}

.url-input::placeholder {
    color: #8E8E93;
} 