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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #fafbfc;
    min-height: 100vh;
    font-weight: 300;
}

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

header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ecf0f1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.about-link:hover {
    color: #3498db;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.plan-badge {
    background: #34495e;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
    font-size: 0.8rem;
    white-space: nowrap;
    font-weight: 300;
    letter-spacing: 0.5px;
}

main {
    margin-top: 80px;
}

.hero {
    text-align: center;
    padding: 2rem 2rem 1rem 2rem;
    background: white;
    margin: 1rem 2rem;
    border-radius: 2px;
    border: 1px solid #ecf0f1;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1rem;
    color: #7f8c8d;
    font-weight: 300;
}

.upload-section {
    background: white;
    margin: 1rem 2rem;
    border-radius: 2px;
    padding: 2rem;
    border: 1px solid #ecf0f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.upload-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.upload-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    background: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
    padding: 1rem;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #34495e;
    border-color: #34495e;
}



.features {
    background: white;
    margin: 1rem 2rem;
    border-radius: 2px;
    padding: 2rem;
    border: 1px solid #ecf0f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f8f9fa;
}

.feature h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.result-section {
    background: white;
    margin: 1rem 2rem;
    border-radius: 2px;
    padding: 2rem;
    border: 1px solid #ecf0f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.result-section h2 {
    color: #28a745;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-section {
    background: white;
    margin: 1rem 2rem;
    border-radius: 2px;
    padding: 2rem;
    border: 1px solid #ecf0f1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
}

.tab-btn.active {
    border-bottom-color: #667eea;
    color: #667eea;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.about-simple {
    background: #f8f9fa;
    margin: 1rem 2rem;
    border-radius: 2px;
    padding: 2rem;
    border: 1px solid #ecf0f1;
    text-align: center;
}

.about-simple h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.about-simple p {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.about-price {
    background: #e8f4fd;
    padding: 1rem;
    border-radius: 8px;
    color: #2980b9;
    display: inline-block;
    border-left: 4px solid #3498db;
    line-height: 1.4;
}

.about-price small {
    color: #27ae60;
    font-weight: 500;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

footer p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Web3 Terms Tooltips */
.web3-term {
    position: relative;
    color: #3498db;
    cursor: help;
    border-bottom: 1px dotted #3498db;
    transition: all 0.3s ease;
}

.web3-term:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

.web3-term::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    width: 280px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 400;
    pointer-events: none;
}

.web3-term::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.web3-term:hover::after,
.web3-term:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.web3-term:hover::before {
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 768px) {
    .web3-term::after {
        width: 250px;
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .upload-section, .features {
        margin: 1rem;
        padding: 2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .plan-badge {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .about-simple {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .about-simple h2 {
        font-size: 1.3rem;
    }
}