:root {
    --bg: #050608;
    --bg-elevated: rgba(10, 12, 18, 0.92);
    --glass: rgba(19, 23, 34, 0.85);
    --glass-soft: rgba(19, 23, 34, 0.75);
    --border-soft: rgba(255, 255, 255, 0.06);
    --accent: #ff8800;
    --accent-soft: rgba(255, 136, 0, 0.16);
    --text-primary: #ffffff;
    --text-muted: #a0a4b8;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
}

/* GENERAL RESET ------------------------- */

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top left, #141829 0, #050608 55%);
    color: var(--text-primary);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

img {
    max-width: 100%;
    display: block;
}

/* LAYOUT HELPERS ------------------------ */

.page-wrap {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 72px 0;
    position: relative;
}

@media (min-width: 992px) {
    section {
        padding: 96px 0;
    }
}

.section-heading {
    text-align: center;
    margin-bottom: 32px;
}

.section-heading h2 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.section-heading p {
    margin: 0;
    font-size: 1.1rem;
    color: #d2d4e0;
}

/* NAVBAR --------------------------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(5, 6, 8, 0.98); /* fully opaque so glow doesn’t bleed through */
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #0b0f19; /* darker, no glow behind the logo */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.brand-icon img {
    width: 22px;
    height: 22px;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--text-muted);
    padding: 6px 0;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8800, #ffc04e);
    transition: width 0.2s ease-out;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 18px;
}

.nav-cta {
    margin-left: 12px;
}

/* HEADER BUTTON - high contrast & readable */
.nav-cta .btn-nav-discord {
    background: linear-gradient(120deg, #ea580c, #f97316);
    color: #ffffff !important;          /* force white text */
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.85);
    font-weight: 600;
    font-size: 0.98rem;                 /* slightly bigger text */
    padding: 10px 26px;                 /* wider pill */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.nav-cta .btn-nav-discord:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

/* Highlight CUSTOM PROJECTS heading */
#custom-projects .section-heading h2 {
    color: #fbbf77; /* warm orange like other highlights */
    text-shadow: 0 0 18px rgba(251, 191, 119, 0.4);
}


/* BUTTONS ---------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(120deg, #ff8800, #ffb347);
    color: #050608;
    box-shadow: 0 14px 40px rgba(255, 136, 0, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgba(255, 136, 0, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7f3;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* MOBILE NAV --------------------------- */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .navbar-inner {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 12px 20px 16px;
        background: rgba(5, 6, 8, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        z-index: 30;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-cta {
        margin-top: 8px;
    }
}

/* HERO ------------------------------ */

.hero {
    padding-top: 56px;
    padding-bottom: 72px;
}

@media (min-width: 992px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 96px;
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    line-height: 1.02;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.06rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.hero-meta span {
    opacity: 0.7;
}

/* HERO CARD -------------------------- */

.hero-visual {
    justify-self: center;
}

.hero-card {
    width: 100%;
    max-width: 360px;
    border-radius: 32px;
    background:
            radial-gradient(circle at 0 0, rgba(255, 136, 0, 0.3), transparent 55%),
            radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.04), transparent 55%),
            var(--glass);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    padding: 24px 22px 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px);
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(5, 6, 8, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
}

.hero-card-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.32);
}

.hero-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.hero-card-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.hero-card-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
}

.hero-card-row-single {
    justify-content: flex-start;
}

.hero-card-orb {
    position: absolute;
    right: -64px;
    bottom: -64px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle at 0 0,
    rgba(255, 205, 120, 0.8),
    rgba(255, 136, 0, 0.5),
    transparent 70%);
    opacity: 0.84;
}

/* GLASS CARDS ------------------------ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.card-glass {
    background: var(--glass-soft);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
    padding: 18px 18px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(18px);
}

/* hide old icon blocks in What we build */
.card-label {
    display: none;
}

.card-title {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Make each “What we build” header a different color */
.cards-grid .card-glass:nth-child(1) .card-title {
    color: #fed7aa; /* SPIGOT PLUGINS */
}

.cards-grid .card-glass:nth-child(2) .card-title {
    color: #bae6fd; /* FIVEPD CALLOUTS (LEGACY) */
}

.cards-grid .card-glass:nth-child(3) .card-title {
    color: #ddd6fe; /* CUSTOM SOFTWARE */
}

.card-text {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-footer-link {
    font-size: 0.88rem;
    color: #f4b86c;
}

/* SECTION TITLE COLORS -------------- */
/* 1st section with heading is WHAT WE BUILD */
section:nth-of-type(2) .section-heading h2 {
    color: #fbbf24;
}

/* SPIGOT PLUGINS section */
#plugins .section-heading h2 {
    color: #fed7aa;
}

/* FIVEPD CALLOUTS (LEGACY) section */
#fivepd .section-heading h2 {
    color: #bae6fd;
}

/* PLUGINS --------------------------- */

.plugin-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .plugin-row {
        grid-template-columns: 1fr;
    }
}

.plugin-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.plugin-pill {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: radial-gradient(circle at 0 0,
    rgba(255, 136, 0, 0.35),
    rgba(5, 6, 8, 0.98));
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.plugin-pill-header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.95rem;
}

.pill-label {
    font-weight: 600;
}

.pill-tag {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.plugin-pill-footer {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* FIVEPD BUTTON & SECTION ------------------- */

.section-actions {
    text-align: center;
    margin-bottom: 32px;
}

.btn-callouts {
    min-width: 260px;
    padding: 12px 28px;
    font-size: 1rem;
}

/* SOCIAL --------------------------- */

/* SOCIAL MEDIA section title */
#social .section-heading h2 {
    color: #bfdbfe; /* soft blue – tweak if you want */
}


.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.social-card {
    border-radius: 18px;
    padding: 16px 16px 18px;
    background: var(--glass-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.social-name {
    font-weight: 500;
    font-size: 1rem;
}

.social-handle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-card a {
    margin-top: 6px;
    font-size: 0.86rem;
    color: #f4b86c;
}

/* DISCORD RIBBON -------------------- */

.discord-ribbon {
    background: radial-gradient(circle at 10% 0,
    rgba(255, 136, 0, 0.5),
    rgba(5, 6, 8, 0.96));
    border-radius: 26px;
    padding: 24px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8);
}

.discord-ribbon h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.discord-ribbon p {
    margin: 0;
    font-size: 0.9rem;
    color: #fdf3e3;
}

/* FOOTER --------------------------- */

footer {
    flex-shrink: 0;
    padding: 26px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #040507;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #ffffff;
}
