@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #e4e4e7;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Global transitions */
* {
    transition: all 0.3s ease;
}

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

/* Header */
.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid #27272a;
}

.discord-link {
    text-align: center;
}

.discord-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.discord-link a:hover {
    color: #4f46e5;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Hero */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    background: linear-gradient(135deg, #e4e4e7 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterDrop 0.4s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes letterDrop {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotateX(-90deg);
    }
    50% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #71717a;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.hero-btn:active {
    transform: translateY(0);
}

/* Features */
.features {
    padding: 4rem 0;
    background: #141419;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(99, 102, 241, 0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #71717a;
}

/* Tools */
.tools {
    padding: 4rem 0;
}

.tool-box {
    background: #141419;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-box:hover {
    border-color: #6366f1;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.tool-box h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.tool-desc {
    color: #71717a;
    margin-bottom: 2rem;
}

/* Inputs */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    color: #71717a;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.875rem;
    background: #1c1c24;
    border: 1px solid #27272a;
    border-radius: 8px;
    color: #e4e4e7;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* TOTP Output */
.totp-output {
    background: #1c1c24;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.totp-code {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.totp-code:hover {
    color: #6366f1;
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.totp-code:active {
    transform: scale(0.95);
}

.copy-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #10b981;
    animation: success-pulse 0.5s ease;
}

@keyframes success-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Timer */
.totp-timer {
    text-align: center;
    color: #71717a;
    font-size: 0.875rem;
}

/* Age Output */
.check-btn {
    width: 100%;
    padding: 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.check-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.check-btn:hover::after {
    width: 300px;
    height: 300px;
}

.check-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.check-btn:active {
    transform: translateY(0);
}

.check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.age-output,
.server-output {
    background: #1c1c24;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
}

.mc-server-card {
    background: #0a0a0f;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid #27272a;
    transition: all 0.2s;
}

.mc-server-card:hover {
    border-color: #6366f1;
    background: #141419;
}

.mc-server-icon {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: #27272a;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.mc-server-icon img {
    width: 100%;
    height: 100%;
}

.mc-server-info {
    flex: 1;
}

.mc-server-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.mc-server-motd {
    font-size: 0.875rem;
    color: #71717a;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
}

.mc-server-stats {
    text-align: right;
}

.mc-server-players {
    font-size: 0.875rem;
    color: #71717a;
    margin-bottom: 0.25rem;
}

.mc-server-ping {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    justify-content: flex-end;
}

.ping-bars {
    display: flex;
    gap: 1px;
    height: 16px;
    align-items: flex-end;
}

.ping-bar {
    width: 2px;
    background: #71717a;
}

.ping-bar.active {
    background: #10b981;
}

.ping-bar:nth-child(1) { height: 4px; }
.ping-bar:nth-child(2) { height: 8px; }
.ping-bar:nth-child(3) { height: 12px; }
.ping-bar:nth-child(4) { height: 16px; }

.mc-offline {
    padding: 2rem;
    text-align: center;
    color: #ef4444;
    font-family: 'Courier New', monospace;
}

.server-item,
.age-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #27272a;
}

.server-item:last-child,
.age-item:last-child {
    border-bottom: none;
}

.server-label,
.age-label {
    color: #71717a;
}

.server-value,
.age-value {
    font-weight: 600;
}

.online {
    color: #10b981;
}

.offline {
    color: #ef4444;
}

.skin-output {
    background: #1c1c24;
    border: 1px solid #27272a;
    border-radius: 8px;
    padding: 1.5rem;
}

#skin-viewer {
    width: 100%;
    height: 400px;
    background: #0a0a0f;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skin-preview {
    text-align: center;
    margin-bottom: 1rem;
}

.skin-preview img {
    max-width: 200px;
    image-rendering: pixelated;
    border-radius: 8px;
    border: 2px solid #27272a;
}

.download-btn {
    width: 100%;
    padding: 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.error {
    color: #ef4444;
    text-align: center;
}

/* Footer */
.footer {
    background: #141419;
    border-top: 1px solid #27272a;
    padding: 2rem 0;
    text-align: center;
    color: #71717a;
}

.totp-output,
.server-output,
.skin-output {
    animation: fadeIn 0.4s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .totp-code {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
}
