/* =========================
   RUSTCHEM - STYLE.CSS
   CORE THEME
========================= */


:root {
    --bg: #05070d;
    --panel: rgba(12, 14, 22, 0.6);
    --glass: rgba(255,255,255,0.05);
    --cyan: #00e5ff;
    --violet: #8a5cff;
    --orange: #ff7a3d;
    --text: #ffffff;
    --muted: rgba(255,255,255,0.6);
    --soft: rgba(255,255,255,0.1);


    --blur-bg: 8px;
    --blur-header: 20px;
    --blur-card: 15px;
    --blur-banner: 20px;
    --blur-menu: 20px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}


html {
    background: var(--bg);
    overscroll-behavior-y: none;
}


body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overscroll-behavior-y: none;
}


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


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}


ul {
    list-style: none;
}


.background {
    position: fixed;
    inset: 0;
    contain: strict;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}


.gradient-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,229,255,0.16), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(138,92,255,0.16), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(255,122,61,0.10), transparent 50%);
}


.crystal {
    position: absolute;
    width: 300px;
    height: 500px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
    backdrop-filter: blur(var(--blur-bg));
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0.6;
    filter: drop-shadow(0 0 40px rgba(0,229,255,0.2));
    animation: floatCrystal 32s ease-in-out infinite;
    will-change: transform;
}


.crystal-1 { top: 10%; left: 5%; animation-duration: 32s; }
.crystal-2 { top: 40%; right: 10%; width: 200px; animation-duration: 21s; animation-delay: -4s; }
.crystal-3 { bottom: 10%; left: 30%; width: 400px; opacity: 0.4; animation-duration: 16s; animation-delay: -9s; }
.crystal-4 { top: 20%; right: 30%; width: 250px; animation-duration: 13s; animation-delay: -2s; }


@keyframes floatCrystal {
    0%   { transform: translate(0px, 0px) rotate(25deg); }
    25%  { transform: translate(8px, -7px) rotate(25deg); }
    50%  { transform: translate(0px, -10px) rotate(25deg); }
    75%  { transform: translate(-8px, -7px) rotate(25deg); }
    100% { transform: translate(0px, 0px) rotate(25deg); }
}


.chemical-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.05;
    font-size: 24px;
    color: white;
    padding: 60px;
}


.chemical-layer span {
    transform: rotate(-20deg);
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    backdrop-filter: blur(var(--blur-header));
    background: rgba(5,7,13,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}


header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


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


.logo-icon {
    width: 34px;
    height: 34px;
    position: relative;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    clip-path: polygon(50% 0%, 100% 35%, 80% 100%, 20% 100%, 0% 35%);
    box-shadow: 0 0 25px rgba(0,229,255,0.4);
    animation: logoFloat 4s ease-in-out infinite;
}


.logo-core {
    position: absolute;
    inset: 6px;
    background: rgba(0,0,0,0.4);
    clip-path: inherit;
}


.logo-text h1 {
    font-size: 16px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.logo-text p {
    font-size: 10px;
    color: var(--muted);
}


nav {
    display: flex;
    gap: 25px;
}


nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
    position: relative;
}


nav a:hover {
    color: var(--cyan);
}


nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--cyan);
    transition: 0.3s;
}


nav a:hover::after {
    width: 100%;
}


.header-buttons {
    display: flex;
    gap: 10px;
}


.login-button {
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: 0.3s;
}


.login-button:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,229,255,0.2);
}


.register-button {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: black;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}


.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0,229,255,0.4);
}


@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}


.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}


.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}


.hero-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--cyan);
    margin-bottom: 15px;
    opacity: 0.8;
}


.hero-left h2 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 24px rgba(0,0,0,0.55);
}


.hero-left p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
}


.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}


.primary-button,
.secondary-button,
.card-button,
.shop-button {
    display: inline-block;
    text-align: center;
}


.primary-button {
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}


.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0,229,255,0.35);
}


.secondary-button {
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}


.secondary-button:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0,229,255,0.15);
}


.hero-stats {
    display: flex;
    gap: 25px;
    margin-top: 40px;
}


.stat h3 {
    font-size: 22px;
    color: var(--cyan);
}


.stat span {
    font-size: 11px;
    color: var(--muted);
}


.hero-right {
    position: relative;
    width: 450px;
    height: 450px;
}


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


.hero-left > * {
    opacity: 0;
    animation: heroFadeUp 0.6s ease forwards;
}


.hero-label { animation-delay: 0.05s; }
.hero-left h2 { animation-delay: 0.15s; }
.hero-left p { animation-delay: 0.25s; }
.hero-buttons { animation-delay: 0.35s; }
.hero-stats { animation-delay: 0.45s; }


.hero-right {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.3s;
}


.main-crystal {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(138,92,255,0.2));
    clip-path: polygon(50% 0%, 90% 20%, 100% 55%, 75% 100%, 25% 100%, 0% 55%, 10% 20%);
    position: relative;
    box-shadow: 0 0 80px rgba(0,229,255,0.2);
    animation: crystalFloat 6s ease-in-out infinite,
               pulseGlow 2s ease-in-out infinite;
    will-change: transform, filter;
}


.crystal-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,229,255,0.2), transparent 60%);
    filter: blur(20px);
}


.energy-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}


.ring2 {
    transform: scale(1.2);
    animation-duration: 14s;
}


.ring3 {
    transform: scale(1.4);
    animation-duration: 18s;
}


@keyframes crystalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}


@keyframes pulseGlow {
    0%, 100% { filter: brightness(1); }
    15% { filter: brightness(1.2); }
    30% { filter: brightness(1); }
}


@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.servers-section {
    padding: 120px 0;
    position: relative;
}


.section-header {
    text-align: center;
    margin-bottom: 60px;
}


.section-tag {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--cyan);
    opacity: 0.8;
}


.section-header h2 {
    font-size: 38px;
    margin-top: 10px;
    margin-bottom: 10px;
}


.section-header p {
    color: var(--muted);
    font-size: 14px;
}


.servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.server-card {
    position: relative;
    padding: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(var(--blur-card));
    overflow: hidden;
    transition: 0.3s;
}


.server-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,229,255,0.4);
    box-shadow: 0 20px 60px rgba(0,229,255,0.15);
}


.server-background {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    filter: blur(20px);
    transform: scale(1.2);
}


.crystal-blue {
    background: radial-gradient(circle, rgba(0,229,255,0.4), transparent 70%);
}


.crystal-purple {
    background: radial-gradient(circle, rgba(138,92,255,0.4), transparent 70%);
}


.crystal-orange {
    background: radial-gradient(circle, rgba(255,122,61,0.4), transparent 70%);
}


.server-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}


.status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0,255,100,0.1);
    color: #00ff88;
    border: 1px solid rgba(0,255,100,0.3);
}

.status.soon {
    background: rgba(255,255,255,0.08);
    color: var(--muted);
    border: 1px solid rgba(255,255,255,0.15);
}

button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.card-button:disabled:hover,
.shop-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.footer-grid > div:nth-child(3) ul li.soon {
    opacity: 0.6;
}

.players {
    font-size: 12px;
    color: var(--muted);
}


.server-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}


.server-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}


.card-button {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: black;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}


.card-button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(0,229,255,0.25);
}


.features {
    padding: 80px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 60%);
}


.features .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.feature-card {
    background: var(--panel);
    border: 1px solid var(--soft);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}


.feature-card:hover {
    border-color: var(--violet);
    transform: translateY(-5px);
}


.feature-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.feature-icon::before {
    content: "";
    width: 26px;
    height: 26px;
    background-color: #05070d;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}


.feature-card:nth-of-type(1) .feature-icon::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2L4 14h6l-1 8 9-12h-6l1-8z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2L4 14h6l-1 8 9-12h-6l1-8z'/></svg>");
}


.feature-card:nth-of-type(2) .feature-icon::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.5 9.5-8 11-4.5-1.5-8-6-8-11V5l8-3z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l8 3v6c0 5-3.5 9.5-8 11-4.5-1.5-8-6-8-11V5l8-3z'/></svg>");
}


.feature-card:nth-of-type(3) .feature-icon::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16v12H8l-4 4V4z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16v12H8l-4 4V4z'/></svg>");
}


.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}


.feature-card p {
    font-size: 14px;
    color: var(--muted);
}


.shop-section {
    padding: 120px 0;
}


.shop-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(0,229,255,0.08),
        rgba(138,92,255,0.08)
    );
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(var(--blur-banner));
    position: relative;
    overflow: hidden;
}


.shop-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--cyan);
    opacity: 0.8;
}


.shop-left h2 {
    font-size: 34px;
    margin: 10px 0;
}


.shop-left p {
    color: var(--muted);
    font-size: 14px;
    max-width: 400px;
}


.shop-button {
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--orange), var(--violet));
    color: black;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}


.shop-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(255,122,61,0.25);
}


.rules-section {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 60%);
}


.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


.rule-card {
    padding: 25px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(var(--blur-card));
    transition: 0.3s;
}


.rule-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,229,255,0.3);
}


.rule-number {
    font-size: 12px;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 10px;
}


.rule-card h3 {
    margin-bottom: 10px;
}


.rule-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}


footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 100px;
}


.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}


.footer-logo {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}


footer p,
footer li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


footer h4 {
    margin-bottom: 10px;
}


footer ul {
    list-style: none;
}


footer li {
    margin-bottom: 6px;
}


.footer-grid > div:nth-child(3) ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}


.footer-grid > div:nth-child(3) ul li::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: var(--muted);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    flex-shrink: 0;
}


.footer-grid > div:nth-child(3) ul li:nth-child(1)::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16v12H8l-4 4V4z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16v12H8l-4 4V4z'/></svg>");
}


.footer-grid > div:nth-child(3) ul li:nth-child(2)::before {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 21l21-9L2 3v7l15 2-15 2v7z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 21l21-9L2 3v7l15 2-15 2v7z'/></svg>");
}


.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}


.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}


.footer-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 20px;
}


.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}


.burger span {
    width: 24px;
    height: 2px;
    background: white;
    transition: 0.3s;
}


.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    height: 100dvh;
    background: rgba(10,12,20,0.95);
    backdrop-filter: blur(var(--blur-menu));
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    gap: 20px;
    transition: 0.4s;
    z-index: 999;
}


.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}


.mobile-menu.active { right: 0; }


@media (max-width: 1024px) {
    nav { display: none; }
    .burger { display: flex; }
    .hero {
        height: auto;
        min-height: 100dvh;
        align-items: flex-start;
        padding-top: 110px;
        padding-bottom: 40px;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-right {
        width: 280px;
        height: 280px;
        margin: 30px auto 0;
    }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .servers-grid,
    .features .container,
    .rules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 768px) {
    .hero-left h2 { font-size: 32px; }
    .section-header h2 { font-size: 28px; }
    .servers-grid,
    .features .container,
    .rules-grid { grid-template-columns: 1fr; }
    .shop-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 24px;
    }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .header-buttons { display: none; }
    .hero-stats { flex-direction: column; gap: 20px; }
}


.server-card.pressed,
.rule-card.pressed,
.feature-card.pressed {
    transform: scale(0.97);
    transition: transform 0.15s ease;
}


html { scroll-behavior: smooth; }
input, button { font-size: 16px; }


/* Фикс кнопок на мобиле — фон не должен перекрывать интерактивные элементы */
button, a, input, label {
    position: relative;
    z-index: 10;
}
