* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary-blue: #4f9cf9;
    --primary-purple: #8b5cf6;
    --bg-dark: #0a0d14;
    --bg-card: rgba(15, 23, 42, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-glow: rgba(79, 156, 249, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem clamp(1rem, 5vw, 3rem);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.snowflakes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -2em;
    font-size: clamp(1rem, 2vw, 1.8rem);
    color: rgba(139, 92, 246, 0.3);
    animation: fall linear infinite, sway ease-in-out infinite alternate;
    animation-duration: 12s, 4s;
    will-change: transform, opacity;
}

.snowflake:nth-child(1) { left: 8%; animation-delay: 0s, 0s; }
.snowflake:nth-child(2) { left: 25%; animation-delay: 2s, 1s; opacity: 0.6; }
.snowflake:nth-child(3) { left: 45%; animation-delay: 4s, 0.5s; opacity: 0.4; }
.snowflake:nth-child(4) { left: 65%; animation-delay: 1s, 2s; opacity: 0.7; }
.snowflake:nth-child(5) { left: 80%; animation-delay: 3s, 1.5s; opacity: 0.5; }
.snowflake:nth-child(6) { left: 92%; animation-delay: 6s, 0s; opacity: 0.6; }

@keyframes fall {
    to { 
        transform: translateY(110vh);
        opacity: 0;
    }
}

@keyframes sway {
    from { transform: translateX(-10px); }
    to { transform: translateX(10px); }
}

header {
    z-index: 10;
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.krita {
    color: var(--primary-blue);
    filter: drop-shadow(0 0 20px rgba(79, 156, 249, 0.4));
}

.snowhub {
    color: var(--primary-purple);
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
}

nav ul.tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.5rem;
    background: var(--border-color);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.tab {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    opacity: 0;
    transition: var(--transition);
    border-radius: inherit;
}

.tab:hover::before {
    opacity: 0.1;
}

.tab.active {
    color: white;
    font-weight: 600;
    transform: scale(1.02);
}

.tab.active::before {
    opacity: 1;
}

.tab > span {
    position: relative;
    z-index: 1;
}

main {
    max-width: 800px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 3rem);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--border-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    min-height: 400px;
}

main::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, 
        rgba(79, 156, 249, 0.05) 0%, 
        rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
}

h2 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-purple);
    letter-spacing: -0.01em;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

ul {
    list-style: none;
    line-height: 1.7;
}

ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 0.8rem;
    top: 0.1em;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input[type="email"],
textarea {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(79, 156, 249, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

input[type="email"]::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button[type="submit"] {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    align-self: flex-start;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 156, 249, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

footer {
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    nav ul.tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 1.5rem;
    }
    
    ul li {
        font-size: 0.95rem;
    }
}