:root {
    --deep-obsidian: #0B0E14;
    --quantum-cyan: #00F5FF;
    --shanhai-gold: #D4AF37;
    --text-primary: #E0E0E0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--deep-obsidian);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Background effects */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 245, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

header {
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--quantum-cyan), var(--shanhai-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, var(--quantum-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    letter-spacing: -1px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding-bottom: 5rem;
}

.intro-box {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
}

.intro-box p {
    color: #a0a0a0;
    font-size: 1rem;
    line-height: 1.8;
    margin: 5px 0;
}

.input-section {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

textarea {
    width: 100%;
    height: 250px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    color: white;
    font-size: 1.8rem;
    resize: none;
    transition: all 0.3s ease;
    outline: none;
    line-height: 1.6;
}

textarea:focus {
    border-color: var(--quantum-cyan);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.15);
}

.huge-btn {
    position: fixed;
    bottom: 3rem;
    right: 4rem;
    background: linear-gradient(135deg, var(--quantum-cyan), var(--shanhai-gold));
    border: none;
    color: var(--deep-obsidian);
    padding: 1.5rem 5rem;
    font-size: 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 800;
    letter-spacing: 4px;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
    z-index: 100;
}

.huge-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.4);
}

.huge-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
}

.result-area {
    width: 100%;
    max-width: 1000px;
    max-height: 40vh;
    overflow-y: auto;
    padding: 2.5rem;
    background: var(--glass-bg);
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    display: none;
    animation: fadeIn 0.8s ease-out;
    margin-bottom: 8rem;
}

.result-content {
    line-height: 2;
    font-size: 1.25rem;
    white-space: pre-wrap;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem;
    text-align: center;
    background: linear-gradient(to top, var(--deep-obsidian) 0%, transparent 100%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-info {
    color: var(--quantum-cyan);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.footer-text {
    color: #666;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    footer {
        position: relative;
        padding-top: 3rem;
        padding-bottom: 2rem;
        background: none;
    }
    
    .huge-btn {
        bottom: 2rem;
        right: 2rem;
        padding: 1rem 3rem;
        font-size: 1.4rem;
    }
}

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

/* Artistic elements */
.shanhai-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.3;
}
