@import url('https://fonts.googleapis.com/css2?family=Minecraftia&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #f5fff8;
    --bg2: #ecfff3;
    --card: rgba(255, 255, 255, 0.66);
    --card-solid: #ffffff;
    --text: #102018;
    --muted: #65766d;
    --green: #39b96b;
    --green-dark: #209451;
    --green-light: #a5f5c3;
    --border: rgba(49, 157, 91, 0.18);
    --shadow: 0 20px 60px rgba(42, 112, 71, 0.12);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(94, 226, 139, .20), transparent 28%),
        radial-gradient(circle at 90% 15%, rgba(129, 255, 184, .20), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(65, 190, 112, .14), transparent 35%),
        linear-gradient(135deg, #f9fffb, #effff5);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(52, 157, 91, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 157, 91, .035) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* =========================
   ANIMATED BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    z-index: -4;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
    opacity: .55;
    animation: floatOrb 12s ease-in-out infinite;
}

.orb.one {
    width: 280px;
    height: 280px;
    background: rgba(71, 207, 119, .16);
    top: 5%;
    left: -80px;
}

.orb.two {
    width: 220px;
    height: 220px;
    background: rgba(113, 240, 158, .17);
    right: -50px;
    top: 25%;
    animation-delay: -4s;
}

.orb.three {
    width: 340px;
    height: 340px;
    background: rgba(61, 187, 112, .10);
    bottom: -160px;
    left: 40%;
    animation-delay: -7s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(30px, -35px, 0) scale(1.08);
    }
}

.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: rgba(55, 180, 101, .28);
    box-shadow: 0 0 15px rgba(55, 180, 101, .2);
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    from {
        transform: translateY(110vh) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    85% {
        opacity: .8;
    }

    to {
        transform: translateY(-20vh) rotate(360deg);
        opacity: 0;
    }
}

/* =========================
   NAVBAR
========================= */

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 30px));
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 13px 16px 13px 20px;

    background: rgba(255, 255, 255, .64);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow:
        0 15px 50px rgba(33, 111, 63, .10),
        inset 0 1px 0 rgba(255, 255, 255, .9);

    border-radius: 20px;

    animation: navDrop .8s cubic-bezier(.2,.8,.2,1);
}

@keyframes navDrop {
    from {
        opacity: 0;
        transform: translate(-50%, -30px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: "Minecraftia", sans-serif;
    font-size: 17px;
    letter-spacing: -1px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;

    background:
        linear-gradient(145deg, #62e88e, #29a95d);

    color: white;

    box-shadow:
        0 8px 20px rgba(39, 166, 91, .25),
        inset 0 2px 0 rgba(255,255,255,.35);

    animation: cheesePulse 3s ease-in-out infinite;
}

@keyframes cheesePulse {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    position: relative;
    padding: 10px 13px;
    border-radius: 12px;
    color: #53645b;
    font-weight: 600;
    font-size: 14px;
    transition: .25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--green-dark);
    background: rgba(74, 196, 111, .10);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    border-radius: 10px;
    background: var(--green);
    transition: .25s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 18px;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 790px;
    padding: 170px 20px 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: heroAppear 1s cubic-bezier(.2,.8,.2,1);
}

@keyframes heroAppear {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    margin-bottom: 25px;

    border: 1px solid var(--border);
    background: rgba(255,255,255,.62);
    backdrop-filter: blur(15px);

    border-radius: 999px;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 13px;

    box-shadow: 0 10px 35px rgba(45, 148, 80, .08);

    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hero h1 {
    font-family: "Minecraftia", sans-serif;
    font-size: clamp(42px, 8vw, 88px);
    line-height: 1.15;
    letter-spacing: -5px;

    background: linear-gradient(
        110deg,
        #173c27,
        #31ad62,
        #69d991,
        #173c27
    );

    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    to {
        background-position: 250% center;
    }
}

.hero p {
    max-width: 680px;
    margin: 27px auto 35px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 14px;
    border: 1px solid var(--border);

    font-weight: 800;
    font-size: 14px;

    cursor: pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.btn:hover {
    transform: translateY(-4px);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #4bd57d, #25a75c);
    box-shadow: 0 12px 30px rgba(40, 166, 88, .24);
}

.btn-primary:hover {
    box-shadow: 0 18px 38px rgba(40, 166, 88, .32);
}

.btn-secondary {
    background: rgba(255,255,255,.72);
    color: #31513e;
    backdrop-filter: blur(15px);
}

.btn-secondary:hover {
    background: white;
}

/* =========================
   SECTIONS
========================= */

.section {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
    padding: 85px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 45px;
}

.section-kicker {
    color: var(--green-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 13px;
}

.section-title {
    font-family: "Minecraftia", sans-serif;
    font-size: clamp(25px, 4vw, 40px);
    line-height: 1.4;
}

.section-description {
    margin-top: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* =========================
   GLASS CARDS
========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    position: relative;
    overflow: hidden;

    padding: 26px;

    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: var(--radius);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow: var(--shadow);

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        box-shadow .35s ease,
        border-color .35s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -30%;
    width: 60%;
    height: 300%;
    transform: rotate(25deg);

    background: linear-gradient(
        transparent,
        rgba(255,255,255,.45),
        transparent
    );

    transition: .8s ease;
}

.card:hover::before {
    left: 120%;
}

.card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 28px 70px rgba(41, 132, 73, .17);
    border-color: rgba(65, 190, 107, .3);
}

.icon-box {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;

    margin-bottom: 20px;

    border-radius: 16px;
    background: linear-gradient(145deg, #ddffe9, #b9f7ce);
    border: 1px solid rgba(56, 174, 96, .15);

    font-size: 25px;

    box-shadow:
        inset 0 1px 0 white,
        0 10px 25px rgba(46, 167, 88, .10);
}

.card h3 {
    font-family: "Minecraftia", sans-serif;
    font-size: 17px;
    margin-bottom: 13px;
}

.card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

/* =========================
   RESOURCE CARDS
========================= */

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.resource-card {
    overflow: hidden;
    padding: 0;
}

.resource-image {
    height: 190px;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(135deg, #d8ffe5, #7adf9d);
}

.resource-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            transparent 35%,
            rgba(255,255,255,.35),
            transparent 65%
        );
    transform: translateX(-100%);
    transition: .7s ease;
}

.resource-card:hover .resource-image::after {
    transform: translateX(100%);
}

.resource-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s ease;
}

.resource-card:hover .resource-image img {
    transform: scale(1.08);
}

.resource-info {
    padding: 23px;
}

.resource-info h3 {
    font-family: "Minecraftia", sans-serif;
    font-size: 15px;
    margin-bottom: 10px;
}

.resource-info p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.tag {
    padding: 6px 9px;
    border-radius: 8px;
    background: #edfff3;
    border: 1px solid rgba(52, 174, 96, .13);
    color: #318653;
    font-size: 11px;
    font-weight: 800;
}

/* =========================
   SEARCH
========================= */

.search-wrap {
    width: min(700px, 100%);
    margin: 0 auto 35px;
    position: relative;
}

.search {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 50px;

    border: 1px solid rgba(48, 159, 91, .16);
    border-radius: 16px;

    outline: none;

    color: var(--text);
    background: rgba(255,255,255,.72);

    backdrop-filter: blur(18px);

    box-shadow: 0 12px 35px rgba(42, 124, 69, .07);

    transition: .25s ease;
}

.search:focus {
    border-color: rgba(47, 180, 94, .5);
    box-shadow: 0 15px 40px rgba(42, 154, 79, .13);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

/* =========================
   PREMIUM
========================= */

.premium-banner {
    position: relative;
    overflow: hidden;

    padding: 50px;
    border-radius: 30px;

    background:
        radial-gradient(circle at 85% 20%, rgba(116, 244, 157, .45), transparent 25%),
        linear-gradient(135deg, #ecfff2, #d9fbea);

    border: 1px solid rgba(54, 176, 96, .18);
    box-shadow: 0 25px 70px rgba(41, 134, 73, .12);
}

.premium-banner::before {
    content: "✦";
    position: absolute;
    right: 70px;
    top: 20px;
    font-size: 100px;
    color: rgba(54, 183, 97, .08);
    animation: spinSlow 15s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.premium-banner h2 {
    font-family: "Minecraftia", sans-serif;
    font-size: clamp(23px, 4vw, 38px);
    margin-bottom: 15px;
}

.premium-banner p {
    max-width: 650px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* =========================
   FOOTER
========================= */

footer {
    width: min(1180px, calc(100% - 30px));
    margin: 40px auto 25px;

    padding: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    color: #718078;
    font-size: 13px;

    border-top: 1px solid rgba(53, 156, 89, .10);
}

.footer-brand {
    font-family: "Minecraftia", sans-serif;
    color: #345343;
}

/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }

    .grid,
    .resource-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 700px;
    }
}

@media (max-width: 580px) {
    .navbar {
        width: calc(100% - 20px);
    }

    .brand {
        font-size: 13px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero {
        padding-top: 150px;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -2px;
    }

    .hero p {
        font-size: 15px;
    }

    .grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .premium-banner {
        padding: 30px 23px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}