@font-face {
    font-family: 'MinecraftFont';
    src: url('font.ttf') format('truetype');
}

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

:root {
    --primary: #00ff88;
    --primary-dim: rgba(0, 255, 136, 0.8);
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-300: #a3a3a3;
    --gray-500: #737373;
    --gray-700: #404040;
    --gray-900: #171717;
    --black: #000000;
    --bg: #0a0a0a;
}

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

::selection {
    background-color: var(--primary);
    color: var(--black);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   BASE
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   LOADER
   ============================================ */
#loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.wheel-and-hamster {
    --dur: 1s;
    position: relative;
    width: 12em;
    height: 12em;
    font-size: 14px;
}

.wheel,
.hamster,
.hamster div,
.spoke {
    position: absolute;
}

.wheel,
.spoke {
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wheel {
    background: radial-gradient(100% 100% at center, hsla(0, 0%, 60%, 0) 47.8%, hsl(0, 0%, 60%) 48%);
    z-index: 2;
}

.hamster {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: calc(50% - 3.5em);
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em, 1.85em);
    transform-origin: 50% 0;
    z-index: 1;
}

.hamster__head {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow: 0 -0.25em 0 hsl(30, 90%, 80%) inset, 0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
}

.hamster__ear {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
}

.hamster__eye {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0, 0%, 0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
}

.hamster__nose {
    background: hsl(0, 90%, 75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
}

.hamster__body {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30, 90%, 90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow: 0.1em 0.75em 0 hsl(30, 90%, 55%) inset, 0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
}

.hamster__limb--fr,
.hamster__limb--fl {
    clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
}

.hamster__limb--fr {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
}

.hamster__limb--fl {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
    transform: rotate(15deg);
}

.hamster__limb--br,
.hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
}

.hamster__limb--br {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
}

.hamster__limb--bl {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
    transform: rotate(-25deg);
}

.hamster__tail {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0, 90%, 85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
}

.spoke {
    animation: spoke var(--dur) linear infinite;
    background: radial-gradient(100% 100% at center, hsl(0, 0%, 60%) 4.8%, hsla(0, 0%, 60%, 0) 5%), linear-gradient(hsla(0, 0%, 55%, 0) 46.9%, hsl(0, 0%, 65%) 47% 52.9%, hsla(0, 0%, 65%, 0) 53%) 50% 50% / 99% 99% no-repeat;
}

@keyframes hamster {

    from,
    to {
        transform: rotate(4deg) translate(-0.8em, 1.85em);
    }

    50% {
        transform: rotate(0) translate(-0.8em, 1.85em);
    }
}

@keyframes hamsterHead {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(8deg);
    }
}

@keyframes hamsterEye {

    from,
    90%,
    to {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0);
    }
}

@keyframes hamsterEar {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(12deg);
    }
}

@keyframes hamsterBody {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(0);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(-2deg);
    }
}

@keyframes hamsterFRLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(50deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(-30deg) translateZ(-1px);
    }
}

@keyframes hamsterFLLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(-30deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(50deg);
    }
}

@keyframes hamsterBRLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(-60deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(20deg) translateZ(-1px);
    }
}

@keyframes hamsterBLLimb {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(20deg);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(-60deg);
    }
}

@keyframes hamsterTail {

    from,
    25%,
    50%,
    75%,
    to {
        transform: rotate(30deg) translateZ(-1px);
    }

    12.5%,
    37.5%,
    62.5%,
    87.5% {
        transform: rotate(10deg) translateZ(-1px);
    }
}

@keyframes spoke {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(-1turn);
    }
}

.loading-text {
    font-family: 'MinecraftFont', 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--gray-500);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded .navbar {
    opacity: 1;
    transform: translateY(0);
}

.navbar-brand {
    font-family: 'MinecraftFont', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navbar-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--white);
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-ghost {
    color: var(--gray-300);
    background: transparent;
    border: none;
}

.btn-ghost:hover {
    color: var(--white);
}

.btn-primary {
    background: var(--primary);
    color: var(--black);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dim);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 60px 80px;
    overflow: hidden;
}

/* Pixel Art Background */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

body.loaded .hero-bg {
    opacity: 1;
}

#pixel-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

body.loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.hero-badge::before {
    content: "✦";
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 30px;
    letter-spacing: -2px;
}

/* Highlight Word Animation - Like text selection */
.highlight-word {
    position: relative;
    display: inline-block;
    color: var(--black);
    z-index: 1;
}

.highlight-word::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background: var(--primary);
    z-index: -1;
    transform-origin: left center;
    animation: highlightReveal 2.5s ease-out forwards;
}

@keyframes highlightReveal {
    0% {
        transform: scaleX(0);
        opacity: 1;
    }

    20% {
        transform: scaleX(1);
        opacity: 1;
    }

    70% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 0;
    }
}

/* Make text white again after highlight fades */
.highlight-word {
    animation: textColorChange 2.5s ease-out forwards;
}

@keyframes textColorChange {

    0%,
    20% {
        color: var(--black);
    }

    70% {
        color: var(--black);
    }

    100% {
        color: var(--white);
    }
}

.subtitle-line {
    display: block;
    color: var(--gray-500);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.section {
    padding: 120px 60px;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.card-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.1);
}

.card-title {
    font-family: 'MinecraftFont', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--gray-300);
    line-height: 1.8;
    flex-grow: 1;
}

.card-subtitle em {
    color: var(--primary);
    font-style: normal;
    font-weight: 600;
}

.card-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.card-price span {
    font-size: 1rem;
    color: var(--gray-500);
    font-weight: 400;
}

.card-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--black);
}

.card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
}

/* ============================================
   PAYMENT SECTION
   ============================================ */
.payment-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 136, 0.02) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.payment-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.payment-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-5px);
}

.payment-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 5px;
}

.payment-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
    font-family: 'MinecraftFont', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-text {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.footer-text a {
    color: var(--primary);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        padding: 120px 40px 80px;
    }

    .section {
        padding: 80px 40px;
    }

    .navbar {
        padding: 0 30px;
    }

    .hero-bg {
        width: 50%;
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .navbar-links {
        display: none;
    }

    .hero {
        padding: 120px 20px 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-bg {
        width: 100%;
        opacity: 0.3;
    }

    .section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .payment-grid {
        flex-direction: column;
        align-items: center;
    }

    .payment-card {
        width: 100%;
        max-width: 350px;
    }

    .footer {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .btn-large {
        padding: 14px 24px;
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 20px;
    }

    .card-img {
        height: 150px;
    }
}
