@font-face {
    font-family: 'Miracode';
    src: url('assets/Miracode.woff2') format('woff2');
}  

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

body {
    font-family: 'Miracode';
    background-color: #1a1a2e;
    min-height: 100vh;
    color: white;
    position: relative;
}

html, body {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
    linear-gradient(rgba(113, 60, 154, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 60, 154, 0.18) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(157, 80, 187, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    text-align: center;
    background: linear-gradient(90deg, #5e2d7e 0%, #8b3a9e 50%, #5e2d7e 100%);
    padding: 22px;
    border-bottom: 1px solid rgba(180, 120, 220, 0.3);
}

header h1 {
    color: #f0e0ff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(180, 100, 255, 0.5);
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px 20px;
    margin-top: 80px;
}

.product {
    background: linear-gradient(145deg, rgba(157, 80, 187, 0.35) 0%, rgba(94, 45, 126, 0.5) 100%);
    border: 1px solid rgba(180, 120, 255, 0.25);
    border-radius: 16px;
    padding: 40px 40px;
    width: 480px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(157, 80, 187, 0.4);
    border-color: rgba(200, 140, 255, 0.5);
}

.product h2 {
    color: #f0d8ff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product p {
    color: rgba(220, 180, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product button {
    background: rgba(30, 15, 50, 0.7);
    color: #e0c0ff;
    border: 1px solid rgba(180, 120, 255, 0.4);
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Miracode';
}

.product button:hover {
    background: rgba(113, 60, 154, 0.6);
    border-color: rgba(200, 150, 255, 0.7);
    box-shadow: 0 0 16px rgba(157, 80, 187, 0.35);
    color: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.is-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 6, 17, 0.76);
    backdrop-filter: blur(3px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 540px);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid rgba(200, 140, 255, 0.4);
    background: linear-gradient(150deg, rgba(84, 39, 116, 0.94), rgba(49, 25, 78, 0.96));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 1px solid rgba(220, 180, 255, 0.35);
    color: #ecd7ff;
    font-family: 'Miracode';
    cursor: pointer;
    border-radius: 8px;
    padding: 2px 8px;
}

.modal-card h3 {
    color: #f3dcff;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.modal-card p {
    color: rgba(235, 205, 255, 0.9);
    margin-bottom: 18px;
    line-height: 1.45;
}

.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-link-input {
    width: 100%;
    background: rgba(15, 8, 30, 0.7);
    color: #f1dcff;
    border: 1px solid rgba(190, 140, 255, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: 'Miracode';
}

.modal-action-btn {
    background: rgba(30, 15, 50, 0.78);
    color: #e7cbff;
    border: 1px solid rgba(190, 140, 255, 0.45);
    border-radius: 999px;
    padding: 10px 18px;
    font-family: 'Miracode';
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-action-btn:hover {
    background: rgba(113, 60, 154, 0.62);
    color: #fff;
    border-color: rgba(225, 180, 255, 0.85);
}

.copy-feedback {
    color: #d6ffcc;
    font-size: 0.85rem;
    padding-top: 8px;
    width: 100%;
}

@media (max-width: 600px) {
    .product {
        width: 92vw;
        padding: 28px 18px;
    }

    .modal-card {
        padding: 22px;
    }
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #5e2d7e 0%, #8b3a9e 50%, #5e2d7e 100%);
    border-top: 1px solid rgba(180, 120, 220, 0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

footer a {
    color: #b697d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    
}

footer a:hover {
    color: #e0c0ff;
    text-decoration: wavy underline;
}